2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
696 PYTHON_GETPATH_CFLAGS
753 ac_precious_vars
='build_alias
765 # Initialize some variables set by options.
767 ac_init_version
=false
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name
=s
,x
,x
,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir
='${exec_prefix}/bin'
792 sbindir
='${exec_prefix}/sbin'
793 libexecdir
='${exec_prefix}/libexec'
794 datarootdir
='${prefix}/share'
795 datadir
='${datarootdir}'
796 sysconfdir
='${prefix}/etc'
797 sharedstatedir
='${prefix}/com'
798 localstatedir
='${prefix}/var'
799 includedir
='${prefix}/include'
800 oldincludedir
='/usr/include'
801 docdir
='${datarootdir}/doc/${PACKAGE}'
802 infodir
='${datarootdir}/info'
807 libdir
='${exec_prefix}/lib'
808 localedir
='${datarootdir}/locale'
809 mandir
='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\
$ac_option
823 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
835 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
838 -build |
--build |
--buil |
--bui |
--bu)
839 ac_prev
=build_alias
;;
840 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
841 build_alias
=$ac_optarg ;;
843 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
844 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
845 ac_prev
=cache_file
;;
846 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
847 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
848 cache_file
=$ac_optarg ;;
851 cache_file
=config.cache
;;
853 -datadir |
--datadir |
--datadi |
--datad)
855 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
856 datadir
=$ac_optarg ;;
858 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
859 |
--dataroo |
--dataro |
--datar)
860 ac_prev
=datarootdir
;;
861 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
862 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
863 datarootdir
=$ac_optarg ;;
865 -disable-* |
--disable-*)
866 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
869 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
870 { (exit 1); exit 1; }; }
871 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
872 eval enable_
$ac_feature=no
;;
874 -docdir |
--docdir |
--docdi |
--doc |
--do)
876 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
879 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
881 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
884 -enable-* |
--enable-*)
885 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_
$ac_feature=\
$ac_optarg ;;
893 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
894 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
895 |
--exec |
--exe |
--ex)
896 ac_prev
=exec_prefix
;;
897 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
898 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
899 |
--exec=* |
--exe=* |
--ex=*)
900 exec_prefix
=$ac_optarg ;;
902 -gas |
--gas |
--ga |
--g)
903 # Obsolete; use --with-gas.
906 -help |
--help |
--hel |
--he |
-h)
908 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
909 ac_init_help
=recursive
;;
910 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
911 ac_init_help
=short
;;
913 -host |
--host |
--hos |
--ho)
914 ac_prev
=host_alias
;;
915 -host=* |
--host=* |
--hos=* |
--ho=*)
916 host_alias
=$ac_optarg ;;
918 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
920 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
922 htmldir
=$ac_optarg ;;
924 -includedir |
--includedir |
--includedi |
--included |
--include \
925 |
--includ |
--inclu |
--incl |
--inc)
926 ac_prev
=includedir
;;
927 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
928 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
929 includedir
=$ac_optarg ;;
931 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
933 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
934 infodir
=$ac_optarg ;;
936 -libdir |
--libdir |
--libdi |
--libd)
938 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
941 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
942 |
--libexe |
--libex |
--libe)
943 ac_prev
=libexecdir
;;
944 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
945 |
--libexe=* |
--libex=* |
--libe=*)
946 libexecdir
=$ac_optarg ;;
948 -localedir |
--localedir |
--localedi |
--localed |
--locale)
950 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
951 localedir
=$ac_optarg ;;
953 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
954 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
955 ac_prev
=localstatedir
;;
956 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
957 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
958 localstatedir
=$ac_optarg ;;
960 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
962 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
966 # Obsolete; use --without-fp.
969 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
970 |
--no-cr |
--no-c |
-n)
973 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
974 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
977 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
978 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
979 |
--oldin |
--oldi |
--old |
--ol |
--o)
980 ac_prev
=oldincludedir
;;
981 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
982 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
983 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
984 oldincludedir
=$ac_optarg ;;
986 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
988 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
991 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
992 |
--program-pre |
--program-pr |
--program-p)
993 ac_prev
=program_prefix
;;
994 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
995 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
996 program_prefix
=$ac_optarg ;;
998 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
999 |
--program-suf |
--program-su |
--program-s)
1000 ac_prev
=program_suffix
;;
1001 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1002 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1003 program_suffix
=$ac_optarg ;;
1005 -program-transform-name |
--program-transform-name \
1006 |
--program-transform-nam |
--program-transform-na \
1007 |
--program-transform-n |
--program-transform- \
1008 |
--program-transform |
--program-transfor \
1009 |
--program-transfo |
--program-transf \
1010 |
--program-trans |
--program-tran \
1011 |
--progr-tra |
--program-tr |
--program-t)
1012 ac_prev
=program_transform_name
;;
1013 -program-transform-name=* |
--program-transform-name=* \
1014 |
--program-transform-nam=* |
--program-transform-na=* \
1015 |
--program-transform-n=* |
--program-transform-=* \
1016 |
--program-transform=* |
--program-transfor=* \
1017 |
--program-transfo=* |
--program-transf=* \
1018 |
--program-trans=* |
--program-tran=* \
1019 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1020 program_transform_name
=$ac_optarg ;;
1022 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1024 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1025 pdfdir
=$ac_optarg ;;
1027 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1029 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1032 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1033 |
-silent |
--silent |
--silen |
--sile |
--sil)
1036 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1038 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1040 sbindir
=$ac_optarg ;;
1042 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1043 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1044 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1046 ac_prev
=sharedstatedir
;;
1047 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1048 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1049 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1051 sharedstatedir
=$ac_optarg ;;
1053 -site |
--site |
--sit)
1055 -site=* |
--site=* |
--sit=*)
1058 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1060 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1061 srcdir
=$ac_optarg ;;
1063 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1064 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1065 ac_prev
=sysconfdir
;;
1066 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1067 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1068 sysconfdir
=$ac_optarg ;;
1070 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1071 ac_prev
=target_alias
;;
1072 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1073 target_alias
=$ac_optarg ;;
1075 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1078 -version |
--version |
--versio |
--versi |
--vers |
-V)
1079 ac_init_version
=: ;;
1082 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1085 { echo "$as_me: error: invalid package name: $ac_package" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1088 eval with_
$ac_package=\
$ac_optarg ;;
1090 -without-* |
--without-*)
1091 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_
$ac_package=no
;;
1100 # Obsolete; use --with-x.
1103 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1104 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1105 ac_prev
=x_includes
;;
1106 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1107 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1108 x_includes
=$ac_optarg ;;
1110 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1111 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1112 ac_prev
=x_libraries
;;
1113 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1114 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1115 x_libraries
=$ac_optarg ;;
1117 -*) { echo "$as_me: error: unrecognized option: $ac_option
1118 Try \`$0 --help' for more information." >&2
1119 { (exit 1); exit 1; }; }
1123 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1126 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1127 { (exit 1); exit 1; }; }
1128 eval $ac_envvar=\
$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1135 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 if test -n "$ac_prev"; then
1143 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1144 { echo "$as_me: error: missing argument to $ac_option" >&2
1145 { (exit 1); exit 1; }; }
1148 # Be sure to have absolute directory names.
1149 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir
1154 eval ac_val
=\$
$ac_var
1156 [\\/$
]* | ?
:[\\/]* ) continue;;
1157 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1159 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1160 { (exit 1); exit 1; }; }
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target
=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x
; then
1172 if test "x$build_alias" = x
; then
1173 cross_compiling
=maybe
1174 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1184 test "$silent" = yes && exec 6>/dev
/null
1187 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di
=`ls -di .` &&
1189 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1190 { echo "$as_me: error: Working directory cannot be determined" >&2
1191 { (exit 1); exit 1; }; }
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 { echo "$as_me: error: pwd does not report name of working directory" >&2
1194 { (exit 1); exit 1; }; }
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted
=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir
=`$as_dirname -- "$0" ||
1202 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$0" : 'X\(//\)[^/]' \| \
1204 X"$0" : 'X\(//\)$' \| \
1205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted
=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1233 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1234 { (exit 1); exit 1; }; }
1236 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1239 { (exit 1); exit 1; }; }
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1249 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 for ac_var
in $ac_precious_vars; do
1252 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1254 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1259 # Report the --help message.
1261 if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1265 \`configure' configures this package to adapt to many kinds of systems.
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE. See below for descriptions of some of the useful variables.
1272 Defaults for the options are specified in brackets.
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285 Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1296 For better control, use the options below.
1298 Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
1323 --x-includes=DIR X include files are
in DIR
1324 --x-libraries=DIR X library files are
in DIR
1328 if test -n "$ac_init_help"; then
1333 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1334 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1335 --disable-darwin Disable Darwin
(Mac OS X
) support.
1336 --disable-selinux Don
't check for SELinux support.
1337 --disable-xsmp Disable XSMP session management
1338 --disable-xsmp-interact Disable XSMP interaction
1339 --enable-mzschemeinterp Include MzScheme interpreter.
1340 --enable-perlinterp Include Perl interpreter.
1341 --enable-pythoninterp Include Python interpreter.
1342 --enable-tclinterp Include Tcl interpreter.
1343 --enable-rubyinterp Include Ruby interpreter.
1344 --enable-cscope Include cscope interface.
1345 --enable-workshop Include Sun Visual Workshop support.
1346 --disable-netbeans Disable NetBeans integration support.
1347 --enable-sniff Include Sniff interface.
1348 --enable-multibyte Include multibyte editing support.
1349 --enable-hangulinput Include Hangul input support.
1350 --enable-xim Include XIM input support.
1351 --enable-fontset Include X fontset output support.
1352 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1353 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1354 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1355 --enable-gnome-check If GTK GUI, check for GNOME default=no
1356 --enable-motif-check If auto-select GUI, check for Motif default=yes
1357 --enable-athena-check If auto-select GUI, check for Athena default=yes
1358 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1359 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1360 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1361 --disable-gtktest Do not try to compile and run a test GTK program
1362 --disable-acl Don't check
for ACL support.
1363 --disable-gpm Don
't use gpm (Linux mouse daemon).
1364 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1365 --disable-nls Don
't support NLS (gettext()).
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1371 --with-macsdk=SDK SDK version (10.4, 10.5, 10.6, ...)
1372 --with-macarchs=ARCHS space separated list of archs (i386 x86_64 ppc ...)
1373 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1374 --without-local-dir do not search /usr/local for local libraries.
1375 --with-vim-name=NAME what to call the Vim executable
1376 --with-ex-name=NAME what to call the Ex executable
1377 --with-view-name=NAME what to call the View executable
1378 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1379 --with-modified-by=NAME name of who modified a release version
1380 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1381 --with-compiledby=NAME name to show in :version message
1382 --with-plthome=PLTHOME Use PLTHOME.
1383 --with-python-config-dir=PATH Python's config directory
1384 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1385 --with-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1386 --with-x use the X Window System
1387 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1388 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1389 --with-gnome-includes=DIR Specify location of GNOME headers
1390 --with-gnome-libs=DIR Specify location of GNOME libs
1391 --with-gnome Specify prefix
for GNOME files
1392 --with-motif-lib=STRING Library
for Motif
1393 --with-tlib=library terminal library to be used
1394 --with-xcodecfg=CFG Debug
, Release
(default
: Release
)
1396 Some influential environment variables
:
1397 CC C compiler
command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1400 nonstandard directory
<lib dir
>
1401 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1402 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1403 you have headers
in a nonstandard directory
<include dir
>
1405 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1407 Use these variables to override the choices made by
`configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" || continue
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1437 .) # We are building in place.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1471 generated by GNU Autoconf 2.61
1473 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1474 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1480 cat >auto/config.log <<_ACEOF
1481 This file contains any messages produced by compilers while
1482 running configure, to aid debugging if configure makes a mistake.
1484 It was created by $as_me, which was
1485 generated by GNU Autoconf 2.61. Invocation command line was
1490 exec 5>>auto/config.log
1497 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1498 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1499 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1500 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1501 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1503 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1504 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1506 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1507 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1508 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1509 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1510 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1511 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1512 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 echo "PATH: $as_dir"
1537 # Keep a trace of the command line.
1538 # Strip out --no-create and --no-recursion so they do not pile up.
1539 # Strip out --silent because we don't want to record it for future runs.
1540 # Also quote any args containing shell meta-characters.
1541 # Make two passes to allow for proper duplicate-argument suppression.
1545 ac_must_keep_next=false
1551 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1553 | -silent | --silent | --silen | --sile | --sil)
1556 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1559 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1562 if test $ac_must_keep_next = true; then
1563 ac_must_keep_next=false # Got value, back to normal.
1566 *=* | --config-cache | -C | -disable-* | --disable-* \
1567 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1568 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1569 | -with-* | --with-* | -without-* | --without-* | --x)
1570 case "$ac_configure_args0 " in
1571 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1574 -* ) ac_must_keep_next=true ;;
1577 ac_configure_args="$ac_configure_args '$ac_arg'"
1582 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1583 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585 # When interrupted or exit'd, cleanup temporary files, and complete
1586 # config.log. We remove comments because anyway the quotes in there
1587 # would cause problems or look ugly.
1588 # WARNING: Use '\'' to represent an apostrophe within the trap.
1589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1590 trap 'exit_status=$?
1591 # Save into config.log some information that might help in debugging.
1596 ## ---------------- ##
1597 ## Cache variables. ##
1598 ## ---------------- ##
1601 # The following way of writing the cache mishandles newlines in values,
1603 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1604 eval ac_val=\$$ac_var
1608 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1609 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1612 _ | IFS | as_nl) ;; #(
1613 *) $as_unset $ac_var ;;
1618 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1619 *${as_nl}ac_space=\ *)
1621 "s/'\''/'\''\\\\'\'''\''/g;
1622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1638 for ac_var in $ac_subst_vars
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1648 if test -n "$ac_subst_files"; then
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1655 for ac_var in $ac_subst_files
1657 eval ac_val=\$$ac_var
1659 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 echo "$ac_var='\''$ac_val'\''"
1666 if test -s confdefs.h; then
1676 test "$ac_signal" != 0 &&
1677 echo "$as_me: caught signal $ac_signal"
1678 echo "$as_me: exit $exit_status"
1680 rm -f core *.core core.conftest.* &&
1681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1684 for ac_signal in 1 2 13 15; do
1685 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1692 # Predefined preprocessor variables.
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer explicitly selected file to automatically selected ones.
1721 if test -n "$CONFIG_SITE"; then
1722 set x "$CONFIG_SITE"
1723 elif test "x$prefix" != xNONE; then
1724 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1726 set x "$ac_default_prefix/share/config.site" \
1727 "$ac_default_prefix/etc/config.site"
1732 if test -r "$ac_site_file"; then
1733 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1734 echo "$as_me: loading site script $ac_site_file" >&6;}
1735 sed 's/^/| /' "$ac_site_file" >&5
1740 if test -r "$cache_file"; then
1741 # Some versions of bash will fail to source /dev/null (special
1742 # files actually), so we avoid doing that.
1743 if test -f "$cache_file"; then
1744 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1745 echo "$as_me: loading cache $cache_file" >&6;}
1747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1748 *) . "./$cache_file";;
1752 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1753 echo "$as_me: creating cache $cache_file" >&6;}
1757 # Check that the precious variables saved in the cache have kept the same
1759 ac_cache_corrupted=false
1760 for ac_var in $ac_precious_vars; do
1761 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1762 eval ac_new_set=\$ac_env_${ac_var}_set
1763 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1764 eval ac_new_val=\$ac_env_${ac_var}_value
1765 case $ac_old_set,$ac_new_set in
1767 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1768 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1769 ac_cache_corrupted=: ;;
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1772 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1776 if test "x$ac_old_val" != "x$ac_new_val"; then
1777 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1778 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1779 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1780 echo "$as_me: former value
: $ac_old_val" >&2;}
1781 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1782 echo "$as_me: current value
: $ac_new_val" >&2;}
1783 ac_cache_corrupted=:
1786 # Pass precious variables to config.status.
1787 if test "$ac_new_set" = set; then
1789 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1790 *) ac_arg=$ac_var=$ac_new_val ;;
1792 case " $ac_configure_args " in
1793 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1794 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1798 if $ac_cache_corrupted; then
1799 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1800 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1801 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1802 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1803 { (exit 1); exit 1; }; }
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1832 cat >>confdefs.h <<\_ACEOF
1836 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1837 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1838 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1839 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 cat >conftest.make <<\_ACEOF
1845 @echo '@@@%%%=$(MAKE)=@@@%%%'
1847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1848 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1850 eval ac_cv_prog_make_${ac_make}_set=yes;;
1852 eval ac_cv_prog_make_${ac_make}_set=no;;
1856 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1857 { echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6; }
1861 { echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6; }
1863 SET_MAKE="MAKE=${MAKE-make}"
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 if test -n "$CC"; then
1902 { echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6; }
1905 { echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6; }
1911 if test -z "$ac_cv_prog_CC"; then
1913 # Extract the first word of "gcc", so it can be a program name with args.
1914 set dummy gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_ac_ct_CC="gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6; }
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1949 if test "x$ac_ct_CC" = x; then
1952 case $cross_compiling:$ac_tool_warned in
1954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1955 whose name does not start with the host triplet. If you think this
1956 configuration is useful to you, please write to autoconf@gnu.org." >&5
1957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1958 whose name does not start with the host triplet. If you think this
1959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1960 ac_tool_warned=yes ;;
1968 if test -z "$CC"; then
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}cc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="${ac_tool_prefix}cc"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2029 ac_prog_rejected=yes
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test $ac_prog_rejected = yes; then
2041 # We found a bogon in the path, so make sure we never use it.
2042 set dummy $ac_cv_prog_CC
2044 if test $# != 0; then
2045 # We chose a different compiler from the bogus one.
2046 # However, it has the same basename, so the bogon will be chosen
2047 # first if we set CC to just the basename; use the full file name.
2049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2055 if test -n "$CC"; then
2056 { echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2065 if test -z "$CC"; then
2066 if test -n "$ac_tool_prefix"; then
2067 for ac_prog in cl.exe
2069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 if test -n "$CC"; then
2098 { echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6; }
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2106 test -n "$CC" && break
2109 if test -z "$CC"; then
2111 for ac_prog in cl.exe
2113 # Extract the first word of "$ac_prog", so it can be a program name with args.
2114 set dummy $ac_prog; ac_word=$2
2115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_ac_ct_CC="$ac_prog"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6; }
2145 { echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6; }
2150 test -n "$ac_ct_CC" && break
2153 if test "x$ac_ct_CC" = x; then
2156 case $cross_compiling:$ac_tool_warned in
2158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&5
2161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2164 ac_tool_warned=yes ;;
2173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174 See \`config.log
' for more details." >&5
2175 echo "$as_me: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details.
" >&2;}
2177 { (exit 1); exit 1; }; }
2179 # Provide some information about the compiler.
2180 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2181 ac_compiler=`set X $ac_compile; echo $2`
2182 { (ac_try="$ac_compiler --version >&5"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2188 (eval "$ac_compiler --version >&5") 2>&5
2190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2191 (exit $ac_status); }
2192 { (ac_try="$ac_compiler -v >&5"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2198 (eval "$ac_compiler -v >&5") 2>&5
2200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2201 (exit $ac_status); }
2202 { (ac_try="$ac_compiler -V >&5"
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_compiler -V >&5") 2>&5
2210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2211 (exit $ac_status); }
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2228 ac_clean_files_save=$ac_clean_files
2229 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2230 # Try to create an executable without -o first, disregard a.out.
2231 # It will help us diagnose broken compilers, and finding out an intuition
2233 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2234 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2235 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237 # List of possible output files, starting from the most likely.
2238 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2239 # only as a last resort. b.out is created by i960 compilers.
2240 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2242 # The IRIX 6 linker writes into existing files which may not be
2243 # executable, retaining their permissions. Remove them first so a
2244 # subsequent execution test works.
2246 for ac_file in $ac_files
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2250 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2255 if { (ac_try="$ac_link_default"
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_link_default") 2>&5
2263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2266 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2267 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2268 # so that the user can short-circuit this test for compilers unknown to
2270 for ac_file in $ac_files ''
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2277 # We found the default executable, but exeext='' is most
2281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # We set ac_cv_exeext here because the later test for it is not
2286 # safe: cross compilers may not add the suffix if given an `-o'
2287 # argument, so we may need to know it at that point already.
2288 # Even if this section looks crufty: it has the advantage of
2295 test "$ac_cv_exeext" = no && ac_cv_exeext=
2301 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2302 echo "${ECHO_T}$ac_file" >&6; }
2303 if test -z "$ac_file"; then
2304 echo "$as_me: failed program was
:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2308 See \
`config.log' for more details." >&5
2309 echo "$as_me: error: C compiler cannot create executables
2310 See \`config.log
' for more details." >&2;}
2311 { (exit 77); exit 77; }; }
2314 ac_exeext=$ac_cv_exeext
2316 # Check that the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323 if { ac_try='.
/$ac_file'
2324 { (case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_try") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 if test "$cross_compiling" = maybe; then
2338 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \
`config.log' for more details." >&5
2341 echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details.
" >&2;}
2344 { (exit 1); exit 1; }; }
2348 { echo "$as_me:$LINENO: result
: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2351 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2356 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2357 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2358 echo "${ECHO_T}$cross_compiling" >&6; }
2360 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2361 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2362 if { (ac_try="$ac_link"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_link") 2>&5
2370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2371 (exit $ac_status); }; then
2372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2374 # work properly (i.e., refer to `conftest.exe'), while it won't with
2376 for ac_file in conftest.exe conftest conftest.*; do
2377 test -f "$ac_file" || continue
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2387 See \
`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2389 See \`config.log
' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2393 rm -f conftest$ac_cv_exeext
2394 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2395 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2397 rm -f conftest.$ac_ext
2398 EXEEXT=$ac_cv_exeext
2400 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2401 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2402 if test "${ac_cv_objext+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2420 rm -f conftest.o conftest.obj
2421 if { (ac_try="$ac_compile"
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_compile") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; then
2431 for ac_file in conftest.o conftest.obj conftest.*; do
2432 test -f "$ac_file" || continue;
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2435 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2440 echo "$as_me: failed program was:" >&5
2441 sed 's
/^
/|
/' conftest.$ac_ext >&5
2443 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details.
" >&5
2445 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2446 See \
`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2452 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2453 echo "${ECHO_T}$ac_cv_objext" >&6; }
2454 OBJEXT=$ac_cv_objext
2456 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2457 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 cat >conftest.$ac_ext <<_ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2483 *) ac_try_echo
=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_compile") 2>conftest.er1
2488 grep -v '^ *+' conftest.er1
>conftest.err
2490 cat conftest.err
>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } && {
2493 test -z "$ac_c_werror_flag" ||
2494 test ! -s conftest.err
2495 } && test -s conftest.
$ac_objext; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.
$ac_ext >&5
2504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2505 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2508 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2509 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2510 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2511 ac_test_CFLAGS
=${CFLAGS+set}
2512 ac_save_CFLAGS
=$CFLAGS
2513 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 ac_save_c_werror_flag
=$ac_c_werror_flag
2519 ac_c_werror_flag
=yes
2522 cat >conftest.
$ac_ext <<_ACEOF
2525 cat confdefs.h
>>conftest.
$ac_ext
2526 cat >>conftest.
$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.
$ac_objext
2538 if { (ac_try
="$ac_compile"
2540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } && {
2551 test -z "$ac_c_werror_flag" ||
2552 test ! -s conftest.err
2553 } && test -s conftest.$ac_objext; then
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.$ac_objext
2576 if { (ac_try="$ac_compile"
2578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2579 *) ac_try_echo
=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compile") 2>conftest.er1
2584 grep -v '^ *+' conftest.er1
>conftest.err
2586 cat conftest.err
>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest.
$ac_objext; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.
$ac_ext >&5
2597 ac_c_werror_flag
=$ac_save_c_werror_flag
2599 cat >conftest.
$ac_ext <<_ACEOF
2602 cat confdefs.h
>>conftest.
$ac_ext
2603 cat >>conftest.
$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.
$ac_objext
2615 if { (ac_try
="$ac_compile"
2617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && {
2628 test -z "$ac_c_werror_flag" ||
2629 test ! -s conftest.err
2630 } && test -s conftest.$ac_objext; then
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2650 if test "$ac_test_CFLAGS" = set; then
2651 CFLAGS=$ac_save_CFLAGS
2652 elif test $ac_cv_prog_cc_g = yes; then
2653 if test "$GCC" = yes; then
2659 if test "$GCC" = yes; then
2665 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2666 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_cc_c89+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 ac_cv_prog_cc_c89=no
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2696 s = g (p, va_arg (v,int));
2701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2702 function prototypes and stuff, but not '\xHH' hex character constants.
2703 These don't provoke an error unfortunately, instead are silently treated
2704 as 'x'. The following induces an error, until -std is added to get
2705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2706 array size at least. It's necessary to write '\x00'==0 to get something
2707 that's true only with -std. */
2708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2711 inside strings and character constants. */
2713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 CC="$ac_save_CC $ac_arg"
2733 rm -f conftest.$ac_objext
2734 if { (ac_try="$ac_compile"
2736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2737 *) ac_try_echo
=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compile") 2>conftest.er1
2742 grep -v '^ *+' conftest.er1
>conftest.err
2744 cat conftest.err
>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } && {
2747 test -z "$ac_c_werror_flag" ||
2748 test ! -s conftest.err
2749 } && test -s conftest.
$ac_objext; then
2750 ac_cv_prog_cc_c89
=$ac_arg
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.
$ac_ext >&5
2758 rm -f core conftest.err conftest.
$ac_objext
2759 test "x$ac_cv_prog_cc_c89" != "xno" && break
2761 rm -f conftest.
$ac_ext
2766 case "x$ac_cv_prog_cc_c89" in
2768 { echo "$as_me:$LINENO: result: none needed" >&5
2769 echo "${ECHO_T}none needed" >&6; } ;;
2771 { echo "$as_me:$LINENO: result: unsupported" >&5
2772 echo "${ECHO_T}unsupported" >&6; } ;;
2774 CC
="$CC $ac_cv_prog_cc_c89"
2775 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2781 ac_cpp
='$CPP $CPPFLAGS'
2782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2786 ac_cpp
='$CPP $CPPFLAGS'
2787 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2790 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2791 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2792 # On Suns, sometimes $CPP names a directory.
2793 if test -n "$CPP" && test -d "$CPP"; then
2796 if test -z "$CPP"; then
2797 if test "${ac_cv_prog_CPP+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 # Double quotes because CPP needs to be expanded
2801 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2804 for ac_c_preproc_warn_flag
in '' yes
2806 # Use a header file that comes with gcc, so configuring glibc
2807 # with a fresh cross-compiler works.
2808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2809 # <limits.h> exists even on freestanding compilers.
2810 # On the NeXT, cc -E runs the code through the compiler's parser,
2811 # not just through cpp. "Syntax error" is here to catch this case.
2812 cat >conftest.
$ac_ext <<_ACEOF
2815 cat confdefs.h
>>conftest.
$ac_ext
2816 cat >>conftest.
$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2819 # include <limits.h>
2821 # include <assert.h>
2825 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2833 grep -v '^ *+' conftest.er1 >conftest.err
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null && {
2838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 # Broken: fails on valid input.
2850 rm -f conftest.err conftest.$ac_ext
2852 # OK, works on sane cases. Now check whether nonexistent headers
2853 # can be detected and how.
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 #include <ac_nonexistent.h>
2862 if { (ac_try="$ac_cpp conftest.$ac_ext"
2864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2865 *) ac_try_echo
=$ac_try;;
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2870 grep -v '^ *+' conftest.er1
>conftest.err
2872 cat conftest.err
>&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } >/dev
/null
&& {
2875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2878 # Broken: success on invalid input.
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.
$ac_ext >&5
2884 # Passes both tests.
2889 rm -f conftest.err conftest.
$ac_ext
2892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2893 rm -f conftest.err conftest.
$ac_ext
2894 if $ac_preproc_ok; then
2906 { echo "$as_me:$LINENO: result: $CPP" >&5
2907 echo "${ECHO_T}$CPP" >&6; }
2909 for ac_c_preproc_warn_flag
in '' yes
2911 # Use a header file that comes with gcc, so configuring glibc
2912 # with a fresh cross-compiler works.
2913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914 # <limits.h> exists even on freestanding compilers.
2915 # On the NeXT, cc -E runs the code through the compiler's parser,
2916 # not just through cpp. "Syntax error" is here to catch this case.
2917 cat >conftest.
$ac_ext <<_ACEOF
2920 cat confdefs.h
>>conftest.
$ac_ext
2921 cat >>conftest.
$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2924 # include <limits.h>
2926 # include <assert.h>
2930 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } >/dev/null && {
2943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Broken: fails on valid input.
2955 rm -f conftest.err conftest.$ac_ext
2957 # OK, works on sane cases. Now check whether nonexistent headers
2958 # can be detected and how.
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 #include <ac_nonexistent.h>
2967 if { (ac_try="$ac_cpp conftest.$ac_ext"
2969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2970 *) ac_try_echo
=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2975 grep -v '^ *+' conftest.er1
>conftest.err
2977 cat conftest.err
>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev
/null
&& {
2980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2983 # Broken: success on invalid input.
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.
$ac_ext >&5
2989 # Passes both tests.
2994 rm -f conftest.err conftest.
$ac_ext
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.
$ac_ext
2999 if $ac_preproc_ok; then
3002 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3010 ac_cpp
='$CPP $CPPFLAGS'
3011 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3016 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3017 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3018 if test "${ac_cv_path_GREP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 # Extract the first word of "grep ggrep" to use in msg output
3022 if test -z "$GREP"; then
3023 set dummy
grep ggrep
; ac_prog_name
=$2
3024 if test "${ac_cv_path_GREP+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_path_GREP_found
=false
3028 # Loop through the user's path and test for each of PROGNAME-LIST
3029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3030 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3033 test -z "$as_dir" && as_dir
=.
3034 for ac_prog
in grep ggrep
; do
3035 for ac_exec_ext
in '' $ac_executable_extensions; do
3036 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3037 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3038 # Check for GNU ac_path_GREP and select it if it is found.
3039 # Check for GNU $ac_path_GREP
3040 case `"$ac_path_GREP" --version 2>&1` in
3042 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3045 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3048 cat "conftest.in" "conftest.in" >"conftest.tmp"
3049 mv "conftest.tmp" "conftest.in"
3050 cp "conftest.in" "conftest.nl"
3051 echo 'GREP' >> "conftest.nl"
3052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3053 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3054 ac_count
=`expr $ac_count + 1`
3055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3056 # Best one so far, save it but keep looking for a better one
3057 ac_cv_path_GREP
="$ac_path_GREP"
3058 ac_path_GREP_max
=$ac_count
3060 # 10*(2^10) chars as input seems more than enough
3061 test $ac_count -gt 10 && break
3063 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3067 $ac_path_GREP_found && break 3
3077 GREP
="$ac_cv_path_GREP"
3078 if test -z "$GREP"; then
3079 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081 { (exit 1); exit 1; }; }
3085 ac_cv_path_GREP
=$GREP
3090 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3091 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3092 GREP
="$ac_cv_path_GREP"
3095 { echo "$as_me:$LINENO: checking for egrep" >&5
3096 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3097 if test "${ac_cv_path_EGREP+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3101 then ac_cv_path_EGREP
="$GREP -E"
3103 # Extract the first word of "egrep" to use in msg output
3104 if test -z "$EGREP"; then
3105 set dummy
egrep; ac_prog_name
=$2
3106 if test "${ac_cv_path_EGREP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 ac_path_EGREP_found
=false
3110 # Loop through the user's path and test for each of PROGNAME-LIST
3111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3112 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3115 test -z "$as_dir" && as_dir
=.
3116 for ac_prog
in egrep; do
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3119 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3120 # Check for GNU ac_path_EGREP and select it if it is found.
3121 # Check for GNU $ac_path_EGREP
3122 case `"$ac_path_EGREP" --version 2>&1` in
3124 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3130 cat "conftest.in" "conftest.in" >"conftest.tmp"
3131 mv "conftest.tmp" "conftest.in"
3132 cp "conftest.in" "conftest.nl"
3133 echo 'EGREP' >> "conftest.nl"
3134 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3135 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3136 ac_count
=`expr $ac_count + 1`
3137 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3138 # Best one so far, save it but keep looking for a better one
3139 ac_cv_path_EGREP
="$ac_path_EGREP"
3140 ac_path_EGREP_max
=$ac_count
3142 # 10*(2^10) chars as input seems more than enough
3143 test $ac_count -gt 10 && break
3145 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3149 $ac_path_EGREP_found && break 3
3159 EGREP
="$ac_cv_path_EGREP"
3160 if test -z "$EGREP"; then
3161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3163 { (exit 1); exit 1; }; }
3167 ac_cv_path_EGREP
=$EGREP
3173 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3174 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3175 EGREP
="$ac_cv_path_EGREP"
3178 cat >conftest.
$ac_ext <<_ACEOF
3181 cat confdefs.h
>>conftest.
$ac_ext
3182 cat >>conftest.
$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3187 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3188 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3189 if test "${ac_cv_search_strerror+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 ac_func_search_save_LIBS
=$LIBS
3193 cat >conftest.
$ac_ext <<_ACEOF
3196 cat confdefs.h
>>conftest.
$ac_ext
3197 cat >>conftest.
$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3200 /* Override any GCC internal prototype to avoid an error.
3201 Use char because int might match the return type of a GCC
3202 builtin and then its argument prototype would still apply. */
3215 for ac_lib
in '' cposix
; do
3216 if test -z "$ac_lib"; then
3217 ac_res
="none required"
3220 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3222 rm -f conftest.
$ac_objext conftest
$ac_exeext
3223 if { (ac_try
="$ac_link"
3225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_link") 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest$ac_exeext &&
3239 $as_test_x conftest$ac_exeext; then
3240 ac_cv_search_strerror=$ac_res
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3250 if test "${ac_cv_search_strerror+set}" = set; then
3254 if test "${ac_cv_search_strerror+set}" = set; then
3257 ac_cv_search_strerror=no
3260 LIBS=$ac_func_search_save_LIBS
3262 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3263 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3264 ac_res=$ac_cv_search_strerror
3265 if test "$ac_res" != no; then
3266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3269 for ac_prog in gawk mawk nawk awk
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_AWK+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if test -n "$AWK"; then
3279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_AWK="$ac_prog"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$AWK"; then
3300 { echo "$as_me:$LINENO: result: $AWK" >&5
3301 echo "${ECHO_T}$AWK" >&6; }
3303 { echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6; }
3308 test -n "$AWK" && break
3311 # Extract the first word of "strip", so it can be a program name with args.
3312 set dummy strip; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_STRIP+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$STRIP"; then
3319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_STRIP="strip"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3339 STRIP=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341 { echo "$as_me:$LINENO: result: $STRIP" >&5
3342 echo "${ECHO_T}$STRIP" >&6; }
3344 { echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6; }
3352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3354 if test "${ac_cv_header_stdc+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3380 *) ac_try_echo
=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1
>conftest.err
3387 cat conftest.err
>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.
$ac_objext; then
3393 ac_cv_header_stdc
=yes
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.
$ac_ext >&5
3398 ac_cv_header_stdc
=no
3401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3403 if test $ac_cv_header_stdc = yes; then
3404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3405 cat >conftest.
$ac_ext <<_ACEOF
3408 cat confdefs.h
>>conftest.
$ac_ext
3409 cat >>conftest.
$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3415 $EGREP "memchr" >/dev
/null
2>&1; then
3418 ac_cv_header_stdc
=no
3424 if test $ac_cv_header_stdc = yes; then
3425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3426 cat >conftest.
$ac_ext <<_ACEOF
3429 cat confdefs.h
>>conftest.
$ac_ext
3430 cat >>conftest.
$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 $EGREP "free" >/dev
/null
2>&1; then
3439 ac_cv_header_stdc
=no
3445 if test $ac_cv_header_stdc = yes; then
3446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3447 if test "$cross_compiling" = yes; then
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3462 # define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3481 rm -f conftest
$ac_exeext
3482 if { (ac_try
="$ac_link"
3484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_link") 2>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3494 *) ac_try_echo
=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 echo "$as_me: program exited with status $ac_status" >&5
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.
$ac_ext >&5
3508 ac_cv_header_stdc
=no
3510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3518 if test $ac_cv_header_stdc = yes; then
3520 cat >>confdefs.h
<<\_ACEOF
3521 #define STDC_HEADERS 1
3526 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3527 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3528 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 cat >conftest.
$ac_ext <<_ACEOF
3534 cat confdefs.h
>>conftest.
$ac_ext
3535 cat >>conftest.
$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <sys/types.h>
3538 #include <sys/wait.h>
3540 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3556 rm -f conftest.
$ac_objext
3557 if { (ac_try
="$ac_compile"
3559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3573 ac_cv_header_sys_wait_h=yes
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 ac_cv_header_sys_wait_h=no
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3584 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3585 if test $ac_cv_header_sys_wait_h = yes; then
3587 cat >>confdefs.h <<\_ACEOF
3588 #define HAVE_SYS_WAIT_H 1
3594 if test -z "$CFLAGS"; then
3596 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3598 if test "$GCC" = yes; then
3599 gccversion=`"$CC" -dumpversion`
3600 if test "x$gccversion" = "x"; then
3601 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3603 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3604 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3605 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3607 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3608 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3609 CFLAGS="$CFLAGS -fno-strength-reduce"
3614 if test "$cross_compiling" = yes; then
3615 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3616 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3619 test "$GCC" = yes && CPP_MM=M;
3621 if test -f ./toolcheck; then
3622 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3623 echo "$as_me: checking for buggy tools..." >&6;}
3627 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3629 { echo "$as_me:$LINENO: checking for BeOS" >&5
3630 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3632 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3633 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3634 echo "${ECHO_T}yes" >&6; };;
3635 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6; };;
3639 { echo "$as_me:$LINENO: checking for QNX" >&5
3640 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3642 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3643 test -z "$with_x" && with_x=no
3644 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3645 echo "${ECHO_T}yes" >&6; };;
3646 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; };;
3650 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3651 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3652 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3653 { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3656 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3657 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3658 # Check whether --enable-darwin was given.
3659 if test "${enable_darwin+set}" = set; then
3660 enableval=$enable_darwin;
3665 if test "$enable_darwin" = "yes"; then
3666 { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3668 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3669 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3670 if test -f os_macosx.c; then
3671 { echo "$as_me:$LINENO: result: yes" >&5
3672 echo "${ECHO_T}yes" >&6; }
3674 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3675 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3679 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3680 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3683 { echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3684 echo $ECHO_N "checking --with-developer-dir argument... $ECHO_C" >&6; }
3686 # Check whether --with-developer-dir was given.
3687 if test "${with_developer_dir+set}" = set; then
3688 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3689 echo "${ECHO_T}$DEVELOPER_DIR" >&6; }
3691 DEVELOPER_DIR=""; { echo "$as_me:$LINENO: result: not present" >&5
3692 echo "${ECHO_T}not present" >&6; }
3696 if test "x$DEVELOPER_DIR" = "x"; then
3697 # Extract the first word of "xcode-select", so it can be a program name with args.
3698 set dummy xcode-select; ac_word=$2
3699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 case $XCODE_SELECT in
3706 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3728 if test -n "$XCODE_SELECT"; then
3729 { echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3730 echo "${ECHO_T}$XCODE_SELECT" >&6; }
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3737 if test "x$XCODE_SELECT" != "x"; then
3738 { echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3739 echo $ECHO_N "checking for developer dir using xcode-select... $ECHO_C" >&6; }
3740 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3741 { echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3742 echo "${ECHO_T}$DEVELOPER_DIR" >&6; }
3744 DEVELOPER_DIR=/Developer
3748 { echo "$as_me:$LINENO: checking --with-macsdk argument" >&5
3749 echo $ECHO_N "checking --with-macsdk argument... $ECHO_C" >&6; }
3751 # Check whether --with-macsdk was given.
3752 if test "${with_macsdk+set}" = set; then
3753 withval=$with_macsdk; MACSDK="$withval"; { echo "$as_me:$LINENO: result: $MACSDK" >&5
3754 echo "${ECHO_T}$MACSDK" >&6; }
3756 MACSDK=""; { echo "$as_me:$LINENO: result: using default" >&5
3757 echo "${ECHO_T}using default" >&6; }
3761 if test -n "$MACSDK"; then
3762 { echo "$as_me:$LINENO: checking if SDK is supported" >&5
3763 echo $ECHO_N "checking if SDK is supported... $ECHO_C" >&6; }
3764 save_cflags="$CFLAGS"
3765 save_ldflags="$LDFLAGS"
3766 sdkflags="$DEVELOPER_DIR/SDKs/MacOSX$MACSDK"
3767 if test "x$MACSDK" = "x10.4"; then
3768 sdkflags="$sdkflags""u"
3770 sdkflags="$sdkflags.sdk -mmacosx-version-min=$MACSDK"
3771 CFLAGS="$CFLAGS -isysroot $sdkflags"
3772 LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags"
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3788 rm -f conftest.$ac_objext conftest$ac_exeext
3789 if { (ac_try="$ac_link"
3791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3792 *) ac_try_echo
=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_link") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1
>conftest.err
3799 cat conftest.err
>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest
$ac_exeext &&
3805 $as_test_x conftest
$ac_exeext; then
3806 { echo "$as_me:$LINENO: result: yes" >&5
3807 echo "${ECHO_T}yes" >&6; }
3808 XCODEFLAGS
="$XCODEFLAGS -sdk macosx$MACSDK MACOSX_DEPLOYMENT_TARGET=$MACSDK"
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.
$ac_ext >&5
3813 { echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6; }
3816 CFLAGS
="$save_cflags"
3817 LDFLAGS
="$save_ldflags"
3820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3821 conftest
$ac_exeext conftest.
$ac_ext
3825 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3826 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3828 # Check whether --with-macarchs was given.
3829 if test "${with_macarchs+set}" = set; then
3830 withval
=$with_macarchs; ARCHS
="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3831 echo "${ECHO_T}$ARCHS" >&6; }
3833 ARCHS
=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3834 echo "${ECHO_T}defaulting to native arch" >&6; }
3838 if test -n "$ARCHS"; then
3839 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3840 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3841 save_cflags
="$CFLAGS"
3842 save_ldflags
="$LDFLAGS"
3843 archflags
=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3844 CFLAGS
="$CFLAGS $archflags"
3845 LDFLAGS
="$LDFLAGS $archflags"
3846 cat >conftest.
$ac_ext <<_ACEOF
3849 cat confdefs.h
>>conftest.
$ac_ext
3850 cat >>conftest.
$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3861 rm -f conftest.
$ac_objext conftest
$ac_exeext
3862 if { (ac_try
="$ac_link"
3864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_link") 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest$ac_exeext &&
3878 $as_test_x conftest$ac_exeext; then
3879 { echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6; }
3881 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3887 echo "${ECHO_T}no, will build for native arch only" >&6; }
3889 CFLAGS="$save_cflags"
3890 LDFLAGS="$save_ldflags"
3893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3894 conftest$ac_exeext conftest.$ac_ext
3898 if test "$enable_darwin" = "yes"; then
3900 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3901 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3902 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3915 inttypes.h stdint.h unistd.h
3917 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 $ac_includes_default
3931 #include <$ac_header>
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3937 *) ac_try_echo
=$ac_try;;
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1
>conftest.err
3944 cat conftest.err
>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.
$ac_objext; then
3950 eval "$as_ac_Header=yes"
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3955 eval "$as_ac_Header=no"
3958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3960 ac_res
=`eval echo '${'$as_ac_Header'}'`
3961 { echo "$as_me:$LINENO: result: $ac_res" >&5
3962 echo "${ECHO_T}$ac_res" >&6; }
3963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3964 cat >>confdefs.h
<<_ACEOF
3965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3974 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3975 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3976 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3980 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3982 # Is the header compilable?
3983 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3984 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3985 cat >conftest.
$ac_ext <<_ACEOF
3988 cat confdefs.h
>>conftest.
$ac_ext
3989 cat >>conftest.
$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 $ac_includes_default
3992 #include <Carbon/Carbon.h>
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4011 ac_header_compiler=yes
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 ac_header_compiler=no
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4021 echo "${ECHO_T}$ac_header_compiler" >&6; }
4023 # Is the header present?
4024 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4025 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
4026 cat >conftest.$ac_ext <<_ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 #include <Carbon/Carbon.h>
4034 if { (ac_try="$ac_cpp conftest.$ac_ext"
4036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4037 *) ac_try_echo
=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1
>conftest.err
4044 cat conftest.err
>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } >/dev
/null
&& {
4047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4050 ac_header_preproc
=yes
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.
$ac_ext >&5
4055 ac_header_preproc
=no
4058 rm -f conftest.err conftest.
$ac_ext
4059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4060 echo "${ECHO_T}$ac_header_preproc" >&6; }
4062 # So? What about this header?
4063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4065 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4066 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4068 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4069 ac_header_preproc
=yes
4072 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4073 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4075 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4077 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4078 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4079 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4080 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4081 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4082 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4083 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4087 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4088 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4089 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4094 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4095 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4098 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4104 SAVE_CPPFLAGS
=$CPPFLAGS
4106 CPPFLAGS
="$CPPFLAGS -ObjC"
4107 CFLAGS
="$CFLAGS -ObjC"
4108 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4109 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4110 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4111 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4115 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4117 # Is the header compilable?
4118 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4119 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4120 cat >conftest.
$ac_ext <<_ACEOF
4123 cat confdefs.h
>>conftest.
$ac_ext
4124 cat >>conftest.
$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4127 #include <Cocoa/Cocoa.h>
4129 rm -f conftest.
$ac_objext
4130 if { (ac_try
="$ac_compile"
4132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4146 ac_header_compiler=yes
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_header_compiler=no
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4156 echo "${ECHO_T}$ac_header_compiler" >&6; }
4158 # Is the header present?
4159 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4160 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <Cocoa/Cocoa.h>
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4172 *) ac_try_echo
=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1
>conftest.err
4179 cat conftest.err
>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev
/null
&& {
4182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4185 ac_header_preproc
=yes
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.
$ac_ext >&5
4190 ac_header_preproc
=no
4193 rm -f conftest.err conftest.
$ac_ext
4194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4195 echo "${ECHO_T}$ac_header_preproc" >&6; }
4197 # So? What about this header?
4198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4200 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4201 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4202 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4203 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4204 ac_header_preproc
=yes
4207 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4208 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4209 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4210 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4212 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4213 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4214 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4215 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4216 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4218 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4222 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4223 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4224 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 ac_cv_header_Cocoa_Cocoa_h
=$ac_header_preproc
4229 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4230 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4233 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4238 CPPFLAGS
=$SAVE_CPPFLAGS
4241 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4242 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
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4255 if test "$cross_compiling" = no
; then
4256 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4257 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4258 have_local_include
=''
4261 # Check whether --with-local-dir was given.
4262 if test "${with_local_dir+set}" = set; then
4263 withval
=$with_local_dir;
4264 local_dir
="$withval"
4268 # avoid adding local dir to LDFLAGS and CPPFLAGS
4272 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4273 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4274 { (exit 1); exit 1; }; } ;;
4276 { echo "$as_me:$LINENO: result: $local_dir" >&5
4277 echo "${ECHO_T}$local_dir" >&6; }
4281 local_dir
=/usr
/local
4282 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4283 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4287 if test "$GCC" = yes -a "$local_dir" != no
; then
4288 echo 'void f(){}' > conftest.c
4289 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4290 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4291 rm -f conftest.c conftest.o
4293 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4294 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4295 if test "$tt" = "$LDFLAGS"; then
4296 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4299 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4300 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4301 if test "$tt" = "$CPPFLAGS"; then
4302 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4307 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4308 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4310 # Check whether --with-vim-name was given.
4311 if test "${with_vim_name+set}" = set; then
4312 withval
=$with_vim_name; VIMNAME
="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4313 echo "${ECHO_T}$VIMNAME" >&6; }
4315 VIMNAME
="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4316 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4320 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4321 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4323 # Check whether --with-ex-name was given.
4324 if test "${with_ex_name+set}" = set; then
4325 withval
=$with_ex_name; EXNAME
="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4326 echo "${ECHO_T}$EXNAME" >&6; }
4328 EXNAME
="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4329 echo "${ECHO_T}Defaulting to ex" >&6; }
4333 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4334 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4336 # Check whether --with-view-name was given.
4337 if test "${with_view_name+set}" = set; then
4338 withval
=$with_view_name; VIEWNAME
="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4339 echo "${ECHO_T}$VIEWNAME" >&6; }
4341 VIEWNAME
="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4342 echo "${ECHO_T}Defaulting to view" >&6; }
4347 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4348 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4350 # Check whether --with-global-runtime was given.
4351 if test "${with_global_runtime+set}" = set; then
4352 withval
=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4353 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4354 #define RUNTIME_GLOBAL "$withval"
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4364 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4366 # Check whether --with-modified-by was given.
4367 if test "${with_modified_by+set}" = set; then
4368 withval
=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4369 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4370 #define MODIFIED_BY "$withval"
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4379 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4380 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4381 cat >conftest.
$ac_ext <<_ACEOF
4384 cat confdefs.h
>>conftest.
$ac_ext
4385 cat >>conftest.
$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4391 /* TryCompile function for CharSet.
4392 Treat any failure as ASCII for compatibility with existing art.
4393 Use compile-time rather than run-time tests for cross-compiler
4396 make an error "Character set is not EBCDIC"
4402 rm -f conftest.
$ac_objext
4403 if { (ac_try
="$ac_compile"
4405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
4419 # TryCompile action if true
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 # TryCompile action if false
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 # end of TryCompile ])
4431 # end of CacheVal CvEbcdic
4432 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4433 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4434 case "$cf_cv_ebcdic" in #(vi
4435 yes) cat >>confdefs.h <<\_ACEOF
4441 *) line_break='"\\012"';;
4445 if test "$cf_cv_ebcdic" = "yes"; then
4446 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4447 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4449 OS/390) OS390Unix="yes";
4450 if test "$CC" = "cc"; then
4454 if test "$CC" = "c89"; then
4461 if test "$ccm" != "1"; then
4463 echo "------------------------------------------"
4464 echo " On OS/390 Unix, the environment variable"
4465 echo " __CC_${ccn}MODE must be set to \"1\"!"
4467 echo " export _CC_${ccn}MODE=1"
4468 echo " and then call configure again."
4469 echo "------------------------------------------"
4472 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4473 { echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4483 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4484 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4485 # Check whether --enable-selinux was given.
4486 if test "${enable_selinux+set}" = set; then
4487 enableval=$enable_selinux;
4489 enable_selinux="yes"
4492 if test "$enable_selinux" = "yes"; then
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4496 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4497 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_check_lib_save_LIBS=$LIBS
4501 LIBS="-lselinux $LIBS"
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4509 /* Override any GCC internal prototype to avoid an error.
4510 Use char because int might match the return type of a GCC
4511 builtin and then its argument prototype would still apply. */
4515 char is_selinux_enabled ();
4519 return is_selinux_enabled ();
4524 rm -f conftest.$ac_objext conftest$ac_exeext
4525 if { (ac_try="$ac_link"
4527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4528 *) ac_try_echo
=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>conftest.er1
4533 grep -v '^ *+' conftest.er1
>conftest.err
4535 cat conftest.err
>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest
$ac_exeext &&
4541 $as_test_x conftest
$ac_exeext; then
4542 ac_cv_lib_selinux_is_selinux_enabled
=yes
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.
$ac_ext >&5
4547 ac_cv_lib_selinux_is_selinux_enabled
=no
4550 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4551 conftest
$ac_exeext conftest.
$ac_ext
4552 LIBS
=$ac_check_lib_save_LIBS
4554 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4555 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4556 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4557 LIBS
="$LIBS -lselinux"
4558 cat >>confdefs.h
<<\_ACEOF
4559 #define HAVE_SELINUX 1
4565 { echo "$as_me:$LINENO: result: yes" >&5
4566 echo "${ECHO_T}yes" >&6; }
4570 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4571 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4573 # Check whether --with-features was given.
4574 if test "${with_features+set}" = set; then
4575 withval
=$with_features; features
="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4576 echo "${ECHO_T}$features" >&6; }
4578 features
="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4579 echo "${ECHO_T}Defaulting to normal" >&6; }
4586 tiny
) cat >>confdefs.h
<<\_ACEOF
4590 small
) cat >>confdefs.h
<<\_ACEOF
4591 #define FEAT_SMALL 1
4594 normal
) cat >>confdefs.h
<<\_ACEOF
4595 #define FEAT_NORMAL 1
4597 dovimdiff
="installvimdiff";
4598 dogvimdiff
="installgvimdiff" ;;
4599 big
) cat >>confdefs.h
<<\_ACEOF
4602 dovimdiff
="installvimdiff";
4603 dogvimdiff
="installgvimdiff" ;;
4604 huge
) cat >>confdefs.h
<<\_ACEOF
4607 dovimdiff
="installvimdiff";
4608 dogvimdiff
="installgvimdiff" ;;
4609 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4610 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4616 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4617 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4619 # Check whether --with-compiledby was given.
4620 if test "${with_compiledby+set}" = set; then
4621 withval
=$with_compiledby; compiledby
="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4622 echo "${ECHO_T}$withval" >&6; }
4624 compiledby
=""; { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4630 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4631 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4632 # Check whether --enable-xsmp was given.
4633 if test "${enable_xsmp+set}" = set; then
4634 enableval
=$enable_xsmp;
4640 if test "$enable_xsmp" = "yes"; then
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4643 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4644 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4645 # Check whether --enable-xsmp-interact was given.
4646 if test "${enable_xsmp_interact+set}" = set; then
4647 enableval
=$enable_xsmp_interact;
4649 enable_xsmp_interact
="yes"
4652 if test "$enable_xsmp_interact" = "yes"; then
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 cat >>confdefs.h
<<\_ACEOF
4656 #define USE_XSMP_INTERACT 1
4660 { echo "$as_me:$LINENO: result: yes" >&5
4661 echo "${ECHO_T}yes" >&6; }
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4668 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4669 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4670 # Check whether --enable-mzschemeinterp was given.
4671 if test "${enable_mzschemeinterp+set}" = set; then
4672 enableval
=$enable_mzschemeinterp;
4674 enable_mzschemeinterp
="no"
4677 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4678 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4680 if test "$enable_mzschemeinterp" = "yes"; then
4683 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4684 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4686 # Check whether --with-plthome was given.
4687 if test "${with_plthome+set}" = set; then
4688 withval
=$with_plthome; with_plthome
="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4689 echo "${ECHO_T}$with_plthome" >&6; }
4691 with_plthome
="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4692 echo "${ECHO_T}\"no\"" >&6; }
4696 if test "X$with_plthome" != "X"; then
4697 vi_cv_path_mzscheme_pfx
="$with_plthome"
4699 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4700 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4701 if test "X$PLTHOME" != "X"; then
4702 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4703 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4704 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4706 { echo "$as_me:$LINENO: result: not set" >&5
4707 echo "${ECHO_T}not set" >&6; }
4708 # Extract the first word of "mzscheme", so it can be a program name with args.
4709 set dummy mzscheme
; ac_word
=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 case $vi_cv_path_mzscheme in
4717 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir
=.
4725 for ac_exec_ext
in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4739 if test -n "$vi_cv_path_mzscheme"; then
4740 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4741 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4749 if test "X$vi_cv_path_mzscheme" != "X"; then
4750 lsout
=`ls -l $vi_cv_path_mzscheme`
4751 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4752 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4756 if test "X$vi_cv_path_mzscheme" != "X"; then
4757 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4758 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4759 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 echo "(display (simplify-path \
4763 (build-path (call-with-values \
4764 (lambda () (split-path (find-system-path (quote exec-file)))) \
4765 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4766 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4769 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4770 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4777 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4778 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4779 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4780 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4781 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4782 { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4788 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4789 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4790 { echo "$as_me:$LINENO: result: yes" >&5
4791 echo "${ECHO_T}yes" >&6; }
4792 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4797 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4798 if test -f /usr
/include
/plt
/scheme.h
; then
4799 { echo "$as_me:$LINENO: result: yes" >&5
4800 echo "${ECHO_T}yes" >&6; }
4801 SCHEME_INC
=/usr
/include
/plt
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4805 vi_cv_path_mzscheme_pfx
=
4811 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4812 if test "x$MACOSX" = "xyes"; then
4813 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4814 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4815 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4816 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4817 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4818 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4820 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4821 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4822 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4824 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4826 if test "$GCC" = yes; then
4827 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4828 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4829 uname
-r |
grep '^5' >/dev
/null
; then
4830 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4833 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4834 SCHEME_COLLECTS
=lib
/plt
/
4836 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4837 MZSCHEME_EXTRA
="mzscheme_base.c"
4838 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4839 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4841 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4842 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4843 MZSCHEME_SRC
="if_mzsch.c"
4844 MZSCHEME_OBJ
="objects/if_mzsch.o"
4845 MZSCHEME_PRO
="if_mzsch.pro"
4846 cat >>confdefs.h
<<\_ACEOF
4847 #define FEAT_MZSCHEME 1
4861 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4862 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4863 # Check whether --enable-perlinterp was given.
4864 if test "${enable_perlinterp+set}" = set; then
4865 enableval
=$enable_perlinterp;
4867 enable_perlinterp
="no"
4870 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4871 echo "${ECHO_T}$enable_perlinterp" >&6; }
4872 if test "$enable_perlinterp" = "yes"; then
4874 # Extract the first word of "perl", so it can be a program name with args.
4875 set dummy perl
; ac_word
=$2
4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4878 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 case $vi_cv_path_perl in
4883 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir
=.
4891 for ac_exec_ext
in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4905 if test -n "$vi_cv_path_perl"; then
4906 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4907 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4914 if test "X$vi_cv_path_perl" != "X"; then
4915 { echo "$as_me:$LINENO: checking Perl version" >&5
4916 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4917 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4918 eval `$vi_cv_path_perl -V:usethreads`
4919 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4922 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4923 eval `$vi_cv_path_perl -V:use5005threads`
4924 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4928 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4929 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4933 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4934 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4937 if test $badthreads = no
; then
4938 { echo "$as_me:$LINENO: result: OK" >&5
4939 echo "${ECHO_T}OK" >&6; }
4940 eval `$vi_cv_path_perl -V:shrpenv`
4941 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4944 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4946 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4947 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4948 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4949 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4950 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4951 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4952 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4954 if test "x$MACOSX" = "xyes"; then
4955 perllibs
=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4956 perlcppflags
=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4959 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4960 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4963 ldflags_save
=$LDFLAGS
4964 CFLAGS
="$CFLAGS $perlcppflags"
4965 LIBS
="$LIBS $perllibs"
4966 LDFLAGS
="$perlldflags $LDFLAGS"
4967 cat >conftest.
$ac_ext <<_ACEOF
4970 cat confdefs.h
>>conftest.
$ac_ext
4971 cat >>conftest.
$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4982 rm -f conftest.
$ac_objext conftest
$ac_exeext
4983 if { (ac_try
="$ac_link"
4985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_link") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest$ac_exeext &&
4999 $as_test_x conftest$ac_exeext; then
5000 { echo "$as_me:$LINENO: result: yes" >&5
5001 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5007 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
5010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5011 conftest$ac_exeext conftest.$ac_ext
5014 LDFLAGS=$ldflags_save
5015 if test $perl_ok = yes; then
5016 if test "X$perlcppflags" != "X"; then
5017 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5019 if test "X$perlldflags" != "X"; then
5020 LDFLAGS="$perlldflags $LDFLAGS"
5023 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5024 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5025 PERL_PRO="if_perl.pro if_perlsfio.pro"
5026 cat >>confdefs.h <<\_ACEOF
5033 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5034 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5038 if test "x$MACOSX" = "xyes"; then
5039 dir=/System/Library/Perl
5040 darwindir=$dir/darwin
5041 if test -d $darwindir; then
5044 dir=/System/Library/Perl/5.8.1
5045 darwindir=$dir/darwin-thread-multi-2level
5046 if test -d $darwindir; then
5050 if test -n "$PERL"; then
5052 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5053 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5054 PERL_LIBS="-L$darwindir/CORE -lperl"
5065 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5066 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
5067 # Check whether --enable-pythoninterp was given.
5068 if test "${enable_pythoninterp+set}" = set; then
5069 enableval=$enable_pythoninterp;
5071 enable_pythoninterp="no"
5074 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5075 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5076 if test "$enable_pythoninterp" = "yes"; then
5077 # Extract the first word of "python", so it can be a program name with args.
5078 set dummy python; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 case $vi_cv_path_python in
5086 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5108 if test -n "$vi_cv_path_python"; then
5109 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5110 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5112 { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5117 if test "X$vi_cv_path_python" != "X"; then
5119 { echo "$as_me:$LINENO: checking Python version" >&5
5120 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5121 if test "${vi_cv_var_python_version+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 vi_cv_var_python_version=`
5125 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5128 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5129 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5131 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5132 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5133 if ${vi_cv_path_python} -c \
5134 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5136 { echo "$as_me:$LINENO: result: yep" >&5
5137 echo "${ECHO_T}yep" >&6; }
5139 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5140 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5141 if test "${vi_cv_path_python_pfx+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 vi_cv_path_python_pfx=`
5145 ${vi_cv_path_python} -c \
5146 "import sys; print sys.prefix"`
5148 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5149 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5151 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5152 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5153 if test "${vi_cv_path_python_epfx+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 vi_cv_path_python_epfx=`
5157 ${vi_cv_path_python} -c \
5158 "import sys; print sys.exec_prefix"`
5160 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5161 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5164 if test "${vi_cv_path_pythonpath+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 vi_cv_path_pythonpath=`
5169 ${vi_cv_path_python} -c \
5170 "import sys, string; print string.join(sys.path,':')"`
5176 # Check whether --with-python-config-dir was given.
5177 if test "${with_python_config_dir+set}" = set; then
5178 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5182 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5183 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5184 if test "${vi_cv_path_python_conf+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 vi_cv_path_python_conf=
5189 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5190 for subdir in lib64 lib share; do
5191 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5192 if test -d "$d" && test -f "$d/config.c"; then
5193 vi_cv_path_python_conf="$d"
5199 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5200 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5202 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5204 if test "X$PYTHON_CONFDIR" = "X"; then
5205 { echo "$as_me:$LINENO: result: can't find it!" >&5
5206 echo "${ECHO_T}can't find it!" >&6; }
5209 if test "${vi_cv_path_python_plibs+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 tmp_mkf="$pwd/config-PyMake$$"
5215 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5217 @echo "python_MODLIBS='$(MODLIBS)'"
5218 @echo "python_LIBS='$(LIBS)'"
5219 @echo "python_SYSLIBS='$(SYSLIBS)'"
5220 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5222 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5223 rm -f -- "${tmp_mkf}"
5224 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5225 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5226 vi_cv_path_python_plibs="-framework Python"
5228 if test "${vi_cv_var_python_version}" = "1.4"; then
5229 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5231 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5233 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5234 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5240 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5241 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5242 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5244 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}"
5246 PYTHON_SRC="if_python.c"
5247 if test "x$MACOSX" = "xyes"; then
5248 PYTHON_OBJ="objects/if_python.o"
5250 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5252 if test "${vi_cv_var_python_version}" = "1.4"; then
5253 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5255 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5257 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5258 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5261 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5262 test "$GCC" = yes && threadsafe_flag="-pthread"
5263 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5264 threadsafe_flag="-D_THREAD_SAFE"
5265 thread_lib="-pthread"
5269 if test -n "$threadsafe_flag"; then
5271 CFLAGS="$CFLAGS $threadsafe_flag"
5272 LIBS="$LIBS $thread_lib"
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (ac_try="$ac_link"
5291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5292 *) ac_try_echo
=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1
>conftest.err
5299 cat conftest.err
>&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest
$ac_exeext &&
5305 $as_test_x conftest
$ac_exeext; then
5306 { echo "$as_me:$LINENO: result: yes" >&5
5307 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.
$ac_ext >&5
5312 { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }; LIBS
=$libs_save_old
5317 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5318 conftest
$ac_exeext conftest.
$ac_ext
5321 { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5325 if test -n "$MACSDK"; then
5327 PYTHON_LIBS
=-framework Python
5329 PYTHON_GETPATH_CFLAGS
=
5332 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5333 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5336 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5337 LIBS
="$LIBS $PYTHON_LIBS"
5338 cat >conftest.
$ac_ext <<_ACEOF
5341 cat confdefs.h
>>conftest.
$ac_ext
5342 cat >>conftest.
$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5353 rm -f conftest.
$ac_objext conftest
$ac_exeext
5354 if { (ac_try
="$ac_link"
5356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5378 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5382 conftest$ac_exeext conftest.$ac_ext
5385 if test $python_ok = yes; then
5386 cat >>confdefs.h <<\_ACEOF
5387 #define FEAT_PYTHON 1
5400 { echo "$as_me:$LINENO: result: too old" >&5
5401 echo "${ECHO_T}too old" >&6; }
5412 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5413 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5414 # Check whether --enable-tclinterp was given.
5415 if test "${enable_tclinterp+set}" = set; then
5416 enableval=$enable_tclinterp;
5418 enable_tclinterp="no"
5421 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5422 echo "${ECHO_T}$enable_tclinterp" >&6; }
5424 if test "$enable_tclinterp" = "yes"; then
5426 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5427 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5429 # Check whether --with-tclsh was given.
5430 if test "${with_tclsh+set}" = set; then
5431 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5432 echo "${ECHO_T}$tclsh_name" >&6; }
5434 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6; }
5438 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5439 set dummy $tclsh_name; ac_word=$2
5440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 case $vi_cv_path_tcl in
5447 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5469 if test -n "$vi_cv_path_tcl"; then
5470 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5471 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5473 { echo "$as_me:$LINENO: result: no" >&5
5474 echo "${ECHO_T}no" >&6; }
5480 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5481 tclsh_name="tclsh8.4"
5482 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5483 set dummy $tclsh_name; ac_word=$2
5484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5486 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 case $vi_cv_path_tcl in
5491 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5513 if test -n "$vi_cv_path_tcl"; then
5514 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5515 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5517 { echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6; }
5523 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5524 tclsh_name="tclsh8.2"
5525 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5526 set dummy $tclsh_name; ac_word=$2
5527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5529 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 case $vi_cv_path_tcl in
5534 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5556 if test -n "$vi_cv_path_tcl"; then
5557 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5558 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5566 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5567 tclsh_name="tclsh8.0"
5568 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5569 set dummy $tclsh_name; ac_word=$2
5570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5572 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 case $vi_cv_path_tcl in
5577 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5599 if test -n "$vi_cv_path_tcl"; then
5600 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5601 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5603 { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5609 if test "X$vi_cv_path_tcl" = "X"; then
5611 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5612 set dummy $tclsh_name; ac_word=$2
5613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5615 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 case $vi_cv_path_tcl in
5620 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5642 if test -n "$vi_cv_path_tcl"; then
5643 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5644 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5646 { echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6; }
5652 if test "X$vi_cv_path_tcl" != "X"; then
5653 { echo "$as_me:$LINENO: checking Tcl version" >&5
5654 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5655 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5656 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5657 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5658 echo "${ECHO_T}$tclver - OK" >&6; };
5659 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 -`
5661 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5662 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5663 if test "x$MACOSX" != "xyes"; then
5664 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5666 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5669 for try in $tclinc; do
5670 if test -f "$try/tcl.h"; then
5671 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5672 echo "${ECHO_T}$try/tcl.h" >&6; }
5677 if test -z "$TCL_INC"; then
5678 { echo "$as_me:$LINENO: result: <not found>" >&5
5679 echo "${ECHO_T}<not found>" >&6; }
5682 if test -z "$SKIP_TCL"; then
5683 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5684 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5685 if test "x$MACOSX" != "xyes"; then
5686 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5687 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5689 tclcnf="/System/Library/Frameworks/Tcl.framework"
5691 for try in $tclcnf; do
5692 if test -f $try/tclConfig.sh; then
5693 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5694 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5696 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5697 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'`
5701 if test -z "$TCL_LIBS"; then
5702 { echo "$as_me:$LINENO: result: <not found>" >&5
5703 echo "${ECHO_T}<not found>" >&6; }
5704 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5705 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5706 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5707 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5708 for ext in .so .a ; do
5709 for ver in "" $tclver ; do
5710 for try in $tcllib ; do
5712 if test -f $try/lib$trylib ; then
5713 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5714 echo "${ECHO_T}$try/lib$trylib" >&6; }
5715 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5716 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5717 uname -r | grep '^5' >/dev/null; then
5718 TCL_LIBS="$TCL_LIBS -R $try"
5725 if test -z "$TCL_LIBS"; then
5726 { echo "$as_me:$LINENO: result: <not found>" >&5
5727 echo "${ECHO_T}<not found>" >&6; }
5731 if test -z "$SKIP_TCL"; then
5732 cat >>confdefs.h <<\_ACEOF
5737 TCL_OBJ=objects/if_tcl.o
5739 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5743 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5744 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5754 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5755 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5756 # Check whether --enable-rubyinterp was given.
5757 if test "${enable_rubyinterp+set}" = set; then
5758 enableval=$enable_rubyinterp;
5760 enable_rubyinterp="no"
5763 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5764 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5765 if test "$enable_rubyinterp" = "yes"; then
5766 { echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5767 echo $ECHO_N "checking --with-ruby-command argument... $ECHO_C" >&6; }
5769 # Check whether --with-ruby-command was given.
5770 if test "${with_ruby_command+set}" = set; then
5771 withval=$with_ruby_command; RUBY_CMD="$withval"; { echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5772 echo "${ECHO_T}$RUBY_CMD" >&6; }
5774 RUBY_CMD="ruby"; { echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5775 echo "${ECHO_T}defaulting to $RUBY_CMD" >&6; }
5779 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5780 set dummy $RUBY_CMD; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 case $vi_cv_path_ruby in
5788 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5810 if test -n "$vi_cv_path_ruby"; then
5811 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5812 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5814 { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5819 if test "X$vi_cv_path_ruby" != "X"; then
5820 { echo "$as_me:$LINENO: checking Ruby version" >&5
5821 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5822 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5823 { echo "$as_me:$LINENO: result: OK" >&5
5824 echo "${ECHO_T}OK" >&6; }
5825 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5826 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5827 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5828 if test "X$rubyhdrdir" != "X"; then
5829 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5830 echo "${ECHO_T}$rubyhdrdir" >&6; }
5831 RUBY_CFLAGS="-I$rubyhdrdir"
5832 rubyarch=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["arch"]'`
5833 if test -d "$rubyhdrdir/$rubyarch"; then
5834 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5836 rubyversion=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5837 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5838 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5839 if test "X$rubylibs" != "X"; then
5840 RUBY_LIBS="$rubylibs"
5842 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5843 if test -f "$rubyhdrdir/$librubyarg"; then
5844 librubyarg="$rubyhdrdir/$librubyarg"
5846 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5847 if test -d "/System/Library/Frameworks/Ruby.framework"; then
5848 RUBY_LIBS="-framework Ruby"
5851 elif test -f "$rubylibdir/$librubyarg"; then
5852 librubyarg="$rubylibdir/$librubyarg"
5853 elif test "$librubyarg" = "libruby.a"; then
5856 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5860 if test "X$librubyarg" != "X"; then
5861 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5863 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5864 if test "x$MACOSX" = "xyes"; then
5865 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch[^-]*//g'`
5867 if test "X$rubyldflags" != "X"; then
5868 LDFLAGS="$rubyldflags $LDFLAGS"
5870 RUBY_SRC="if_ruby.c"
5871 RUBY_OBJ="objects/if_ruby.o"
5872 RUBY_PRO="if_ruby.pro"
5874 cat >>confdefs.h <<\_ACEOF
5879 { echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5880 echo "${ECHO_T}not found; disabling Ruby" >&6; }
5883 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5884 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5894 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5895 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5896 # Check whether --enable-cscope was given.
5897 if test "${enable_cscope+set}" = set; then
5898 enableval=$enable_cscope;
5903 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5904 echo "${ECHO_T}$enable_cscope" >&6; }
5905 if test "$enable_cscope" = "yes"; then
5906 cat >>confdefs.h <<\_ACEOF
5907 #define FEAT_CSCOPE 1
5912 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5913 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5914 # Check whether --enable-workshop was given.
5915 if test "${enable_workshop+set}" = set; then
5916 enableval=$enable_workshop;
5918 enable_workshop="no"
5921 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5922 echo "${ECHO_T}$enable_workshop" >&6; }
5923 if test "$enable_workshop" = "yes"; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define FEAT_SUN_WORKSHOP 1
5928 WORKSHOP_SRC="workshop.c integration.c"
5930 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5932 if test "${enable_gui-xxx}" = xxx; then
5937 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5938 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5939 # Check whether --enable-netbeans was given.
5940 if test "${enable_netbeans+set}" = set; then
5941 enableval=$enable_netbeans;
5943 enable_netbeans="yes"
5946 if test "$enable_netbeans" = "yes"; then
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5950 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5951 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5952 if test "${ac_cv_lib_socket_socket+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_check_lib_save_LIBS=$LIBS
5956 LIBS="-lsocket $LIBS"
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (ac_try="$ac_link"
5982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5983 *) ac_try_echo
=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_link") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1
>conftest.err
5990 cat conftest.err
>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest
$ac_exeext &&
5996 $as_test_x conftest
$ac_exeext; then
5997 ac_cv_lib_socket_socket
=yes
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.
$ac_ext >&5
6002 ac_cv_lib_socket_socket
=no
6005 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6006 conftest
$ac_exeext conftest.
$ac_ext
6007 LIBS
=$ac_check_lib_save_LIBS
6009 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6010 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6011 if test $ac_cv_lib_socket_socket = yes; then
6012 cat >>confdefs.h
<<_ACEOF
6013 #define HAVE_LIBSOCKET 1
6016 LIBS
="-lsocket $LIBS"
6021 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6022 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6023 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 ac_check_lib_save_LIBS
=$LIBS
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 /* Override any GCC internal prototype to avoid an error.
6036 Use char because int might match the return type of a GCC
6037 builtin and then its argument prototype would still apply. */
6041 char gethostbyname ();
6045 return gethostbyname ();
6050 rm -f conftest.
$ac_objext conftest
$ac_exeext
6051 if { (ac_try
="$ac_link"
6053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_link") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest$ac_exeext &&
6067 $as_test_x conftest$ac_exeext; then
6068 ac_cv_lib_nsl_gethostbyname=yes
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_lib_nsl_gethostbyname=no
6076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6077 conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6080 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6081 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6082 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_LIBNSL 1
6091 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6092 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6105 #include <netinet/in.h>
6107 #include <sys/types.h>
6108 #include <sys/socket.h>
6109 /* Check bitfields */
6111 unsigned int initDone:1;
6119 /* Check creating a socket. */
6120 struct sockaddr_in server;
6121 (void)socket(AF_INET, SOCK_STREAM, 0);
6123 (void)gethostbyname("microsoft.com");
6124 if (errno == ECONNREFUSED)
6125 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6131 rm -f conftest.$ac_objext conftest$ac_exeext
6132 if { (ac_try="$ac_link"
6134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6135 *) ac_try_echo
=$ac_try;;
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138 (eval "$ac_link") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1
>conftest.err
6142 cat conftest.err
>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest
$ac_exeext &&
6148 $as_test_x conftest
$ac_exeext; then
6149 { echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6; }
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }; enable_netbeans
="no"
6159 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6160 conftest
$ac_exeext conftest.
$ac_ext
6162 { echo "$as_me:$LINENO: result: yes" >&5
6163 echo "${ECHO_T}yes" >&6; }
6165 if test "$enable_netbeans" = "yes"; then
6166 cat >>confdefs.h
<<\_ACEOF
6167 #define FEAT_NETBEANS_INTG 1
6170 NETBEANS_SRC
="netbeans.c"
6172 NETBEANS_OBJ
="objects/netbeans.o"
6176 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6177 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6178 # Check whether --enable-sniff was given.
6179 if test "${enable_sniff+set}" = set; then
6180 enableval
=$enable_sniff;
6185 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6186 echo "${ECHO_T}$enable_sniff" >&6; }
6187 if test "$enable_sniff" = "yes"; then
6188 cat >>confdefs.h
<<\_ACEOF
6189 #define FEAT_SNIFF 1
6192 SNIFF_SRC
="if_sniff.c"
6194 SNIFF_OBJ
="objects/if_sniff.o"
6198 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6199 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6200 # Check whether --enable-multibyte was given.
6201 if test "${enable_multibyte+set}" = set; then
6202 enableval
=$enable_multibyte;
6204 enable_multibyte
="no"
6207 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6208 echo "${ECHO_T}$enable_multibyte" >&6; }
6209 if test "$enable_multibyte" = "yes"; then
6210 cat >>confdefs.h
<<\_ACEOF
6211 #define FEAT_MBYTE 1
6216 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6217 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6218 # Check whether --enable-hangulinput was given.
6219 if test "${enable_hangulinput+set}" = set; then
6220 enableval
=$enable_hangulinput;
6222 enable_hangulinput
="no"
6225 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6226 echo "${ECHO_T}$enable_hangulinput" >&6; }
6228 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6229 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6230 # Check whether --enable-xim was given.
6231 if test "${enable_xim+set}" = set; then
6232 enableval
=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6233 echo "${ECHO_T}$enable_xim" >&6; }
6235 enable_xim
="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6236 echo "${ECHO_T}defaulting to auto" >&6; }
6240 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6241 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6242 # Check whether --enable-fontset was given.
6243 if test "${enable_fontset+set}" = set; then
6244 enableval
=$enable_fontset;
6249 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6250 echo "${ECHO_T}$enable_fontset" >&6; }
6252 test -z "$with_x" && with_x
=yes
6253 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6254 if test "$with_x" = no
; then
6255 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6256 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6259 # Extract the first word of "xmkmf", so it can be a program name with args.
6260 set dummy xmkmf
; ac_word
=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir
=.
6276 for ac_exec_ext
in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 xmkmfpath
=$ac_cv_path_xmkmfpath
6290 if test -n "$xmkmfpath"; then
6291 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6292 echo "${ECHO_T}$xmkmfpath" >&6; }
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6300 { echo "$as_me:$LINENO: checking for X" >&5
6301 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6304 # Check whether --with-x was given.
6305 if test "${with_x+set}" = set; then
6309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6310 if test "x$with_x" = xno
; then
6311 # The user explicitly disabled X.
6314 case $x_includes,$x_libraries in #(
6315 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6316 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6317 { (exit 1); exit 1; }; };; #(
6318 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 # One or both of the vars are not set, and there is no cached value.
6322 ac_x_includes
=no ac_x_libraries
=no
6323 rm -f -r conftest.dir
6324 if mkdir conftest.dir
; then
6326 cat >Imakefile
<<'_ACEOF'
6328 @echo incroot='${INCROOT}'
6330 @echo usrlibdir='${USRLIBDIR}'
6332 @echo libdir='${LIBDIR}'
6334 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6336 for ac_var
in incroot usrlibdir libdir
; do
6337 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6339 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6340 for ac_extension
in a so sl dylib la dll
; do
6341 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6342 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6343 ac_im_usrlibdir
=$ac_im_libdir; break
6346 # Screen out bogus values from the imake configuration. They are
6347 # bogus both because they are the default anyway, and because
6348 # using them would break gcc on systems where it needs fixed includes.
6349 case $ac_im_incroot in
6350 /usr
/include
) ac_x_includes
= ;;
6351 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6353 case $ac_im_usrlibdir in
6355 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6359 rm -f -r conftest.dir
6362 # Standard set of common directories for X headers.
6363 # Check X11 before X11Rn because it is often a symlink to the current release.
6375 /usr/local/X11/include
6376 /usr/local/X11R6/include
6377 /usr/local/X11R5/include
6378 /usr/local/X11R4/include
6380 /usr/local/include/X11
6381 /usr/local/include/X11R6
6382 /usr/local/include/X11R5
6383 /usr/local/include/X11R4
6387 /usr/XFree86/include/X11
6391 /usr/unsupported/include
6393 /usr/local/x11r5/include
6394 /usr/lpp/Xamples/include
6396 /usr/openwin/include
6397 /usr/openwin/share/include'
6399 if test "$ac_x_includes" = no
; then
6400 # Guess where to find include files, by looking for Xlib.h.
6401 # First, try using that file with no special directory specified.
6402 cat >conftest.
$ac_ext <<_ACEOF
6405 cat confdefs.h
>>conftest.
$ac_ext
6406 cat >>conftest.
$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <X11/Xlib.h>
6410 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null && {
6423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6426 # We can compile using X headers with no special include directory.
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 for ac_dir in $ac_x_header_dirs; do
6433 if test -r "$ac_dir/X11/Xlib.h"; then
6434 ac_x_includes=$ac_dir
6440 rm -f conftest.err conftest.$ac_ext
6441 fi # $ac_x_includes = no
6443 if test "$ac_x_libraries" = no; then
6444 # Check for the libraries.
6445 # See if we find them without any special options.
6446 # Don't add to $LIBS permanently.
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <X11/Xlib.h>
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (ac_try="$ac_link"
6467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6468 *) ac_try_echo
=$ac_try;;
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_link") 2>conftest.er1
6473 grep -v '^ *+' conftest.er1
>conftest.err
6475 cat conftest.err
>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest
$ac_exeext &&
6481 $as_test_x conftest
$ac_exeext; then
6483 # We can link X programs with no special library path.
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6490 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6492 # Don't even attempt the hair of trying to link an X program!
6493 for ac_extension
in a so sl dylib la dll
; do
6494 if test -r "$ac_dir/libX11.$ac_extension"; then
6495 ac_x_libraries
=$ac_dir
6502 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6503 conftest
$ac_exeext conftest.
$ac_ext
6504 fi # $ac_x_libraries = no
6506 case $ac_x_includes,$ac_x_libraries in #(
6508 # Didn't find X, or a directory has "'" in its name.
6509 ac_cv_have_x
="have_x=no";; #(
6511 # Record where we found X for the cache.
6512 ac_cv_have_x
="have_x=yes\
6513 ac_x_includes='$ac_x_includes'\
6514 ac_x_libraries='$ac_x_libraries'"
6520 eval "$ac_cv_have_x"
6523 if test "$have_x" != yes; then
6524 { echo "$as_me:$LINENO: result: $have_x" >&5
6525 echo "${ECHO_T}$have_x" >&6; }
6528 # If each of the values was on the command line, it overrides each guess.
6529 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6530 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6531 # Update the cache value to reflect the command line values.
6532 ac_cv_have_x
="have_x=yes\
6533 ac_x_includes='$x_includes'\
6534 ac_x_libraries='$x_libraries'"
6535 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6536 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6539 if test "$no_x" = yes; then
6540 # Not all programs may use this symbol, but it does not hurt to define it.
6542 cat >>confdefs.h
<<\_ACEOF
6543 #define X_DISPLAY_MISSING 1
6546 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6548 if test -n "$x_includes"; then
6549 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6552 # It would also be nice to do this for all -L options, not just this one.
6553 if test -n "$x_libraries"; then
6554 X_LIBS
="$X_LIBS -L$x_libraries"
6555 # For Solaris; some versions of Sun CC require a space after -R and
6556 # others require no space. Words are not sufficient . . . .
6557 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6558 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6559 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6560 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6561 ac_c_werror_flag
=yes
6562 cat >conftest.
$ac_ext <<_ACEOF
6565 cat confdefs.h
>>conftest.
$ac_ext
6566 cat >>conftest.
$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6577 rm -f conftest.
$ac_objext conftest
$ac_exeext
6578 if { (ac_try
="$ac_link"
6580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_link") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest$ac_exeext &&
6594 $as_test_x conftest$ac_exeext; then
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6597 X_LIBS="$X_LIBS -R$x_libraries"
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 LIBS="$ac_xsave_LIBS -R $x_libraries"
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6622 *) ac_try_echo
=$ac_try;;
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_link") 2>conftest.er1
6627 grep -v '^ *+' conftest.er1
>conftest.err
6629 cat conftest.err
>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest
$ac_exeext &&
6635 $as_test_x conftest
$ac_exeext; then
6636 { echo "$as_me:$LINENO: result: yes" >&5
6637 echo "${ECHO_T}yes" >&6; }
6638 X_LIBS
="$X_LIBS -R $x_libraries"
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6643 { echo "$as_me:$LINENO: result: neither works" >&5
6644 echo "${ECHO_T}neither works" >&6; }
6647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6648 conftest
$ac_exeext conftest.
$ac_ext
6651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6652 conftest
$ac_exeext conftest.
$ac_ext
6653 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6657 # Check for system-dependent libraries X programs must link with.
6658 # Do this before checking for the system-independent R6 libraries
6659 # (-lICE), since we may need -lsocket or whatever for X linking.
6661 if test "$ISC" = yes; then
6662 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6664 # Martyn Johnson says this is needed for Ultrix, if the X
6665 # libraries were built with DECnet support. And Karl Berry says
6666 # the Alpha needs dnet_stub (dnet does not exist).
6667 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6668 cat >conftest.
$ac_ext <<_ACEOF
6671 cat confdefs.h
>>conftest.
$ac_ext
6672 cat >>conftest.
$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6675 /* Override any GCC internal prototype to avoid an error.
6676 Use char because int might match the return type of a GCC
6677 builtin and then its argument prototype would still apply. */
6681 char XOpenDisplay ();
6685 return XOpenDisplay ();
6690 rm -f conftest.
$ac_objext conftest
$ac_exeext
6691 if { (ac_try
="$ac_link"
6693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_link") 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest$ac_exeext &&
6707 $as_test_x conftest$ac_exeext; then
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6714 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6715 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_check_lib_save_LIBS=$LIBS
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6727 /* Override any GCC internal prototype to avoid an error.
6728 Use char because int might match the return type of a GCC
6729 builtin and then its argument prototype would still apply. */
6737 return dnet_ntoa ();
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (ac_try="$ac_link"
6745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6746 *) ac_try_echo
=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_link") 2>conftest.er1
6751 grep -v '^ *+' conftest.er1
>conftest.err
6753 cat conftest.err
>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest
$ac_exeext &&
6759 $as_test_x conftest
$ac_exeext; then
6760 ac_cv_lib_dnet_dnet_ntoa
=yes
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.
$ac_ext >&5
6765 ac_cv_lib_dnet_dnet_ntoa
=no
6768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6769 conftest
$ac_exeext conftest.
$ac_ext
6770 LIBS
=$ac_check_lib_save_LIBS
6772 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6773 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6774 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6775 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6778 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6779 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6780 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6781 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_check_lib_save_LIBS
=$LIBS
6785 LIBS
="-ldnet_stub $LIBS"
6786 cat >conftest.
$ac_ext <<_ACEOF
6789 cat confdefs.h
>>conftest.
$ac_ext
6790 cat >>conftest.
$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6793 /* Override any GCC internal prototype to avoid an error.
6794 Use char because int might match the return type of a GCC
6795 builtin and then its argument prototype would still apply. */
6803 return dnet_ntoa ();
6808 rm -f conftest.
$ac_objext conftest
$ac_exeext
6809 if { (ac_try
="$ac_link"
6811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_link") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest$ac_exeext &&
6825 $as_test_x conftest$ac_exeext; then
6826 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_lib_dnet_stub_dnet_ntoa=no
6834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6835 conftest$ac_exeext conftest.$ac_ext
6836 LIBS=$ac_check_lib_save_LIBS
6838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6839 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6840 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6848 conftest$ac_exeext conftest.$ac_ext
6849 LIBS="$ac_xsave_LIBS"
6851 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6852 # to get the SysV transport functions.
6853 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6855 # The nsl library prevents programs from opening the X display
6856 # on Irix 5.2, according to T.E. Dickey.
6857 # The functions gethostbyname, getservbyname, and inet_addr are
6858 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6859 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6860 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6861 if test "${ac_cv_func_gethostbyname+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6872 #define gethostbyname innocuous_gethostbyname
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char gethostbyname (); below.
6876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6877 <limits.h> exists even on freestanding compilers. */
6880 # include <limits.h>
6882 # include <assert.h>
6885 #undef gethostbyname
6887 /* Override any GCC internal prototype to avoid an error.
6888 Use char because int might match the return type of a GCC
6889 builtin and then its argument prototype would still apply. */
6893 char gethostbyname ();
6894 /* The GNU C library defines this for functions which it implements
6895 to always fail with ENOSYS. Some functions are actually named
6896 something starting with __ and the normal name is an alias. */
6897 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6904 return gethostbyname ();
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6913 *) ac_try_echo
=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
6918 grep -v '^ *+' conftest.er1
>conftest.err
6920 cat conftest.err
>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest
$ac_exeext &&
6926 $as_test_x conftest
$ac_exeext; then
6927 ac_cv_func_gethostbyname
=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.
$ac_ext >&5
6932 ac_cv_func_gethostbyname
=no
6935 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6936 conftest
$ac_exeext conftest.
$ac_ext
6938 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6939 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6941 if test $ac_cv_func_gethostbyname = no
; then
6942 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6943 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6944 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_check_lib_save_LIBS
=$LIBS
6949 cat >conftest.
$ac_ext <<_ACEOF
6952 cat confdefs.h
>>conftest.
$ac_ext
6953 cat >>conftest.
$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 /* Override any GCC internal prototype to avoid an error.
6957 Use char because int might match the return type of a GCC
6958 builtin and then its argument prototype would still apply. */
6962 char gethostbyname ();
6966 return gethostbyname ();
6971 rm -f conftest.
$ac_objext conftest
$ac_exeext
6972 if { (ac_try
="$ac_link"
6974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>conftest.er1
6980 grep -v '^ *+' conftest.er1 >conftest.err
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest$ac_exeext &&
6988 $as_test_x conftest$ac_exeext; then
6989 ac_cv_lib_nsl_gethostbyname=yes
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_lib_nsl_gethostbyname=no
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7001 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7002 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7003 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7007 if test $ac_cv_lib_nsl_gethostbyname = no; then
7008 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7009 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
7010 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 ac_check_lib_save_LIBS=$LIBS
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7022 /* Override any GCC internal prototype to avoid an error.
7023 Use char because int might match the return type of a GCC
7024 builtin and then its argument prototype would still apply. */
7028 char gethostbyname ();
7032 return gethostbyname ();
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (ac_try="$ac_link"
7040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7041 *) ac_try_echo
=$ac_try;;
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_link") 2>conftest.er1
7046 grep -v '^ *+' conftest.er1
>conftest.err
7048 cat conftest.err
>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest
$ac_exeext &&
7054 $as_test_x conftest
$ac_exeext; then
7055 ac_cv_lib_bsd_gethostbyname
=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.
$ac_ext >&5
7060 ac_cv_lib_bsd_gethostbyname
=no
7063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7064 conftest
$ac_exeext conftest.
$ac_ext
7065 LIBS
=$ac_check_lib_save_LIBS
7067 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7068 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
7069 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7070 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7076 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7077 # socket/setsockopt and other routines are undefined under SCO ODT
7078 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7079 # on later versions), says Simon Leinen: it contains gethostby*
7080 # variants that don't use the name server (or something). -lsocket
7081 # must be given before -lnsl if both are needed. We assume that
7082 # if connect needs -lnsl, so does gethostbyname.
7083 { echo "$as_me:$LINENO: checking for connect" >&5
7084 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7085 if test "${ac_cv_func_connect+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7096 #define connect innocuous_connect
7098 /* System header to define __stub macros and hopefully few prototypes,
7099 which can conflict with char connect (); below.
7100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 <limits.h> exists even on freestanding compilers. */
7104 # include <limits.h>
7106 # include <assert.h>
7111 /* Override any GCC internal prototype to avoid an error.
7112 Use char because int might match the return type of a GCC
7113 builtin and then its argument prototype would still apply. */
7118 /* The GNU C library defines this for functions which it implements
7119 to always fail with ENOSYS. Some functions are actually named
7120 something starting with __ and the normal name is an alias. */
7121 #if defined __stub_connect || defined __stub___connect
7133 rm -f conftest.
$ac_objext conftest
$ac_exeext
7134 if { (ac_try
="$ac_link"
7136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_link") 2>conftest.er1
7142 grep -v '^ *+' conftest.er1 >conftest.err
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest$ac_exeext &&
7150 $as_test_x conftest$ac_exeext; then
7151 ac_cv_func_connect=yes
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_cv_func_connect=no
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160 conftest$ac_exeext conftest.$ac_ext
7162 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7163 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7165 if test $ac_cv_func_connect = no; then
7166 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7167 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7168 if test "${ac_cv_lib_socket_connect+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7173 cat >conftest.$ac_ext <<_ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7180 /* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7199 *) ac_try_echo
=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7204 grep -v '^ *+' conftest.er1
>conftest.err
7206 cat conftest.err
>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest
$ac_exeext &&
7212 $as_test_x conftest
$ac_exeext; then
7213 ac_cv_lib_socket_connect
=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.
$ac_ext >&5
7218 ac_cv_lib_socket_connect
=no
7221 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7222 conftest
$ac_exeext conftest.
$ac_ext
7223 LIBS
=$ac_check_lib_save_LIBS
7225 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7226 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7227 if test $ac_cv_lib_socket_connect = yes; then
7228 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7233 # Guillermo Gomez says -lposix is necessary on A/UX.
7234 { echo "$as_me:$LINENO: checking for remove" >&5
7235 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7236 if test "${ac_cv_func_remove+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 cat >conftest.
$ac_ext <<_ACEOF
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7247 #define remove innocuous_remove
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char remove (); below.
7251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7252 <limits.h> exists even on freestanding compilers. */
7255 # include <limits.h>
7257 # include <assert.h>
7262 /* Override any GCC internal prototype to avoid an error.
7263 Use char because int might match the return type of a GCC
7264 builtin and then its argument prototype would still apply. */
7269 /* The GNU C library defines this for functions which it implements
7270 to always fail with ENOSYS. Some functions are actually named
7271 something starting with __ and the normal name is an alias. */
7272 #if defined __stub_remove || defined __stub___remove
7284 rm -f conftest.
$ac_objext conftest
$ac_exeext
7285 if { (ac_try
="$ac_link"
7287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_link") 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest$ac_exeext &&
7301 $as_test_x conftest$ac_exeext; then
7302 ac_cv_func_remove=yes
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_cv_func_remove=no
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7311 conftest$ac_exeext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7314 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7316 if test $ac_cv_func_remove = no; then
7317 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7318 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7319 if test "${ac_cv_lib_posix_remove+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_check_lib_save_LIBS=$LIBS
7323 LIBS="-lposix $LIBS"
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7331 /* Override any GCC internal prototype to avoid an error.
7332 Use char because int might match the return type of a GCC
7333 builtin and then its argument prototype would still apply. */
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (ac_try="$ac_link"
7349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7350 *) ac_try_echo
=$ac_try;;
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_link") 2>conftest.er1
7355 grep -v '^ *+' conftest.er1
>conftest.err
7357 cat conftest.err
>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest
$ac_exeext &&
7363 $as_test_x conftest
$ac_exeext; then
7364 ac_cv_lib_posix_remove
=yes
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.
$ac_ext >&5
7369 ac_cv_lib_posix_remove
=no
7372 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7373 conftest
$ac_exeext conftest.
$ac_ext
7374 LIBS
=$ac_check_lib_save_LIBS
7376 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7377 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7378 if test $ac_cv_lib_posix_remove = yes; then
7379 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7384 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7385 { echo "$as_me:$LINENO: checking for shmat" >&5
7386 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7387 if test "${ac_cv_func_shmat+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 cat >conftest.
$ac_ext <<_ACEOF
7393 cat confdefs.h
>>conftest.
$ac_ext
7394 cat >>conftest.
$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7398 #define shmat innocuous_shmat
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char shmat (); below.
7402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 <limits.h> exists even on freestanding compilers. */
7406 # include <limits.h>
7408 # include <assert.h>
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7420 /* The GNU C library defines this for functions which it implements
7421 to always fail with ENOSYS. Some functions are actually named
7422 something starting with __ and the normal name is an alias. */
7423 #if defined __stub_shmat || defined __stub___shmat
7435 rm -f conftest.
$ac_objext conftest
$ac_exeext
7436 if { (ac_try
="$ac_link"
7438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_link") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest$ac_exeext &&
7452 $as_test_x conftest$ac_exeext; then
7453 ac_cv_func_shmat=yes
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7462 conftest$ac_exeext conftest.$ac_ext
7464 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7465 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7467 if test $ac_cv_func_shmat = no; then
7468 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7469 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7470 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_check_lib_save_LIBS=$LIBS
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7482 /* Override any GCC internal prototype to avoid an error.
7483 Use char because int might match the return type of a GCC
7484 builtin and then its argument prototype would still apply. */
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7501 *) ac_try_echo
=$ac_try;;
7503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_link") 2>conftest.er1
7506 grep -v '^ *+' conftest.er1
>conftest.err
7508 cat conftest.err
>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest
$ac_exeext &&
7514 $as_test_x conftest
$ac_exeext; then
7515 ac_cv_lib_ipc_shmat
=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.
$ac_ext >&5
7520 ac_cv_lib_ipc_shmat
=no
7523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7524 conftest
$ac_exeext conftest.
$ac_ext
7525 LIBS
=$ac_check_lib_save_LIBS
7527 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7528 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7529 if test $ac_cv_lib_ipc_shmat = yes; then
7530 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7536 # Check for libraries that X11R6 Xt/Xaw programs need.
7537 ac_save_LDFLAGS
=$LDFLAGS
7538 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7539 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7540 # check for ICE first), but we must link in the order -lSM -lICE or
7541 # we get undefined symbols. So assume we have SM if we have ICE.
7542 # These have to be linked with before -lX11, unlike the other
7543 # libraries we check for below, so use a different variable.
7544 # John Interrante, Karl Berry
7545 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7546 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7547 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_check_lib_save_LIBS
=$LIBS
7551 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7552 cat >conftest.
$ac_ext <<_ACEOF
7555 cat confdefs.h
>>conftest.
$ac_ext
7556 cat >>conftest.
$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any GCC internal prototype to avoid an error.
7560 Use char because int might match the return type of a GCC
7561 builtin and then its argument prototype would still apply. */
7565 char IceConnectionNumber ();
7569 return IceConnectionNumber ();
7574 rm -f conftest.
$ac_objext conftest
$ac_exeext
7575 if { (ac_try
="$ac_link"
7577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_link") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest$ac_exeext &&
7591 $as_test_x conftest$ac_exeext; then
7592 ac_cv_lib_ICE_IceConnectionNumber=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_lib_ICE_IceConnectionNumber=no
7600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7601 conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7604 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7605 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7606 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7607 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7610 LDFLAGS=$ac_save_LDFLAGS
7615 if test "$OS390Unix" = "yes"; then
7616 CFLAGS="$CFLAGS -W c,dll"
7617 LDFLAGS="$LDFLAGS -W l,dll"
7618 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7622 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7623 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7624 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7625 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7626 X_LIBS="$X_LIBS -L$x_libraries"
7627 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7628 uname -r | grep '^5' >/dev/null; then
7629 X_LIBS="$X_LIBS -R $x_libraries"
7633 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7634 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7635 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7636 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7637 X_CFLAGS="$X_CFLAGS -I$x_includes"
7640 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7641 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7642 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7645 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7646 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7648 CFLAGS="$CFLAGS $X_CFLAGS"
7649 cat >conftest.$ac_ext <<_ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <X11/Xlib.h>
7656 #include <X11/Intrinsic.h>
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7669 *) ac_try_echo
=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1
>conftest.err
7676 cat conftest.err
>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.
$ac_objext; then
7682 { echo "$as_me:$LINENO: result: yes" >&5
7683 echo "${ECHO_T}yes" >&6; }
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.
$ac_ext >&5
7688 { echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6; }; no_x
=yes
7692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7695 if test "${no_x-no}" = yes; then
7698 cat >>confdefs.h
<<\_ACEOF
7705 ac_save_LDFLAGS
="$LDFLAGS"
7706 LDFLAGS
="-L$x_libraries $LDFLAGS"
7708 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7709 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7710 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_check_lib_save_LIBS
=$LIBS
7714 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7715 cat >conftest.
$ac_ext <<_ACEOF
7718 cat confdefs.h
>>conftest.
$ac_ext
7719 cat >>conftest.
$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7728 char _XdmcpAuthDoIt ();
7732 return _XdmcpAuthDoIt ();
7737 rm -f conftest.
$ac_objext conftest
$ac_exeext
7738 if { (ac_try
="$ac_link"
7740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>conftest.er1
7746 grep -v '^ *+' conftest.er1 >conftest.err
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest$ac_exeext &&
7754 $as_test_x conftest$ac_exeext; then
7755 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7764 conftest$ac_exeext conftest.$ac_ext
7765 LIBS=$ac_check_lib_save_LIBS
7767 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7768 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7769 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7770 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7774 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7775 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7776 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7788 /* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7794 char IceOpenConnection ();
7798 return IceOpenConnection ();
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (ac_try="$ac_link"
7806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7807 *) ac_try_echo
=$ac_try;;
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_link") 2>conftest.er1
7812 grep -v '^ *+' conftest.er1
>conftest.err
7814 cat conftest.err
>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest
$ac_exeext &&
7820 $as_test_x conftest
$ac_exeext; then
7821 ac_cv_lib_ICE_IceOpenConnection
=yes
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.
$ac_ext >&5
7826 ac_cv_lib_ICE_IceOpenConnection
=no
7829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7830 conftest
$ac_exeext conftest.
$ac_ext
7831 LIBS
=$ac_check_lib_save_LIBS
7833 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7834 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7835 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7836 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7840 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7841 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7842 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7843 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_check_lib_save_LIBS
=$LIBS
7847 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7848 cat >conftest.
$ac_ext <<_ACEOF
7851 cat confdefs.h
>>conftest.
$ac_ext
7852 cat >>conftest.
$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7855 /* Override any GCC internal prototype to avoid an error.
7856 Use char because int might match the return type of a GCC
7857 builtin and then its argument prototype would still apply. */
7861 char XpmCreatePixmapFromData ();
7865 return XpmCreatePixmapFromData ();
7870 rm -f conftest.
$ac_objext conftest
$ac_exeext
7871 if { (ac_try
="$ac_link"
7873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_link") 2>conftest.er1
7879 grep -v '^ *+' conftest.er1 >conftest.err
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest$ac_exeext &&
7887 $as_test_x conftest$ac_exeext; then
7888 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7897 conftest$ac_exeext conftest.$ac_ext
7898 LIBS=$ac_check_lib_save_LIBS
7900 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7901 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7902 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7903 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7907 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7908 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7910 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <X11/Xlib.h>
7926 rm -f conftest.$ac_objext
7927 if { (ac_try="$ac_compile"
7929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7930 *) ac_try_echo
=$ac_try;;
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1
>conftest.err
7937 cat conftest.err
>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.
$ac_objext; then
7943 { echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6; }
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.
$ac_ext >&5
7949 CFLAGS
="$CFLAGS -Wno-implicit-int"
7950 cat >conftest.
$ac_ext <<_ACEOF
7953 cat confdefs.h
>>conftest.
$ac_ext
7954 cat >>conftest.
$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <X11/Xlib.h>
7965 rm -f conftest.
$ac_objext
7966 if { (ac_try
="$ac_compile"
7968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7982 { echo "$as_me:$LINENO: result: yes" >&5
7983 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 { echo "$as_me:$LINENO: result: test failed" >&5
7989 echo "${ECHO_T}test failed" >&6; }
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 LDFLAGS="$ac_save_LDFLAGS"
8002 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8003 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
8004 if test "${ac_cv_small_wchar_t+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 if test "$cross_compiling" = yes; then
8008 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
8009 echo "$as_me: error: failed to compile test program" >&2;}
8010 { (exit 1); exit 1; }; }
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8019 #include <X11/Xlib.h>
8021 # include <stdlib.h>
8022 # include <stddef.h>
8026 if (sizeof(wchar_t) <= 2)
8031 rm -f conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8035 *) ac_try_echo
=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8042 { (case "(($ac_try" in
8043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_small_wchar_t="no"
8053 echo "$as_me: program exited with status $ac_status" >&5
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_cv_small_wchar_t="yes"
8060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8067 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
8068 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8069 cat >>confdefs.h <<\_ACEOF
8070 #define SMALL_WCHAR_T 1
8078 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8080 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8081 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
8082 # Check whether --enable-gui was given.
8083 if test "${enable_gui+set}" = set; then
8084 enableval=$enable_gui;
8090 enable_gui_canon=`echo "_$enable_gui" | \
8091 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8104 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8106 case "$enable_gui_canon" in
8107 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8108 echo "${ECHO_T}no GUI support" >&6; }
8110 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8111 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8112 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8113 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8114 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8115 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8116 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8117 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8121 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8124 case "$enable_gui_canon" in
8125 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8126 echo "${ECHO_T}no GUI support" >&6; }
8129 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8130 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8131 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8132 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8133 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8134 echo "${ECHO_T}Carbon GUI support" >&6; }
8136 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8137 echo "${ECHO_T}MacVim GUI support" >&6; }
8139 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8140 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8147 case "$enable_gui_canon" in
8148 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8149 echo "${ECHO_T}no GUI support" >&6; } ;;
8150 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8151 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8160 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8161 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8163 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8164 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8167 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8168 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8171 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8172 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8176 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8177 echo "${ECHO_T}Motif GUI support" >&6; }
8179 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8180 echo "${ECHO_T}Athena GUI support" >&6; }
8182 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8183 echo "${ECHO_T}neXtaw GUI support" >&6; }
8185 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8186 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8191 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8192 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8193 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8194 # Check whether --enable-gtk-check was given.
8195 if test "${enable_gtk_check+set}" = set; then
8196 enableval=$enable_gtk_check;
8198 enable_gtk_check="yes"
8201 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8202 echo "${ECHO_T}$enable_gtk_check" >&6; }
8203 if test "x$enable_gtk_check" = "xno"; then
8209 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8210 -a "$enable_gui_canon" != "gnome2"; then
8211 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8212 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8213 # Check whether --enable-gtk2-check was given.
8214 if test "${enable_gtk2_check+set}" = set; then
8215 enableval=$enable_gtk2_check;
8217 enable_gtk2_check="yes"
8220 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8221 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8222 if test "x$enable_gtk2_check" = "xno"; then
8227 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8228 -a "$enable_gui_canon" != "gnome2"; then
8229 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8230 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8231 # Check whether --enable-gnome-check was given.
8232 if test "${enable_gnome_check+set}" = set; then
8233 enableval=$enable_gnome_check;
8235 enable_gnome_check="no"
8238 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8239 echo "${ECHO_T}$enable_gnome_check" >&6; }
8240 if test "x$enable_gnome_check" = "xno"; then
8245 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8246 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8247 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8248 # Check whether --enable-motif-check was given.
8249 if test "${enable_motif_check+set}" = set; then
8250 enableval=$enable_motif_check;
8252 enable_motif_check="yes"
8255 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8256 echo "${ECHO_T}$enable_motif_check" >&6; }
8257 if test "x$enable_motif_check" = "xno"; then
8262 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8263 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8264 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8265 # Check whether --enable-athena-check was given.
8266 if test "${enable_athena_check+set}" = set; then
8267 enableval=$enable_athena_check;
8269 enable_athena_check="yes"
8272 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8273 echo "${ECHO_T}$enable_athena_check" >&6; }
8274 if test "x$enable_athena_check" = "xno"; then
8279 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8280 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8281 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8282 # Check whether --enable-nextaw-check was given.
8283 if test "${enable_nextaw_check+set}" = set; then
8284 enableval=$enable_nextaw_check;
8286 enable_nextaw_check="yes"
8289 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8290 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8291 if test "x$enable_nextaw_check" = "xno"; then
8296 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8297 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8298 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8299 # Check whether --enable-carbon-check was given.
8300 if test "${enable_carbon_check+set}" = set; then
8301 enableval=$enable_carbon_check;
8303 enable_carbon_check="yes"
8306 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8307 echo "${ECHO_T}$enable_carbon_check" >&6; };
8308 if test "x$enable_carbon_check" = "xno"; then
8313 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8314 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8315 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8316 # Check whether --enable-macvim-check was given.
8317 if test "${enable_macvim_check+set}" = set; then
8318 enableval=$enable_macvim_check;
8320 enable_macvim_check="yes"
8323 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8324 echo "${ECHO_T}$enable_macvim_check" >&6; };
8325 if test "x$enable_macvim_check" = "xno"; then
8330 if test "x$MACOSX" = "xyes"; then
8331 if test x$prefix = xNONE; then
8332 prefix=/Applications
8335 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8336 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8337 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8338 { echo "$as_me:$LINENO: result: yes" >&5
8339 echo "${ECHO_T}yes" >&6; };
8341 datadir='${prefix}/MacVim.app/Contents/Resources'
8342 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8343 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8344 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8345 { echo "$as_me:$LINENO: result: yes" >&5
8346 echo "${ECHO_T}yes" >&6; };
8348 datadir='${prefix}/Vim.app/Contents/Resources'
8350 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8353 if test "$VIMNAME" = "vim"; then
8376 if test -z "$SKIP_GTK"; then
8378 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8379 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8381 # Check whether --with-gtk-prefix was given.
8382 if test "${with_gtk_prefix+set}" = set; then
8383 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8384 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8386 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8392 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8394 # Check whether --with-gtk-exec-prefix was given.
8395 if test "${with_gtk_exec_prefix+set}" = set; then
8396 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8397 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8399 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8400 echo "${ECHO_T}no" >&6; }
8404 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8405 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8406 # Check whether --enable-gtktest was given.
8407 if test "${enable_gtktest+set}" = set; then
8408 enableval=$enable_gtktest;
8413 if test "x$enable_gtktest" = "xyes" ; then
8414 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8415 echo "${ECHO_T}gtk test enabled" >&6; }
8417 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8418 echo "${ECHO_T}gtk test disabled" >&6; }
8421 if test "x$gtk_config_prefix" != "x" ; then
8422 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8423 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8425 if test "x$gtk_config_exec_prefix" != "x" ; then
8426 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8427 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8429 if test "X$GTK_CONFIG" = "X"; then
8430 # Extract the first word of "gtk-config", so it can be a program name with args.
8431 set dummy gtk-config; ac_word=$2
8432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8461 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8462 if test -n "$GTK_CONFIG"; then
8463 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8464 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8466 { echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6; }
8471 if test "X$GTK_CONFIG" = "Xno"; then
8472 # Extract the first word of "gtk12-config", so it can be a program name with args.
8473 set dummy gtk12-config; ac_word=$2
8474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 case $GTK12_CONFIG in
8481 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8503 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8504 if test -n "$GTK12_CONFIG"; then
8505 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8506 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8508 { echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6; }
8513 GTK_CONFIG="$GTK12_CONFIG"
8516 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8517 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8519 if test "X$PKG_CONFIG" = "X"; then
8520 # Extract the first word of "pkg-config", so it can be a program name with args.
8521 set dummy pkg-config; ac_word=$2
8522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8552 if test -n "$PKG_CONFIG"; then
8553 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8554 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8556 { echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6; }
8563 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8564 if test "X$SKIP_GTK2" != "XYES"; then
8566 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8568 min_gtk_version=2.2.0
8569 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8570 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8572 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8573 && $PKG_CONFIG --exists gtk+-2.0; then
8575 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8576 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8577 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8578 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8579 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8580 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8581 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8582 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8583 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8585 elif test "X$GTK_CONFIG" != "Xno"; then
8587 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8589 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8590 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8591 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8592 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8593 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8594 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8595 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8601 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8603 ac_save_CFLAGS="$CFLAGS"
8604 ac_save_LIBS="$LIBS"
8605 CFLAGS="$CFLAGS $GTK_CFLAGS"
8606 LIBS="$LIBS $GTK_LIBS"
8609 if test "$cross_compiling" = yes; then
8610 echo $ac_n "cross compiling; assumed OK... $ac_c"
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 #include <gtk/gtk.h>
8622 # include <stdlib.h>
8623 # include <stddef.h>
8629 int major, minor, micro;
8632 system ("touch conf.gtktest");
8634 /* HP/UX 9 (%@#!) writes to sscanf strings */
8635 tmp_version = g_strdup("$min_gtk_version");
8636 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8637 printf("%s, bad version string\n", "$min_gtk_version");
8641 if ((gtk_major_version > major) ||
8642 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8643 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8644 (gtk_micro_version >= micro)))
8652 rm -f conftest$ac_exeext
8653 if { (ac_try="$ac_link"
8655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8656 *) ac_try_echo
=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_link") 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8663 { (case "(($ac_try" in
8664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_try") 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8674 echo "$as_me: program exited with status $ac_status" >&5
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8685 CFLAGS="$ac_save_CFLAGS"
8686 LIBS="$ac_save_LIBS"
8689 if test "x$no_gtk" = x ; then
8690 if test "x$enable_gtktest" = "xyes"; then
8691 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8692 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8694 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8695 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8697 GUI_LIB_LOC="$GTK_LIBDIR"
8698 GTK_LIBNAME="$GTK_LIBS"
8699 GUI_INC_LOC="$GTK_CFLAGS"
8702 { echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6; }
8719 if test "x$GTK_CFLAGS" != "x"; then
8728 if test "x$GUITYPE" != "xGTK"; then
8731 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8733 min_gtk_version=1.1.16
8734 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8735 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8737 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8738 && $PKG_CONFIG --exists gtk+-2.0; then
8740 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8741 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8742 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8743 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8744 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8745 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8746 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8747 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8748 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8750 elif test "X$GTK_CONFIG" != "Xno"; then
8752 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8754 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8755 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8756 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8757 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8758 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8759 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8760 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8766 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8768 ac_save_CFLAGS="$CFLAGS"
8769 ac_save_LIBS="$LIBS"
8770 CFLAGS="$CFLAGS $GTK_CFLAGS"
8771 LIBS="$LIBS $GTK_LIBS"
8774 if test "$cross_compiling" = yes; then
8775 echo $ac_n "cross compiling; assumed OK... $ac_c"
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 #include <gtk/gtk.h>
8787 # include <stdlib.h>
8788 # include <stddef.h>
8794 int major, minor, micro;
8797 system ("touch conf.gtktest");
8799 /* HP/UX 9 (%@#!) writes to sscanf strings */
8800 tmp_version = g_strdup("$min_gtk_version");
8801 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8802 printf("%s, bad version string\n", "$min_gtk_version");
8806 if ((gtk_major_version > major) ||
8807 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8808 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8809 (gtk_micro_version >= micro)))
8817 rm -f conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8821 *) ac_try_echo
=$ac_try;;
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8828 { (case "(($ac_try" in
8829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_try") 2>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8839 echo "$as_me: program exited with status $ac_status" >&5
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8850 CFLAGS="$ac_save_CFLAGS"
8851 LIBS="$ac_save_LIBS"
8854 if test "x$no_gtk" = x ; then
8855 if test "x$enable_gtktest" = "xyes"; then
8856 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8857 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8859 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8860 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8862 GTK_LIBNAME="$GTK_LIBS"
8863 GUI_INC_LOC="$GTK_CFLAGS"
8866 { echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6; }
8883 if test "x$GTK_CFLAGS" != "x"; then
8892 if test "x$GUITYPE" = "xGTK"; then
8893 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8894 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8895 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8896 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8899 if test "0$gtk_major_version" -ge 2; then
8900 cat >>confdefs.h <<\_ACEOF
8904 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8905 || test "0$gtk_minor_version" -ge 2 \
8906 || test "0$gtk_major_version" -gt 2; then
8907 cat >>confdefs.h <<\_ACEOF
8908 #define HAVE_GTK_MULTIHEAD 1
8913 if test -z "$SKIP_GNOME"; then
8921 # Check whether --with-gnome-includes was given.
8922 if test "${with_gnome_includes+set}" = set; then
8923 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8929 # Check whether --with-gnome-libs was given.
8930 if test "${with_gnome_libs+set}" = set; then
8931 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8937 # Check whether --with-gnome was given.
8938 if test "${with_gnome+set}" = set; then
8939 withval=$with_gnome; if test x$withval = xyes; then
8943 if test "x$withval" = xno; then
8947 LDFLAGS="$LDFLAGS -L$withval/lib"
8948 CFLAGS="$CFLAGS -I$withval/include"
8949 gnome_prefix=$withval/lib
8957 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8959 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8960 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8961 if $PKG_CONFIG --exists libgnomeui-2.0; then
8962 { echo "$as_me:$LINENO: result: yes" >&5
8963 echo "${ECHO_T}yes" >&6; }
8964 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8965 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8966 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8968 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8969 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8970 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8971 { echo "$as_me:$LINENO: result: yes" >&5
8972 echo "${ECHO_T}yes" >&6; }
8973 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8974 GNOME_LIBS="$GNOME_LIBS -pthread"
8976 { echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6; }
8981 { echo "$as_me:$LINENO: result: not found" >&5
8982 echo "${ECHO_T}not found" >&6; }
8983 if test "x" = xfail; then
8984 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8985 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8986 { (exit 1); exit 1; }; }
8990 elif test "x$want_gnome" = xyes; then
8992 # Extract the first word of "gnome-config", so it can be a program name with args.
8993 set dummy gnome-config; ac_word=$2
8994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8996 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 case $GNOME_CONFIG in
9001 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9023 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9024 if test -n "$GNOME_CONFIG"; then
9025 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9026 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
9028 { echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6; }
9033 if test "$GNOME_CONFIG" = "no"; then
9034 no_gnome_config="yes"
9036 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9037 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
9038 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9039 { echo "$as_me:$LINENO: result: yes" >&5
9040 echo "${ECHO_T}yes" >&6; }
9041 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9042 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9043 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9046 { echo "$as_me:$LINENO: result: no" >&5
9047 echo "${ECHO_T}no" >&6; }
9048 no_gnome_config="yes"
9052 if test x$exec_prefix = xNONE; then
9053 if test x$prefix = xNONE; then
9054 gnome_prefix=$ac_default_prefix/lib
9056 gnome_prefix=$prefix/lib
9059 gnome_prefix=`eval echo \
`echo $libdir\``
9062 if test "$no_gnome_config" = "yes"; then
9063 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9064 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
9065 if test -f $gnome_prefix/gnomeConf.sh; then
9066 { echo "$as_me:$LINENO: result: found" >&5
9067 echo "${ECHO_T}found" >&6; }
9068 echo "loading gnome configuration from" \
9069 "$gnome_prefix/gnomeConf.sh"
9070 . $gnome_prefix/gnomeConf.sh
9073 { echo "$as_me:$LINENO: result: not found" >&5
9074 echo "${ECHO_T}not found" >&6; }
9075 if test x = xfail; then
9076 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9077 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9078 { (exit 1); exit 1; }; }
9085 if test x$have_gnome = xyes ; then
9086 cat >>confdefs.h <<\_ACEOF
9087 #define FEAT_GUI_GNOME 1
9090 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9091 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9101 if test -z "$SKIP_MOTIF"; then
9102 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"
9103 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9105 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9106 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9107 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9109 for try in $gui_includes; do
9110 if test -f "$try/Xm/Xm.h"; then
9114 if test -n "$GUI_INC_LOC"; then
9115 if test "$GUI_INC_LOC" = /usr/include; then
9117 { echo "$as_me:$LINENO: result: in default path" >&5
9118 echo "${ECHO_T}in default path" >&6; }
9120 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9121 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9124 { echo "$as_me:$LINENO: result: <not found>" >&5
9125 echo "${ECHO_T}<not found>" >&6; }
9131 if test -z "$SKIP_MOTIF"; then
9132 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9133 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9135 # Check whether --with-motif-lib was given.
9136 if test "${with_motif_lib+set}" = set; then
9137 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9141 if test -n "$MOTIF_LIBNAME"; then
9142 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9143 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9146 { echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6; }
9149 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9151 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9152 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9153 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"
9155 for try in $gui_libs; do
9156 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9157 if test -f "$libtry"; then
9162 if test -n "$GUI_LIB_LOC"; then
9163 if test "$GUI_LIB_LOC" = /usr/lib; then
9165 { echo "$as_me:$LINENO: result: in default path" >&5
9166 echo "${ECHO_T}in default path" >&6; }
9168 if test -n "$GUI_LIB_LOC"; then
9169 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9170 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9171 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9172 uname -r | grep '^5' >/dev/null; then
9173 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9179 { echo "$as_me:$LINENO: result: <not found>" >&5
9180 echo "${ECHO_T}<not found>" >&6; }
9186 if test -z "$SKIP_MOTIF"; then
9196 if test -z "$SKIP_ATHENA"; then
9197 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9198 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9200 CFLAGS="$CFLAGS $X_CFLAGS"
9201 cat >conftest.$ac_ext <<_ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9208 #include <X11/Intrinsic.h>
9209 #include <X11/Xaw/Paned.h>
9218 rm -f conftest.$ac_objext
9219 if { (ac_try="$ac_compile"
9221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9222 *) ac_try_echo
=$ac_try;;
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1
>conftest.err
9229 cat conftest.err
>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.
$ac_objext; then
9235 { echo "$as_me:$LINENO: result: yes" >&5
9236 echo "${ECHO_T}yes" >&6; }
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.
$ac_ext >&5
9241 { echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA
=YES
9245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9249 if test -z "$SKIP_ATHENA"; then
9253 if test -z "$SKIP_NEXTAW"; then
9254 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9255 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9257 CFLAGS
="$CFLAGS $X_CFLAGS"
9258 cat >conftest.
$ac_ext <<_ACEOF
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9265 #include <X11/Intrinsic.h>
9266 #include <X11/neXtaw/Paned.h>
9275 rm -f conftest.
$ac_objext
9276 if { (ac_try
="$ac_compile"
9278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_compile") 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && {
9289 test -z "$ac_c_werror_flag" ||
9290 test ! -s conftest.err
9291 } && test -s conftest.$ac_objext; then
9292 { echo "$as_me:$LINENO: result: yes" >&5
9293 echo "${ECHO_T}yes" >&6; }
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 { echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 if test -z "$SKIP_NEXTAW"; then
9310 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9311 if test -n "$GUI_INC_LOC"; then
9312 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9314 if test -n "$GUI_LIB_LOC"; then
9315 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9318 ldflags_save=$LDFLAGS
9319 LDFLAGS="$X_LIBS $LDFLAGS"
9320 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9321 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9322 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 ac_check_lib_save_LIBS=$LIBS
9326 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9334 /* Override any GCC internal prototype to avoid an error.
9335 Use char because int might match the return type of a GCC
9336 builtin and then its argument prototype would still apply. */
9340 char XShapeQueryExtension ();
9344 return XShapeQueryExtension ();
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (ac_try="$ac_link"
9352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9353 *) ac_try_echo
=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_link") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1
>conftest.err
9360 cat conftest.err
>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest
$ac_exeext &&
9366 $as_test_x conftest
$ac_exeext; then
9367 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.
$ac_ext >&5
9372 ac_cv_lib_Xext_XShapeQueryExtension
=no
9375 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9376 conftest
$ac_exeext conftest.
$ac_ext
9377 LIBS
=$ac_check_lib_save_LIBS
9379 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9380 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9381 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9385 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9386 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9387 if test "${ac_cv_lib_w_wslen+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 ac_check_lib_save_LIBS
=$LIBS
9391 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9392 cat >conftest.
$ac_ext <<_ACEOF
9395 cat confdefs.h
>>conftest.
$ac_ext
9396 cat >>conftest.
$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9414 rm -f conftest.
$ac_objext conftest
$ac_exeext
9415 if { (ac_try
="$ac_link"
9417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 ac_cv_lib_w_wslen=yes
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_lib_w_wslen=no
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9444 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9445 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9446 if test $ac_cv_lib_w_wslen = yes; then
9447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9450 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9451 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9452 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 ac_check_lib_save_LIBS=$LIBS
9456 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9483 *) ac_try_echo
=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest
$ac_exeext &&
9496 $as_test_x conftest
$ac_exeext; then
9497 ac_cv_lib_dl_dlsym
=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.
$ac_ext >&5
9502 ac_cv_lib_dl_dlsym
=no
9505 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9506 conftest
$ac_exeext conftest.
$ac_ext
9507 LIBS
=$ac_check_lib_save_LIBS
9509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9510 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9511 if test $ac_cv_lib_dl_dlsym = yes; then
9512 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9515 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9516 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 ac_check_lib_save_LIBS
=$LIBS
9521 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9522 cat >conftest.
$ac_ext <<_ACEOF
9525 cat confdefs.h
>>conftest.
$ac_ext
9526 cat >>conftest.
$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9535 char XmuCreateStippledPixmap ();
9539 return XmuCreateStippledPixmap ();
9544 rm -f conftest.
$ac_objext conftest
$ac_exeext
9545 if { (ac_try
="$ac_link"
9547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9553 grep -v '^ *+' conftest.er1 >conftest.err
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9575 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9576 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9577 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9580 if test -z "$SKIP_MOTIF"; then
9581 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9582 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9583 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9614 *) ac_try_echo
=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1
>conftest.err
9621 cat conftest.err
>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest
$ac_exeext &&
9627 $as_test_x conftest
$ac_exeext; then
9628 ac_cv_lib_Xp_XpEndJob
=yes
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.
$ac_ext >&5
9633 ac_cv_lib_Xp_XpEndJob
=no
9636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9637 conftest
$ac_exeext conftest.
$ac_ext
9638 LIBS
=$ac_check_lib_save_LIBS
9640 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9641 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9642 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9643 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9647 LDFLAGS
=$ldflags_save
9649 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9650 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9653 if mkdir conftestdir
; then
9655 cat > Imakefile
<<'EOF'
9657 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9659 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9660 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9665 if test -z "$NARROW_PROTO"; then
9666 { echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6; }
9669 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9670 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9675 if test "$enable_xsmp" = "yes"; then
9676 cppflags_save
=$CPPFLAGS
9677 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9679 for ac_header
in X11
/SM
/SMlib.h
9681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9682 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9685 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 ac_res
=`eval echo '${'$as_ac_Header'}'`
9689 { echo "$as_me:$LINENO: result: $ac_res" >&5
9690 echo "${ECHO_T}$ac_res" >&6; }
9692 # Is the header compilable?
9693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9695 cat >conftest.
$ac_ext <<_ACEOF
9698 cat confdefs.h
>>conftest.
$ac_ext
9699 cat >>conftest.
$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <$ac_header>
9704 rm -f conftest.
$ac_objext
9705 if { (ac_try
="$ac_compile"
9707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_compile") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest.$ac_objext; then
9721 ac_header_compiler=yes
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_compiler=no
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6; }
9733 # Is the header present?
9734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 #include <$ac_header>
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9747 *) ac_try_echo
=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1
>conftest.err
9754 cat conftest.err
>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } >/dev
/null
&& {
9757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9760 ac_header_preproc
=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.
$ac_ext >&5
9765 ac_header_preproc
=no
9768 rm -f conftest.err conftest.
$ac_ext
9769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9770 echo "${ECHO_T}$ac_header_preproc" >&6; }
9772 # So? What about this header?
9773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9779 ac_header_preproc
=yes
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 eval "$as_ac_Header=\$ac_header_preproc"
9804 ac_res
=`eval echo '${'$as_ac_Header'}'`
9805 { echo "$as_me:$LINENO: result: $ac_res" >&5
9806 echo "${ECHO_T}$ac_res" >&6; }
9809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9810 cat >>confdefs.h
<<_ACEOF
9811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9818 CPPFLAGS
=$cppflags_save
9822 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9823 cppflags_save
=$CPPFLAGS
9824 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9827 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9829 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9833 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_res
=`eval echo '${'$as_ac_Header'}'`
9837 { echo "$as_me:$LINENO: result: $ac_res" >&5
9838 echo "${ECHO_T}$ac_res" >&6; }
9840 # Is the header compilable?
9841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9843 cat >conftest.
$ac_ext <<_ACEOF
9846 cat confdefs.h
>>conftest.
$ac_ext
9847 cat >>conftest.
$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 $ac_includes_default
9850 #include <$ac_header>
9852 rm -f conftest.
$ac_objext
9853 if { (ac_try
="$ac_compile"
9855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
9861 grep -v '^ *+' conftest.er1 >conftest.err
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest.$ac_objext; then
9869 ac_header_compiler=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_header_compiler=no
9877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9879 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881 # Is the header present?
9882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 #include <$ac_header>
9892 if { (ac_try="$ac_cpp conftest.$ac_ext"
9894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9895 *) ac_try_echo
=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9900 grep -v '^ *+' conftest.er1
>conftest.err
9902 cat conftest.err
>&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } >/dev
/null
&& {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9908 ac_header_preproc
=yes
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.
$ac_ext >&5
9913 ac_header_preproc
=no
9916 rm -f conftest.err conftest.
$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6; }
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc
=yes
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9947 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 eval "$as_ac_Header=\$ac_header_preproc"
9952 ac_res
=`eval echo '${'$as_ac_Header'}'`
9953 { echo "$as_me:$LINENO: result: $ac_res" >&5
9954 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h
<<_ACEOF
9959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967 if test ! "$enable_xim" = "no"; then
9968 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9969 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9970 cat >conftest.
$ac_ext <<_ACEOF
9973 cat confdefs.h
>>conftest.
$ac_ext
9974 cat >>conftest.
$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 #include <X11/Xlib.h>
9978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979 $EGREP "XIMText" >/dev
/null
2>&1; then
9980 { echo "$as_me:$LINENO: result: yes" >&5
9981 echo "${ECHO_T}yes" >&6; }
9983 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9984 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim
= "no"
9989 CPPFLAGS
=$cppflags_save
9991 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9992 -a "x$GUITYPE" != "xNONE" ; then
9993 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9994 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9999 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10000 cppflags_save
=$CPPFLAGS
10001 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10002 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10003 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
10004 cat >conftest.
$ac_ext <<_ACEOF
10007 cat confdefs.h
>>conftest.
$ac_ext
10008 cat >>conftest.
$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 #include <X11/Intrinsic.h>
10012 #include <X11/Xmu/Editres.h>
10021 rm -f conftest.
$ac_objext
10022 if { (ac_try
="$ac_compile"
10023 case "(($ac_try" in
10024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_compile") 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest.$ac_objext; then
10038 { echo "$as_me:$LINENO: result: yes" >&5
10039 echo "${ECHO_T}yes" >&6; }
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_X11_XMU_EDITRES_H 1
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 { echo "$as_me:$LINENO: result: no" >&5
10049 echo "${ECHO_T}no" >&6; }
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 CPPFLAGS=$cppflags_save
10056 if test -z "$SKIP_MOTIF"; then
10057 cppflags_save=$CPPFLAGS
10058 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10066 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10067 Xm/UnhighlightT.h Xm/Notebook.h
10069 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_res=`eval echo '${'$as_ac_Header'}'`
10077 { echo "$as_me:$LINENO: result: $ac_res" >&5
10078 echo "${ECHO_T}$ac_res" >&6; }
10080 # Is the header compilable?
10081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10090 #include <$ac_header>
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10096 *) ac_try_echo
=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1
>conftest.err
10103 cat conftest.err
>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.
$ac_objext; then
10109 ac_header_compiler
=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.
$ac_ext >&5
10114 ac_header_compiler
=no
10117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119 echo "${ECHO_T}$ac_header_compiler" >&6; }
10121 # Is the header present?
10122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10124 cat >conftest.
$ac_ext <<_ACEOF
10127 cat confdefs.h
>>conftest.
$ac_ext
10128 cat >>conftest.
$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10130 #include <$ac_header>
10132 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10133 case "(($ac_try" in
10134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } >/dev/null && {
10145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10148 ac_header_preproc=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_preproc=no
10156 rm -f conftest.err conftest.$ac_ext
10157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10158 echo "${ECHO_T}$ac_header_preproc" >&6; }
10160 # So? What about this header?
10161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10167 ac_header_preproc=yes
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 eval "$as_ac_Header=\$ac_header_preproc"
10192 ac_res=`eval echo '${'$as_ac_Header'}'`
10193 { echo "$as_me:$LINENO: result: $ac_res" >&5
10194 echo "${ECHO_T}$ac_res" >&6; }
10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10207 if test $ac_cv_header_Xm_XpmP_h = yes; then
10208 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10209 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <Xm/XpmP.h>
10220 XpmAttributes_21 attr;
10225 rm -f conftest.$ac_objext
10226 if { (ac_try="$ac_compile"
10227 case "(($ac_try" in
10228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10229 *) ac_try_echo
=$ac_try;;
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_compile") 2>conftest.er1
10234 grep -v '^ *+' conftest.er1
>conftest.err
10236 cat conftest.err
>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest.
$ac_objext; then
10242 { echo "$as_me:$LINENO: result: yes" >&5
10243 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10244 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.
$ac_ext >&5
10251 { echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10253 #define XPMATTRIBUTES_TYPE XpmAttributes
10259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10261 cat >>confdefs.h
<<\_ACEOF
10262 #define XPMATTRIBUTES_TYPE XpmAttributes
10266 CPPFLAGS
=$cppflags_save
10269 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10270 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10271 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10274 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10275 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10276 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10277 enable_fontset
="no"
10279 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10280 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10281 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10282 enable_fontset
="no"
10285 if test -z "$SKIP_PHOTON"; then
10294 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10295 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10296 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10297 { (exit 1); exit 1; }; }
10300 if test "$enable_xim" = "yes"; then
10301 cat >>confdefs.h
<<\_ACEOF
10306 if test "$enable_fontset" = "yes"; then
10307 cat >>confdefs.h
<<\_ACEOF
10308 #define FEAT_XFONTSET 1
10316 if test "$enable_hangulinput" = "yes"; then
10317 if test "x$GUITYPE" = "xNONE"; then
10318 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10319 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10320 enable_hangulinput
=no
10322 cat >>confdefs.h
<<\_ACEOF
10323 #define FEAT_HANGULIN 1
10326 HANGULIN_SRC
=hangulin.c
10328 HANGULIN_OBJ
=objects
/hangulin.o
10334 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10335 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10336 if test "${vim_cv_toupper_broken+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 if test "$cross_compiling" = yes; then
10342 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10343 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10344 { (exit 1); exit 1; }; }
10347 cat >conftest.
$ac_ext <<_ACEOF
10349 #include "confdefs.h"
10352 # include <stdlib.h>
10353 # include <stddef.h>
10355 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10358 rm -f conftest
$ac_exeext
10359 if { (ac_try
="$ac_link"
10360 case "(($ac_try" in
10361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10369 { (case "(($ac_try" in
10370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10371 *) ac_try_echo
=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10379 vim_cv_toupper_broken
=yes
10382 echo "$as_me: program exited with status $ac_status" >&5
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.
$ac_ext >&5
10386 ( exit $ac_status )
10388 vim_cv_toupper_broken
=no
10391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10396 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10397 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10399 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10400 cat >>confdefs.h
<<\_ACEOF
10401 #define BROKEN_TOUPPER 1
10406 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10407 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10408 cat >conftest.
$ac_ext <<_ACEOF
10411 cat confdefs.h
>>conftest.
$ac_ext
10412 cat >>conftest.
$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10418 printf("(" __DATE__ " " __TIME__ ")");
10423 rm -f conftest.
$ac_objext
10424 if { (ac_try
="$ac_compile"
10425 case "(($ac_try" in
10426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_compile") 2>conftest.er1
10432 grep -v '^ *+' conftest.er1 >conftest.err
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest.$ac_objext; then
10440 { echo "$as_me:$LINENO: result: yes" >&5
10441 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_DATE_TIME 1
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 { echo "$as_me:$LINENO: result: no" >&5
10450 echo "${ECHO_T}no" >&6; }
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10456 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10457 cat >conftest.$ac_ext <<_ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10467 int x __attribute__((unused));
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10476 *) ac_try_echo
=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_compile") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1
>conftest.err
10483 cat conftest.err
>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest.
$ac_objext; then
10489 { echo "$as_me:$LINENO: result: yes" >&5
10490 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10491 #define HAVE_ATTRIBUTE_UNUSED 1
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.
$ac_ext >&5
10498 { echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6; }
10502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10504 if test "${ac_cv_header_elf_h+set}" = set; then
10505 { echo "$as_me:$LINENO: checking for elf.h" >&5
10506 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10507 if test "${ac_cv_header_elf_h+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10511 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10513 # Is the header compilable?
10514 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10515 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10516 cat >conftest.
$ac_ext <<_ACEOF
10519 cat confdefs.h
>>conftest.
$ac_ext
10520 cat >>conftest.
$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 $ac_includes_default
10525 rm -f conftest.
$ac_objext
10526 if { (ac_try
="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest.$ac_objext; then
10542 ac_header_compiler=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_header_compiler=no
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552 echo "${ECHO_T}$ac_header_compiler" >&6; }
10554 # Is the header present?
10555 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10556 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10565 if { (ac_try="$ac_cpp conftest.$ac_ext"
10566 case "(($ac_try" in
10567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10568 *) ac_try_echo
=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1
>conftest.err
10575 cat conftest.err
>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev
/null
&& {
10578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10581 ac_header_preproc
=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.
$ac_ext >&5
10586 ac_header_preproc
=no
10589 rm -f conftest.err conftest.
$ac_ext
10590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10591 echo "${ECHO_T}$ac_header_preproc" >&6; }
10593 # So? What about this header?
10594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10596 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10597 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10599 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10600 ac_header_preproc
=yes
10603 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10608 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10610 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10611 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10612 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10614 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10618 { echo "$as_me:$LINENO: checking for elf.h" >&5
10619 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10620 if test "${ac_cv_header_elf_h+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_cv_header_elf_h
=$ac_header_preproc
10625 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10626 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10629 if test $ac_cv_header_elf_h = yes; then
10634 if test "$HAS_ELF" = 1; then
10636 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10637 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10638 if test "${ac_cv_lib_elf_main+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 ac_check_lib_save_LIBS
=$LIBS
10643 cat >conftest.
$ac_ext <<_ACEOF
10646 cat confdefs.h
>>conftest.
$ac_ext
10647 cat >>conftest.
$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10659 rm -f conftest.
$ac_objext conftest
$ac_exeext
10660 if { (ac_try
="$ac_link"
10661 case "(($ac_try" in
10662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && {
10673 test -z "$ac_c_werror_flag" ||
10674 test ! -s conftest.err
10675 } && test -s conftest$ac_exeext &&
10676 $as_test_x conftest$ac_exeext; then
10677 ac_cv_lib_elf_main=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_lib_elf_main=no
10685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10689 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10690 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10691 if test $ac_cv_lib_elf_main = yes; then
10692 cat >>confdefs.h <<_ACEOF
10693 #define HAVE_LIBELF 1
10707 ac_header_dirent=no
10708 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10709 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10710 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10711 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 #include <sys/types.h>
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10737 *) ac_try_echo
=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1
>conftest.err
10744 cat conftest.err
>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest.
$ac_objext; then
10750 eval "$as_ac_Header=yes"
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.
$ac_ext >&5
10755 eval "$as_ac_Header=no"
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10760 ac_res
=`eval echo '${'$as_ac_Header'}'`
10761 { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764 cat >>confdefs.h
<<_ACEOF
10765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10768 ac_header_dirent
=$ac_hdr; break
10772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10773 if test $ac_header_dirent = dirent.h
; then
10774 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10776 if test "${ac_cv_search_opendir+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 ac_func_search_save_LIBS
=$LIBS
10780 cat >conftest.
$ac_ext <<_ACEOF
10783 cat confdefs.h
>>conftest.
$ac_ext
10784 cat >>conftest.
$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10787 /* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10802 for ac_lib
in '' dir
; do
10803 if test -z "$ac_lib"; then
10804 ac_res
="none required"
10807 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10809 rm -f conftest.
$ac_objext conftest
$ac_exeext
10810 if { (ac_try
="$ac_link"
10811 case "(($ac_try" in
10812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest$ac_exeext &&
10826 $as_test_x conftest$ac_exeext; then
10827 ac_cv_search_opendir=$ac_res
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837 if test "${ac_cv_search_opendir+set}" = set; then
10841 if test "${ac_cv_search_opendir+set}" = set; then
10844 ac_cv_search_opendir=no
10846 rm conftest.$ac_ext
10847 LIBS=$ac_func_search_save_LIBS
10849 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10850 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10851 ac_res=$ac_cv_search_opendir
10852 if test "$ac_res" != no; then
10853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10860 if test "${ac_cv_search_opendir+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 ac_func_search_save_LIBS=$LIBS
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10886 for ac_lib in '' x; do
10887 if test -z "$ac_lib"; then
10888 ac_res="none required"
10891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10897 *) ac_try_echo
=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_link") 2>conftest.er1
10902 grep -v '^ *+' conftest.er1
>conftest.err
10904 cat conftest.err
>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } && {
10907 test -z "$ac_c_werror_flag" ||
10908 test ! -s conftest.err
10909 } && test -s conftest
$ac_exeext &&
10910 $as_test_x conftest
$ac_exeext; then
10911 ac_cv_search_opendir
=$ac_res
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.
$ac_ext >&5
10919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10921 if test "${ac_cv_search_opendir+set}" = set; then
10925 if test "${ac_cv_search_opendir+set}" = set; then
10928 ac_cv_search_opendir
=no
10930 rm conftest.
$ac_ext
10931 LIBS
=$ac_func_search_save_LIBS
10933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10935 ac_res
=$ac_cv_search_opendir
10936 if test "$ac_res" != no
; then
10937 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10944 if test $ac_cv_header_sys_wait_h = no
; then
10945 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10946 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10947 cat >conftest.
$ac_ext <<_ACEOF
10950 cat confdefs.h
>>conftest.
$ac_ext
10951 cat >>conftest.
$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/wait.h>
10957 union wait xx, yy; xx = yy
10962 rm -f conftest.
$ac_objext
10963 if { (ac_try
="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.$ac_objext; then
10979 { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_SYS_WAIT_H 1
10985 cat >>confdefs.h <<\_ACEOF
10986 #define HAVE_UNION_WAIT 1
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11041 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11042 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11043 sys/resource.h sys/systeminfo.h locale.h \
11044 sys/stream.h termios.h libc.h sys/statfs.h \
11045 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11046 libgen.h util/debug.h util/msg18n.h frame.h \
11047 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11049 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058 echo "${ECHO_T}$ac_res" >&6; }
11060 # Is the header compilable?
11061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 $ac_includes_default
11070 #include <$ac_header>
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11076 *) ac_try_echo
=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1
>conftest.err
11083 cat conftest.err
>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest.
$ac_objext; then
11089 ac_header_compiler
=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.
$ac_ext >&5
11094 ac_header_compiler
=no
11097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11099 echo "${ECHO_T}$ac_header_compiler" >&6; }
11101 # Is the header present?
11102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11104 cat >conftest.
$ac_ext <<_ACEOF
11107 cat confdefs.h
>>conftest.
$ac_ext
11108 cat >>conftest.
$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 #include <$ac_header>
11112 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11113 case "(($ac_try" in
11114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11120 grep -v '^ *+' conftest.er1 >conftest.err
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null && {
11125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11126 test ! -s conftest.err
11128 ac_header_preproc=yes
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ac_header_preproc=no
11136 rm -f conftest.err conftest.$ac_ext
11137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11138 echo "${ECHO_T}$ac_header_preproc" >&6; }
11140 # So? What about this header?
11141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11147 ac_header_preproc=yes
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 eval "$as_ac_Header=\$ac_header_preproc"
11172 ac_res=`eval echo '${'$as_ac_Header'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11188 for ac_header in sys/ptem.h
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #if defined HAVE_SYS_STREAM_H
11203 # include <sys/stream.h>
11206 #include <$ac_header>
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11212 *) ac_try_echo
=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_compile") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1
>conftest.err
11219 cat conftest.err
>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest.
$ac_objext; then
11225 eval "$as_ac_Header=yes"
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.
$ac_ext >&5
11230 eval "$as_ac_Header=no"
11233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11235 ac_res
=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h
<<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11249 for ac_header
in sys
/sysctl.h
11251 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.
$ac_ext <<_ACEOF
11260 cat confdefs.h
>>conftest.
$ac_ext
11261 cat >>conftest.
$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #if defined HAVE_SYS_PARAM_H
11264 # include <sys/param.h>
11267 #include <$ac_header>
11269 rm -f conftest.
$ac_objext
11270 if { (ac_try
="$ac_compile"
11271 case "(($ac_try" in
11272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_compile") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } && {
11283 test -z "$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 } && test -s conftest.$ac_objext; then
11286 eval "$as_ac_Header=yes"
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 eval "$as_ac_Header=no"
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 ac_res=`eval echo '${'$as_ac_Header'}'`
11297 { echo "$as_me:$LINENO: result: $ac_res" >&5
11298 echo "${ECHO_T}$ac_res" >&6; }
11299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11310 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11311 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11319 #include <pthread.h>
11320 #include <pthread_np.h>
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11333 *) ac_try_echo
=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1
>conftest.err
11340 cat conftest.err
>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.
$ac_objext; then
11346 { echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6; }
11348 cat >>confdefs.h
<<\_ACEOF
11349 #define HAVE_PTHREAD_NP_H 1
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.
$ac_ext >&5
11356 { echo "$as_me:$LINENO: result: no" >&5
11357 echo "${ECHO_T}no" >&6; }
11360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11363 for ac_header
in strings.h
11365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11366 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 ac_res
=`eval echo '${'$as_ac_Header'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11376 # Is the header compilable?
11377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11379 cat >conftest.
$ac_ext <<_ACEOF
11382 cat confdefs.h
>>conftest.
$ac_ext
11383 cat >>conftest.
$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 $ac_includes_default
11386 #include <$ac_header>
11388 rm -f conftest.
$ac_objext
11389 if { (ac_try
="$ac_compile"
11390 case "(($ac_try" in
11391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_compile") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest.$ac_objext; then
11405 ac_header_compiler=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_compiler=no
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11415 echo "${ECHO_T}$ac_header_compiler" >&6; }
11417 # Is the header present?
11418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <$ac_header>
11428 if { (ac_try="$ac_cpp conftest.$ac_ext"
11429 case "(($ac_try" in
11430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11431 *) ac_try_echo
=$ac_try;;
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11436 grep -v '^ *+' conftest.er1
>conftest.err
11438 cat conftest.err
>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev
/null
&& {
11441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11442 test ! -s conftest.err
11444 ac_header_preproc
=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.
$ac_ext >&5
11449 ac_header_preproc
=no
11452 rm -f conftest.err conftest.
$ac_ext
11453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11454 echo "${ECHO_T}$ac_header_preproc" >&6; }
11456 # So? What about this header?
11457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11463 ac_header_preproc
=yes
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11483 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 eval "$as_ac_Header=\$ac_header_preproc"
11488 ac_res
=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11494 cat >>confdefs.h
<<_ACEOF
11495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11502 if test "x$MACOSX" = "xyes"; then
11503 cat >>confdefs.h
<<\_ACEOF
11504 #define NO_STRINGS_WITH_STRING_H 1
11509 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11510 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11511 cppflags_save
=$CPPFLAGS
11512 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11513 cat >conftest.
$ac_ext <<_ACEOF
11516 cat confdefs.h
>>conftest.
$ac_ext
11517 cat >>conftest.
$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11520 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11521 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11522 /* but don't do it on AIX 5.1 (Uribarri) */
11524 #ifdef HAVE_XM_XM_H
11525 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11527 #ifdef HAVE_STRING_H
11528 # include <string.h>
11530 #if defined(HAVE_STRINGS_H)
11531 # include <strings.h>
11542 rm -f conftest.
$ac_objext
11543 if { (ac_try
="$ac_compile"
11544 case "(($ac_try" in
11545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 { echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6; }
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 cat >>confdefs.h <<\_ACEOF
11566 #define NO_STRINGS_WITH_STRING_H 1
11569 { echo "$as_me:$LINENO: result: no" >&5
11570 echo "${ECHO_T}no" >&6; }
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 CPPFLAGS=$cppflags_save
11577 if test $ac_cv_c_compiler_gnu = yes; then
11578 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11579 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11580 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 ac_pattern="Autoconf.*'x'"
11584 cat >conftest.$ac_ext <<_ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11594 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11595 ac_cv_prog_gcc_traditional=yes
11597 ac_cv_prog_gcc_traditional=no
11602 if test $ac_cv_prog_gcc_traditional = no; then
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 #include <termio.h>
11612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11613 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11614 ac_cv_prog_gcc_traditional=yes
11620 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11621 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11622 if test $ac_cv_prog_gcc_traditional = yes; then
11623 CC="$CC -traditional"
11627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11629 if test "${ac_cv_c_const+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11642 /* FIXME: Include the comments suggested by Paul. */
11643 #ifndef __cplusplus
11644 /* Ultrix mips cc rejects this. */
11645 typedef int charset[2];
11647 /* SunOS 4.1.1 cc rejects this. */
11648 char const *const *pcpcc;
11650 /* NEC SVR4.0.2 mips cc rejects this. */
11651 struct point {int x, y;};
11652 static struct point const zero = {0,0};
11653 /* AIX XL C 1.02.0.0 rejects this.
11654 It does not let you subtract one const X* pointer from another in
11655 an arm of an if-expression whose if-part is not a constant
11657 const char *g = "string";
11658 pcpcc = &g + (g ? g-g : 0);
11659 /* HPUX 7.0 cc rejects these. */
11661 ppc = (char**) pcpcc;
11662 pcpcc = (char const *const *) ppc;
11663 { /* SCO 3.2v4 cc rejects this. */
11665 char const *s = 0 ? (char *) 0 : (char const *) 0;
11670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11671 int x[] = {25, 17};
11672 const int *foo = &x[0];
11675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11676 typedef const int *iptr;
11680 { /* AIX XL C 1.02.0.0 rejects this saying
11681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11682 struct s { int j; const int *ap[3]; };
11683 struct s *b; b->j = 5;
11685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11686 const int foo = 10;
11687 if (!foo) return 0;
11689 return !cs[0] && !zero.x;
11696 rm -f conftest.$ac_objext
11697 if { (ac_try="$ac_compile"
11698 case "(($ac_try" in
11699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11700 *) ac_try_echo
=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_compile") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1
>conftest.err
11707 cat conftest.err
>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.
$ac_objext; then
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.
$ac_ext >&5
11721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11725 if test $ac_cv_c_const = no
; then
11727 cat >>confdefs.h
<<\_ACEOF
11733 { echo "$as_me:$LINENO: checking for working volatile" >&5
11734 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11735 if test "${ac_cv_c_volatile+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 cat >conftest.
$ac_ext <<_ACEOF
11741 cat confdefs.h
>>conftest.
$ac_ext
11742 cat >>conftest.
$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11750 int * volatile y = (int *) 0;
11756 rm -f conftest.
$ac_objext
11757 if { (ac_try
="$ac_compile"
11758 case "(($ac_try" in
11759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_compile") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest.$ac_objext; then
11773 ac_cv_c_volatile=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_cv_c_volatile=no
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11784 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11785 if test $ac_cv_c_volatile = no; then
11787 cat >>confdefs.h <<\_ACEOF
11793 { echo "$as_me:$LINENO: checking for mode_t" >&5
11794 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11795 if test "${ac_cv_type_mode_t+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 typedef mode_t ac__type_new_;
11809 if ((ac__type_new_ *) 0)
11811 if (sizeof (ac__type_new_))
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11821 *) ac_try_echo
=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.
$ac_objext; then
11834 ac_cv_type_mode_t
=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11839 ac_cv_type_mode_t
=no
11842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11845 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11846 if test $ac_cv_type_mode_t = yes; then
11850 cat >>confdefs.h
<<_ACEOF
11856 { echo "$as_me:$LINENO: checking for off_t" >&5
11857 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11858 if test "${ac_cv_type_off_t+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 cat >conftest.
$ac_ext <<_ACEOF
11864 cat confdefs.h
>>conftest.
$ac_ext
11865 cat >>conftest.
$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11868 typedef off_t ac__type_new_;
11872 if ((ac__type_new_ *) 0)
11874 if (sizeof (ac__type_new_))
11880 rm -f conftest.
$ac_objext
11881 if { (ac_try
="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_cv_type_off_t=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_type_off_t=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11908 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11909 if test $ac_cv_type_off_t = yes; then
11913 cat >>confdefs.h <<_ACEOF
11914 #define off_t long int
11919 { echo "$as_me:$LINENO: checking for pid_t" >&5
11920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11921 if test "${ac_cv_type_pid_t+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11931 typedef pid_t ac__type_new_;
11935 if ((ac__type_new_ *) 0)
11937 if (sizeof (ac__type_new_))
11943 rm -f conftest.$ac_objext
11944 if { (ac_try="$ac_compile"
11945 case "(($ac_try" in
11946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11947 *) ac_try_echo
=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_compile") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1
>conftest.err
11954 cat conftest.err
>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest.
$ac_objext; then
11960 ac_cv_type_pid_t
=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.
$ac_ext >&5
11965 ac_cv_type_pid_t
=no
11968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11970 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11971 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11972 if test $ac_cv_type_pid_t = yes; then
11976 cat >>confdefs.h
<<_ACEOF
11982 { echo "$as_me:$LINENO: checking for size_t" >&5
11983 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11984 if test "${ac_cv_type_size_t+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.
$ac_ext <<_ACEOF
11990 cat confdefs.h
>>conftest.
$ac_ext
11991 cat >>conftest.
$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 $ac_includes_default
11994 typedef size_t ac__type_new_;
11998 if ((ac__type_new_ *) 0)
12000 if (sizeof (ac__type_new_))
12006 rm -f conftest.
$ac_objext
12007 if { (ac_try
="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
12023 ac_cv_type_size_t=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_cv_type_size_t=no
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12034 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12035 if test $ac_cv_type_size_t = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define size_t unsigned int
12045 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12046 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
12047 if test "${ac_cv_type_uid_t+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <sys/types.h>
12059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12060 $EGREP "uid_t" >/dev/null 2>&1; then
12061 ac_cv_type_uid_t=yes
12063 ac_cv_type_uid_t=no
12068 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12069 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
12070 if test $ac_cv_type_uid_t = no; then
12072 cat >>confdefs.h <<\_ACEOF
12077 cat >>confdefs.h <<\_ACEOF
12083 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12084 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12085 if test "${ac_cv_header_time+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <sys/types.h>
12095 #include <sys/time.h>
12101 if ((struct tm *) 0)
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12111 *) ac_try_echo
=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1
>conftest.err
12118 cat conftest.err
>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.
$ac_objext; then
12124 ac_cv_header_time
=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.
$ac_ext >&5
12129 ac_cv_header_time
=no
12132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12134 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12135 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12136 if test $ac_cv_header_time = yes; then
12138 cat >>confdefs.h
<<\_ACEOF
12139 #define TIME_WITH_SYS_TIME 1
12144 { echo "$as_me:$LINENO: checking for ino_t" >&5
12145 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12146 if test "${ac_cv_type_ino_t+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 cat >conftest.
$ac_ext <<_ACEOF
12152 cat confdefs.h
>>conftest.
$ac_ext
12153 cat >>conftest.
$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12156 typedef ino_t ac__type_new_;
12160 if ((ac__type_new_ *) 0)
12162 if (sizeof (ac__type_new_))
12168 rm -f conftest.
$ac_objext
12169 if { (ac_try
="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_type_ino_t=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_type_ino_t=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12196 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12197 if test $ac_cv_type_ino_t = yes; then
12201 cat >>confdefs.h <<_ACEOF
12207 { echo "$as_me:$LINENO: checking for dev_t" >&5
12208 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12209 if test "${ac_cv_type_dev_t+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 $ac_includes_default
12219 typedef dev_t ac__type_new_;
12223 if ((ac__type_new_ *) 0)
12225 if (sizeof (ac__type_new_))
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12235 *) ac_try_echo
=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1
>conftest.err
12242 cat conftest.err
>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.
$ac_objext; then
12248 ac_cv_type_dev_t
=yes
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.
$ac_ext >&5
12253 ac_cv_type_dev_t
=no
12256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12259 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12260 if test $ac_cv_type_dev_t = yes; then
12264 cat >>confdefs.h
<<_ACEOF
12265 #define dev_t unsigned
12271 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12272 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12273 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12274 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12275 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12277 cat >conftest.
$ac_ext <<_ACEOF
12280 cat confdefs.h
>>conftest.
$ac_ext
12281 cat >>conftest.
$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 #include <sys/types.h>
12286 # include <stdlib.h>
12287 # include <stddef.h>
12289 #ifdef HAVE_SYS_RESOURCE_H
12290 # include <sys/resource.h>
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12296 ac_cv_type_rlim_t
=yes
12298 ac_cv_type_rlim_t
=no
12302 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12303 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12305 if test $ac_cv_type_rlim_t = no
; then
12306 cat >> confdefs.h
<<\EOF
12307 #define rlim_t unsigned long
12311 { echo "$as_me:$LINENO: checking for stack_t" >&5
12312 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12313 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12314 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12315 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 #include <sys/types.h>
12326 # include <stdlib.h>
12327 # include <stddef.h>
12329 #include <signal.h>
12332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12333 $EGREP "stack_t" >/dev
/null
2>&1; then
12334 ac_cv_type_stack_t
=yes
12336 ac_cv_type_stack_t
=no
12340 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12341 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12343 if test $ac_cv_type_stack_t = no
; then
12344 cat >> confdefs.h
<<\EOF
12345 #define stack_t struct sigaltstack
12349 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12350 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12351 cat >conftest.
$ac_ext <<_ACEOF
12354 cat confdefs.h
>>conftest.
$ac_ext
12355 cat >>conftest.
$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12358 #include <sys/types.h>
12360 # include <stdlib.h>
12361 # include <stddef.h>
12363 #include <signal.h>
12364 #include "confdefs.h"
12369 stack_t sigstk; sigstk.ss_base = 0;
12374 rm -f conftest.
$ac_objext
12375 if { (ac_try
="$ac_compile"
12376 case "(($ac_try" in
12377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_compile") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && {
12388 test -z "$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 } && test -s conftest.$ac_objext; then
12391 { echo "$as_me:$LINENO: result: yes" >&5
12392 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_SS_BASE 1
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 { echo "$as_me:$LINENO: result: no" >&5
12401 echo "${ECHO_T}no" >&6; }
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12408 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12410 # Check whether --with-tlib was given.
12411 if test "${with_tlib+set}" = set; then
12412 withval=$with_tlib;
12415 if test -n "$with_tlib"; then
12416 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12417 echo "${ECHO_T}$with_tlib" >&6; }
12418 LIBS="$LIBS -l$with_tlib"
12419 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12420 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12421 cat >conftest.$ac_ext <<_ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12440 *) ac_try_echo
=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_link") 2>conftest.er1
12445 grep -v '^ *+' conftest.er1
>conftest.err
12447 cat conftest.err
>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && {
12450 test -z "$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 } && test -s conftest
$ac_exeext &&
12453 $as_test_x conftest
$ac_exeext; then
12454 { echo "$as_me:$LINENO: result: OK" >&5
12455 echo "${ECHO_T}OK" >&6; }
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.
$ac_ext >&5
12460 { { echo "$as_me:$LINENO: error: FAILED" >&5
12461 echo "$as_me: error: FAILED" >&2;}
12462 { (exit 1); exit 1; }; }
12465 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12466 conftest
$ac_exeext conftest.
$ac_ext
12469 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12470 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12471 case "`uname -s 2>/dev/null`" in
12472 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12473 *) tlibs
="ncurses termlib termcap curses";;
12475 for libname
in $tlibs; do
12477 as_ac_Lib
=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12478 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12479 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12480 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 ac_check_lib_save_LIBS
=$LIBS
12484 LIBS
="-l${libname} $LIBS"
12485 cat >conftest.
$ac_ext <<_ACEOF
12488 cat confdefs.h
>>conftest.
$ac_ext
12489 cat >>conftest.
$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12507 rm -f conftest.
$ac_objext conftest
$ac_exeext
12508 if { (ac_try
="$ac_link"
12509 case "(($ac_try" in
12510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_link") 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest$ac_exeext &&
12524 $as_test_x conftest$ac_exeext; then
12525 eval "$as_ac_Lib=yes"
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 eval "$as_ac_Lib=no"
12533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12534 conftest$ac_exeext conftest.$ac_ext
12535 LIBS=$ac_check_lib_save_LIBS
12537 ac_res=`eval echo '${'$as_ac_Lib'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12540 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12545 LIBS="-l${libname} $LIBS"
12549 if test "x$olibs" != "x$LIBS"; then
12550 if test "$cross_compiling" = yes; then
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #ifdef HAVE_TERMCAP_H
12561 # include <termcap.h>
12564 # include <stdlib.h>
12565 # include <stddef.h>
12567 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12569 rm -f conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12573 *) ac_try_echo
=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12591 echo "$as_me: program exited with status $ac_status" >&5
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ( exit $ac_status )
12598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12602 if test "$res" = "OK"; then
12605 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12606 echo "${ECHO_T}$libname library is not usable" >&6; }
12610 if test "x$olibs" = "x$LIBS"; then
12611 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12612 echo "${ECHO_T}no terminal library found" >&6; }
12616 if test "x$olibs" = "x$LIBS"; then
12617 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12618 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12619 cat >conftest.$ac_ext <<_ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12629 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12638 *) ac_try_echo
=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_link") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1
>conftest.err
12645 cat conftest.err
>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest
$ac_exeext &&
12651 $as_test_x conftest
$ac_exeext; then
12652 { echo "$as_me:$LINENO: result: yes" >&5
12653 echo "${ECHO_T}yes" >&6; }
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.
$ac_ext >&5
12658 { { echo "$as_me:$LINENO: error: NOT FOUND!
12659 You need to install a terminal library; for example ncurses.
12660 Or specify the name of the library with --with-tlib." >&5
12661 echo "$as_me: error: NOT FOUND!
12662 You need to install a terminal library; for example ncurses.
12663 Or specify the name of the library with --with-tlib." >&2;}
12664 { (exit 1); exit 1; }; }
12667 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12668 conftest
$ac_exeext conftest.
$ac_ext
12671 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12672 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12673 if test "${vim_cv_terminfo+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 if test "$cross_compiling" = yes; then
12679 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12680 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12681 { (exit 1); exit 1; }; }
12684 cat >conftest.
$ac_ext <<_ACEOF
12686 #include "confdefs.h"
12687 #ifdef HAVE_TERMCAP_H
12688 # include <termcap.h>
12690 #ifdef HAVE_STRING_H
12691 # include <string.h>
12694 # include <stdlib.h>
12695 # include <stddef.h>
12698 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12701 rm -f conftest
$ac_exeext
12702 if { (ac_try
="$ac_link"
12703 case "(($ac_try" in
12704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_link") 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12714 *) ac_try_echo
=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12725 echo "$as_me: program exited with status $ac_status" >&5
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.
$ac_ext >&5
12729 ( exit $ac_status )
12731 vim_cv_terminfo
=yes
12734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12740 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12741 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12743 if test "x$vim_cv_terminfo" = "xyes" ; then
12744 cat >>confdefs.h
<<\_ACEOF
12750 if test "x$olibs" != "x$LIBS"; then
12751 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12752 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12753 if test "${vim_cv_tgent+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 if test "$cross_compiling" = yes; then
12759 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12760 echo "$as_me: error: failed to compile test program." >&2;}
12761 { (exit 1); exit 1; }; }
12764 cat >conftest.
$ac_ext <<_ACEOF
12766 #include "confdefs.h"
12767 #ifdef HAVE_TERMCAP_H
12768 # include <termcap.h>
12771 # include <stdlib.h>
12772 # include <stddef.h>
12775 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12778 rm -f conftest
$ac_exeext
12779 if { (ac_try
="$ac_link"
12780 case "(($ac_try" in
12781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12791 *) ac_try_echo
=$ac_try;;
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12802 echo "$as_me: program exited with status $ac_status" >&5
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.
$ac_ext >&5
12806 ( exit $ac_status )
12808 vim_cv_tgent
=non-zero
12811 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12817 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12818 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12820 if test "x$vim_cv_tgent" = "xzero" ; then
12821 cat >>confdefs.h
<<\_ACEOF
12822 #define TGETENT_ZERO_ERR 0
12828 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12829 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12830 cat >conftest.
$ac_ext <<_ACEOF
12833 cat confdefs.h
>>conftest.
$ac_ext
12834 cat >>conftest.
$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12837 #ifdef HAVE_TERMCAP_H
12838 # include <termcap.h>
12849 rm -f conftest.
$ac_objext conftest
$ac_exeext
12850 if { (ac_try
="$ac_link"
12851 case "(($ac_try" in
12852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_link") 2>conftest.er1
12858 grep -v '^ *+' conftest.er1 >conftest.err
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest$ac_exeext &&
12866 $as_test_x conftest$ac_exeext; then
12867 { echo "$as_me:$LINENO: result: yes" >&5
12868 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12869 #define HAVE_OSPEED 1
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 { echo "$as_me:$LINENO: result: no" >&5
12877 echo "${ECHO_T}no" >&6; }
12878 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12879 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12887 #ifdef HAVE_TERMCAP_H
12888 # include <termcap.h>
12890 extern short ospeed;
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (ac_try="$ac_link"
12902 case "(($ac_try" in
12903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12904 *) ac_try_echo
=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_link") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1
>conftest.err
12911 cat conftest.err
>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest
$ac_exeext &&
12917 $as_test_x conftest
$ac_exeext; then
12918 { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12920 #define OSPEED_EXTERN 1
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.
$ac_ext >&5
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12931 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12932 conftest
$ac_exeext conftest.
$ac_ext
12936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12937 conftest
$ac_exeext conftest.
$ac_ext
12939 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12940 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12941 cat >conftest.
$ac_ext <<_ACEOF
12944 cat confdefs.h
>>conftest.
$ac_ext
12945 cat >>conftest.
$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 #ifdef HAVE_TERMCAP_H
12949 # include <termcap.h>
12955 if (UP == 0 && BC == 0) PC = 1
12960 rm -f conftest.
$ac_objext conftest
$ac_exeext
12961 if { (ac_try
="$ac_link"
12962 case "(($ac_try" in
12963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12969 grep -v '^ *+' conftest.er1 >conftest.err
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } && {
12974 test -z "$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12976 } && test -s conftest$ac_exeext &&
12977 $as_test_x conftest$ac_exeext; then
12978 { echo "$as_me:$LINENO: result: yes" >&5
12979 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_UP_BC_PC 1
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 { echo "$as_me:$LINENO: result: no" >&5
12988 echo "${ECHO_T}no" >&6; }
12989 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12990 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12991 cat >conftest.$ac_ext <<_ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 #ifdef HAVE_TERMCAP_H
12999 # include <termcap.h>
13001 extern char *UP, *BC, PC;
13006 if (UP == 0 && BC == 0) PC = 1
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (ac_try="$ac_link"
13013 case "(($ac_try" in
13014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13015 *) ac_try_echo
=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_link") 2>conftest.er1
13020 grep -v '^ *+' conftest.er1
>conftest.err
13022 cat conftest.err
>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && {
13025 test -z "$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13027 } && test -s conftest
$ac_exeext &&
13028 $as_test_x conftest
$ac_exeext; then
13029 { echo "$as_me:$LINENO: result: yes" >&5
13030 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13031 #define UP_BC_PC_EXTERN 1
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.
$ac_ext >&5
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13042 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13043 conftest
$ac_exeext conftest.
$ac_ext
13047 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13048 conftest
$ac_exeext conftest.
$ac_ext
13050 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13051 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
13052 cat >conftest.
$ac_ext <<_ACEOF
13055 cat confdefs.h
>>conftest.
$ac_ext
13056 cat >>conftest.
$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13059 #ifdef HAVE_TERMCAP_H
13060 # include <termcap.h>
13066 extern int xx(); tputs("test", 1, (outfuntype)xx)
13071 rm -f conftest.
$ac_objext
13072 if { (ac_try
="$ac_compile"
13073 case "(($ac_try" in
13074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_compile") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } && {
13085 test -z "$ac_c_werror_flag" ||
13086 test ! -s conftest.err
13087 } && test -s conftest.$ac_objext; then
13088 { echo "$as_me:$LINENO: result: yes" >&5
13089 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_OUTFUNTYPE 1
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 { echo "$as_me:$LINENO: result: no" >&5
13098 echo "${ECHO_T}no" >&6; }
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13104 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 #include <sys/types.h>
13113 #include <sys/time.h>
13114 #include <sys/select.h>
13123 rm -f conftest.$ac_objext
13124 if { (ac_try="$ac_compile"
13125 case "(($ac_try" in
13126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13127 *) ac_try_echo
=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_compile") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1
>conftest.err
13134 cat conftest.err
>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest.
$ac_objext; then
13140 { echo "$as_me:$LINENO: result: yes" >&5
13141 echo "${ECHO_T}yes" >&6; }
13142 cat >>confdefs.h
<<\_ACEOF
13143 #define SYS_SELECT_WITH_SYS_TIME 1
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.
$ac_ext >&5
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13157 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13158 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13159 if test -r /dev
/ptc
; then
13160 cat >>confdefs.h
<<\_ACEOF
13161 #define HAVE_DEV_PTC 1
13164 { echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6; }
13167 { echo "$as_me:$LINENO: result: no" >&5
13168 echo "${ECHO_T}no" >&6; }
13171 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13172 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13173 if test -c /dev
/ptmx
; then
13174 cat >conftest.
$ac_ext <<_ACEOF
13177 cat confdefs.h
>>conftest.
$ac_ext
13178 cat >>conftest.
$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13184 ptsname(0);grantpt(0);unlockpt(0);
13189 rm -f conftest.
$ac_objext conftest
$ac_exeext
13190 if { (ac_try
="$ac_link"
13191 case "(($ac_try" in
13192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_link") 2>conftest.er1
13198 grep -v '^ *+' conftest.er1 >conftest.err
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } && {
13203 test -z "$ac_c_werror_flag" ||
13204 test ! -s conftest.err
13205 } && test -s conftest$ac_exeext &&
13206 $as_test_x conftest$ac_exeext; then
13207 { echo "$as_me:$LINENO: result: yes" >&5
13208 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_SVR4_PTYS 1
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 { echo "$as_me:$LINENO: result: no" >&5
13217 echo "${ECHO_T}no" >&6; }
13220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13221 conftest$ac_exeext conftest.$ac_ext
13223 { echo "$as_me:$LINENO: result: no" >&5
13224 echo "${ECHO_T}no" >&6; }
13227 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13228 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13229 if test -d /dev/ptym ; then
13234 cat >conftest.$ac_ext <<_ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13246 $EGREP "yes" >/dev/null 2>&1; then
13247 ptys=`echo /dev
/ptyp??
`
13249 ptys=`echo $pdir/pty??
`
13253 if test "$ptys" != "$pdir/pty??" ; then
13254 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13255 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13256 cat >>confdefs.h <<_ACEOF
13257 #define PTYRANGE0 "$p0"
13260 cat >>confdefs.h <<_ACEOF
13261 #define PTYRANGE1 "$p1"
13264 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13265 echo "${ECHO_T}$p0 / $p1" >&6; }
13267 { echo "$as_me:$LINENO: result: don't know" >&5
13268 echo "${ECHO_T}don't know" >&6; }
13272 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13273 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13274 if test "${vim_cv_tty_group+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 if test "$cross_compiling" = yes; then
13280 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13281 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13282 { (exit 1); exit 1; }; }
13285 cat >conftest.$ac_ext <<_ACEOF
13287 #include "confdefs.h"
13288 #include <sys/types.h>
13290 # include <stdlib.h>
13291 # include <stddef.h>
13293 #ifdef HAVE_UNISTD_H
13294 #include <unistd.h>
13296 #include <sys/stat.h>
13301 char *x,*ttyname();
13305 if (!(x = ttyname(0))) exit(1);
13306 if (stat(x, &sb)) exit(1);
13308 if (om & 002) exit(0);
13309 m = system("mesg y");
13310 if (m == -1 || m == 127) exit(1);
13311 if (stat(x, &sb)) exit(1);
13313 if (chmod(x, om)) exit(1);
13314 if (m & 002) exit(0);
13315 if (sb.st_gid == getgid()) exit(1);
13316 if (!(fp=fopen("conftest_grp", "w")))
13318 fprintf(fp, "%d\n", sb.st_gid);
13324 rm -f conftest$ac_exeext
13325 if { (ac_try="$ac_link"
13326 case "(($ac_try" in
13327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13328 *) ac_try_echo
=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_link") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13335 { (case "(($ac_try" in
13336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13345 if test -f conftest_grp; then
13346 vim_cv_tty_group=`cat conftest_grp
`
13347 if test "x$vim_cv_tty_mode" = "x" ; then
13348 vim_cv_tty_mode=0620
13350 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13351 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13353 vim_cv_tty_group=world
13354 { echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13355 echo "${ECHO_T}ptys are world accessible" >&6; }
13359 echo "$as_me: program exited with status $ac_status" >&5
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13363 ( exit $ac_status )
13365 vim_cv_tty_group=world
13366 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13367 echo "${ECHO_T}can't determine - assume ptys are world accessible" >&6; }
13370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13377 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13380 if test "x$vim_cv_tty_group" != "xworld" ; then
13381 cat >>confdefs.h <<_ACEOF
13382 #define PTYGROUP $vim_cv_tty_group
13385 if test "x$vim_cv_tty_mode" = "x" ; then
13386 { { 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
13387 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;}
13388 { (exit 1); exit 1; }; }
13390 cat >>confdefs.h <<\_ACEOF
13391 #define PTYMODE 0620
13398 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13399 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13400 if test "${ac_cv_type_signal+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 #include <sys/types.h>
13410 #include <signal.h>
13415 return *(signal (0, 0)) (0) == 1;
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13424 *) ac_try_echo
=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1
>conftest.err
13431 cat conftest.err
>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } && {
13434 test -z "$ac_c_werror_flag" ||
13435 test ! -s conftest.err
13436 } && test -s conftest.
$ac_objext; then
13437 ac_cv_type_signal
=int
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.
$ac_ext >&5
13442 ac_cv_type_signal
=void
13445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13447 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13448 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13450 cat >>confdefs.h
<<_ACEOF
13451 #define RETSIGTYPE $ac_cv_type_signal
13456 if test $ac_cv_type_signal = void
; then
13457 cat >>confdefs.h
<<\_ACEOF
13458 #define SIGRETURN return
13462 cat >>confdefs.h
<<\_ACEOF
13463 #define SIGRETURN return 0
13468 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13469 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13470 cat >conftest.
$ac_ext <<_ACEOF
13473 cat confdefs.h
>>conftest.
$ac_ext
13474 cat >>conftest.
$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13477 #include <signal.h>
13480 struct sigcontext *scont;
13481 scont = (struct sigcontext *)0;
13492 rm -f conftest.
$ac_objext
13493 if { (ac_try
="$ac_compile"
13494 case "(($ac_try" in
13495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_compile") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest.$ac_objext; then
13509 { echo "$as_me:$LINENO: result: yes" >&5
13510 echo "${ECHO_T}yes" >&6; }
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_SIGCONTEXT 1
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13526 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13527 if test "${vim_cv_getcwd_broken+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 if test "$cross_compiling" = yes; then
13533 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13534 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13535 { (exit 1); exit 1; }; }
13538 cat >conftest.$ac_ext <<_ACEOF
13540 #include "confdefs.h"
13541 #ifdef HAVE_UNISTD_H
13542 #include <unistd.h>
13544 char *dagger[] = { "IFS=pwd", 0 };
13548 extern char **environ;
13550 return getcwd(buffer, 500) ? 0 : 1;
13554 rm -f conftest$ac_exeext
13555 if { (ac_try="$ac_link"
13556 case "(($ac_try" in
13557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13558 *) ac_try_echo
=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_link") 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13565 { (case "(($ac_try" in
13566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13575 vim_cv_getcwd_broken=no
13578 echo "$as_me: program exited with status $ac_status" >&5
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ( exit $ac_status )
13584 vim_cv_getcwd_broken=yes
13587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13594 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13596 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13597 cat >>confdefs.h <<\_ACEOF
13598 #define BAD_GETCWD 1
13648 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
13649 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13650 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
13651 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13652 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13653 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13654 usleep utime utimes
13656 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13670 #define $ac_func innocuous_$ac_func
13672 /* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char $ac_func (); below.
13674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13675 <limits.h> exists even on freestanding compilers. */
13678 # include <limits.h>
13680 # include <assert.h>
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13692 /* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695 #if defined __stub_$ac_func || defined __stub___$ac_func
13702 return $ac_func ();
13707 rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (ac_try="$ac_link"
13709 case "(($ac_try" in
13710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13711 *) ac_try_echo
=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_link") 2>conftest.er1
13716 grep -v '^ *+' conftest.er1
>conftest.err
13718 cat conftest.err
>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && {
13721 test -z "$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13723 } && test -s conftest
$ac_exeext &&
13724 $as_test_x conftest
$ac_exeext; then
13725 eval "$as_ac_var=yes"
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.
$ac_ext >&5
13730 eval "$as_ac_var=no"
13733 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13734 conftest
$ac_exeext conftest.
$ac_ext
13736 ac_res
=`eval echo '${'$as_ac_var'}'`
13737 { echo "$as_me:$LINENO: result: $ac_res" >&5
13738 echo "${ECHO_T}$ac_res" >&6; }
13739 if test `eval echo '${'$as_ac_var'}'` = yes; then
13740 cat >>confdefs.h
<<_ACEOF
13741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13747 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13748 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
13749 if test "${ac_cv_sys_largefile_source+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.
$ac_ext <<_ACEOF
13756 cat confdefs.h
>>conftest.
$ac_ext
13757 cat >>conftest.
$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13763 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13768 rm -f conftest.
$ac_objext conftest
$ac_exeext
13769 if { (ac_try
="$ac_link"
13770 case "(($ac_try" in
13771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest$ac_exeext &&
13785 $as_test_x conftest$ac_exeext; then
13786 ac_cv_sys_largefile_source=no; break
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13795 conftest$ac_exeext conftest.$ac_ext
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 #define _LARGEFILE_SOURCE 1
13807 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (ac_try="$ac_link"
13814 case "(($ac_try" in
13815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13816 *) ac_try_echo
=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_link") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1
>conftest.err
13823 cat conftest.err
>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && {
13826 test -z "$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13828 } && test -s conftest
$ac_exeext &&
13829 $as_test_x conftest
$ac_exeext; then
13830 ac_cv_sys_largefile_source
=1; break
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.
$ac_ext >&5
13838 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13839 conftest
$ac_exeext conftest.
$ac_ext
13840 ac_cv_sys_largefile_source
=unknown
13844 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13845 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
13846 case $ac_cv_sys_largefile_source in #(
13849 cat >>confdefs.h
<<_ACEOF
13850 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13856 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13857 # in glibc 2.1.3, but that breaks too many other things.
13858 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13859 if test $ac_cv_sys_largefile_source != unknown
; then
13861 cat >>confdefs.h
<<\_ACEOF
13862 #define HAVE_FSEEKO 1
13868 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13869 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13870 cat >conftest.
$ac_ext <<_ACEOF
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <sys/types.h>
13877 #include <sys/stat.h>
13885 n = (int)st.st_blksize;
13890 rm -f conftest.
$ac_objext
13891 if { (ac_try
="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_compile") 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest.$ac_objext; then
13907 { echo "$as_me:$LINENO: result: yes" >&5
13908 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13909 #define HAVE_ST_BLKSIZE 1
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 { echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6; }
13920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13923 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13924 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 if test "$cross_compiling" = yes; then
13930 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13931 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13932 { (exit 1); exit 1; }; }
13935 cat >conftest.$ac_ext <<_ACEOF
13937 #include "confdefs.h"
13939 # include <stdlib.h>
13940 # include <stddef.h>
13942 #include <sys/types.h>
13943 #include <sys/stat.h>
13944 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13947 rm -f conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13951 *) ac_try_echo
=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_link") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13958 { (case "(($ac_try" in
13959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_try") 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13968 vim_cv_stat_ignores_slash=yes
13971 echo "$as_me: program exited with status $ac_status" >&5
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ( exit $ac_status )
13977 vim_cv_stat_ignores_slash=no
13980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13986 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13987 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13989 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define STAT_IGNORES_SLASH 1
13996 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13997 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13999 LIBS="$LIBS -liconv"
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 #ifdef HAVE_ICONV_H
14008 # include <iconv.h>
14014 iconv_open("fr", "to");
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (ac_try="$ac_link"
14021 case "(($ac_try" in
14022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14023 *) ac_try_echo
=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14028 grep -v '^ *+' conftest.er1
>conftest.err
14030 cat conftest.err
>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest
$ac_exeext &&
14036 $as_test_x conftest
$ac_exeext; then
14037 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14038 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14039 #define HAVE_ICONV 1
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.
$ac_ext >&5
14047 cat >conftest.
$ac_ext <<_ACEOF
14050 cat confdefs.h
>>conftest.
$ac_ext
14051 cat >>conftest.
$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 #ifdef HAVE_ICONV_H
14055 # include <iconv.h>
14061 iconv_open("fr", "to");
14066 rm -f conftest.
$ac_objext conftest
$ac_exeext
14067 if { (ac_try
="$ac_link"
14068 case "(($ac_try" in
14069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest$ac_exeext &&
14083 $as_test_x conftest$ac_exeext; then
14084 { echo "$as_me:$LINENO: result: yes" >&5
14085 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_ICONV 1
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 { echo "$as_me:$LINENO: result: no" >&5
14094 echo "${ECHO_T}no" >&6; }
14097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14098 conftest$ac_exeext conftest.$ac_ext
14101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14102 conftest$ac_exeext conftest.$ac_ext
14105 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14106 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
14107 cat >conftest.$ac_ext <<_ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14114 #ifdef HAVE_LANGINFO_H
14115 # include <langinfo.h>
14121 char *cs = nl_langinfo(CODESET);
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14130 *) ac_try_echo
=$ac_try;;
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_link") 2>conftest.er1
14135 grep -v '^ *+' conftest.er1
>conftest.err
14137 cat conftest.err
>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && {
14140 test -z "$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 } && test -s conftest
$ac_exeext &&
14143 $as_test_x conftest
$ac_exeext; then
14144 { echo "$as_me:$LINENO: result: yes" >&5
14145 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14146 #define HAVE_NL_LANGINFO_CODESET 1
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.
$ac_ext >&5
14153 { echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6; }
14157 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14158 conftest
$ac_exeext conftest.
$ac_ext
14161 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14162 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
14163 if test "${ac_cv_lib_m_strtod+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 ac_check_lib_save_LIBS
=$LIBS
14168 cat >conftest.
$ac_ext <<_ACEOF
14171 cat confdefs.h
>>conftest.
$ac_ext
14172 cat >>conftest.
$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14175 /* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14190 rm -f conftest.
$ac_objext conftest
$ac_exeext
14191 if { (ac_try
="$ac_link"
14192 case "(($ac_try" in
14193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_link") 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } && {
14204 test -z "$ac_c_werror_flag" ||
14205 test ! -s conftest.err
14206 } && test -s conftest$ac_exeext &&
14207 $as_test_x conftest$ac_exeext; then
14208 ac_cv_lib_m_strtod=yes
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14213 ac_cv_lib_m_strtod=no
14216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14217 conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14220 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14221 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14222 if test $ac_cv_lib_m_strtod = yes; then
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_LIBM 1
14231 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14232 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14244 # include <stdlib.h>
14245 # include <stddef.h>
14252 d = strtod("1.1", &s);
14257 d = pow(1.11, 2.22);
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14271 *) ac_try_echo
=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1
>conftest.err
14278 cat conftest.err
>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest
$ac_exeext &&
14284 $as_test_x conftest
$ac_exeext; then
14285 { echo "$as_me:$LINENO: result: yes" >&5
14286 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14287 #define HAVE_FLOAT_FUNCS 1
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.
$ac_ext >&5
14294 { echo "$as_me:$LINENO: result: no" >&5
14295 echo "${ECHO_T}no" >&6; }
14298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14299 conftest
$ac_exeext conftest.
$ac_ext
14301 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14302 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14303 # Check whether --enable-acl was given.
14304 if test "${enable_acl+set}" = set; then
14305 enableval
=$enable_acl;
14310 if test "$enable_acl" = "yes"; then
14311 { echo "$as_me:$LINENO: result: no" >&5
14312 echo "${ECHO_T}no" >&6; }
14313 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14314 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14315 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 ac_check_lib_save_LIBS
=$LIBS
14319 LIBS
="-lposix1e $LIBS"
14320 cat >conftest.
$ac_ext <<_ACEOF
14323 cat confdefs.h
>>conftest.
$ac_ext
14324 cat >>conftest.
$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14333 char acl_get_file ();
14337 return acl_get_file ();
14342 rm -f conftest.
$ac_objext conftest
$ac_exeext
14343 if { (ac_try
="$ac_link"
14344 case "(($ac_try" in
14345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_link") 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 } && test -s conftest$ac_exeext &&
14359 $as_test_x conftest$ac_exeext; then
14360 ac_cv_lib_posix1e_acl_get_file=yes
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_cv_lib_posix1e_acl_get_file=no
14368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14369 conftest$ac_exeext conftest.$ac_ext
14370 LIBS=$ac_check_lib_save_LIBS
14372 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14373 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14374 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14375 LIBS="$LIBS -lposix1e"
14377 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14378 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14379 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 ac_check_lib_save_LIBS=$LIBS
14384 cat >conftest.$ac_ext <<_ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14397 char acl_get_file ();
14401 return acl_get_file ();
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14410 *) ac_try_echo
=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_link") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1
>conftest.err
14417 cat conftest.err
>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest
$ac_exeext &&
14423 $as_test_x conftest
$ac_exeext; then
14424 ac_cv_lib_acl_acl_get_file
=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.
$ac_ext >&5
14429 ac_cv_lib_acl_acl_get_file
=no
14432 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14433 conftest
$ac_exeext conftest.
$ac_ext
14434 LIBS
=$ac_check_lib_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14437 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14438 if test $ac_cv_lib_acl_acl_get_file = yes; then
14440 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14441 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14442 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 ac_check_lib_save_LIBS
=$LIBS
14446 LIBS
="-lattr $LIBS"
14447 cat >conftest.
$ac_ext <<_ACEOF
14450 cat confdefs.h
>>conftest.
$ac_ext
14451 cat >>conftest.
$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply. */
14464 return fgetxattr ();
14469 rm -f conftest.
$ac_objext conftest
$ac_exeext
14470 if { (ac_try
="$ac_link"
14471 case "(($ac_try" in
14472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_link") 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest$ac_exeext &&
14486 $as_test_x conftest$ac_exeext; then
14487 ac_cv_lib_attr_fgetxattr=yes
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_cv_lib_attr_fgetxattr=no
14495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14496 conftest$ac_exeext conftest.$ac_ext
14497 LIBS=$ac_check_lib_save_LIBS
14499 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14500 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14501 if test $ac_cv_lib_attr_fgetxattr = yes; then
14502 LIBS="$LIBS -lattr"
14510 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14511 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14512 cat >conftest.$ac_ext <<_ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 #include <sys/types.h>
14520 #ifdef HAVE_SYS_ACL_H
14521 # include <sys/acl.h>
14527 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14528 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14538 *) ac_try_echo
=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>conftest.er1
14543 grep -v '^ *+' conftest.er1
>conftest.err
14545 cat conftest.err
>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } && {
14548 test -z "$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14550 } && test -s conftest
$ac_exeext &&
14551 $as_test_x conftest
$ac_exeext; then
14552 { echo "$as_me:$LINENO: result: yes" >&5
14553 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14554 #define HAVE_POSIX_ACL 1
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.
$ac_ext >&5
14561 { echo "$as_me:$LINENO: result: no" >&5
14562 echo "${ECHO_T}no" >&6; }
14565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14566 conftest
$ac_exeext conftest.
$ac_ext
14568 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14569 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14570 cat >conftest.
$ac_ext <<_ACEOF
14573 cat confdefs.h
>>conftest.
$ac_ext
14574 cat >>conftest.
$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14577 #ifdef HAVE_SYS_ACL_H
14578 # include <sys/acl.h>
14583 acl("foo", GETACLCNT, 0, NULL);
14589 rm -f conftest.
$ac_objext conftest
$ac_exeext
14590 if { (ac_try
="$ac_link"
14591 case "(($ac_try" in
14592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_link") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest$ac_exeext &&
14606 $as_test_x conftest$ac_exeext; then
14607 { echo "$as_me:$LINENO: result: yes" >&5
14608 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_SOLARIS_ACL 1
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 { echo "$as_me:$LINENO: result: no" >&5
14617 echo "${ECHO_T}no" >&6; }
14620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14621 conftest$ac_exeext conftest.$ac_ext
14623 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14624 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14633 # include <stdlib.h>
14634 # include <stddef.h>
14636 #ifdef HAVE_SYS_ACL_H
14637 # include <sys/acl.h>
14639 #ifdef HAVE_SYS_ACCESS_H
14640 # include <sys/access.h>
14642 #define _ALL_SOURCE
14644 #include <sys/stat.h>
14647 struct acl *aclent;
14651 aclsize = sizeof(struct acl);
14652 aclent = (void *)malloc(aclsize);
14653 statacl("foo", STX_NORMAL, aclent, aclsize);
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (ac_try="$ac_link"
14661 case "(($ac_try" in
14662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14663 *) ac_try_echo
=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_link") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1
>conftest.err
14670 cat conftest.err
>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest
$ac_exeext &&
14676 $as_test_x conftest
$ac_exeext; then
14677 { echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14679 #define HAVE_AIX_ACL 1
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.
$ac_ext >&5
14686 { echo "$as_me:$LINENO: result: no" >&5
14687 echo "${ECHO_T}no" >&6; }
14690 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14691 conftest
$ac_exeext conftest.
$ac_ext
14693 { echo "$as_me:$LINENO: result: yes" >&5
14694 echo "${ECHO_T}yes" >&6; }
14697 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14698 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14699 # Check whether --enable-gpm was given.
14700 if test "${enable_gpm+set}" = set; then
14701 enableval
=$enable_gpm;
14707 if test "$enable_gpm" = "yes"; then
14708 { echo "$as_me:$LINENO: result: no" >&5
14709 echo "${ECHO_T}no" >&6; }
14710 { echo "$as_me:$LINENO: checking for gpm" >&5
14711 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14712 if test "${vi_cv_have_gpm+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 olibs
="$LIBS" ; LIBS
="-lgpm"
14716 cat >conftest.
$ac_ext <<_ACEOF
14719 cat confdefs.h
>>conftest.
$ac_ext
14720 cat >>conftest.
$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14723 #include <linux/keyboard.h>
14727 Gpm_GetLibVersion(NULL);
14732 rm -f conftest.
$ac_objext conftest
$ac_exeext
14733 if { (ac_try
="$ac_link"
14734 case "(($ac_try" in
14735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14763 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14764 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14765 if test $vi_cv_have_gpm = yes; then
14767 cat >>confdefs.h <<\_ACEOF
14773 { echo "$as_me:$LINENO: result: yes" >&5
14774 echo "${ECHO_T}yes" >&6; }
14777 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14778 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14779 # Check whether --enable-sysmouse was given.
14780 if test "${enable_sysmouse+set}" = set; then
14781 enableval=$enable_sysmouse;
14783 enable_sysmouse="yes"
14787 if test "$enable_sysmouse" = "yes"; then
14788 { echo "$as_me:$LINENO: result: no" >&5
14789 echo "${ECHO_T}no" >&6; }
14790 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14791 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14792 if test "${vi_cv_have_sysmouse+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 cat >conftest.$ac_ext <<_ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 #include <sys/consio.h>
14802 #include <signal.h>
14803 #include <sys/fbio.h>
14807 struct mouse_info mouse;
14808 mouse.operation = MOUSE_MODE;
14809 mouse.operation = MOUSE_SHOW;
14810 mouse.u.mode.mode = 0;
14811 mouse.u.mode.signal = SIGUSR2;
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (ac_try="$ac_link"
14818 case "(($ac_try" in
14819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14820 *) ac_try_echo
=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_link") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1
>conftest.err
14827 cat conftest.err
>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } && {
14830 test -z "$ac_c_werror_flag" ||
14831 test ! -s conftest.err
14832 } && test -s conftest
$ac_exeext &&
14833 $as_test_x conftest
$ac_exeext; then
14834 vi_cv_have_sysmouse
=yes
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.
$ac_ext >&5
14839 vi_cv_have_sysmouse
=no
14842 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14843 conftest
$ac_exeext conftest.
$ac_ext
14846 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14847 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14848 if test $vi_cv_have_sysmouse = yes; then
14849 cat >>confdefs.h
<<\_ACEOF
14850 #define HAVE_SYSMOUSE 1
14855 { echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6; }
14859 { echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
14860 echo $ECHO_N "checking for FD_CLOEXEC... $ECHO_C" >&6; }
14861 cat >conftest.
$ac_ext <<_ACEOF
14864 cat confdefs.h
>>conftest.
$ac_ext
14865 cat >>conftest.
$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 # include <fcntl.h>
14873 int flag = FD_CLOEXEC;
14878 rm -f conftest.
$ac_objext
14879 if { (ac_try
="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest.$ac_objext; then
14895 { echo "$as_me:$LINENO: result: yes" >&5
14896 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_FD_CLOEXEC 1
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 { echo "$as_me:$LINENO: result: not usable" >&5
14905 echo "${ECHO_T}not usable" >&6; }
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 { echo "$as_me:$LINENO: checking for rename" >&5
14911 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14922 rename("this", "that")
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14931 *) ac_try_echo
=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1
>conftest.err
14938 cat conftest.err
>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest
$ac_exeext &&
14944 $as_test_x conftest
$ac_exeext; then
14945 { echo "$as_me:$LINENO: result: yes" >&5
14946 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14947 #define HAVE_RENAME 1
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.
$ac_ext >&5
14954 { echo "$as_me:$LINENO: result: no" >&5
14955 echo "${ECHO_T}no" >&6; }
14958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14959 conftest
$ac_exeext conftest.
$ac_ext
14961 { echo "$as_me:$LINENO: checking for sysctl" >&5
14962 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14963 cat >conftest.
$ac_ext <<_ACEOF
14966 cat confdefs.h
>>conftest.
$ac_ext
14967 cat >>conftest.
$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <sys/types.h>
14970 #include <sys/sysctl.h>
14978 mib[1] = HW_USERMEM;
14980 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14986 rm -f conftest.
$ac_objext
14987 if { (ac_try
="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_compile") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest.$ac_objext; then
15003 { echo "$as_me:$LINENO: result: yes" >&5
15004 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_SYSCTL 1
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15012 { echo "$as_me:$LINENO: result: not usable" >&5
15013 echo "${ECHO_T}not usable" >&6; }
15016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 { echo "$as_me:$LINENO: checking for sysinfo" >&5
15019 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <sys/types.h>
15027 #include <sys/sysinfo.h>
15031 struct sysinfo sinfo;
15034 (void)sysinfo(&sinfo);
15035 t = sinfo.totalram;
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15045 *) ac_try_echo
=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_compile") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1
>conftest.err
15052 cat conftest.err
>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest.
$ac_objext; then
15058 { echo "$as_me:$LINENO: result: yes" >&5
15059 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15060 #define HAVE_SYSINFO 1
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.
$ac_ext >&5
15067 { echo "$as_me:$LINENO: result: not usable" >&5
15068 echo "${ECHO_T}not usable" >&6; }
15071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15073 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15074 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
15075 cat >conftest.
$ac_ext <<_ACEOF
15078 cat confdefs.h
>>conftest.
$ac_ext
15079 cat >>conftest.
$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <sys/types.h>
15082 #include <sys/sysinfo.h>
15086 struct sysinfo sinfo;
15087 sinfo.mem_unit = 1;
15093 rm -f conftest.
$ac_objext
15094 if { (ac_try
="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest.$ac_objext; then
15110 { echo "$as_me:$LINENO: result: yes" >&5
15111 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_SYSINFO_MEM_UNIT 1
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 { echo "$as_me:$LINENO: result: no" >&5
15120 echo "${ECHO_T}no" >&6; }
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 { echo "$as_me:$LINENO: checking for sysconf" >&5
15126 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
15127 cat >conftest.$ac_ext <<_ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <unistd.h>
15137 (void)sysconf(_SC_PAGESIZE);
15138 (void)sysconf(_SC_PHYS_PAGES);
15144 rm -f conftest.$ac_objext
15145 if { (ac_try="$ac_compile"
15146 case "(($ac_try" in
15147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15148 *) ac_try_echo
=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_compile") 2>conftest.er1
15153 grep -v '^ *+' conftest.er1
>conftest.err
15155 cat conftest.err
>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest.
$ac_objext; then
15161 { echo "$as_me:$LINENO: result: yes" >&5
15162 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15163 #define HAVE_SYSCONF 1
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.
$ac_ext >&5
15170 { echo "$as_me:$LINENO: result: not usable" >&5
15171 echo "${ECHO_T}not usable" >&6; }
15174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15177 { echo "$as_me:$LINENO: checking size of int" >&5
15178 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15179 if test "${ac_cv_sizeof_int+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 if test "$cross_compiling" = yes; then
15183 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
15184 echo "$as_me: error: failed to compile test program" >&2;}
15185 { (exit 1); exit 1; }; }
15187 cat >conftest.
$ac_ext <<_ACEOF
15190 cat confdefs.h
>>conftest.
$ac_ext
15191 cat >>conftest.
$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15196 # include <stdlib.h>
15197 # include <stddef.h>
15201 FILE *f=fopen("conftestval", "w");
15203 fprintf(f, "%d\n", (int)sizeof(int));
15207 rm -f conftest
$ac_exeext
15208 if { (ac_try
="$ac_link"
15209 case "(($ac_try" in
15210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_link") 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15220 *) ac_try_echo
=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_cv_sizeof_int
=`cat conftestval`
15229 echo "$as_me: program exited with status $ac_status" >&5
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.
$ac_ext >&5
15233 ( exit $ac_status )
15236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15243 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15244 cat >>confdefs.h
<<_ACEOF
15245 #define SIZEOF_INT $ac_cv_sizeof_int
15251 #include "confdefs.h"
15252 #ifdef HAVE_STRING_H
15253 # include <string.h>
15256 # include <stdlib.h>
15257 # include <stddef.h>
15261 strcpy(buf, "abcdefghi");
15262 mch_memmove(buf, buf + 2, 3);
15263 if (strncmp(buf, "ababcf", 6))
15265 strcpy(buf, "abcdefghi");
15266 mch_memmove(buf + 2, buf, 3);
15267 if (strncmp(buf, "cdedef", 6))
15269 exit(0); /* libc version works properly. */
15272 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15273 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15274 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 if test "$cross_compiling" = yes; then
15280 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15281 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15282 { (exit 1); exit 1; }; }
15285 cat >conftest.
$ac_ext <<_ACEOF
15286 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15288 rm -f conftest
$ac_exeext
15289 if { (ac_try
="$ac_link"
15290 case "(($ac_try" in
15291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15301 *) ac_try_echo
=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15309 vim_cv_memmove_handles_overlap
=yes
15312 echo "$as_me: program exited with status $ac_status" >&5
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.
$ac_ext >&5
15316 ( exit $ac_status )
15318 vim_cv_memmove_handles_overlap
=no
15321 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15327 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15328 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15330 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15331 cat >>confdefs.h
<<\_ACEOF
15332 #define USEMEMMOVE 1
15336 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15337 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15338 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 if test "$cross_compiling" = yes; then
15344 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15345 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15346 { (exit 1); exit 1; }; }
15349 cat >conftest.
$ac_ext <<_ACEOF
15350 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15352 rm -f conftest
$ac_exeext
15353 if { (ac_try
="$ac_link"
15354 case "(($ac_try" in
15355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15365 *) ac_try_echo
=$ac_try;;
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15373 vim_cv_bcopy_handles_overlap
=yes
15376 echo "$as_me: program exited with status $ac_status" >&5
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.
$ac_ext >&5
15380 ( exit $ac_status )
15382 vim_cv_bcopy_handles_overlap
=no
15385 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15391 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15392 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15394 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15395 cat >>confdefs.h
<<\_ACEOF
15400 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15401 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15402 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 if test "$cross_compiling" = yes; then
15408 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15409 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15410 { (exit 1); exit 1; }; }
15413 cat >conftest.
$ac_ext <<_ACEOF
15414 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15416 rm -f conftest
$ac_exeext
15417 if { (ac_try
="$ac_link"
15418 case "(($ac_try" in
15419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15429 *) ac_try_echo
=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15437 vim_cv_memcpy_handles_overlap
=yes
15440 echo "$as_me: program exited with status $ac_status" >&5
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.
$ac_ext >&5
15444 ( exit $ac_status )
15446 vim_cv_memcpy_handles_overlap
=no
15449 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15455 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15456 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15458 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15459 cat >>confdefs.h
<<\_ACEOF
15460 #define USEMEMCPY 1
15469 if test "$enable_multibyte" = "yes"; then
15470 cflags_save
=$CFLAGS
15471 ldflags_save
=$LDFLAGS
15472 if test "x$x_includes" != "xNONE" ; then
15473 CFLAGS
="$CFLAGS -I$x_includes"
15474 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
15475 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15476 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15477 cat >conftest.
$ac_ext <<_ACEOF
15480 cat confdefs.h
>>conftest.
$ac_ext
15481 cat >>conftest.
$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 #include <X11/Xlocale.h>
15492 rm -f conftest.
$ac_objext
15493 if { (ac_try
="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest.$ac_objext; then
15509 cat >conftest.$ac_ext <<_ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15516 /* Override any GCC internal prototype to avoid an error.
15517 Use char because int might match the return type of a GCC
15518 builtin and then its argument prototype would still apply. */
15522 char _Xsetlocale ();
15526 return _Xsetlocale ();
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15535 *) ac_try_echo
=$ac_try;;
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_link") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1
>conftest.err
15542 cat conftest.err
>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest
$ac_exeext &&
15548 $as_test_x conftest
$ac_exeext; then
15549 { echo "$as_me:$LINENO: result: yes" >&5
15550 echo "${ECHO_T}yes" >&6; }
15551 cat >>confdefs.h
<<\_ACEOF
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.
$ac_ext >&5
15559 { echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6; }
15563 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15564 conftest
$ac_exeext conftest.
$ac_ext
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.
$ac_ext >&5
15569 { echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6; }
15573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15575 CFLAGS
=$cflags_save
15576 LDFLAGS
=$ldflags_save
15579 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15580 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15581 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 ac_check_lib_save_LIBS
=$LIBS
15585 LIBS
="-lxpg4 $LIBS"
15586 cat >conftest.
$ac_ext <<_ACEOF
15589 cat confdefs.h
>>conftest.
$ac_ext
15590 cat >>conftest.
$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15593 /* Override any GCC internal prototype to avoid an error.
15594 Use char because int might match the return type of a GCC
15595 builtin and then its argument prototype would still apply. */
15599 char _xpg4_setrunelocale ();
15603 return _xpg4_setrunelocale ();
15608 rm -f conftest.
$ac_objext conftest
$ac_exeext
15609 if { (ac_try
="$ac_link"
15610 case "(($ac_try" in
15611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_link") 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest$ac_exeext &&
15625 $as_test_x conftest$ac_exeext; then
15626 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15635 conftest$ac_exeext conftest.$ac_ext
15636 LIBS=$ac_check_lib_save_LIBS
15638 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15639 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15640 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15641 LIBS="$LIBS -lxpg4"
15645 { echo "$as_me:$LINENO: checking how to create tags" >&5
15646 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15647 test -f tags && mv tags tags.save
15648 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15649 TAGPRG="ctags -I INIT+ --fields=+S"
15652 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15653 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15654 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15655 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15656 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15657 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15658 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15660 test -f tags.save && mv tags.save tags
15661 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15662 echo "${ECHO_T}$TAGPRG" >&6; }
15664 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15665 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15667 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15668 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15669 echo "${ECHO_T}$MANDEF" >&6; }
15670 if test "$MANDEF" = "man -s"; then
15671 cat >>confdefs.h <<\_ACEOF
15677 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15678 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15679 # Check whether --enable-nls was given.
15680 if test "${enable_nls+set}" = set; then
15681 enableval=$enable_nls;
15687 if test "$enable_nls" = "yes"; then
15688 { echo "$as_me:$LINENO: result: no" >&5
15689 echo "${ECHO_T}no" >&6; }
15691 INSTALL_LANGS=install-languages
15693 INSTALL_TOOL_LANGS=install-tool-languages
15696 # Extract the first word of "msgfmt", so it can be a program name with args.
15697 set dummy msgfmt; ac_word=$2
15698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15700 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 if test -n "$MSGFMT"; then
15704 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 for as_dir in $PATH
15710 test -z "$as_dir" && as_dir=.
15711 for ac_exec_ext in '' $ac_executable_extensions; do
15712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15713 ac_cv_prog_MSGFMT="msgfmt"
15714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15723 MSGFMT=$ac_cv_prog_MSGFMT
15724 if test -n "$MSGFMT"; then
15725 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15726 echo "${ECHO_T}$MSGFMT" >&6; }
15728 { echo "$as_me:$LINENO: result: no" >&5
15729 echo "${ECHO_T}no" >&6; }
15733 { echo "$as_me:$LINENO: checking for NLS" >&5
15734 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15735 if test -f po/Makefile; then
15737 if test -n "$MSGFMT"; then
15738 cat >conftest.$ac_ext <<_ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 #include <libintl.h>
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (ac_try="$ac_link"
15755 case "(($ac_try" in
15756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15757 *) ac_try_echo
=$ac_try;;
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_link") 2>conftest.er1
15762 grep -v '^ *+' conftest.er1
>conftest.err
15764 cat conftest.err
>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest
$ac_exeext &&
15770 $as_test_x conftest
$ac_exeext; then
15771 { echo "$as_me:$LINENO: result: gettext() works" >&5
15772 echo "${ECHO_T}gettext() works" >&6; }; have_gettext
="yes"
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.
$ac_ext >&5
15778 LIBS
="$LIBS -lintl"
15779 cat >conftest.
$ac_ext <<_ACEOF
15782 cat confdefs.h
>>conftest.
$ac_ext
15783 cat >>conftest.
$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785 #include <libintl.h>
15794 rm -f conftest.
$ac_objext conftest
$ac_exeext
15795 if { (ac_try
="$ac_link"
15796 case "(($ac_try" in
15797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_link") 2>conftest.er1
15803 grep -v '^ *+' conftest.er1 >conftest.err
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest$ac_exeext &&
15811 $as_test_x conftest$ac_exeext; then
15812 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15813 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15819 echo "${ECHO_T}gettext() doesn't work" >&6; };
15823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15824 conftest$ac_exeext conftest.$ac_ext
15827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828 conftest$ac_exeext conftest.$ac_ext
15830 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15831 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15833 if test $have_gettext = "yes"; then
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_GETTEXT 1
15841 for ac_func in bind_textdomain_codeset
15843 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15857 #define $ac_func innocuous_$ac_func
15859 /* System header to define __stub macros and hopefully few prototypes,
15860 which can conflict with char $ac_func (); below.
15861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15862 <limits.h> exists even on freestanding compilers. */
15865 # include <limits.h>
15867 # include <assert.h>
15872 /* Override any GCC internal prototype to avoid an error.
15873 Use char because int might match the return type of a GCC
15874 builtin and then its argument prototype would still apply. */
15879 /* The GNU C library defines this for functions which it implements
15880 to always fail with ENOSYS. Some functions are actually named
15881 something starting with __ and the normal name is an alias. */
15882 #if defined __stub_$ac_func || defined __stub___$ac_func
15889 return $ac_func ();
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15898 *) ac_try_echo
=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_link") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1
>conftest.err
15905 cat conftest.err
>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest
$ac_exeext &&
15911 $as_test_x conftest
$ac_exeext; then
15912 eval "$as_ac_var=yes"
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.
$ac_ext >&5
15917 eval "$as_ac_var=no"
15920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15921 conftest
$ac_exeext conftest.
$ac_ext
15923 ac_res
=`eval echo '${'$as_ac_var'}'`
15924 { echo "$as_me:$LINENO: result: $ac_res" >&5
15925 echo "${ECHO_T}$ac_res" >&6; }
15926 if test `eval echo '${'$as_ac_var'}'` = yes; then
15927 cat >>confdefs.h
<<_ACEOF
15928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15934 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15935 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15936 cat >conftest.
$ac_ext <<_ACEOF
15939 cat confdefs.h
>>conftest.
$ac_ext
15940 cat >>conftest.
$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <libintl.h>
15943 extern int _nl_msg_cat_cntr;
15947 ++_nl_msg_cat_cntr;
15952 rm -f conftest.
$ac_objext conftest
$ac_exeext
15953 if { (ac_try
="$ac_link"
15954 case "(($ac_try" in
15955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_link") 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } && {
15966 test -z "$ac_c_werror_flag" ||
15967 test ! -s conftest.err
15968 } && test -s conftest$ac_exeext &&
15969 $as_test_x conftest$ac_exeext; then
15970 { echo "$as_me:$LINENO: result: yes" >&5
15971 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_NL_MSG_CAT_CNTR 1
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15984 conftest$ac_exeext conftest.$ac_ext
15987 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15988 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15991 { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15995 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15996 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15997 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15998 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16002 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
16004 # Is the header compilable?
16005 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16006 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
16007 cat >conftest.$ac_ext <<_ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 $ac_includes_default
16016 rm -f conftest.$ac_objext
16017 if { (ac_try="$ac_compile"
16018 case "(($ac_try" in
16019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16020 *) ac_try_echo
=$ac_try;;
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_compile") 2>conftest.er1
16025 grep -v '^ *+' conftest.er1
>conftest.err
16027 cat conftest.err
>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } && {
16030 test -z "$ac_c_werror_flag" ||
16031 test ! -s conftest.err
16032 } && test -s conftest.
$ac_objext; then
16033 ac_header_compiler
=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.
$ac_ext >&5
16038 ac_header_compiler
=no
16041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043 echo "${ECHO_T}$ac_header_compiler" >&6; }
16045 # Is the header present?
16046 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16047 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
16048 cat >conftest.
$ac_ext <<_ACEOF
16051 cat confdefs.h
>>conftest.
$ac_ext
16052 cat >>conftest.
$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16056 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16057 case "(($ac_try" in
16058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } >/dev/null && {
16069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16072 ac_header_preproc=yes
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ac_header_preproc=no
16080 rm -f conftest.err conftest.$ac_ext
16081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16082 echo "${ECHO_T}$ac_header_preproc" >&6; }
16084 # So? What about this header?
16085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16087 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16088 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16090 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16091 ac_header_preproc=yes
16094 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16095 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16097 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16099 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16101 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16103 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16105 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16109 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16110 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
16111 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 ac_cv_header_dlfcn_h=$ac_header_preproc
16116 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16117 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
16120 if test $ac_cv_header_dlfcn_h = yes; then
16123 if test "${ac_cv_header_dl_h+set}" = set; then
16124 { echo "$as_me:$LINENO: checking for dl.h" >&5
16125 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16126 if test "${ac_cv_header_dl_h+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16130 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16132 # Is the header compilable?
16133 { echo "$as_me:$LINENO: checking dl.h usability" >&5
16134 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 $ac_includes_default
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16148 *) ac_try_echo
=$ac_try;;
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16153 grep -v '^ *+' conftest.er1
>conftest.err
16155 cat conftest.err
>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && {
16158 test -z "$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 } && test -s conftest.
$ac_objext; then
16161 ac_header_compiler
=yes
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.
$ac_ext >&5
16166 ac_header_compiler
=no
16169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16171 echo "${ECHO_T}$ac_header_compiler" >&6; }
16173 # Is the header present?
16174 { echo "$as_me:$LINENO: checking dl.h presence" >&5
16175 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
16176 cat >conftest.
$ac_ext <<_ACEOF
16179 cat confdefs.h
>>conftest.
$ac_ext
16180 cat >>conftest.
$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16184 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16185 case "(($ac_try" in
16186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16192 grep -v '^ *+' conftest.er1 >conftest.err
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } >/dev/null && {
16197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16198 test ! -s conftest.err
16200 ac_header_preproc=yes
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ac_header_preproc=no
16208 rm -f conftest.err conftest.$ac_ext
16209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16210 echo "${ECHO_T}$ac_header_preproc" >&6; }
16212 # So? What about this header?
16213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16215 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16216 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16218 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16219 ac_header_preproc=yes
16222 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16223 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16225 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16227 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16229 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16231 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16233 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16237 { echo "$as_me:$LINENO: checking for dl.h" >&5
16238 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16239 if test "${ac_cv_header_dl_h+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 ac_cv_header_dl_h=$ac_header_preproc
16244 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16245 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16248 if test $ac_cv_header_dl_h = yes; then
16256 if test x${DLL} = xdlfcn.h; then
16258 cat >>confdefs.h <<\_ACEOF
16259 #define HAVE_DLFCN_H 1
16262 { echo "$as_me:$LINENO: checking for dlopen()" >&5
16263 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16275 extern void* dlopen();
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16286 *) ac_try_echo
=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1
>conftest.err
16293 cat conftest.err
>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest
$ac_exeext &&
16299 $as_test_x conftest
$ac_exeext; then
16300 { echo "$as_me:$LINENO: result: yes" >&5
16301 echo "${ECHO_T}yes" >&6; };
16303 cat >>confdefs.h
<<\_ACEOF
16304 #define HAVE_DLOPEN 1
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.
$ac_ext >&5
16311 { echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6; };
16313 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16314 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16317 cat >conftest.
$ac_ext <<_ACEOF
16320 cat confdefs.h
>>conftest.
$ac_ext
16321 cat >>conftest.
$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16328 extern void* dlopen();
16335 rm -f conftest.
$ac_objext conftest
$ac_exeext
16336 if { (ac_try
="$ac_link"
16337 case "(($ac_try" in
16338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 { echo "$as_me:$LINENO: result: yes" >&5
16354 echo "${ECHO_T}yes" >&6; };
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_DLOPEN 1
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 { echo "$as_me:$LINENO: result: no" >&5
16365 echo "${ECHO_T}no" >&6; };
16369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16370 conftest$ac_exeext conftest.$ac_ext
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374 conftest$ac_exeext conftest.$ac_ext
16375 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16376 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16388 extern void* dlsym();
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16399 *) ac_try_echo
=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>conftest.er1
16404 grep -v '^ *+' conftest.er1
>conftest.err
16406 cat conftest.err
>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest
$ac_exeext &&
16412 $as_test_x conftest
$ac_exeext; then
16413 { echo "$as_me:$LINENO: result: yes" >&5
16414 echo "${ECHO_T}yes" >&6; };
16416 cat >>confdefs.h
<<\_ACEOF
16417 #define HAVE_DLSYM 1
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.
$ac_ext >&5
16424 { echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6; };
16426 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16427 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16430 cat >conftest.
$ac_ext <<_ACEOF
16433 cat confdefs.h
>>conftest.
$ac_ext
16434 cat >>conftest.
$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16441 extern void* dlsym();
16448 rm -f conftest.
$ac_objext conftest
$ac_exeext
16449 if { (ac_try
="$ac_link"
16450 case "(($ac_try" in
16451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_link") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1 >conftest.err
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest$ac_exeext &&
16465 $as_test_x conftest$ac_exeext; then
16466 { echo "$as_me:$LINENO: result: yes" >&5
16467 echo "${ECHO_T}yes" >&6; };
16469 cat >>confdefs.h <<\_ACEOF
16470 #define HAVE_DLSYM 1
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 { echo "$as_me:$LINENO: result: no" >&5
16478 echo "${ECHO_T}no" >&6; };
16482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16483 conftest$ac_exeext conftest.$ac_ext
16486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16487 conftest$ac_exeext conftest.$ac_ext
16488 elif test x${DLL} = xdl.h; then
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_DL_H 1
16494 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16495 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&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* shl_load();
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_link") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1
>conftest.err
16525 cat conftest.err
>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest
$ac_exeext &&
16531 $as_test_x conftest
$ac_exeext; then
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; };
16535 cat >>confdefs.h
<<\_ACEOF
16536 #define HAVE_SHL_LOAD 1
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.
$ac_ext >&5
16543 { echo "$as_me:$LINENO: result: no" >&5
16544 echo "${ECHO_T}no" >&6; };
16545 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16546 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16549 cat >conftest.
$ac_ext <<_ACEOF
16552 cat confdefs.h
>>conftest.
$ac_ext
16553 cat >>conftest.
$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16560 extern void* shl_load();
16567 rm -f conftest.
$ac_objext conftest
$ac_exeext
16568 if { (ac_try
="$ac_link"
16569 case "(($ac_try" in
16570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_link") 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest$ac_exeext &&
16584 $as_test_x conftest$ac_exeext; then
16585 { echo "$as_me:$LINENO: result: yes" >&5
16586 echo "${ECHO_T}yes" >&6; };
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_SHL_LOAD 1
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 { echo "$as_me:$LINENO: result: no" >&5
16597 echo "${ECHO_T}no" >&6; };
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16606 conftest$ac_exeext conftest.$ac_ext
16609 for ac_header in setjmp.h
16611 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_res=`eval echo '${'$as_ac_Header'}'`
16619 { echo "$as_me:$LINENO: result: $ac_res" >&5
16620 echo "${ECHO_T}$ac_res" >&6; }
16622 # Is the header compilable?
16623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16632 #include <$ac_header>
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16638 *) ac_try_echo
=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1
>conftest.err
16645 cat conftest.err
>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.
$ac_objext; then
16651 ac_header_compiler
=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.
$ac_ext >&5
16656 ac_header_compiler
=no
16659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16661 echo "${ECHO_T}$ac_header_compiler" >&6; }
16663 # Is the header present?
16664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16666 cat >conftest.
$ac_ext <<_ACEOF
16669 cat confdefs.h
>>conftest.
$ac_ext
16670 cat >>conftest.
$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 #include <$ac_header>
16674 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16675 case "(($ac_try" in
16676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } >/dev/null && {
16687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16690 ac_header_preproc=yes
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_header_preproc=no
16698 rm -f conftest.err conftest.$ac_ext
16699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16700 echo "${ECHO_T}$ac_header_preproc" >&6; }
16702 # So? What about this header?
16703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16709 ac_header_preproc=yes
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 eval "$as_ac_Header=\$ac_header_preproc"
16734 ac_res=`eval echo '${'$as_ac_Header'}'`
16735 { echo "$as_me:$LINENO: result: $ac_res" >&5
16736 echo "${ECHO_T}$ac_res" >&6; }
16739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16740 cat >>confdefs.h <<_ACEOF
16741 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16749 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16750 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16751 LIBS=`echo $LIBS |
sed s
/-ldl//`
16752 PERL_LIBS="$PERL_LIBS -ldl"
16756 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16757 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16758 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16759 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16760 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16761 || test "x$features" = "xhuge"; then
16762 LIBS="$LIBS -framework Carbon"
16763 { echo "$as_me:$LINENO: result: yes" >&5
16764 echo "${ECHO_T}yes" >&6; }
16766 { echo "$as_me:$LINENO: result: no" >&5
16767 echo "${ECHO_T}no" >&6; }
16771 if test "x$MACOSX" = "xyes"; then
16772 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16773 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16775 # Check whether --with-xcodecfg was given.
16776 if test "${with_xcodecfg+set}" = set; then
16777 withval=$with_xcodecfg; XCODEFLAGS="$XCODEFLAGS -configuration $withval"
16778 { echo "$as_me:$LINENO: result: $withval" >&5
16779 echo "${ECHO_T}$withval" >&6; }
16781 { echo "$as_me:$LINENO: result: using default" >&5
16782 echo "${ECHO_T}using default" >&6; }
16790 DEPEND_CFLAGS_FILTER=
16791 if test "$GCC" = yes; then
16792 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16793 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16794 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
16795 if test "$gccmajor" -gt "2"; then
16796 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16797 { echo "$as_me:$LINENO: result: yes" >&5
16798 echo "${ECHO_T}yes" >&6; }
16800 { echo "$as_me:$LINENO: result: no" >&5
16801 echo "${ECHO_T}no" >&6; }
16803 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16804 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16805 if test "$gccmajor" -gt "3"; then
16806 CFLAGS=`echo "$CFLAGS" |
sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
16807 { echo "$as_me:$LINENO: result: yes" >&5
16808 echo "${ECHO_T}yes" >&6; }
16810 { echo "$as_me:$LINENO: result: no" >&5
16811 echo "${ECHO_T}no" >&6; }
16816 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16818 cat >confcache <<\_ACEOF
16819 # This file is a shell script that caches the results of configure
16820 # tests run on this system so they can be shared between configure
16821 # scripts and configure runs, see configure's option --config-cache.
16822 # It is not useful on other systems. If it contains results you don't
16823 # want to keep, you may remove or edit it.
16825 # config.status only pays attention to the cache file if you give it
16826 # the --recheck option to rerun configure.
16828 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
16829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16830 # following values.
16834 # The following way of writing the cache mishandles newlines in values,
16835 # but we know of no workaround that is simple, portable, and efficient.
16836 # So, we kill variables containing newlines.
16837 # Ultrix sh set writes to stderr and can't be redirected directly,
16838 # and sets the high bit in the cache file unless we assign to the vars.
16840 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16841 eval ac_val
=\$
$ac_var
16845 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16846 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16849 _ | IFS | as_nl
) ;; #(
16850 *) $as_unset $ac_var ;;
16856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16857 *${as_nl}ac_space
=\
*)
16858 # `set' does not quote correctly, so add quotes (double-quote
16859 # substitution turns \\\\ into \\, and sed turns \\ into \).
16862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16865 # `set' quotes correctly as required by POSIX, so do not add quotes.
16866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16879 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16880 if test -w "$cache_file"; then
16881 test "x$cache_file" != "x/dev/null" &&
16882 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16883 echo "$as_me: updating cache $cache_file" >&6;}
16884 cat confcache
>$cache_file
16886 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16887 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16892 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16893 # Let make expand exec_prefix.
16894 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16896 DEFS
=-DHAVE_CONFIG_H
16900 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16901 # 1. Remove the extension, and $U if already installed.
16902 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16903 ac_i
=`echo "$ac_i" | sed "$ac_script"`
16904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16905 # will be set to the directory where LIBOBJS objects are built.
16906 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16907 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16909 LIBOBJS
=$ac_libobjs
16911 LTLIBOBJS
=$ac_ltlibobjs
16915 : ${CONFIG_STATUS=./config.status}
16916 ac_clean_files_save
=$ac_clean_files
16917 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16920 cat >$CONFIG_STATUS <<_ACEOF
16922 # Generated by $as_me.
16923 # Run this file to recreate the current configuration.
16924 # Compiler output produced by configure, useful for debugging
16925 # configure, is in config.log if it exists.
16928 ac_cs_recheck=false
16930 SHELL=\${CONFIG_SHELL-$SHELL}
16933 cat >>$CONFIG_STATUS <<\_ACEOF
16934 ## --------------------- ##
16935 ## M4sh Initialization. ##
16936 ## --------------------- ##
16938 # Be more Bourne compatible
16939 DUALCASE
=1; export DUALCASE
# for MKS sh
16940 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16943 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16944 # is contrary to our usage. Disable this feature.
16945 alias -g '${1+"$@"}'='"$@"'
16946 setopt NO_GLOB_SUBST
16948 case `(set -o) 2>/dev/null` in
16949 *posix
*) set -o posix
;;
16958 # Avoid depending upon Character Ranges.
16959 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16960 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16961 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16962 as_cr_digits
='0123456789'
16963 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16965 # The user is always right.
16966 if test "${PATH_SEPARATOR+set}" != set; then
16967 echo "#! /bin/sh" >conf$$.sh
16968 echo "exit 0" >>conf$$.sh
16970 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16978 # Support unset when possible.
16979 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16987 # We need space, tab and new line, in precisely that order. Quoting is
16988 # there to prevent editors from complaining about space-tab.
16989 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16990 # splitting by setting IFS to empty value.)
16995 # Find who we are. Look in the path if we contain no directory separator.
16997 *[\\/]* ) as_myself
=$0 ;;
16998 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16999 for as_dir
in $PATH
17002 test -z "$as_dir" && as_dir
=.
17003 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17009 # We did not find ourselves, most probably we were run as `sh COMMAND'
17010 # in which case we are not to be found in the path.
17011 if test "x$as_myself" = x
; then
17014 if test ! -f "$as_myself"; then
17015 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17016 { (exit 1); exit 1; }
17019 # Work around bugs in pre-3.0 UWIN ksh.
17020 for as_var
in ENV MAIL MAILPATH
17021 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17031 LC_TELEPHONE LC_TIME
17033 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17034 eval $as_var=C
; export $as_var
17036 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17040 # Required to use basename.
17041 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17042 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17048 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17049 as_basename
=basename
17055 # Name of the executable.
17056 as_me
=`$as_basename -- "$0" ||
17057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17058 X"$0" : 'X\(//\)$' \| \
17059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17061 sed '/^.*\/\([^/][^/]*\)\/*$/{
17080 as_lineno_1
=$LINENO
17081 as_lineno_2
=$LINENO
17082 test "x$as_lineno_1" != "x$as_lineno_2" &&
17083 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17085 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17086 # uniformly replaced by the line number. The first 'sed' inserts a
17087 # line-number line after each line using $LINENO; the second 'sed'
17088 # does the real work. The second script uses 'N' to pair each
17089 # line-number line with the line containing $LINENO, and appends
17090 # trailing '-' during substitution so that $LINENO is not a special
17091 # case at line end.
17092 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17093 # scripts with optimization help from Paolo Bonzini. Blame Lee
17094 # E. McMahon (1931-1989) for sed's syntax. :-)
17106 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17109 ' >$as_me.lineno
&&
17110 chmod +x
"$as_me.lineno" ||
17111 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17112 { (exit 1); exit 1; }; }
17114 # Don't try to exec as it changes $[0], causing all sort of problems
17115 # (the dirname of $[0] is not the place where we might find the
17116 # original and so on. Autoconf is especially sensitive to this).
17117 .
"./$as_me.lineno"
17118 # Exit status is that of the last command.
17123 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17129 ECHO_C
= ECHO_N
= ECHO_T
=
17130 case `echo -n x` in
17132 case `echo 'x\c'` in
17133 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17140 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17141 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17147 rm -f conf$$ conf$$.exe conf$$.
file
17148 if test -d conf$$.dir
; then
17149 rm -f conf$$.dir
/conf$$.
file
17155 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17157 # ... but there are two gotchas:
17158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17160 # In both cases, we have to default to `cp -p'.
17161 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17163 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17168 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17169 rmdir conf$$.dir
2>/dev
/null
17171 if mkdir
-p .
2>/dev
/null
; then
17174 test -d .
/-p && rmdir .
/-p
17178 if test -x / >/dev
/null
2>&1; then
17179 as_test_x
='test -x'
17181 if ls -dL / >/dev
/null
2>&1; then
17188 if test -d "$1"; then
17194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17195 ???[sx]*):;;*)false;;esac;fi
17199 as_executable_p
=$as_test_x
17201 # Sed expression to map a string onto a valid CPP name.
17202 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17204 # Sed expression to map a string onto a valid variable name.
17205 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17210 # Save the log message, to keep $[0] and so on meaningful, and to
17211 # report actual input values of CONFIG_FILES etc. instead of their
17212 # values after options handling.
17214 This file was extended by $as_me, which was
17215 generated by GNU Autoconf 2.61. Invocation command line was
17217 CONFIG_FILES = $CONFIG_FILES
17218 CONFIG_HEADERS = $CONFIG_HEADERS
17219 CONFIG_LINKS = $CONFIG_LINKS
17220 CONFIG_COMMANDS = $CONFIG_COMMANDS
17223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17228 cat >>$CONFIG_STATUS <<_ACEOF
17229 # Files that config.status was made for.
17230 config_files="$ac_config_files"
17231 config_headers="$ac_config_headers"
17235 cat >>$CONFIG_STATUS <<\_ACEOF
17237 \`$as_me' instantiates files from templates according to the
17238 current configuration.
17240 Usage: $0 [OPTIONS] [FILE]...
17242 -h, --help print this help, then exit
17243 -V, --version print version number and configuration settings, then exit
17244 -q, --quiet do not print progress messages
17245 -d, --debug don't remove temporary files
17246 --recheck update $as_me by reconfiguring in the same conditions
17247 --file=FILE[:TEMPLATE]
17248 instantiate the configuration file FILE
17249 --header=FILE[:TEMPLATE]
17250 instantiate the configuration header FILE
17252 Configuration files:
17255 Configuration headers:
17258 Report bugs to <bug-autoconf@gnu.org>."
17261 cat >>$CONFIG_STATUS <<_ACEOF
17264 configured by $0, generated by GNU Autoconf 2.61,
17265 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17267 Copyright (C) 2006 Free Software Foundation, Inc.
17268 This config.status script is free software; the Free Software Foundation
17269 gives unlimited permission to copy, distribute and modify it."
17275 cat >>$CONFIG_STATUS <<\_ACEOF
17276 # If no file are specified by the user, then we need to provide default
17277 # value. By we need to know if files were specified by the user.
17283 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17284 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17295 # Handling of the options.
17296 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17298 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17299 echo "$ac_cs_version"; exit ;;
17300 --debug |
--debu |
--deb |
--de |
--d |
-d )
17302 --file |
--fil |
--fi |
--f )
17304 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17305 ac_need_defaults
=false
;;
17306 --header |
--heade |
--head |
--hea )
17308 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17309 ac_need_defaults
=false
;;
17311 # Conflict between --help and --header
17312 { echo "$as_me: error: ambiguous option: $1
17313 Try \`$0 --help' for more information." >&2
17314 { (exit 1); exit 1; }; };;
17315 --help |
--hel |
-h )
17316 echo "$ac_cs_usage"; exit ;;
17317 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17318 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17321 # This is an error.
17322 -*) { echo "$as_me: error: unrecognized option: $1
17323 Try \`$0 --help' for more information." >&2
17324 { (exit 1); exit 1; }; } ;;
17326 *) ac_config_targets
="$ac_config_targets $1"
17327 ac_need_defaults
=false
;;
17333 ac_configure_extra_args
=
17335 if $ac_cs_silent; then
17337 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17341 cat >>$CONFIG_STATUS <<_ACEOF
17342 if \$ac_cs_recheck; then
17343 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17344 CONFIG_SHELL=$SHELL
17345 export CONFIG_SHELL
17346 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17350 cat >>$CONFIG_STATUS <<\_ACEOF
17351 exec 5>>auto
/config.log
17354 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17355 ## Running $as_me. ##
17361 cat >>$CONFIG_STATUS <<_ACEOF
17364 cat >>$CONFIG_STATUS <<\_ACEOF
17366 # Handling of arguments.
17367 for ac_config_target
in $ac_config_targets
17369 case $ac_config_target in
17370 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17371 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17375 { (exit 1); exit 1; }; };;
17380 # If the user did not use the arguments to specify the items to instantiate,
17381 # then the envvar interface is used. Set only those that are not.
17382 # We use the long form for the default assignment because of an extremely
17383 # bizarre bug on SunOS 4.1.3.
17384 if $ac_need_defaults; then
17385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17389 # Have a temporary directory for convenience. Make it in the build tree
17390 # simply because there is no reason against having it here, and in addition,
17391 # creating and moving files from /tmp can sometimes cause problems.
17392 # Hook for its removal unless debugging.
17393 # Note that there is a small window in which the directory will not be cleaned:
17394 # after its creation but before its name has been assigned to `$tmp'.
17398 trap 'exit_status=$?
17399 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17401 trap '{ (exit 1); exit 1; }' 1 2 13 15
17403 # Create a (secure) tmp directory for tmp files.
17406 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17407 test -n "$tmp" && test -d "$tmp"
17410 tmp
=.
/conf$$
-$RANDOM
17411 (umask 077 && mkdir
"$tmp")
17414 echo "$me: cannot create a temporary directory in ." >&2
17415 { (exit 1); exit 1; }
17419 # Set up the sed scripts for CONFIG_FILES section.
17422 # No need to generate the scripts if there are no CONFIG_FILES.
17423 # This happens for instance when ./config.status config.h
17424 if test -n "$CONFIG_FILES"; then
17431 for ac_last_try
in false false false false false
:; do
17432 cat >conf$
$subs.
sed <<_ACEOF
17433 SHELL!$SHELL$ac_delim
17434 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17435 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17436 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17437 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17438 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17439 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17440 exec_prefix!$exec_prefix$ac_delim
17441 prefix!$prefix$ac_delim
17442 program_transform_name!$program_transform_name$ac_delim
17443 bindir!$bindir$ac_delim
17444 sbindir!$sbindir$ac_delim
17445 libexecdir!$libexecdir$ac_delim
17446 datarootdir!$datarootdir$ac_delim
17447 datadir!$datadir$ac_delim
17448 sysconfdir!$sysconfdir$ac_delim
17449 sharedstatedir!$sharedstatedir$ac_delim
17450 localstatedir!$localstatedir$ac_delim
17451 includedir!$includedir$ac_delim
17452 oldincludedir!$oldincludedir$ac_delim
17453 docdir!$docdir$ac_delim
17454 infodir!$infodir$ac_delim
17455 htmldir!$htmldir$ac_delim
17456 dvidir!$dvidir$ac_delim
17457 pdfdir!$pdfdir$ac_delim
17458 psdir!$psdir$ac_delim
17459 libdir!$libdir$ac_delim
17460 localedir!$localedir$ac_delim
17461 mandir!$mandir$ac_delim
17462 DEFS!$DEFS$ac_delim
17463 ECHO_C!$ECHO_C$ac_delim
17464 ECHO_N!$ECHO_N$ac_delim
17465 ECHO_T!$ECHO_T$ac_delim
17466 LIBS!$LIBS$ac_delim
17467 build_alias!$build_alias$ac_delim
17468 host_alias!$host_alias$ac_delim
17469 target_alias!$target_alias$ac_delim
17470 SET_MAKE!$SET_MAKE$ac_delim
17472 CFLAGS!$CFLAGS$ac_delim
17473 LDFLAGS!$LDFLAGS$ac_delim
17474 CPPFLAGS!$CPPFLAGS$ac_delim
17475 ac_ct_CC!$ac_ct_CC$ac_delim
17476 EXEEXT!$EXEEXT$ac_delim
17477 OBJEXT!$OBJEXT$ac_delim
17479 GREP!$GREP$ac_delim
17480 EGREP!$EGREP$ac_delim
17482 STRIP!$STRIP$ac_delim
17483 CPP_MM!$CPP_MM$ac_delim
17484 XCODE_SELECT!$XCODE_SELECT$ac_delim
17485 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17486 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17487 VIMNAME!$VIMNAME$ac_delim
17488 EXNAME!$EXNAME$ac_delim
17489 VIEWNAME!$VIEWNAME$ac_delim
17490 line_break!$line_break$ac_delim
17491 dovimdiff!$dovimdiff$ac_delim
17492 dogvimdiff!$dogvimdiff$ac_delim
17493 compiledby!$compiledby$ac_delim
17494 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17495 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17496 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17497 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17498 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17499 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17500 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17501 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17502 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17503 vi_cv_perllib!$vi_cv_perllib$ac_delim
17504 shrpenv!$shrpenv$ac_delim
17505 PERL_SRC!$PERL_SRC$ac_delim
17506 PERL_OBJ!$PERL_OBJ$ac_delim
17507 PERL_PRO!$PERL_PRO$ac_delim
17508 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17509 PERL_LIBS!$PERL_LIBS$ac_delim
17510 vi_cv_path_python!$vi_cv_path_python$ac_delim
17511 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17512 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17513 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17514 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17515 PYTHON_SRC!$PYTHON_SRC$ac_delim
17516 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17517 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17518 TCL_SRC!$TCL_SRC$ac_delim
17519 TCL_OBJ!$TCL_OBJ$ac_delim
17520 TCL_PRO!$TCL_PRO$ac_delim
17521 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17522 TCL_LIBS!$TCL_LIBS$ac_delim
17523 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17524 RUBY_SRC!$RUBY_SRC$ac_delim
17525 RUBY_OBJ!$RUBY_OBJ$ac_delim
17526 RUBY_PRO!$RUBY_PRO$ac_delim
17527 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17528 RUBY_LIBS!$RUBY_LIBS$ac_delim
17529 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17532 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17534 elif $ac_last_try; then
17535 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17536 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17537 { (exit 1); exit 1; }; }
17539 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
17543 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17544 if test -n "$ac_eof"; then
17545 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
17546 ac_eof
=`expr $ac_eof + 1`
17549 cat >>$CONFIG_STATUS <<_ACEOF
17550 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17554 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17555 s/^/s,@/; s/!/@,|#_!!_#|/
17558 s/'"$ac_delim"'$/,g/; t
17560 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17561 ' >>$CONFIG_STATUS <conf$
$subs.
sed
17562 rm -f conf$
$subs.
sed
17563 cat >>$CONFIG_STATUS <<_ACEOF
17569 for ac_last_try
in false false false false false
:; do
17570 cat >conf$
$subs.
sed <<_ACEOF
17571 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17572 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17573 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17574 SNIFF_SRC!$SNIFF_SRC$ac_delim
17575 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17576 xmkmfpath!$xmkmfpath$ac_delim
17577 XMKMF!$XMKMF$ac_delim
17578 X_CFLAGS!$X_CFLAGS$ac_delim
17579 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17580 X_LIBS!$X_LIBS$ac_delim
17581 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17582 X_LIB!$X_LIB$ac_delim
17583 GTK_CONFIG!$GTK_CONFIG$ac_delim
17584 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17585 PKG_CONFIG!$PKG_CONFIG$ac_delim
17586 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17587 GTK_LIBS!$GTK_LIBS$ac_delim
17588 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17589 GNOME_LIBS!$GNOME_LIBS$ac_delim
17590 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17591 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17592 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17593 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17594 NARROW_PROTO!$NARROW_PROTO$ac_delim
17595 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17596 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17597 GUITYPE!$GUITYPE$ac_delim
17598 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17599 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17600 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17601 TAGPRG!$TAGPRG$ac_delim
17602 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17603 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17604 MSGFMT!$MSGFMT$ac_delim
17605 MAKEMO!$MAKEMO$ac_delim
17606 XCODEFLAGS!$XCODEFLAGS$ac_delim
17607 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17608 LIBOBJS!$LIBOBJS$ac_delim
17609 LTLIBOBJS!$LTLIBOBJS$ac_delim
17612 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
17614 elif $ac_last_try; then
17615 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17616 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17617 { (exit 1); exit 1; }; }
17619 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
17623 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17624 if test -n "$ac_eof"; then
17625 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
17626 ac_eof
=`expr $ac_eof + 1`
17629 cat >>$CONFIG_STATUS <<_ACEOF
17630 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17634 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17635 s/^/s,@/; s/!/@,|#_!!_#|/
17638 s/'"$ac_delim"'$/,g/; t
17640 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17641 ' >>$CONFIG_STATUS <conf$
$subs.
sed
17642 rm -f conf$
$subs.
sed
17643 cat >>$CONFIG_STATUS <<_ACEOF
17650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17652 # trailing colons and then remove the whole line if VPATH becomes empty
17653 # (actually we leave an empty line to preserve line numbers).
17654 if test "x$srcdir" = x.
; then
17655 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17656 s/:*\$(srcdir):*/:/
17657 s/:*\${srcdir}:*/:/
17659 s/^\([^=]*=[ ]*\):*/\1/
17665 cat >>$CONFIG_STATUS <<\_ACEOF
17666 fi # test -n "$CONFIG_FILES"
17669 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
17672 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17674 case $ac_mode$ac_tag in
17676 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17677 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17678 { (exit 1); exit 1; }; };;
17679 :[FH
]-) ac_tag
=-:-;;
17680 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17697 -) ac_f
="$tmp/stdin";;
17698 *) # Look for the file first in the build tree, then in the source tree
17699 # (if the path is not absolute). The absolute path cannot be DOS-style,
17700 # because $ac_f cannot contain `:'.
17704 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17706 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17707 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17708 { (exit 1); exit 1; }; };;
17710 ac_file_inputs
="$ac_file_inputs $ac_f"
17713 # Let's still pretend it is `configure' which instantiates (i.e., don't
17714 # use $as_me), people would be surprised to read:
17715 # /* config.h. Generated by config.status. */
17716 configure_input
="Generated from "`IFS=:
17717 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17718 if test x
"$ac_file" != x-
; then
17719 configure_input
="$ac_file. $configure_input"
17720 { echo "$as_me:$LINENO: creating $ac_file" >&5
17721 echo "$as_me: creating $ac_file" >&6;}
17725 *:-:* |
*:-) cat >"$tmp/stdin";;
17730 ac_dir
=`$as_dirname -- "$ac_file" ||
17731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17732 X"$ac_file" : 'X\(//\)[^/]' \| \
17733 X"$ac_file" : 'X\(//\)$' \| \
17734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17740 /^X\(\/\/\)[^/].*/{
17755 -*) as_dir
=.
/$as_dir;;
17757 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17761 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17762 *) as_qdir
=$as_dir;;
17764 as_dirs
="'$as_qdir' $as_dirs"
17765 as_dir
=`$as_dirname -- "$as_dir" ||
17766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17767 X"$as_dir" : 'X\(//\)[^/]' \| \
17768 X"$as_dir" : 'X\(//\)$' \| \
17769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17775 /^X\(\/\/\)[^/].*/{
17788 test -d "$as_dir" && break
17790 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17791 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17792 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17793 { (exit 1); exit 1; }; }; }
17797 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17799 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17800 # A ".." for each directory in $ac_dir_suffix.
17801 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17802 case $ac_top_builddir_sub in
17803 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17804 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17807 ac_abs_top_builddir
=$ac_pwd
17808 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17809 # for backward compatibility:
17810 ac_top_builddir
=$ac_top_build_prefix
17813 .
) # We are building in place.
17815 ac_top_srcdir
=$ac_top_builddir_sub
17816 ac_abs_top_srcdir
=$ac_pwd ;;
17817 [\\/]* | ?
:[\\/]* ) # Absolute name.
17818 ac_srcdir
=$srcdir$ac_dir_suffix;
17819 ac_top_srcdir
=$srcdir
17820 ac_abs_top_srcdir
=$srcdir ;;
17821 *) # Relative name.
17822 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17823 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17824 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17826 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17837 cat >>$CONFIG_STATUS <<\_ACEOF
17838 # If the template does not know about datarootdir, expand it.
17839 # FIXME: This hack should be removed a few years after 2.60.
17840 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17842 case `sed -n '/datarootdir/ {
17851 ' $ac_file_inputs` in
17852 *datarootdir
*) ac_datarootdir_seen
=yes;;
17853 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17854 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17855 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17857 cat >>$CONFIG_STATUS <<_ACEOF
17858 ac_datarootdir_hack='
17859 s&@datadir@&$datadir&g
17860 s&@docdir@&$docdir&g
17861 s&@infodir@&$infodir&g
17862 s&@localedir@&$localedir&g
17863 s&@mandir@&$mandir&g
17864 s&\\\${datarootdir}&$datarootdir&g' ;;
17868 # Neutralize VPATH when `$srcdir' = `.'.
17869 # Shell code in configure.ac might set extrasub.
17870 # FIXME: do we really want to maintain this feature?
17871 cat >>$CONFIG_STATUS <<_ACEOF
17875 cat >>$CONFIG_STATUS <<\_ACEOF
17877 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17878 s
&@configure_input@
&$configure_input&;t t
17879 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17880 s
&@srcdir@
&$ac_srcdir&;t t
17881 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17882 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17883 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17884 s
&@builddir@
&$ac_builddir&;t t
17885 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17886 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17887 $ac_datarootdir_hack
17888 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
17890 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17891 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17892 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17893 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17894 which seems to be undefined. Please make sure it is defined." >&5
17895 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17896 which seems to be undefined. Please make sure it is defined." >&2;}
17900 -) cat "$tmp/out"; rm -f "$tmp/out";;
17901 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17910 # Transform confdefs.h into a sed script `conftest.defines', that
17911 # substitutes the proper values into config.h.in to produce config.h.
17912 rm -f conftest.defines conftest.
tail
17913 # First, append a space to every undef/define line, to ease matching.
17914 echo 's/$/ /' >conftest.defines
17915 # Then, protect against being on the right side of a sed subst, or in
17916 # an unquoted here document, in config.status. If some macros were
17917 # called several times there might be several #defines for the same
17918 # symbol, which is useless. But do not sort them, since the last
17919 # AC_DEFINE must be honored.
17920 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
17921 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17922 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17923 # PARAMS is the parameter list in the macro definition--in most cases, it's
17924 # just an empty string.
17925 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17926 ac_dB
='\\)[ (].*,\\1define\\2'
17934 s/^[ ]*#[ ]*define[ ][ ]*//
17939 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17940 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17941 ' >>conftest.defines
17943 # Remove the space that was appended to ease matching.
17944 # Then replace #undef with comments. This is necessary, for
17945 # example, in the case of _POSIX_SOURCE, which is predefined and required
17946 # on some systems where configure will not decide to define it.
17947 # (The regexp can be short, since the line contains either #define or #undef.)
17949 s,^[ #]*u.*,/* & */,' >>conftest.defines
17951 # Break up conftest.defines:
17952 ac_max_sed_lines
=50
17954 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17955 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17956 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17958 ac_in
='$ac_file_inputs'
17959 ac_out
='"$tmp/out1"'
17960 ac_nxt
='"$tmp/out2"'
17964 # Write a here document:
17965 cat >>$CONFIG_STATUS <<_ACEOF
17966 # First, check the format of the line:
17967 cat >"\$tmp/defines.sed" <<\\CEOF
17968 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17969 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17973 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
17975 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17976 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
17977 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
17978 grep . conftest.
tail >/dev
/null ||
break
17979 rm -f conftest.defines
17980 mv conftest.
tail conftest.defines
17982 rm -f conftest.defines conftest.
tail
17984 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17985 cat >>$CONFIG_STATUS <<\_ACEOF
17986 if test x
"$ac_file" != x-
; then
17987 echo "/* $configure_input */" >"$tmp/config.h"
17988 cat "$ac_result" >>"$tmp/config.h"
17989 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
17990 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17991 echo "$as_me: $ac_file is unchanged" >&6;}
17994 mv "$tmp/config.h" $ac_file
17997 echo "/* $configure_input */"
18009 { (exit 0); exit 0; }
18011 chmod +x
$CONFIG_STATUS
18012 ac_clean_files
=$ac_clean_files_save
18015 # configure is writing to config.log, and then calls config.status.
18016 # config.status does its own redirection, appending to config.log.
18017 # Unfortunately, on DOS this fails, as config.log is still kept open
18018 # by configure, so config.status won't be able to write to it; its
18019 # output is simply discarded. So we exec the FD to /dev/null,
18020 # effectively closing config.log, so it can be properly (re)opened and
18021 # appended to by config.status. When coming back to configure, we
18022 # need to make the FD available again.
18023 if test "$no_create" != yes; then
18025 ac_config_status_args
=
18026 test "$silent" = yes &&
18027 ac_config_status_args
="$ac_config_status_args --quiet"
18029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18030 exec 5>>auto
/config.log
18031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18032 # would make configure fail if this is the last instruction.
18033 $ac_cs_success ||
{ (exit 1); exit 1; }