2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
715 PYTHON_GETPATH_CFLAGS
772 enable_option_checking
786 enable_mzschemeinterp
790 with_python_config_dir
824 ac_precious_vars
='build_alias
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
908 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
911 -build |
--build |
--buil |
--bui |
--bu)
912 ac_prev
=build_alias
;;
913 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
914 build_alias
=$ac_optarg ;;
916 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
917 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
918 ac_prev
=cache_file
;;
919 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
920 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
921 cache_file
=$ac_optarg ;;
924 cache_file
=config.cache
;;
926 -datadir |
--datadir |
--datadi |
--datad)
928 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
929 datadir
=$ac_optarg ;;
931 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
932 |
--dataroo |
--dataro |
--datar)
933 ac_prev
=datarootdir
;;
934 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
935 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
936 datarootdir
=$ac_optarg ;;
938 -disable-* |
--disable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943 { (exit 1); exit 1; }; }
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig
=$ac_useropt
972 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep
=', ';;
980 eval enable_
$ac_useropt=\
$ac_optarg ;;
982 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
983 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
984 |
--exec |
--exe |
--ex)
985 ac_prev
=exec_prefix
;;
986 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
987 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
988 |
--exec=* |
--exe=* |
--ex=*)
989 exec_prefix
=$ac_optarg ;;
991 -gas |
--gas |
--ga |
--g)
992 # Obsolete; use --with-gas.
995 -help |
--help |
--hel |
--he |
-h)
997 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
998 ac_init_help
=recursive
;;
999 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1000 ac_init_help
=short
;;
1002 -host |
--host |
--hos |
--ho)
1003 ac_prev
=host_alias
;;
1004 -host=* |
--host=* |
--hos=* |
--ho=*)
1005 host_alias
=$ac_optarg ;;
1007 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1009 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1011 htmldir
=$ac_optarg ;;
1013 -includedir |
--includedir |
--includedi |
--included |
--include \
1014 |
--includ |
--inclu |
--incl |
--inc)
1015 ac_prev
=includedir
;;
1016 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1017 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1018 includedir
=$ac_optarg ;;
1020 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1022 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1023 infodir
=$ac_optarg ;;
1025 -libdir |
--libdir |
--libdi |
--libd)
1027 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1028 libdir
=$ac_optarg ;;
1030 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1031 |
--libexe |
--libex |
--libe)
1032 ac_prev
=libexecdir
;;
1033 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1034 |
--libexe=* |
--libex=* |
--libe=*)
1035 libexecdir
=$ac_optarg ;;
1037 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1038 ac_prev
=localedir
;;
1039 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1040 localedir
=$ac_optarg ;;
1042 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1043 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1044 ac_prev
=localstatedir
;;
1045 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1046 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1047 localstatedir
=$ac_optarg ;;
1049 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1051 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1052 mandir
=$ac_optarg ;;
1054 -nfp |
--nfp |
--nf)
1055 # Obsolete; use --without-fp.
1058 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1059 |
--no-cr |
--no-c |
-n)
1062 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1063 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1066 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1067 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1068 |
--oldin |
--oldi |
--old |
--ol |
--o)
1069 ac_prev
=oldincludedir
;;
1070 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1071 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1072 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1073 oldincludedir
=$ac_optarg ;;
1075 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1077 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1078 prefix
=$ac_optarg ;;
1080 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1081 |
--program-pre |
--program-pr |
--program-p)
1082 ac_prev
=program_prefix
;;
1083 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1084 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1085 program_prefix
=$ac_optarg ;;
1087 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1088 |
--program-suf |
--program-su |
--program-s)
1089 ac_prev
=program_suffix
;;
1090 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1091 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1092 program_suffix
=$ac_optarg ;;
1094 -program-transform-name |
--program-transform-name \
1095 |
--program-transform-nam |
--program-transform-na \
1096 |
--program-transform-n |
--program-transform- \
1097 |
--program-transform |
--program-transfor \
1098 |
--program-transfo |
--program-transf \
1099 |
--program-trans |
--program-tran \
1100 |
--progr-tra |
--program-tr |
--program-t)
1101 ac_prev
=program_transform_name
;;
1102 -program-transform-name=* |
--program-transform-name=* \
1103 |
--program-transform-nam=* |
--program-transform-na=* \
1104 |
--program-transform-n=* |
--program-transform-=* \
1105 |
--program-transform=* |
--program-transfor=* \
1106 |
--program-transfo=* |
--program-transf=* \
1107 |
--program-trans=* |
--program-tran=* \
1108 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1109 program_transform_name
=$ac_optarg ;;
1111 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1113 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1114 pdfdir
=$ac_optarg ;;
1116 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1118 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1121 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1122 |
-silent |
--silent |
--silen |
--sile |
--sil)
1125 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1127 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1129 sbindir
=$ac_optarg ;;
1131 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1132 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1133 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1135 ac_prev
=sharedstatedir
;;
1136 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1137 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1138 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1140 sharedstatedir
=$ac_optarg ;;
1142 -site |
--site |
--sit)
1144 -site=* |
--site=* |
--sit=*)
1147 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1149 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1150 srcdir
=$ac_optarg ;;
1152 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1153 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1154 ac_prev
=sysconfdir
;;
1155 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1156 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1157 sysconfdir
=$ac_optarg ;;
1159 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1160 ac_prev
=target_alias
;;
1161 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1162 target_alias
=$ac_optarg ;;
1164 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1167 -version |
--version |
--versio |
--versi |
--vers |
-V)
1168 ac_init_version
=: ;;
1171 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=\
$ac_optarg ;;
1187 -without-* |
--without-*)
1188 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=no
;;
1205 # Obsolete; use --with-x.
1208 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1209 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1210 ac_prev
=x_includes
;;
1211 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1212 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1213 x_includes
=$ac_optarg ;;
1215 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1216 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1217 ac_prev
=x_libraries
;;
1218 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1219 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1220 x_libraries
=$ac_optarg ;;
1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1228 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\
$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 if test -n "$ac_prev"; then
1248 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val
=\$
$ac_var
1269 # Remove trailing slashes.
1272 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\
$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$
]* | ?
:[\\/]* ) continue;;
1278 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1305 test "$silent" = yes && exec 6>/dev
/null
1308 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di
=`ls -di .` &&
1310 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1311 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted
=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir
=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted
=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1357 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var
in $ac_precious_vars; do
1373 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1375 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --x-includes=DIR X include files are
in DIR
1445 --x-libraries=DIR X library files are
in DIR
1449 if test -n "$ac_init_help"; then
1454 --disable-option-checking ignore unrecognized
--enable/--with options
1455 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1456 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1457 --disable-darwin Disable Darwin
(Mac OS X
) support.
1458 --disable-selinux Don
't check for SELinux support.
1459 --disable-xsmp Disable XSMP session management
1460 --disable-xsmp-interact Disable XSMP interaction
1461 --enable-mzschemeinterp Include MzScheme interpreter.
1462 --enable-perlinterp Include Perl interpreter.
1463 --enable-pythoninterp Include Python interpreter.
1464 --enable-tclinterp Include Tcl interpreter.
1465 --enable-rubyinterp Include Ruby interpreter.
1466 --enable-cscope Include cscope interface.
1467 --enable-workshop Include Sun Visual Workshop support.
1468 --disable-netbeans Disable NetBeans integration support.
1469 --enable-sniff Include Sniff interface.
1470 --enable-multibyte Include multibyte editing support.
1471 --enable-hangulinput Include Hangul input support.
1472 --enable-xim Include XIM input support.
1473 --enable-fontset Include X fontset output support.
1474 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1475 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1476 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1477 --enable-gnome-check If GTK GUI, check for GNOME default=no
1478 --enable-motif-check If auto-select GUI, check for Motif default=yes
1479 --enable-athena-check If auto-select GUI, check for Athena default=yes
1480 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1481 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1482 --disable-gtktest Do not try to compile and run a test GTK program
1483 --disable-acl Don't check
for ACL support.
1484 --disable-gpm Don
't use gpm (Linux mouse daemon).
1485 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1486 --disable-nls Don
't support NLS (gettext()).
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-mac-arch=ARCH current, intel, ppc or both
1492 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1493 --without-local-dir do not search /usr/local for local libraries.
1494 --with-vim-name=NAME what to call the Vim executable
1495 --with-ex-name=NAME what to call the Ex executable
1496 --with-view-name=NAME what to call the View executable
1497 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1498 --with-modified-by=NAME name of who modified a release version
1499 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1500 --with-compiledby=NAME name to show in :version message
1501 --with-plthome=PLTHOME Use PLTHOME.
1502 --with-python-config-dir=PATH Python's config directory
1503 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1504 --with-x use the X Window System
1505 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1506 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1507 --with-gnome-includes=DIR Specify location of GNOME headers
1508 --with-gnome-libs=DIR Specify location of GNOME libs
1509 --with-gnome Specify prefix
for GNOME files
1510 --with-motif-lib=STRING Library
for Motif
1511 --with-tlib=library terminal library to be used
1513 Some influential environment variables
:
1514 CC C compiler
command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1517 nonstandard directory
<lib dir
>
1518 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1519 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1520 you have headers
in a nonstandard directory
<include dir
>
1522 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1524 Use these variables to override the choices made by
`configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1556 .) # We are building in place.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1590 generated by GNU Autoconf 2.62
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1599 cat >auto/config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by $as_me, which was
1604 generated by GNU Autoconf 2.62. Invocation command line was
1609 exec 5>>auto/config.log
1616 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1617 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1618 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1619 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1620 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1622 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1623 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1625 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1626 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1627 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1629 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1631 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 $as_echo "PATH: $as_dir"
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_must_keep_next=false
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1675 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 -* ) ac_must_keep_next=true ;;
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1723 eval ac_val=\$$ac_var
1727 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 _ | IFS | as_nl) ;; #(
1732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1733 *) $as_unset $ac_var ;;
1738 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1758 for ac_var in $ac_subst_vars
1760 eval ac_val=\$$ac_var
1762 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 $as_echo "$ac_var='\''$ac_val'\''"
1768 if test -n "$ac_subst_files"; then
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1775 for ac_var in $ac_subst_files
1777 eval ac_val=\$$ac_var
1779 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 $as_echo "$ac_var='\''$ac_val'\''"
1786 if test -s confdefs.h; then
1796 test "$ac_signal" != 0 &&
1797 $as_echo "$as_me: caught signal $ac_signal"
1798 $as_echo "$as_me: exit $exit_status"
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 # Predefined preprocessor variables.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer an explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844 ac_site_file1=$CONFIG_SITE
1845 elif test "x$prefix" != xNONE; then
1846 ac_site_file1=$prefix/share/config.site
1847 ac_site_file2=$prefix/etc/config.site
1849 ac_site_file1=$ac_default_prefix/share/config.site
1850 ac_site_file2=$ac_default_prefix/etc/config.site
1852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1854 test "x$ac_site_file" = xNONE && continue
1855 if test -r "$ac_site_file"; then
1856 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1858 sed 's/^/| /' "$ac_site_file" >&5
1863 if test -r "$cache_file"; then
1864 # Some versions of bash will fail to source /dev/null (special
1865 # files actually), so we avoid doing that.
1866 if test -f "$cache_file"; then
1867 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868 $as_echo "$as_me: loading cache $cache_file" >&6;}
1870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871 *) . "./$cache_file";;
1875 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876 $as_echo "$as_me: creating cache $cache_file" >&6;}
1880 # Check that the precious variables saved in the cache have kept the same
1882 ac_cache_corrupted=false
1883 for ac_var in $ac_precious_vars; do
1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885 eval ac_new_set=\$ac_env_${ac_var}_set
1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887 eval ac_new_val=\$ac_env_${ac_var}_value
1888 case $ac_old_set,$ac_new_set in
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1891 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1895 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1899 if test "x$ac_old_val" != "x$ac_new_val"; then
1900 # differences in whitespace do not lead to failure.
1901 ac_old_val_w=`echo x
$ac_old_val`
1902 ac_new_val_w=`echo x
$ac_new_val`
1903 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1906 ac_cache_corrupted=:
1908 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1909 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1910 eval $ac_var=\$ac_old_val
1912 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1913 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1914 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1915 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1921 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 if $ac_cache_corrupted; then
1931 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1932 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1933 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1964 cat >>confdefs.h <<\_ACEOF
1968 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1971 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1972 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1973 $as_echo_n "(cached) " >&6
1975 cat >conftest.make <<\_ACEOF
1978 @echo '@@@%%%=$(MAKE)=@@@%%%'
1980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1981 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1983 eval ac_cv_prog_make_${ac_make}_set=yes;;
1985 eval ac_cv_prog_make_${ac_make}_set=no;;
1989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1990 { $as_echo "$as_me:$LINENO: result: yes" >&5
1991 $as_echo "yes" >&6; }
1994 { $as_echo "$as_me:$LINENO: result: no" >&5
1995 $as_echo "no" >&6; }
1996 SET_MAKE="MAKE=${MAKE-make}"
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 $as_echo_n "checking for $ac_word... " >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 $as_echo_n "(cached) " >&6
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test -n "$CC"; then
2035 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2036 $as_echo "$CC" >&6; }
2038 { $as_echo "$as_me:$LINENO: result: no" >&5
2039 $as_echo "no" >&6; }
2044 if test -z "$ac_cv_prog_CC"; then
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 $as_echo_n "checking for $ac_word... " >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 $as_echo_n "(cached) " >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 $as_echo "$ac_ct_CC" >&6; }
2078 { $as_echo "$as_me:$LINENO: result: no" >&5
2079 $as_echo "no" >&6; }
2082 if test "x$ac_ct_CC" = x; then
2085 case $cross_compiling:$ac_tool_warned in
2087 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093 ac_tool_warned=yes ;;
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}cc; ac_word=$2
2105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}cc"
2121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 if test -n "$CC"; then
2132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2133 $as_echo "$CC" >&6; }
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2142 if test -z "$CC"; then
2143 # Extract the first word of "cc", so it can be a program name with args.
2144 set dummy cc; ac_word=$2
2145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 $as_echo_n "(cached) " >&6
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162 ac_prog_rejected=yes
2166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 if test $ac_prog_rejected = yes; then
2174 # We found a bogon in the path, so make sure we never use it.
2175 set dummy $ac_cv_prog_CC
2177 if test $# != 0; then
2178 # We chose a different compiler from the bogus one.
2179 # However, it has the same basename, so the bogon will be chosen
2180 # first if we set CC to just the basename; use the full file name.
2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2188 if test -n "$CC"; then
2189 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190 $as_echo "$CC" >&6; }
2192 { $as_echo "$as_me:$LINENO: result: no" >&5
2193 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 for ac_prog in cl.exe
2202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test -n "$CC"; then
2231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232 $as_echo "$CC" >&6; }
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$CC" && break
2242 if test -z "$CC"; then
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2253 if test -n "$ac_ct_CC"; then
2254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_ac_ct_CC="$ac_prog"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276 $as_echo "$ac_ct_CC" >&6; }
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2283 test -n "$ac_ct_CC" && break
2286 if test "x$ac_ct_CC" = x; then
2289 case $cross_compiling:$ac_tool_warned in
2291 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2292 whose name does not start with the host triplet. If you think this
2293 configuration is useful to you, please write to autoconf@gnu.org." >&5
2294 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2295 whose name does not start with the host triplet. If you think this
2296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2297 ac_tool_warned=yes ;;
2306 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log
' for more details." >&5
2308 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2309 See \`config.log' for more details.
" >&2;}
2310 { (exit 1); exit 1; }; }
2312 # Provide some information about the compiler.
2313 $as_echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2316 { (ac_try="$ac_compiler --version >&5"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323 (eval "$ac_compiler --version >&5") 2>&5
2325 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try="$ac_compiler -v >&5"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2333 $as_echo "$ac_try_echo") >&5
2334 (eval "$ac_compiler -v >&5") 2>&5
2336 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2337 (exit $ac_status); }
2338 { (ac_try="$ac_compiler -V >&5"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler -V >&5") 2>&5
2347 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2348 (exit $ac_status); }
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out
"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2370 { $as_echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2371 $as_echo_n "checking
for C compiler default output
file name...
" >&6; }
2372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.
*"
2378 for ac_file in $ac_files
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2387 if { (ac_try="$ac_link_default"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_link_default") 2>&5
2396 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2403 for ac_file in $ac_files ''
2405 test -f "$ac_file" || continue
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2410 # We found the default executable, but exeext='' is most
2414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 # We set ac_cv_exeext here because the later test for it is not
2419 # safe: cross compilers may not add the suffix if given an `-o'
2420 # argument, so we may need to know it at that point already.
2421 # Even if this section looks crufty: it has the advantage of
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2434 { $as_echo "$as_me:$LINENO: result
: $ac_file" >&5
2435 $as_echo "$ac_file" >&6; }
2436 if test -z "$ac_file"; then
2437 $as_echo "$as_me: failed program was
:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 { { $as_echo "$as_me:$LINENO: error
: C compiler cannot create executables
2441 See \
`config.log' for more details." >&5
2442 $as_echo "$as_me: error: C compiler cannot create executables
2443 See \`config.log
' for more details." >&2;}
2444 { (exit 77); exit 77; }; }
2447 ac_exeext=$ac_cv_exeext
2449 # Check that the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452 $as_echo_n "checking whether the C compiler works... " >&6; }
2453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454 # If not cross compiling, check that we can run a simple program.
2455 if test "$cross_compiling" != yes; then
2456 if { ac_try='.
/$ac_file'
2457 { (case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2462 $as_echo "$ac_try_echo") >&5
2463 (eval "$ac_try") 2>&5
2465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 if test "$cross_compiling" = maybe; then
2472 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \
`config.log' for more details." >&5
2475 $as_echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details.
" >&2;}
2478 { (exit 1); exit 1; }; }
2482 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2483 $as_echo "yes" >&6; }
2485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2490 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2491 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2492 $as_echo "$cross_compiling" >&6; }
2494 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2495 $as_echo_n "checking
for suffix of executables...
" >&6; }
2496 if { (ac_try="$ac_link"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_link") 2>&5
2505 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2522 See \
`config.log' for more details." >&5
2523 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524 See \`config.log
' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2528 rm -f conftest$ac_cv_exeext
2529 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530 $as_echo "$ac_cv_exeext" >&6; }
2532 rm -f conftest.$ac_ext
2533 EXEEXT=$ac_cv_exeext
2535 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536 $as_echo_n "checking for suffix of object files... " >&6; }
2537 if test "${ac_cv_objext+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2555 rm -f conftest.o conftest.obj
2556 if { (ac_try="$ac_compile"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2562 $as_echo "$ac_try_echo") >&5
2563 (eval "$ac_compile") 2>&5
2565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 for ac_file in conftest.o conftest.obj conftest.*; do
2568 test -f "$ac_file" || continue;
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2571 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2576 $as_echo "$as_me: failed program was:" >&5
2577 sed 's
/^
/|
/' conftest.$ac_ext >&5
2579 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details.
" >&5
2581 $as_echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2582 See \
`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2588 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 $as_echo "$ac_cv_objext" >&6; }
2590 OBJEXT=$ac_cv_objext
2592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595 $as_echo_n "(cached) " >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2619 *) ac_try_echo
=$ac_try;;
2621 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1
>conftest.err
2627 cat conftest.err
>&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.
$ac_objext; then
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.
$ac_ext >&5
2641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2642 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647 if test $ac_compiler_gnu = yes; then
2652 ac_test_CFLAGS
=${CFLAGS+set}
2653 ac_save_CFLAGS
=$CFLAGS
2654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 ac_save_c_werror_flag
=$ac_c_werror_flag
2660 ac_c_werror_flag
=yes
2663 cat >conftest.
$ac_ext <<_ACEOF
2666 cat confdefs.h
>>conftest.
$ac_ext
2667 cat >>conftest.
$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.
$ac_objext
2679 if { (ac_try
="$ac_compile"
2681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685 $as_echo "$ac_try_echo") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2721 *) ac_try_echo
=$ac_try;;
2723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1
>conftest.err
2729 cat conftest.err
>&5
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && {
2732 test -z "$ac_c_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest.
$ac_objext; then
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.
$ac_ext >&5
2740 ac_c_werror_flag
=$ac_save_c_werror_flag
2742 cat >conftest.
$ac_ext <<_ACEOF
2745 cat confdefs.h
>>conftest.
$ac_ext
2746 cat >>conftest.
$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.
$ac_objext
2758 if { (ac_try
="$ac_compile"
2760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793 $as_echo "$ac_cv_prog_cc_g" >&6; }
2794 if test "$ac_test_CFLAGS" = set; then
2795 CFLAGS=$ac_save_CFLAGS
2796 elif test $ac_cv_prog_cc_g = yes; then
2797 if test "$GCC" = yes; then
2803 if test "$GCC" = yes; then
2809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811 if test "${ac_cv_prog_cc_c89+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 ac_cv_prog_cc_c89=no
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2824 #include <sys/types.h>
2825 #include <sys/stat.h>
2826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2827 struct buf { int x; };
2828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829 static char *e (p, i)
2835 static char *f (char * (*g) (char **, int), char **p, ...)
2840 s = g (p, va_arg (v,int));
2845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2846 function prototypes and stuff, but not '\xHH' hex character constants.
2847 These don't provoke an error unfortunately, instead are silently treated
2848 as 'x'. The following induces an error, until -std is added to get
2849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2850 array size at least. It's necessary to write '\x00'==0 to get something
2851 that's true only with -std. */
2852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855 inside strings and character constants. */
2857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2859 int test (int i, double x);
2860 struct s1 {int (*f) (int a);};
2861 struct s2 {int (*f) (double a);};
2862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2876 CC="$ac_save_CC $ac_arg"
2877 rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2881 *) ac_try_echo
=$ac_try;;
2883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2887 grep -v '^ *+' conftest.er1
>conftest.err
2889 cat conftest.err
>&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.
$ac_objext; then
2895 ac_cv_prog_cc_c89
=$ac_arg
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.
$ac_ext >&5
2903 rm -f core conftest.err conftest.
$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2906 rm -f conftest.
$ac_ext
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2916 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC
="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2926 ac_cpp
='$CPP $CPPFLAGS'
2927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2931 ac_cpp
='$CPP $CPPFLAGS'
2932 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2935 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2941 if test -z "$CPP"; then
2942 if test "${ac_cv_prog_CPP+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2945 # Double quotes because CPP needs to be expanded
2946 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2949 for ac_c_preproc_warn_flag
in '' yes
2951 # Use a header file that comes with gcc, so configuring glibc
2952 # with a fresh cross-compiler works.
2953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954 # <limits.h> exists even on freestanding compilers.
2955 # On the NeXT, cc -E runs the code through the compiler's parser,
2956 # not just through cpp. "Syntax error" is here to catch this case.
2957 cat >conftest.
$ac_ext <<_ACEOF
2960 cat confdefs.h
>>conftest.
$ac_ext
2961 cat >>conftest.
$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2964 # include <limits.h>
2966 # include <assert.h>
2970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null && {
2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2996 rm -f conftest.err conftest.$ac_ext
2998 # OK, works on sane cases. Now check whether nonexistent headers
2999 # can be detected and how.
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <ac_nonexistent.h>
3008 if { (ac_try="$ac_cpp conftest.$ac_ext"
3010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3011 *) ac_try_echo
=$ac_try;;
3013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1
>conftest.err
3019 cat conftest.err
>&5
3020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev
/null
&& {
3022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3025 # Broken: success on invalid input.
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.
$ac_ext >&5
3031 # Passes both tests.
3036 rm -f conftest.err conftest.
$ac_ext
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.
$ac_ext
3041 if $ac_preproc_ok; then
3053 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3054 $as_echo "$CPP" >&6; }
3056 for ac_c_preproc_warn_flag
in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.
$ac_ext <<_ACEOF
3067 cat confdefs.h
>>conftest.
$ac_ext
3068 cat >>conftest.
$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 # include <limits.h>
3073 # include <assert.h>
3077 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null && {
3091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3103 rm -f conftest.err conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether nonexistent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3115 if { (ac_try="$ac_cpp conftest.$ac_ext"
3117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3118 *) ac_try_echo
=$ac_try;;
3120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3121 $as_echo "$ac_try_echo") >&5
3122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3124 grep -v '^ *+' conftest.er1
>conftest.err
3126 cat conftest.err
>&5
3127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev
/null
&& {
3129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3130 test ! -s conftest.err
3132 # Broken: success on invalid input.
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.
$ac_ext >&5
3138 # Passes both tests.
3143 rm -f conftest.err conftest.
$ac_ext
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.
$ac_ext
3148 if $ac_preproc_ok; then
3151 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3159 ac_cpp
='$CPP $CPPFLAGS'
3160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3165 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3167 if test "${ac_cv_path_GREP+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3170 if test -z "$GREP"; then
3171 ac_path_GREP_found
=false
3172 # Loop through the user's path and test for each of PROGNAME-LIST
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3174 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_prog
in grep ggrep
; do
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3182 # Check for GNU ac_path_GREP and select it if it is found.
3183 # Check for GNU $ac_path_GREP
3184 case `"$ac_path_GREP" --version 2>&1` in
3186 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3189 $as_echo_n 0123456789 >"conftest.in"
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 $as_echo 'GREP' >> "conftest.nl"
3196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3197 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3198 ac_count
=`expr $ac_count + 1`
3199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_GREP
="$ac_path_GREP"
3202 ac_path_GREP_max
=$ac_count
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3207 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3210 $ac_path_GREP_found && break 3
3215 if test -z "$ac_cv_path_GREP"; then
3216 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3217 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3218 { (exit 1); exit 1; }; }
3221 ac_cv_path_GREP
=$GREP
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3226 $as_echo "$ac_cv_path_GREP" >&6; }
3227 GREP
="$ac_cv_path_GREP"
3230 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3231 $as_echo_n "checking for egrep... " >&6; }
3232 if test "${ac_cv_path_EGREP+set}" = set; then
3233 $as_echo_n "(cached) " >&6
3235 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3236 then ac_cv_path_EGREP
="$GREP -E"
3238 if test -z "$EGREP"; then
3239 ac_path_EGREP_found
=false
3240 # Loop through the user's path and test for each of PROGNAME-LIST
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3245 test -z "$as_dir" && as_dir
=.
3246 for ac_prog
in egrep; do
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3250 # Check for GNU ac_path_EGREP and select it if it is found.
3251 # Check for GNU $ac_path_EGREP
3252 case `"$ac_path_EGREP" --version 2>&1` in
3254 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3257 $as_echo_n 0123456789 >"conftest.in"
3260 cat "conftest.in" "conftest.in" >"conftest.tmp"
3261 mv "conftest.tmp" "conftest.in"
3262 cp "conftest.in" "conftest.nl"
3263 $as_echo 'EGREP' >> "conftest.nl"
3264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3265 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3266 ac_count
=`expr $ac_count + 1`
3267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268 # Best one so far, save it but keep looking for a better one
3269 ac_cv_path_EGREP
="$ac_path_EGREP"
3270 ac_path_EGREP_max
=$ac_count
3272 # 10*(2^10) chars as input seems more than enough
3273 test $ac_count -gt 10 && break
3275 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3278 $ac_path_EGREP_found && break 3
3283 if test -z "$ac_cv_path_EGREP"; then
3284 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3285 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3286 { (exit 1); exit 1; }; }
3289 ac_cv_path_EGREP
=$EGREP
3294 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3295 $as_echo "$ac_cv_path_EGREP" >&6; }
3296 EGREP
="$ac_cv_path_EGREP"
3299 cat >conftest.
$ac_ext <<_ACEOF
3302 cat confdefs.h
>>conftest.
$ac_ext
3303 cat >>conftest.
$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3308 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3309 $as_echo_n "checking for library containing strerror... " >&6; }
3310 if test "${ac_cv_search_strerror+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3313 ac_func_search_save_LIBS
=$LIBS
3314 cat >conftest.
$ac_ext <<_ACEOF
3317 cat confdefs.h
>>conftest.
$ac_ext
3318 cat >>conftest.
$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 /* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
3336 for ac_lib
in '' cposix
; do
3337 if test -z "$ac_lib"; then
3338 ac_res
="none required"
3341 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3343 rm -f conftest.
$ac_objext conftest
$ac_exeext
3344 if { (ac_try
="$ac_link"
3346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_link") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest$ac_exeext && {
3361 test "$cross_compiling" = yes ||
3362 $as_test_x conftest$ac_exeext
3364 ac_cv_search_strerror=$ac_res
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -rf conftest.dSYM
3373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3375 if test "${ac_cv_search_strerror+set}" = set; then
3379 if test "${ac_cv_search_strerror+set}" = set; then
3382 ac_cv_search_strerror=no
3385 LIBS=$ac_func_search_save_LIBS
3387 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3388 $as_echo "$ac_cv_search_strerror" >&6; }
3389 ac_res=$ac_cv_search_strerror
3390 if test "$ac_res" != no; then
3391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3394 for ac_prog in gawk mawk nawk awk
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_AWK+set}" = set; then
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$AWK"; then
3404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_AWK="$ac_prog"
3414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 if test -n "$AWK"; then
3425 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3426 $as_echo "$AWK" >&6; }
3428 { $as_echo "$as_me:$LINENO: result: no" >&5
3429 $as_echo "no" >&6; }
3433 test -n "$AWK" && break
3436 # Extract the first word of "strip", so it can be a program name with args.
3437 set dummy strip; ac_word=$2
3438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_STRIP+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$STRIP"; then
3444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_STRIP="strip"
3454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3464 STRIP=$ac_cv_prog_STRIP
3465 if test -n "$STRIP"; then
3466 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3467 $as_echo "$STRIP" >&6; }
3469 { $as_echo "$as_me:$LINENO: result: no" >&5
3470 $as_echo "no" >&6; }
3477 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 $as_echo_n "checking for ANSI C header files... " >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 $as_echo_n "(cached) " >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3505 *) ac_try_echo
=$ac_try;;
3507 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3508 $as_echo "$ac_try_echo") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.
$ac_objext; then
3519 ac_cv_header_stdc
=yes
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.
$ac_ext >&5
3524 ac_cv_header_stdc
=no
3527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3529 if test $ac_cv_header_stdc = yes; then
3530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531 cat >conftest.
$ac_ext <<_ACEOF
3534 cat confdefs.h
>>conftest.
$ac_ext
3535 cat >>conftest.
$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "memchr" >/dev
/null
2>&1; then
3544 ac_cv_header_stdc
=no
3550 if test $ac_cv_header_stdc = yes; then
3551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 $EGREP "free" >/dev
/null
2>&1; then
3565 ac_cv_header_stdc
=no
3571 if test $ac_cv_header_stdc = yes; then
3572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3573 if test "$cross_compiling" = yes; then
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3584 #if ((' ' & 0x0FF) == 0x020)
3585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3588 # define ISLOWER(c) \
3589 (('a' <= (c) && (c) <= 'i') \
3590 || ('j' <= (c) && (c) <= 'r') \
3591 || ('s' <= (c) && (c) <= 'z'))
3592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3600 for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i))
3602 || toupper (i) != TOUPPER (i))
3607 rm -f conftest
$ac_exeext
3608 if { (ac_try
="$ac_link"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615 (eval "$ac_link") 2>&5
3617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3619 { (case "(($ac_try" in
3620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3621 *) ac_try_echo
=$ac_try;;
3623 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_try") 2>&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3631 $as_echo "$as_me: program exited with status $ac_status" >&5
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3636 ac_cv_header_stdc
=no
3638 rm -rf conftest.dSYM
3639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3646 $as_echo "$ac_cv_header_stdc" >&6; }
3647 if test $ac_cv_header_stdc = yes; then
3649 cat >>confdefs.h
<<\_ACEOF
3650 #define STDC_HEADERS 1
3655 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3656 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3657 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3660 cat >conftest.
$ac_ext <<_ACEOF
3663 cat confdefs.h
>>conftest.
$ac_ext
3664 cat >>conftest.
$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <sys/types.h>
3667 #include <sys/wait.h>
3669 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3672 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3680 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3685 rm -f conftest.
$ac_objext
3686 if { (ac_try
="$ac_compile"
3688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3692 $as_echo "$ac_try_echo") >&5
3693 (eval "$ac_compile") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest.$ac_objext; then
3703 ac_cv_header_sys_wait_h=yes
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_header_sys_wait_h=no
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3714 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3715 if test $ac_cv_header_sys_wait_h = yes; then
3717 cat >>confdefs.h <<\_ACEOF
3718 #define HAVE_SYS_WAIT_H 1
3724 if test -z "$CFLAGS"; then
3726 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3728 if test "$GCC" = yes; then
3729 gccversion=`"$CC" -dumpversion`
3730 if test "x$gccversion" = "x"; then
3731 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3733 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3734 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3735 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3737 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3738 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3739 CFLAGS="$CFLAGS -fno-strength-reduce"
3744 if test "$cross_compiling" = yes; then
3745 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3746 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3749 test "$GCC" = yes && CPP_MM=M;
3751 if test -f ./toolcheck; then
3752 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3753 $as_echo "$as_me: checking for buggy tools..." >&6;}
3757 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3759 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3760 $as_echo_n "checking for BeOS... " >&6; }
3762 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3763 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3764 $as_echo "yes" >&6; };;
3765 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3766 $as_echo "no" >&6; };;
3769 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3770 $as_echo_n "checking for QNX... " >&6; }
3772 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3773 test -z "$with_x" && with_x=no
3774 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3775 $as_echo "yes" >&6; };;
3776 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3777 $as_echo "no" >&6; };;
3780 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3781 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3782 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3783 { $as_echo "$as_me:$LINENO: result: yes" >&5
3784 $as_echo "yes" >&6; }
3786 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3787 $as_echo_n "checking --disable-darwin argument... " >&6; }
3788 # Check whether --enable-darwin was given.
3789 if test "${enable_darwin+set}" = set; then
3790 enableval=$enable_darwin;
3795 if test "$enable_darwin" = "yes"; then
3796 { $as_echo "$as_me:$LINENO: result: no" >&5
3797 $as_echo "no" >&6; }
3798 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3799 $as_echo_n "checking if Darwin files are there... " >&6; }
3800 if test -f os_macosx.c; then
3801 { $as_echo "$as_me:$LINENO: result: yes" >&5
3802 $as_echo "yes" >&6; }
3804 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3805 $as_echo "no, Darwin support disabled" >&6; }
3809 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3810 $as_echo "yes, Darwin support excluded" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3814 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3816 # Check whether --with-mac-arch was given.
3817 if test "${with_mac_arch+set}" = set; then
3818 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3819 $as_echo "$MACARCH" >&6; }
3821 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3822 $as_echo "defaulting to $MACARCH" >&6; }
3826 if test "x$MACARCH" = "xboth"; then
3827 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3828 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3829 save_cppflags="$CPPFLAGS"
3830 save_cflags="$CFLAGS"
3831 save_ldflags="$LDFLAGS"
3832 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3848 rm -f conftest.$ac_objext conftest$ac_exeext
3849 if { (ac_try="$ac_link"
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3855 $as_echo "$ac_try_echo") >&5
3856 (eval "$ac_link") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest
$ac_exeext && {
3866 test "$cross_compiling" = yes ||
3867 $as_test_x conftest
$ac_exeext
3869 { $as_echo "$as_me:$LINENO: result: found" >&5
3870 $as_echo "found" >&6; }
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 { $as_echo "$as_me:$LINENO: result: not found" >&5
3876 $as_echo "not found" >&6; }
3877 CFLAGS
="$save_cflags"
3878 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3879 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3880 CPPFLAGS
="$CPPFLAGS -arch i386"
3881 LDFLAGS
="$save_ldflags -arch i386"
3882 cat >conftest.
$ac_ext <<_ACEOF
3885 cat confdefs.h
>>conftest.
$ac_ext
3886 cat >>conftest.
$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3897 rm -f conftest.
$ac_objext conftest
$ac_exeext
3898 if { (ac_try
="$ac_link"
3900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_link") 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest$ac_exeext && {
3915 test "$cross_compiling" = yes ||
3916 $as_test_x conftest$ac_exeext
3918 { $as_echo "$as_me:$LINENO: result: yes" >&5
3919 $as_echo "yes" >&6; }; MACARCH="intel"
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 { $as_echo "$as_me:$LINENO: result: no" >&5
3925 $as_echo "no" >&6; }
3927 CPPFLAGS="$save_cppflags -arch ppc"
3928 LDFLAGS="$save_ldflags -arch ppc"
3931 rm -rf conftest.dSYM
3932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3933 conftest$ac_exeext conftest.$ac_ext
3936 rm -rf conftest.dSYM
3937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938 conftest$ac_exeext conftest.$ac_ext
3939 elif test "x$MACARCH" = "xintel"; then
3940 CPPFLAGS="$CPPFLAGS -arch intel"
3941 LDFLAGS="$LDFLAGS -arch intel"
3942 elif test "x$MACARCH" = "xppc"; then
3943 CPPFLAGS="$CPPFLAGS -arch ppc"
3944 LDFLAGS="$LDFLAGS -arch ppc"
3947 if test "$enable_darwin" = "yes"; then
3949 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3950 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3951 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3952 if test "x$MACARCH" = "xboth"; then
3953 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3955 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969 inttypes.h stdint.h unistd.h
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3972 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 $as_echo_n "checking for $ac_header... " >&6; }
3974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3975 $as_echo_n "(cached) " >&6
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 $ac_includes_default
3985 #include <$ac_header>
3987 rm -f conftest.$ac_objext
3988 if { (ac_try="$ac_compile"
3990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3991 *) ac_try_echo
=$ac_try;;
3993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3994 $as_echo "$ac_try_echo") >&5
3995 (eval "$ac_compile") 2>conftest.er1
3997 grep -v '^ *+' conftest.er1
>conftest.err
3999 cat conftest.err
>&5
4000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && {
4002 test -z "$ac_c_werror_flag" ||
4003 test ! -s conftest.err
4004 } && test -s conftest.
$ac_objext; then
4005 eval "$as_ac_Header=yes"
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.
$ac_ext >&5
4010 eval "$as_ac_Header=no"
4013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4015 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4016 $as_echo "$as_val"'`
4017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4018 $as_echo "$ac_res" >&6; }
4019 if test `eval 'as_val=${'$as_ac_Header'}
4020 $as_echo "$as_val"'` = yes; then
4021 cat >>confdefs.h
<<_ACEOF
4022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4030 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4031 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4032 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4033 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4034 $as_echo_n "(cached) " >&6
4036 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4037 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4039 # Is the header compilable?
4040 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4041 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4042 cat >conftest.
$ac_ext <<_ACEOF
4045 cat confdefs.h
>>conftest.
$ac_ext
4046 cat >>conftest.
$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4049 #include <Carbon/Carbon.h>
4051 rm -f conftest.
$ac_objext
4052 if { (ac_try
="$ac_compile"
4054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058 $as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 ac_header_compiler=yes
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_header_compiler=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4079 $as_echo "$ac_header_compiler" >&6; }
4081 # Is the header present?
4082 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4083 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <Carbon/Carbon.h>
4092 if { (ac_try="$ac_cpp conftest.$ac_ext"
4094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4095 *) ac_try_echo
=$ac_try;;
4097 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1
>conftest.err
4103 cat conftest.err
>&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev
/null
&& {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4109 ac_header_preproc
=yes
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.
$ac_ext >&5
4114 ac_header_preproc
=no
4117 rm -f conftest.err conftest.
$ac_ext
4118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119 $as_echo "$ac_header_preproc" >&6; }
4121 # So? What about this header?
4122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4124 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4125 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4127 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4128 ac_header_preproc
=yes
4131 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4132 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4139 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4140 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4141 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4142 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4146 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4147 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4148 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4154 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4157 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4162 if test "x$CARBON" = "xyes"; then
4163 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
4169 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4170 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4174 { $as_echo "$as_me:$LINENO: result: no" >&5
4175 $as_echo "no" >&6; }
4181 if test "$cross_compiling" = no
; then
4182 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4183 $as_echo_n "checking --with-local-dir argument... " >&6; }
4184 have_local_include
=''
4187 # Check whether --with-local-dir was given.
4188 if test "${with_local_dir+set}" = set; then
4189 withval
=$with_local_dir;
4190 local_dir
="$withval"
4194 # avoid adding local dir to LDFLAGS and CPPFLAGS
4198 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4199 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4200 { (exit 1); exit 1; }; } ;;
4202 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4203 $as_echo "$local_dir" >&6; }
4207 local_dir
=/usr
/local
4208 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4209 $as_echo "Defaulting to $local_dir" >&6; }
4213 if test "$GCC" = yes -a "$local_dir" != no
; then
4214 echo 'void f(){}' > conftest.c
4215 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4216 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4217 rm -f conftest.c conftest.o
4219 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4220 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4221 if test "$tt" = "$LDFLAGS"; then
4222 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4225 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4226 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4227 if test "$tt" = "$CPPFLAGS"; then
4228 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4233 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4234 $as_echo_n "checking --with-vim-name argument... " >&6; }
4236 # Check whether --with-vim-name was given.
4237 if test "${with_vim_name+set}" = set; then
4238 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4239 $as_echo "$VIMNAME" >&6; }
4241 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4242 $as_echo "Defaulting to $VIMNAME" >&6; }
4246 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4247 $as_echo_n "checking --with-ex-name argument... " >&6; }
4249 # Check whether --with-ex-name was given.
4250 if test "${with_ex_name+set}" = set; then
4251 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4252 $as_echo "$EXNAME" >&6; }
4254 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4255 $as_echo "Defaulting to ex" >&6; }
4259 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4260 $as_echo_n "checking --with-view-name argument... " >&6; }
4262 # Check whether --with-view-name was given.
4263 if test "${with_view_name+set}" = set; then
4264 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4265 $as_echo "$VIEWNAME" >&6; }
4267 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4268 $as_echo "Defaulting to view" >&6; }
4273 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4274 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4276 # Check whether --with-global-runtime was given.
4277 if test "${with_global_runtime+set}" = set; then
4278 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4279 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4280 #define RUNTIME_GLOBAL "$withval"
4284 { $as_echo "$as_me:$LINENO: result: no" >&5
4285 $as_echo "no" >&6; }
4289 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4290 $as_echo_n "checking --with-modified-by argument... " >&6; }
4292 # Check whether --with-modified-by was given.
4293 if test "${with_modified_by+set}" = set; then
4294 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4295 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4296 #define MODIFIED_BY "$withval"
4300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4305 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4306 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4307 cat >conftest.
$ac_ext <<_ACEOF
4310 cat confdefs.h
>>conftest.
$ac_ext
4311 cat >>conftest.
$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4317 /* TryCompile function for CharSet.
4318 Treat any failure as ASCII for compatibility with existing art.
4319 Use compile-time rather than run-time tests for cross-compiler
4322 make an error "Character set is not EBCDIC"
4328 rm -f conftest.
$ac_objext
4329 if { (ac_try
="$ac_compile"
4331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335 $as_echo "$ac_try_echo") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 # TryCompile action if true
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 # TryCompile action if false
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 # end of TryCompile ])
4358 # end of CacheVal CvEbcdic
4359 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4360 $as_echo "$cf_cv_ebcdic" >&6; }
4361 case "$cf_cv_ebcdic" in #(vi
4362 yes) cat >>confdefs.h <<\_ACEOF
4368 *) line_break='"\\012"';;
4372 if test "$cf_cv_ebcdic" = "yes"; then
4373 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4374 $as_echo_n "checking for OS/390 Unix... " >&6; }
4376 OS/390) OS390Unix="yes";
4377 if test "$CC" = "cc"; then
4381 if test "$CC" = "c89"; then
4388 if test "$ccm" != "1"; then
4390 echo "------------------------------------------"
4391 echo " On OS/390 Unix, the environment variable"
4392 echo " __CC_${ccn}MODE must be set to \"1\"!"
4394 echo " export _CC_${ccn}MODE=1"
4395 echo " and then call configure again."
4396 echo "------------------------------------------"
4399 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4400 { $as_echo "$as_me:$LINENO: result: yes" >&5
4401 $as_echo "yes" >&6; }
4404 { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4410 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4411 $as_echo_n "checking --disable-selinux argument... " >&6; }
4412 # Check whether --enable-selinux was given.
4413 if test "${enable_selinux+set}" = set; then
4414 enableval=$enable_selinux;
4416 enable_selinux="yes"
4419 if test "$enable_selinux" = "yes"; then
4420 { $as_echo "$as_me:$LINENO: result: no" >&5
4421 $as_echo "no" >&6; }
4422 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4423 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4424 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4427 ac_check_lib_save_LIBS=$LIBS
4428 LIBS="-lselinux $LIBS"
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4436 /* Override any GCC internal prototype to avoid an error.
4437 Use char because int might match the return type of a GCC
4438 builtin and then its argument prototype would still apply. */
4442 char is_selinux_enabled ();
4446 return is_selinux_enabled ();
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (ac_try="$ac_link"
4454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4455 *) ac_try_echo
=$ac_try;;
4457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_link") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest
$ac_exeext && {
4469 test "$cross_compiling" = yes ||
4470 $as_test_x conftest
$ac_exeext
4472 ac_cv_lib_selinux_is_selinux_enabled
=yes
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.
$ac_ext >&5
4477 ac_cv_lib_selinux_is_selinux_enabled
=no
4480 rm -rf conftest.dSYM
4481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4482 conftest
$ac_exeext conftest.
$ac_ext
4483 LIBS
=$ac_check_lib_save_LIBS
4485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4486 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4487 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4488 LIBS
="$LIBS -lselinux"
4489 cat >>confdefs.h
<<\_ACEOF
4490 #define HAVE_SELINUX 1
4496 { $as_echo "$as_me:$LINENO: result: yes" >&5
4497 $as_echo "yes" >&6; }
4501 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4502 $as_echo_n "checking --with-features argument... " >&6; }
4504 # Check whether --with-features was given.
4505 if test "${with_features+set}" = set; then
4506 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4507 $as_echo "$features" >&6; }
4509 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4510 $as_echo "Defaulting to normal" >&6; }
4517 tiny
) cat >>confdefs.h
<<\_ACEOF
4521 small
) cat >>confdefs.h
<<\_ACEOF
4522 #define FEAT_SMALL 1
4525 normal
) cat >>confdefs.h
<<\_ACEOF
4526 #define FEAT_NORMAL 1
4528 dovimdiff
="installvimdiff";
4529 dogvimdiff
="installgvimdiff" ;;
4530 big
) cat >>confdefs.h
<<\_ACEOF
4533 dovimdiff
="installvimdiff";
4534 dogvimdiff
="installgvimdiff" ;;
4535 huge
) cat >>confdefs.h
<<\_ACEOF
4538 dovimdiff
="installvimdiff";
4539 dogvimdiff
="installgvimdiff" ;;
4540 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4541 $as_echo "Sorry, $features is not supported" >&6; } ;;
4547 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4548 $as_echo_n "checking --with-compiledby argument... " >&6; }
4550 # Check whether --with-compiledby was given.
4551 if test "${with_compiledby+set}" = set; then
4552 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4553 $as_echo "$withval" >&6; }
4555 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4561 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4562 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4563 # Check whether --enable-xsmp was given.
4564 if test "${enable_xsmp+set}" = set; then
4565 enableval
=$enable_xsmp;
4571 if test "$enable_xsmp" = "yes"; then
4572 { $as_echo "$as_me:$LINENO: result: no" >&5
4573 $as_echo "no" >&6; }
4574 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4575 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4576 # Check whether --enable-xsmp-interact was given.
4577 if test "${enable_xsmp_interact+set}" = set; then
4578 enableval
=$enable_xsmp_interact;
4580 enable_xsmp_interact
="yes"
4583 if test "$enable_xsmp_interact" = "yes"; then
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4586 cat >>confdefs.h
<<\_ACEOF
4587 #define USE_XSMP_INTERACT 1
4591 { $as_echo "$as_me:$LINENO: result: yes" >&5
4592 $as_echo "yes" >&6; }
4595 { $as_echo "$as_me:$LINENO: result: yes" >&5
4596 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4600 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4601 # Check whether --enable-mzschemeinterp was given.
4602 if test "${enable_mzschemeinterp+set}" = set; then
4603 enableval
=$enable_mzschemeinterp;
4605 enable_mzschemeinterp
="no"
4608 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4609 $as_echo "$enable_mzschemeinterp" >&6; }
4611 if test "$enable_mzschemeinterp" = "yes"; then
4614 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4615 $as_echo_n "checking --with-plthome argument... " >&6; }
4617 # Check whether --with-plthome was given.
4618 if test "${with_plthome+set}" = set; then
4619 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4620 $as_echo "$with_plthome" >&6; }
4622 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4623 $as_echo "\"no\"" >&6; }
4627 if test "X$with_plthome" != "X"; then
4628 vi_cv_path_mzscheme_pfx
="$with_plthome"
4630 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4631 $as_echo_n "checking PLTHOME environment var... " >&6; }
4632 if test "X$PLTHOME" != "X"; then
4633 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4634 $as_echo "\"$PLTHOME\"" >&6; }
4635 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4637 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4638 $as_echo "\"not set\"" >&6; }
4639 # Extract the first word of "mzscheme", so it can be a program name with args.
4640 set dummy mzscheme
; ac_word
=$2
4641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4646 case $vi_cv_path_mzscheme in
4648 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir
=.
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4670 if test -n "$vi_cv_path_mzscheme"; then
4671 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4672 $as_echo "$vi_cv_path_mzscheme" >&6; }
4674 { $as_echo "$as_me:$LINENO: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test "X$vi_cv_path_mzscheme" != "X"; then
4681 lsout
=`ls -l $vi_cv_path_mzscheme`
4682 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4683 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4687 if test "X$vi_cv_path_mzscheme" != "X"; then
4688 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4689 $as_echo_n "checking MzScheme install prefix... " >&6; }
4690 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4691 $as_echo_n "(cached) " >&6
4693 vi_cv_path_mzscheme_pfx
=`
4694 ${vi_cv_path_mzscheme} -evm \
4695 "(display (simplify-path \
4696 (build-path (call-with-values \
4697 (lambda () (split-path (find-system-path (quote exec-file)))) \
4698 (lambda (base name must-be-dir?) base)) (quote up))))"`
4700 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4701 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4702 vi_cv_path_mzscheme_pfx
=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4708 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4709 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4710 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4711 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4712 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4713 $as_echo "\"yes\"" >&6; }
4715 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4716 $as_echo "\"no\"" >&6; }
4717 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4718 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4719 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4720 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4721 $as_echo "\"yes\"" >&6; }
4724 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4725 $as_echo "\"no\"" >&6; }
4726 vi_cv_path_mzscheme_pfx
=
4731 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4732 if test "x$MACOSX" = "xyes"; then
4733 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4734 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4735 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4737 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4738 if test "$GCC" = yes; then
4739 MZSCHEME_LIBS
="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4740 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4741 uname
-r |
grep '^5' >/dev
/null
; then
4742 MZSCHEME_LIBS
="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4745 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4746 SCHEME_COLLECTS
=lib
/plt
/
4748 MZSCHEME_CFLAGS
="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4749 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4750 MZSCHEME_SRC
="if_mzsch.c"
4751 MZSCHEME_OBJ
="objects/if_mzsch.o"
4752 MZSCHEME_PRO
="if_mzsch.pro"
4753 cat >>confdefs.h
<<\_ACEOF
4754 #define FEAT_MZSCHEME 1
4766 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4767 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4768 # Check whether --enable-perlinterp was given.
4769 if test "${enable_perlinterp+set}" = set; then
4770 enableval
=$enable_perlinterp;
4772 enable_perlinterp
="no"
4775 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4776 $as_echo "$enable_perlinterp" >&6; }
4777 if test "$enable_perlinterp" = "yes"; then
4779 # Extract the first word of "perl", so it can be a program name with args.
4780 set dummy perl
; ac_word
=$2
4781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4786 case $vi_cv_path_perl in
4788 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir
=.
4796 for ac_exec_ext
in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4810 if test -n "$vi_cv_path_perl"; then
4811 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4812 $as_echo "$vi_cv_path_perl" >&6; }
4814 { $as_echo "$as_me:$LINENO: result: no" >&5
4815 $as_echo "no" >&6; }
4819 if test "X$vi_cv_path_perl" != "X"; then
4820 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4821 $as_echo_n "checking Perl version... " >&6; }
4822 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4823 eval `$vi_cv_path_perl -V:usethreads`
4824 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4827 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4828 eval `$vi_cv_path_perl -V:use5005threads`
4829 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4833 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4834 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4838 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4839 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4842 if test $badthreads = no
; then
4843 { $as_echo "$as_me:$LINENO: result: OK" >&5
4844 $as_echo "OK" >&6; }
4845 eval `$vi_cv_path_perl -V:shrpenv`
4846 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4849 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4851 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4852 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4853 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4854 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4855 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4856 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4857 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4859 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4860 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4863 ldflags_save
=$LDFLAGS
4864 CFLAGS
="$CFLAGS $perlcppflags"
4865 LIBS
="$LIBS $perllibs"
4866 LDFLAGS
="$perlldflags $LDFLAGS"
4867 cat >conftest.
$ac_ext <<_ACEOF
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4882 rm -f conftest.
$ac_objext conftest
$ac_exeext
4883 if { (ac_try
="$ac_link"
4885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_link") 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest$ac_exeext && {
4900 test "$cross_compiling" = yes ||
4901 $as_test_x conftest$ac_exeext
4903 { $as_echo "$as_me:$LINENO: result: yes" >&5
4904 $as_echo "yes" >&6; }; perl_ok=yes
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4910 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4913 rm -rf conftest.dSYM
4914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4915 conftest$ac_exeext conftest.$ac_ext
4918 LDFLAGS=$ldflags_save
4919 if test $perl_ok = yes; then
4920 if test "X$perlcppflags" != "X"; then
4921 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4923 if test "X$perlldflags" != "X"; then
4924 LDFLAGS="$perlldflags $LDFLAGS"
4927 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4928 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4929 PERL_PRO="if_perl.pro if_perlsfio.pro"
4930 cat >>confdefs.h <<\_ACEOF
4937 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4938 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4942 if test "x$MACOSX" = "xyes"; then
4943 dir=/System/Library/Perl
4944 darwindir=$dir/darwin
4945 if test -d $darwindir; then
4948 dir=/System/Library/Perl/5.8.1
4949 darwindir=$dir/darwin-thread-multi-2level
4950 if test -d $darwindir; then
4954 if test -n "$PERL"; then
4956 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4957 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4958 PERL_LIBS="-L$darwindir/CORE -lperl"
4969 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4970 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4971 # Check whether --enable-pythoninterp was given.
4972 if test "${enable_pythoninterp+set}" = set; then
4973 enableval=$enable_pythoninterp;
4975 enable_pythoninterp="no"
4978 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4979 $as_echo "$enable_pythoninterp" >&6; }
4980 if test "$enable_pythoninterp" = "yes"; then
4981 # Extract the first word of "python", so it can be a program name with args.
4982 set dummy python; ac_word=$2
4983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4988 case $vi_cv_path_python in
4990 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5012 if test -n "$vi_cv_path_python"; then
5013 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5014 $as_echo "$vi_cv_path_python" >&6; }
5016 { $as_echo "$as_me:$LINENO: result: no" >&5
5017 $as_echo "no" >&6; }
5021 if test "X$vi_cv_path_python" != "X"; then
5023 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5024 $as_echo_n "checking Python version... " >&6; }
5025 if test "${vi_cv_var_python_version+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5028 vi_cv_var_python_version=`
5029 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5032 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5033 $as_echo "$vi_cv_var_python_version" >&6; }
5035 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5036 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5037 if ${vi_cv_path_python} -c \
5038 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5040 { $as_echo "$as_me:$LINENO: result: yep" >&5
5041 $as_echo "yep" >&6; }
5043 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5044 $as_echo_n "checking Python's install prefix... " >&6; }
5045 if test "${vi_cv_path_python_pfx+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5048 vi_cv_path_python_pfx=`
5049 ${vi_cv_path_python} -c \
5050 "import sys; print sys.prefix"`
5052 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5053 $as_echo "$vi_cv_path_python_pfx" >&6; }
5055 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5056 $as_echo_n "checking Python's execution prefix... " >&6; }
5057 if test "${vi_cv_path_python_epfx+set}" = set; then
5058 $as_echo_n "(cached) " >&6
5060 vi_cv_path_python_epfx=`
5061 ${vi_cv_path_python} -c \
5062 "import sys; print sys.exec_prefix"`
5064 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5065 $as_echo "$vi_cv_path_python_epfx" >&6; }
5068 if test "${vi_cv_path_pythonpath+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5071 vi_cv_path_pythonpath=`
5073 ${vi_cv_path_python} -c \
5074 "import sys, string; print string.join(sys.path,':')"`
5080 # Check whether --with-python-config-dir was given.
5081 if test "${with_python_config_dir+set}" = set; then
5082 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5086 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5087 $as_echo_n "checking Python's configuration directory... " >&6; }
5088 if test "${vi_cv_path_python_conf+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5092 vi_cv_path_python_conf=
5093 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5094 for subdir in lib share; do
5095 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5096 if test -d "$d" && test -f "$d/config.c"; then
5097 vi_cv_path_python_conf="$d"
5103 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5104 $as_echo "$vi_cv_path_python_conf" >&6; }
5106 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5108 if test "X$PYTHON_CONFDIR" = "X"; then
5109 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5110 $as_echo "can't find it!" >&6; }
5113 if test "${vi_cv_path_python_plibs+set}" = set; then
5114 $as_echo_n "(cached) " >&6
5118 tmp_mkf="$pwd/config-PyMake$$"
5119 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5121 @echo "python_MODLIBS='$(MODLIBS)'"
5122 @echo "python_LIBS='$(LIBS)'"
5123 @echo "python_SYSLIBS='$(SYSLIBS)'"
5124 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5126 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5127 rm -f -- "${tmp_mkf}"
5128 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5129 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5130 vi_cv_path_python_plibs="-framework Python"
5132 if test "${vi_cv_var_python_version}" = "1.4"; then
5133 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5135 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5137 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5138 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5144 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5145 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5146 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5148 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}"
5150 PYTHON_SRC="if_python.c"
5151 if test "x$MACOSX" = "xyes"; then
5152 PYTHON_OBJ="objects/if_python.o"
5154 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5156 if test "${vi_cv_var_python_version}" = "1.4"; then
5157 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5159 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5161 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5162 $as_echo_n "checking if -pthread should be used... " >&6; }
5165 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5166 test "$GCC" = yes && threadsafe_flag="-pthread"
5167 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5168 threadsafe_flag="-D_THREAD_SAFE"
5169 thread_lib="-pthread"
5173 if test -n "$threadsafe_flag"; then
5175 CFLAGS="$CFLAGS $threadsafe_flag"
5176 LIBS="$LIBS $thread_lib"
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (ac_try="$ac_link"
5195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5196 *) ac_try_echo
=$ac_try;;
5198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5199 $as_echo "$ac_try_echo") >&5
5200 (eval "$ac_link") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1
>conftest.err
5204 cat conftest.err
>&5
5205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest
$ac_exeext && {
5210 test "$cross_compiling" = yes ||
5211 $as_test_x conftest
$ac_exeext
5213 { $as_echo "$as_me:$LINENO: result: yes" >&5
5214 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.
$ac_ext >&5
5219 { $as_echo "$as_me:$LINENO: result: no" >&5
5220 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5224 rm -rf conftest.dSYM
5225 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5226 conftest
$ac_exeext conftest.
$ac_ext
5229 { $as_echo "$as_me:$LINENO: result: no" >&5
5230 $as_echo "no" >&6; }
5233 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5234 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5237 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5238 LIBS
="$LIBS $PYTHON_LIBS"
5239 cat >conftest.
$ac_ext <<_ACEOF
5242 cat confdefs.h
>>conftest.
$ac_ext
5243 cat >>conftest.
$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5254 rm -f conftest.
$ac_objext conftest
$ac_exeext
5255 if { (ac_try
="$ac_link"
5257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262 (eval "$ac_link") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest$ac_exeext && {
5272 test "$cross_compiling" = yes ||
5273 $as_test_x conftest$ac_exeext
5275 { $as_echo "$as_me:$LINENO: result: yes" >&5
5276 $as_echo "yes" >&6; }; python_ok=yes
5278 $as_echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5282 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5285 rm -rf conftest.dSYM
5286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5287 conftest$ac_exeext conftest.$ac_ext
5290 if test $python_ok = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define FEAT_PYTHON 1
5305 { $as_echo "$as_me:$LINENO: result: too old" >&5
5306 $as_echo "too old" >&6; }
5317 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5318 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5319 # Check whether --enable-tclinterp was given.
5320 if test "${enable_tclinterp+set}" = set; then
5321 enableval=$enable_tclinterp;
5323 enable_tclinterp="no"
5326 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5327 $as_echo "$enable_tclinterp" >&6; }
5329 if test "$enable_tclinterp" = "yes"; then
5331 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5332 $as_echo_n "checking --with-tclsh argument... " >&6; }
5334 # Check whether --with-tclsh was given.
5335 if test "${with_tclsh+set}" = set; then
5336 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5337 $as_echo "$tclsh_name" >&6; }
5339 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5340 $as_echo "no" >&6; }
5343 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5344 set dummy $tclsh_name; ac_word=$2
5345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5350 case $vi_cv_path_tcl in
5352 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5374 if test -n "$vi_cv_path_tcl"; then
5375 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5376 $as_echo "$vi_cv_path_tcl" >&6; }
5378 { $as_echo "$as_me:$LINENO: result: no" >&5
5379 $as_echo "no" >&6; }
5385 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5386 tclsh_name="tclsh8.4"
5387 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5388 set dummy $tclsh_name; ac_word=$2
5389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5392 $as_echo_n "(cached) " >&6
5394 case $vi_cv_path_tcl in
5396 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5418 if test -n "$vi_cv_path_tcl"; then
5419 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5420 $as_echo "$vi_cv_path_tcl" >&6; }
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5429 tclsh_name="tclsh8.2"
5430 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5431 set dummy $tclsh_name; ac_word=$2
5432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5437 case $vi_cv_path_tcl in
5439 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5461 if test -n "$vi_cv_path_tcl"; then
5462 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5463 $as_echo "$vi_cv_path_tcl" >&6; }
5465 { $as_echo "$as_me:$LINENO: result: no" >&5
5466 $as_echo "no" >&6; }
5471 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5472 tclsh_name="tclsh8.0"
5473 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5474 set dummy $tclsh_name; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5480 case $vi_cv_path_tcl in
5482 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5504 if test -n "$vi_cv_path_tcl"; then
5505 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5506 $as_echo "$vi_cv_path_tcl" >&6; }
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5514 if test "X$vi_cv_path_tcl" = "X"; then
5516 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5517 set dummy $tclsh_name; ac_word=$2
5518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5523 case $vi_cv_path_tcl in
5525 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5547 if test -n "$vi_cv_path_tcl"; then
5548 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5549 $as_echo "$vi_cv_path_tcl" >&6; }
5551 { $as_echo "$as_me:$LINENO: result: no" >&5
5552 $as_echo "no" >&6; }
5557 if test "X$vi_cv_path_tcl" != "X"; then
5558 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5559 $as_echo_n "checking Tcl version... " >&6; }
5560 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5561 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5562 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5563 $as_echo "$tclver - OK" >&6; };
5564 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 -`
5566 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5567 $as_echo_n "checking for location of Tcl include... " >&6; }
5568 if test "x$MACOSX" != "xyes"; then
5569 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5571 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5574 for try in $tclinc; do
5575 if test -f "$try/tcl.h"; then
5576 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5577 $as_echo "$try/tcl.h" >&6; }
5582 if test -z "$TCL_INC"; then
5583 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5584 $as_echo "<not found>" >&6; }
5587 if test -z "$SKIP_TCL"; then
5588 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5589 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5590 if test "x$MACOSX" != "xyes"; then
5591 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5592 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5594 tclcnf="/System/Library/Frameworks/Tcl.framework"
5596 for try in $tclcnf; do
5597 if test -f $try/tclConfig.sh; then
5598 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5599 $as_echo "$try/tclConfig.sh" >&6; }
5601 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5602 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'`
5606 if test -z "$TCL_LIBS"; then
5607 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5608 $as_echo "<not found>" >&6; }
5609 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5610 $as_echo_n "checking for Tcl library by myself... " >&6; }
5611 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5612 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5613 for ext in .so .a ; do
5614 for ver in "" $tclver ; do
5615 for try in $tcllib ; do
5617 if test -f $try/lib$trylib ; then
5618 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5619 $as_echo "$try/lib$trylib" >&6; }
5620 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5621 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5622 uname -r | grep '^5' >/dev/null; then
5623 TCL_LIBS="$TCL_LIBS -R $try"
5630 if test -z "$TCL_LIBS"; then
5631 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5632 $as_echo "<not found>" >&6; }
5636 if test -z "$SKIP_TCL"; then
5637 cat >>confdefs.h <<\_ACEOF
5642 TCL_OBJ=objects/if_tcl.o
5644 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5648 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5649 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5659 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5660 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5661 # Check whether --enable-rubyinterp was given.
5662 if test "${enable_rubyinterp+set}" = set; then
5663 enableval=$enable_rubyinterp;
5665 enable_rubyinterp="no"
5668 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5669 $as_echo "$enable_rubyinterp" >&6; }
5670 if test "$enable_rubyinterp" = "yes"; then
5672 # Extract the first word of "ruby", so it can be a program name with args.
5673 set dummy ruby; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5679 case $vi_cv_path_ruby in
5681 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5703 if test -n "$vi_cv_path_ruby"; then
5704 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5705 $as_echo "$vi_cv_path_ruby" >&6; }
5707 { $as_echo "$as_me:$LINENO: result: no" >&5
5708 $as_echo "no" >&6; }
5712 if test "X$vi_cv_path_ruby" != "X"; then
5713 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5714 $as_echo_n "checking Ruby version... " >&6; }
5715 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5716 { $as_echo "$as_me:$LINENO: result: OK" >&5
5717 $as_echo "OK" >&6; }
5718 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5719 $as_echo_n "checking Ruby header files... " >&6; }
5720 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5721 if test "X$rubyhdrdir" != "X"; then
5722 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5723 $as_echo "$rubyhdrdir" >&6; }
5724 RUBY_CFLAGS="-I$rubyhdrdir"
5725 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5726 if test "X$rubylibs" != "X"; then
5727 RUBY_LIBS="$rubylibs"
5729 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5730 if test -f "$rubyhdrdir/$librubyarg"; then
5731 librubyarg="$rubyhdrdir/$librubyarg"
5733 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5734 if test -f "$rubylibdir/$librubyarg"; then
5735 librubyarg="$rubylibdir/$librubyarg"
5736 elif test "$librubyarg" = "libruby.a"; then
5739 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5743 if test "X$librubyarg" != "X"; then
5744 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5746 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5747 if test "X$rubyldflags" != "X"; then
5748 LDFLAGS="$rubyldflags $LDFLAGS"
5750 RUBY_SRC="if_ruby.c"
5751 RUBY_OBJ="objects/if_ruby.o"
5752 RUBY_PRO="if_ruby.pro"
5753 cat >>confdefs.h <<\_ACEOF
5758 { $as_echo "$as_me:$LINENO: result: not found" >&5
5759 $as_echo "not found" >&6; }
5762 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5763 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5773 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5774 $as_echo_n "checking --enable-cscope argument... " >&6; }
5775 # Check whether --enable-cscope was given.
5776 if test "${enable_cscope+set}" = set; then
5777 enableval=$enable_cscope;
5782 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5783 $as_echo "$enable_cscope" >&6; }
5784 if test "$enable_cscope" = "yes"; then
5785 cat >>confdefs.h <<\_ACEOF
5786 #define FEAT_CSCOPE 1
5791 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5792 $as_echo_n "checking --enable-workshop argument... " >&6; }
5793 # Check whether --enable-workshop was given.
5794 if test "${enable_workshop+set}" = set; then
5795 enableval=$enable_workshop;
5797 enable_workshop="no"
5800 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5801 $as_echo "$enable_workshop" >&6; }
5802 if test "$enable_workshop" = "yes"; then
5803 cat >>confdefs.h <<\_ACEOF
5804 #define FEAT_SUN_WORKSHOP 1
5807 WORKSHOP_SRC="workshop.c integration.c"
5809 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5811 if test "${enable_gui-xxx}" = xxx; then
5816 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5817 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5818 # Check whether --enable-netbeans was given.
5819 if test "${enable_netbeans+set}" = set; then
5820 enableval=$enable_netbeans;
5822 enable_netbeans="yes"
5825 if test "$enable_netbeans" = "yes"; then
5826 { $as_echo "$as_me:$LINENO: result: no" >&5
5827 $as_echo "no" >&6; }
5829 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5830 $as_echo_n "checking for socket in -lsocket... " >&6; }
5831 if test "${ac_cv_lib_socket_socket+set}" = set; then
5832 $as_echo_n "(cached) " >&6
5834 ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lsocket $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any GCC internal prototype to avoid an error.
5844 Use char because int might match the return type of a GCC
5845 builtin and then its argument prototype would still apply. */
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5862 *) ac_try_echo
=$ac_try;;
5864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5865 $as_echo "$ac_try_echo") >&5
5866 (eval "$ac_link") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1
>conftest.err
5870 cat conftest.err
>&5
5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest
$ac_exeext && {
5876 test "$cross_compiling" = yes ||
5877 $as_test_x conftest
$ac_exeext
5879 ac_cv_lib_socket_socket
=yes
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5884 ac_cv_lib_socket_socket
=no
5887 rm -rf conftest.dSYM
5888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5889 conftest
$ac_exeext conftest.
$ac_ext
5890 LIBS
=$ac_check_lib_save_LIBS
5892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5893 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5894 if test $ac_cv_lib_socket_socket = yes; then
5895 cat >>confdefs.h
<<_ACEOF
5896 #define HAVE_LIBSOCKET 1
5899 LIBS
="-lsocket $LIBS"
5904 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5905 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5906 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5909 ac_check_lib_save_LIBS
=$LIBS
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5924 char gethostbyname ();
5928 return gethostbyname ();
5933 rm -f conftest.
$ac_objext conftest
$ac_exeext
5934 if { (ac_try
="$ac_link"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_link") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest$ac_exeext && {
5951 test "$cross_compiling" = yes ||
5952 $as_test_x conftest$ac_exeext
5954 ac_cv_lib_nsl_gethostbyname=yes
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_cv_lib_nsl_gethostbyname=no
5962 rm -rf conftest.dSYM
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964 conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5968 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5969 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5970 cat >>confdefs.h <<_ACEOF
5971 #define HAVE_LIBNSL 1
5978 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5979 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5992 #include <netinet/in.h>
5994 #include <sys/types.h>
5995 #include <sys/socket.h>
5996 /* Check bitfields */
5998 unsigned int initDone:1;
6006 /* Check creating a socket. */
6007 struct sockaddr_in server;
6008 (void)socket(AF_INET, SOCK_STREAM, 0);
6010 (void)gethostbyname("microsoft.com");
6011 if (errno == ECONNREFUSED)
6012 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6018 rm -f conftest.$ac_objext conftest$ac_exeext
6019 if { (ac_try="$ac_link"
6021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6022 *) ac_try_echo
=$ac_try;;
6024 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_link") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1
>conftest.err
6030 cat conftest.err
>&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest
$ac_exeext && {
6036 test "$cross_compiling" = yes ||
6037 $as_test_x conftest
$ac_exeext
6039 { $as_echo "$as_me:$LINENO: result: yes" >&5
6040 $as_echo "yes" >&6; }
6042 $as_echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.
$ac_ext >&5
6045 { $as_echo "$as_me:$LINENO: result: no" >&5
6046 $as_echo "no" >&6; }; enable_netbeans
="no"
6049 rm -rf conftest.dSYM
6050 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6051 conftest
$ac_exeext conftest.
$ac_ext
6053 { $as_echo "$as_me:$LINENO: result: yes" >&5
6054 $as_echo "yes" >&6; }
6056 if test "$enable_netbeans" = "yes"; then
6057 cat >>confdefs.h
<<\_ACEOF
6058 #define FEAT_NETBEANS_INTG 1
6061 NETBEANS_SRC
="netbeans.c"
6063 NETBEANS_OBJ
="objects/netbeans.o"
6067 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6068 $as_echo_n "checking --enable-sniff argument... " >&6; }
6069 # Check whether --enable-sniff was given.
6070 if test "${enable_sniff+set}" = set; then
6071 enableval
=$enable_sniff;
6076 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6077 $as_echo "$enable_sniff" >&6; }
6078 if test "$enable_sniff" = "yes"; then
6079 cat >>confdefs.h
<<\_ACEOF
6080 #define FEAT_SNIFF 1
6083 SNIFF_SRC
="if_sniff.c"
6085 SNIFF_OBJ
="objects/if_sniff.o"
6089 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6090 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6091 # Check whether --enable-multibyte was given.
6092 if test "${enable_multibyte+set}" = set; then
6093 enableval
=$enable_multibyte;
6095 enable_multibyte
="no"
6098 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6099 $as_echo "$enable_multibyte" >&6; }
6100 if test "$enable_multibyte" = "yes"; then
6101 cat >>confdefs.h
<<\_ACEOF
6102 #define FEAT_MBYTE 1
6107 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6108 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6109 # Check whether --enable-hangulinput was given.
6110 if test "${enable_hangulinput+set}" = set; then
6111 enableval
=$enable_hangulinput;
6113 enable_hangulinput
="no"
6116 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6117 $as_echo "$enable_hangulinput" >&6; }
6119 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6120 $as_echo_n "checking --enable-xim argument... " >&6; }
6121 # Check whether --enable-xim was given.
6122 if test "${enable_xim+set}" = set; then
6123 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6124 $as_echo "$enable_xim" >&6; }
6126 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6127 $as_echo "defaulting to auto" >&6; }
6131 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6132 $as_echo_n "checking --enable-fontset argument... " >&6; }
6133 # Check whether --enable-fontset was given.
6134 if test "${enable_fontset+set}" = set; then
6135 enableval
=$enable_fontset;
6140 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6141 $as_echo "$enable_fontset" >&6; }
6143 test -z "$with_x" && with_x
=yes
6144 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6145 if test "$with_x" = no
; then
6146 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6147 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6150 # Extract the first word of "xmkmf", so it can be a program name with args.
6151 set dummy xmkmf
; ac_word
=$2
6152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6155 $as_echo_n "(cached) " >&6
6159 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir
=.
6167 for ac_exec_ext
in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 xmkmfpath
=$ac_cv_path_xmkmfpath
6181 if test -n "$xmkmfpath"; then
6182 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6183 $as_echo "$xmkmfpath" >&6; }
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6191 { $as_echo "$as_me:$LINENO: checking for X" >&5
6192 $as_echo_n "checking for X... " >&6; }
6195 # Check whether --with-x was given.
6196 if test "${with_x+set}" = set; then
6200 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6201 if test "x$with_x" = xno
; then
6202 # The user explicitly disabled X.
6205 case $x_includes,$x_libraries in #(
6206 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6207 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6208 { (exit 1); exit 1; }; };; #(
6209 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6212 # One or both of the vars are not set, and there is no cached value.
6213 ac_x_includes
=no ac_x_libraries
=no
6214 rm -f -r conftest.dir
6215 if mkdir conftest.dir
; then
6217 cat >Imakefile
<<'_ACEOF'
6219 @echo incroot='${INCROOT}'
6221 @echo usrlibdir='${USRLIBDIR}'
6223 @echo libdir='${LIBDIR}'
6225 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6227 for ac_var
in incroot usrlibdir libdir
; do
6228 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6230 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6231 for ac_extension
in a so sl dylib la dll
; do
6232 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6233 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6234 ac_im_usrlibdir
=$ac_im_libdir; break
6237 # Screen out bogus values from the imake configuration. They are
6238 # bogus both because they are the default anyway, and because
6239 # using them would break gcc on systems where it needs fixed includes.
6240 case $ac_im_incroot in
6241 /usr
/include
) ac_x_includes
= ;;
6242 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6244 case $ac_im_usrlibdir in
6246 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6250 rm -f -r conftest.dir
6253 # Standard set of common directories for X headers.
6254 # Check X11 before X11Rn because it is often a symlink to the current release.
6266 /usr/local/X11/include
6267 /usr/local/X11R6/include
6268 /usr/local/X11R5/include
6269 /usr/local/X11R4/include
6271 /usr/local/include/X11
6272 /usr/local/include/X11R6
6273 /usr/local/include/X11R5
6274 /usr/local/include/X11R4
6278 /usr/XFree86/include/X11
6282 /usr/unsupported/include
6284 /usr/local/x11r5/include
6285 /usr/lpp/Xamples/include
6287 /usr/openwin/include
6288 /usr/openwin/share/include'
6290 if test "$ac_x_includes" = no
; then
6291 # Guess where to find include files, by looking for Xlib.h.
6292 # First, try using that file with no special directory specified.
6293 cat >conftest.
$ac_ext <<_ACEOF
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <X11/Xlib.h>
6301 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307 $as_echo "$ac_try_echo") >&5
6308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null && {
6315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6318 # We can compile using X headers with no special include directory.
6321 $as_echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 for ac_dir in $ac_x_header_dirs; do
6325 if test -r "$ac_dir/X11/Xlib.h"; then
6326 ac_x_includes=$ac_dir
6332 rm -f conftest.err conftest.$ac_ext
6333 fi # $ac_x_includes = no
6335 if test "$ac_x_libraries" = no; then
6336 # Check for the libraries.
6337 # See if we find them without any special options.
6338 # Don't add to $LIBS permanently.
6341 cat >conftest.$ac_ext <<_ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <X11/Xlib.h>
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (ac_try="$ac_link"
6359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6360 *) ac_try_echo
=$ac_try;;
6362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6363 $as_echo "$ac_try_echo") >&5
6364 (eval "$ac_link") 2>conftest.er1
6366 grep -v '^ *+' conftest.er1
>conftest.err
6368 cat conftest.err
>&5
6369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest
$ac_exeext && {
6374 test "$cross_compiling" = yes ||
6375 $as_test_x conftest
$ac_exeext
6378 # We can link X programs with no special library path.
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.
$ac_ext >&5
6385 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6387 # Don't even attempt the hair of trying to link an X program!
6388 for ac_extension
in a so sl dylib la dll
; do
6389 if test -r "$ac_dir/libX11.$ac_extension"; then
6390 ac_x_libraries
=$ac_dir
6397 rm -rf conftest.dSYM
6398 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6399 conftest
$ac_exeext conftest.
$ac_ext
6400 fi # $ac_x_libraries = no
6402 case $ac_x_includes,$ac_x_libraries in #(
6404 # Didn't find X, or a directory has "'" in its name.
6405 ac_cv_have_x
="have_x=no";; #(
6407 # Record where we found X for the cache.
6408 ac_cv_have_x
="have_x=yes\
6409 ac_x_includes='$ac_x_includes'\
6410 ac_x_libraries='$ac_x_libraries'"
6416 eval "$ac_cv_have_x"
6419 if test "$have_x" != yes; then
6420 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6421 $as_echo "$have_x" >&6; }
6424 # If each of the values was on the command line, it overrides each guess.
6425 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6426 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6427 # Update the cache value to reflect the command line values.
6428 ac_cv_have_x
="have_x=yes\
6429 ac_x_includes='$x_includes'\
6430 ac_x_libraries='$x_libraries'"
6431 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6432 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6435 if test "$no_x" = yes; then
6436 # Not all programs may use this symbol, but it does not hurt to define it.
6438 cat >>confdefs.h
<<\_ACEOF
6439 #define X_DISPLAY_MISSING 1
6442 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6444 if test -n "$x_includes"; then
6445 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6448 # It would also be nice to do this for all -L options, not just this one.
6449 if test -n "$x_libraries"; then
6450 X_LIBS
="$X_LIBS -L$x_libraries"
6451 # For Solaris; some versions of Sun CC require a space after -R and
6452 # others require no space. Words are not sufficient . . . .
6453 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6454 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6455 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6456 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6457 ac_c_werror_flag
=yes
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6473 rm -f conftest.
$ac_objext conftest
$ac_exeext
6474 if { (ac_try
="$ac_link"
6476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_link") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest$ac_exeext && {
6491 test "$cross_compiling" = yes ||
6492 $as_test_x conftest$ac_exeext
6494 { $as_echo "$as_me:$LINENO: result: no" >&5
6495 $as_echo "no" >&6; }
6496 X_LIBS="$X_LIBS -R$x_libraries"
6498 $as_echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 LIBS="$ac_xsave_LIBS -R $x_libraries"
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (ac_try="$ac_link"
6520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6521 *) ac_try_echo
=$ac_try;;
6523 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6524 $as_echo "$ac_try_echo") >&5
6525 (eval "$ac_link") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1
>conftest.err
6529 cat conftest.err
>&5
6530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest
$ac_exeext && {
6535 test "$cross_compiling" = yes ||
6536 $as_test_x conftest
$ac_exeext
6538 { $as_echo "$as_me:$LINENO: result: yes" >&5
6539 $as_echo "yes" >&6; }
6540 X_LIBS
="$X_LIBS -R $x_libraries"
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6546 $as_echo "neither works" >&6; }
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6551 conftest
$ac_exeext conftest.
$ac_ext
6554 rm -rf conftest.dSYM
6555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6556 conftest
$ac_exeext conftest.
$ac_ext
6557 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6561 # Check for system-dependent libraries X programs must link with.
6562 # Do this before checking for the system-independent R6 libraries
6563 # (-lICE), since we may need -lsocket or whatever for X linking.
6565 if test "$ISC" = yes; then
6566 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6568 # Martyn Johnson says this is needed for Ultrix, if the X
6569 # libraries were built with DECnet support. And Karl Berry says
6570 # the Alpha needs dnet_stub (dnet does not exist).
6571 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6572 cat >conftest.
$ac_ext <<_ACEOF
6575 cat confdefs.h
>>conftest.
$ac_ext
6576 cat >>conftest.
$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 /* Override any GCC internal prototype to avoid an error.
6580 Use char because int might match the return type of a GCC
6581 builtin and then its argument prototype would still apply. */
6585 char XOpenDisplay ();
6589 return XOpenDisplay ();
6594 rm -f conftest.
$ac_objext conftest
$ac_exeext
6595 if { (ac_try
="$ac_link"
6597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest$ac_exeext && {
6612 test "$cross_compiling" = yes ||
6613 $as_test_x conftest$ac_exeext
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6621 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6622 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6623 $as_echo_n "(cached) " >&6
6625 ac_check_lib_save_LIBS=$LIBS
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6634 /* Override any GCC internal prototype to avoid an error.
6635 Use char because int might match the return type of a GCC
6636 builtin and then its argument prototype would still apply. */
6644 return dnet_ntoa ();
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (ac_try="$ac_link"
6652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6653 *) ac_try_echo
=$ac_try;;
6655 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6656 $as_echo "$ac_try_echo") >&5
6657 (eval "$ac_link") 2>conftest.er1
6659 grep -v '^ *+' conftest.er1
>conftest.err
6661 cat conftest.err
>&5
6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest
$ac_exeext && {
6667 test "$cross_compiling" = yes ||
6668 $as_test_x conftest
$ac_exeext
6670 ac_cv_lib_dnet_dnet_ntoa
=yes
6672 $as_echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.
$ac_ext >&5
6675 ac_cv_lib_dnet_dnet_ntoa
=no
6678 rm -rf conftest.dSYM
6679 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6680 conftest
$ac_exeext conftest.
$ac_ext
6681 LIBS
=$ac_check_lib_save_LIBS
6683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6684 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6685 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6686 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6689 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6690 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6691 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6692 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6693 $as_echo_n "(cached) " >&6
6695 ac_check_lib_save_LIBS
=$LIBS
6696 LIBS
="-ldnet_stub $LIBS"
6697 cat >conftest.
$ac_ext <<_ACEOF
6700 cat confdefs.h
>>conftest.
$ac_ext
6701 cat >>conftest.
$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 /* Override any GCC internal prototype to avoid an error.
6705 Use char because int might match the return type of a GCC
6706 builtin and then its argument prototype would still apply. */
6714 return dnet_ntoa ();
6719 rm -f conftest.
$ac_objext conftest
$ac_exeext
6720 if { (ac_try
="$ac_link"
6722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_link") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest$ac_exeext && {
6737 test "$cross_compiling" = yes ||
6738 $as_test_x conftest$ac_exeext
6740 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_lib_dnet_stub_dnet_ntoa=no
6748 rm -rf conftest.dSYM
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6754 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6762 rm -rf conftest.dSYM
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LIBS="$ac_xsave_LIBS"
6767 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6768 # to get the SysV transport functions.
6769 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6771 # The nsl library prevents programs from opening the X display
6772 # on Irix 5.2, according to T.E. Dickey.
6773 # The functions gethostbyname, getservbyname, and inet_addr are
6774 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6775 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6776 $as_echo_n "checking for gethostbyname... " >&6; }
6777 if test "${ac_cv_func_gethostbyname+set}" = set; then
6778 $as_echo_n "(cached) " >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6788 #define gethostbyname innocuous_gethostbyname
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char gethostbyname (); below.
6792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793 <limits.h> exists even on freestanding compilers. */
6796 # include <limits.h>
6798 # include <assert.h>
6801 #undef gethostbyname
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6809 char gethostbyname ();
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6820 return gethostbyname ();
6825 rm -f conftest.$ac_objext conftest$ac_exeext
6826 if { (ac_try="$ac_link"
6828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6829 *) ac_try_echo
=$ac_try;;
6831 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6832 $as_echo "$ac_try_echo") >&5
6833 (eval "$ac_link") 2>conftest.er1
6835 grep -v '^ *+' conftest.er1
>conftest.err
6837 cat conftest.err
>&5
6838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest
$ac_exeext && {
6843 test "$cross_compiling" = yes ||
6844 $as_test_x conftest
$ac_exeext
6846 ac_cv_func_gethostbyname
=yes
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.
$ac_ext >&5
6851 ac_cv_func_gethostbyname
=no
6854 rm -rf conftest.dSYM
6855 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6856 conftest
$ac_exeext conftest.
$ac_ext
6858 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6859 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6861 if test $ac_cv_func_gethostbyname = no
; then
6862 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6863 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6864 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6865 $as_echo_n "(cached) " >&6
6867 ac_check_lib_save_LIBS
=$LIBS
6869 cat >conftest.
$ac_ext <<_ACEOF
6872 cat confdefs.h
>>conftest.
$ac_ext
6873 cat >>conftest.
$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 /* Override any GCC internal prototype to avoid an error.
6877 Use char because int might match the return type of a GCC
6878 builtin and then its argument prototype would still apply. */
6882 char gethostbyname ();
6886 return gethostbyname ();
6891 rm -f conftest.
$ac_objext conftest
$ac_exeext
6892 if { (ac_try
="$ac_link"
6894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_link") 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && {
6906 test -z "$ac_c_werror_flag" ||
6907 test ! -s conftest.err
6908 } && test -s conftest$ac_exeext && {
6909 test "$cross_compiling" = yes ||
6910 $as_test_x conftest$ac_exeext
6912 ac_cv_lib_nsl_gethostbyname=yes
6914 $as_echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_lib_nsl_gethostbyname=no
6920 rm -rf conftest.dSYM
6921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6926 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6927 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6931 if test $ac_cv_lib_nsl_gethostbyname = no; then
6932 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6933 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6934 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6935 $as_echo_n "(cached) " >&6
6937 ac_check_lib_save_LIBS=$LIBS
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6952 char gethostbyname ();
6956 return gethostbyname ();
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6965 *) ac_try_echo
=$ac_try;;
6967 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_link") 2>conftest.er1
6971 grep -v '^ *+' conftest.er1
>conftest.err
6973 cat conftest.err
>&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest
$ac_exeext && {
6979 test "$cross_compiling" = yes ||
6980 $as_test_x conftest
$ac_exeext
6982 ac_cv_lib_bsd_gethostbyname
=yes
6984 $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.
$ac_ext >&5
6987 ac_cv_lib_bsd_gethostbyname
=no
6990 rm -rf conftest.dSYM
6991 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6992 conftest
$ac_exeext conftest.
$ac_ext
6993 LIBS
=$ac_check_lib_save_LIBS
6995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6996 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6997 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6998 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7004 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7005 # socket/setsockopt and other routines are undefined under SCO ODT
7006 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7007 # on later versions), says Simon Leinen: it contains gethostby*
7008 # variants that don't use the name server (or something). -lsocket
7009 # must be given before -lnsl if both are needed. We assume that
7010 # if connect needs -lnsl, so does gethostbyname.
7011 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7012 $as_echo_n "checking for connect... " >&6; }
7013 if test "${ac_cv_func_connect+set}" = set; then
7014 $as_echo_n "(cached) " >&6
7016 cat >conftest.
$ac_ext <<_ACEOF
7019 cat confdefs.h
>>conftest.
$ac_ext
7020 cat >>conftest.
$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7024 #define connect innocuous_connect
7026 /* System header to define __stub macros and hopefully few prototypes,
7027 which can conflict with char connect (); below.
7028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029 <limits.h> exists even on freestanding compilers. */
7032 # include <limits.h>
7034 # include <assert.h>
7039 /* Override any GCC internal prototype to avoid an error.
7040 Use char because int might match the return type of a GCC
7041 builtin and then its argument prototype would still apply. */
7046 /* The GNU C library defines this for functions which it implements
7047 to always fail with ENOSYS. Some functions are actually named
7048 something starting with __ and the normal name is an alias. */
7049 #if defined __stub_connect || defined __stub___connect
7061 rm -f conftest.
$ac_objext conftest
$ac_exeext
7062 if { (ac_try
="$ac_link"
7064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068 $as_echo "$ac_try_echo") >&5
7069 (eval "$ac_link") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && {
7076 test -z "$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7078 } && test -s conftest$ac_exeext && {
7079 test "$cross_compiling" = yes ||
7080 $as_test_x conftest$ac_exeext
7082 ac_cv_func_connect=yes
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_func_connect=no
7090 rm -rf conftest.dSYM
7091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7092 conftest$ac_exeext conftest.$ac_ext
7094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7095 $as_echo "$ac_cv_func_connect" >&6; }
7097 if test $ac_cv_func_connect = no; then
7098 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7099 $as_echo_n "checking for connect in -lsocket... " >&6; }
7100 if test "${ac_cv_lib_socket_connect+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (ac_try="$ac_link"
7130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7131 *) ac_try_echo
=$ac_try;;
7133 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_link") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1
>conftest.err
7139 cat conftest.err
>&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest
$ac_exeext && {
7145 test "$cross_compiling" = yes ||
7146 $as_test_x conftest
$ac_exeext
7148 ac_cv_lib_socket_connect
=yes
7150 $as_echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.
$ac_ext >&5
7153 ac_cv_lib_socket_connect
=no
7156 rm -rf conftest.dSYM
7157 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7158 conftest
$ac_exeext conftest.
$ac_ext
7159 LIBS
=$ac_check_lib_save_LIBS
7161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7162 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7163 if test $ac_cv_lib_socket_connect = yes; then
7164 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7169 # Guillermo Gomez says -lposix is necessary on A/UX.
7170 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7171 $as_echo_n "checking for remove... " >&6; }
7172 if test "${ac_cv_func_remove+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7183 #define remove innocuous_remove
7185 /* System header to define __stub macros and hopefully few prototypes,
7186 which can conflict with char remove (); below.
7187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 <limits.h> exists even on freestanding compilers. */
7191 # include <limits.h>
7193 # include <assert.h>
7198 /* Override any GCC internal prototype to avoid an error.
7199 Use char because int might match the return type of a GCC
7200 builtin and then its argument prototype would still apply. */
7205 /* The GNU C library defines this for functions which it implements
7206 to always fail with ENOSYS. Some functions are actually named
7207 something starting with __ and the normal name is an alias. */
7208 #if defined __stub_remove || defined __stub___remove
7220 rm -f conftest.
$ac_objext conftest
$ac_exeext
7221 if { (ac_try
="$ac_link"
7223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_link") 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest$ac_exeext && {
7238 test "$cross_compiling" = yes ||
7239 $as_test_x conftest$ac_exeext
7241 ac_cv_func_remove=yes
7243 $as_echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_func_remove=no
7249 rm -rf conftest.dSYM
7250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7251 conftest$ac_exeext conftest.$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7254 $as_echo "$ac_cv_func_remove" >&6; }
7256 if test $ac_cv_func_remove = no; then
7257 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7258 $as_echo_n "checking for remove in -lposix... " >&6; }
7259 if test "${ac_cv_lib_posix_remove+set}" = set; then
7260 $as_echo_n "(cached) " >&6
7262 ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lposix $LIBS"
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7290 *) ac_try_echo
=$ac_try;;
7292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_link") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1
>conftest.err
7298 cat conftest.err
>&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest
$ac_exeext && {
7304 test "$cross_compiling" = yes ||
7305 $as_test_x conftest
$ac_exeext
7307 ac_cv_lib_posix_remove
=yes
7309 $as_echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.
$ac_ext >&5
7312 ac_cv_lib_posix_remove
=no
7315 rm -rf conftest.dSYM
7316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7317 conftest
$ac_exeext conftest.
$ac_ext
7318 LIBS
=$ac_check_lib_save_LIBS
7320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7321 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7322 if test $ac_cv_lib_posix_remove = yes; then
7323 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7328 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7329 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7330 $as_echo_n "checking for shmat... " >&6; }
7331 if test "${ac_cv_func_shmat+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7334 cat >conftest.
$ac_ext <<_ACEOF
7337 cat confdefs.h
>>conftest.
$ac_ext
7338 cat >>conftest.
$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7342 #define shmat innocuous_shmat
7344 /* System header to define __stub macros and hopefully few prototypes,
7345 which can conflict with char shmat (); below.
7346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7347 <limits.h> exists even on freestanding compilers. */
7350 # include <limits.h>
7352 # include <assert.h>
7357 /* Override any GCC internal prototype to avoid an error.
7358 Use char because int might match the return type of a GCC
7359 builtin and then its argument prototype would still apply. */
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined __stub_shmat || defined __stub___shmat
7379 rm -f conftest.
$ac_objext conftest
$ac_exeext
7380 if { (ac_try
="$ac_link"
7382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7386 $as_echo "$ac_try_echo") >&5
7387 (eval "$ac_link") 2>conftest.er1
7389 grep -v '^ *+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest$ac_exeext && {
7397 test "$cross_compiling" = yes ||
7398 $as_test_x conftest$ac_exeext
7400 ac_cv_func_shmat=yes
7402 $as_echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7408 rm -rf conftest.dSYM
7409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410 conftest$ac_exeext conftest.$ac_ext
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7413 $as_echo "$ac_cv_func_shmat" >&6; }
7415 if test $ac_cv_func_shmat = no; then
7416 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7417 $as_echo_n "checking for shmat in -lipc... " >&6; }
7418 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7419 $as_echo_n "(cached) " >&6
7421 ac_check_lib_save_LIBS=$LIBS
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7449 *) ac_try_echo
=$ac_try;;
7451 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453 (eval "$ac_link") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1
>conftest.err
7457 cat conftest.err
>&5
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest
$ac_exeext && {
7463 test "$cross_compiling" = yes ||
7464 $as_test_x conftest
$ac_exeext
7466 ac_cv_lib_ipc_shmat
=yes
7468 $as_echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.
$ac_ext >&5
7471 ac_cv_lib_ipc_shmat
=no
7474 rm -rf conftest.dSYM
7475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7476 conftest
$ac_exeext conftest.
$ac_ext
7477 LIBS
=$ac_check_lib_save_LIBS
7479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7480 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7481 if test $ac_cv_lib_ipc_shmat = yes; then
7482 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7488 # Check for libraries that X11R6 Xt/Xaw programs need.
7489 ac_save_LDFLAGS
=$LDFLAGS
7490 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7492 # check for ICE first), but we must link in the order -lSM -lICE or
7493 # we get undefined symbols. So assume we have SM if we have ICE.
7494 # These have to be linked with before -lX11, unlike the other
7495 # libraries we check for below, so use a different variable.
7496 # John Interrante, Karl Berry
7497 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7498 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7499 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7502 ac_check_lib_save_LIBS
=$LIBS
7503 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7504 cat >conftest.
$ac_ext <<_ACEOF
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7511 /* Override any GCC internal prototype to avoid an error.
7512 Use char because int might match the return type of a GCC
7513 builtin and then its argument prototype would still apply. */
7517 char IceConnectionNumber ();
7521 return IceConnectionNumber ();
7526 rm -f conftest.
$ac_objext conftest
$ac_exeext
7527 if { (ac_try
="$ac_link"
7529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_link") 2>conftest.er1
7536 grep -v '^ *+' conftest.er1 >conftest.err
7538 cat conftest.err >&5
7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest$ac_exeext && {
7544 test "$cross_compiling" = yes ||
7545 $as_test_x conftest$ac_exeext
7547 ac_cv_lib_ICE_IceConnectionNumber=yes
7549 $as_echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_lib_ICE_IceConnectionNumber=no
7555 rm -rf conftest.dSYM
7556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7561 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7562 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7563 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7566 LDFLAGS=$ac_save_LDFLAGS
7571 if test "$OS390Unix" = "yes"; then
7572 CFLAGS="$CFLAGS -W c,dll"
7573 LDFLAGS="$LDFLAGS -W l,dll"
7574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7578 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7579 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7580 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7581 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7582 X_LIBS="$X_LIBS -L$x_libraries"
7583 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7584 uname -r | grep '^5' >/dev/null; then
7585 X_LIBS="$X_LIBS -R $x_libraries"
7589 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7590 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7591 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7592 $as_echo "Corrected X includes to $x_includes" >&6; }
7593 X_CFLAGS="$X_CFLAGS -I$x_includes"
7596 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7597 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7598 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7601 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7602 $as_echo_n "checking if X11 header files can be found... " >&6; }
7604 CFLAGS="$CFLAGS $X_CFLAGS"
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <X11/Xlib.h>
7612 #include <X11/Intrinsic.h>
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7625 *) ac_try_echo
=$ac_try;;
7627 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7628 $as_echo "$ac_try_echo") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1
>conftest.err
7633 cat conftest.err
>&5
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.
$ac_objext; then
7639 { $as_echo "$as_me:$LINENO: result: yes" >&5
7640 $as_echo "yes" >&6; }
7642 $as_echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.
$ac_ext >&5
7645 { $as_echo "$as_me:$LINENO: result: no" >&5
7646 $as_echo "no" >&6; }; no_x
=yes
7649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7652 if test "${no_x-no}" = yes; then
7655 cat >>confdefs.h
<<\_ACEOF
7662 ac_save_LDFLAGS
="$LDFLAGS"
7663 LDFLAGS
="-L$x_libraries $LDFLAGS"
7665 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7666 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7667 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7668 $as_echo_n "(cached) " >&6
7670 ac_check_lib_save_LIBS
=$LIBS
7671 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7685 char _XdmcpAuthDoIt ();
7689 return _XdmcpAuthDoIt ();
7694 rm -f conftest.
$ac_objext conftest
$ac_exeext
7695 if { (ac_try
="$ac_link"
7697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701 $as_echo "$ac_try_echo") >&5
7702 (eval "$ac_link") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest$ac_exeext && {
7712 test "$cross_compiling" = yes ||
7713 $as_test_x conftest$ac_exeext
7715 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7717 $as_echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7723 rm -rf conftest.dSYM
7724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7728 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7729 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7730 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7735 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7736 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7737 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7738 $as_echo_n "(cached) " >&6
7740 ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7755 char IceOpenConnection ();
7759 return IceOpenConnection ();
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (ac_try="$ac_link"
7767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7768 *) ac_try_echo
=$ac_try;;
7770 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772 (eval "$ac_link") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1
>conftest.err
7776 cat conftest.err
>&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest
$ac_exeext && {
7782 test "$cross_compiling" = yes ||
7783 $as_test_x conftest
$ac_exeext
7785 ac_cv_lib_ICE_IceOpenConnection
=yes
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.
$ac_ext >&5
7790 ac_cv_lib_ICE_IceOpenConnection
=no
7793 rm -rf conftest.dSYM
7794 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7795 conftest
$ac_exeext conftest.
$ac_ext
7796 LIBS
=$ac_check_lib_save_LIBS
7798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7799 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7800 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7801 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7805 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7806 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7807 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7808 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7809 $as_echo_n "(cached) " >&6
7811 ac_check_lib_save_LIBS
=$LIBS
7812 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7813 cat >conftest.
$ac_ext <<_ACEOF
7816 cat confdefs.h
>>conftest.
$ac_ext
7817 cat >>conftest.
$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7826 char XpmCreatePixmapFromData ();
7830 return XpmCreatePixmapFromData ();
7835 rm -f conftest.
$ac_objext conftest
$ac_exeext
7836 if { (ac_try
="$ac_link"
7838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842 $as_echo "$ac_try_echo") >&5
7843 (eval "$ac_link") 2>conftest.er1
7845 grep -v '^ *+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest$ac_exeext && {
7853 test "$cross_compiling" = yes ||
7854 $as_test_x conftest$ac_exeext
7856 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7858 $as_echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7864 rm -rf conftest.dSYM
7865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7866 conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7870 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7871 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7872 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7876 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7877 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7879 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <X11/Xlib.h>
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7899 *) ac_try_echo
=$ac_try;;
7901 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1
>conftest.err
7907 cat conftest.err
>&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.
$ac_objext; then
7913 { $as_echo "$as_me:$LINENO: result: no" >&5
7914 $as_echo "no" >&6; }
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.
$ac_ext >&5
7919 CFLAGS
="$CFLAGS -Wno-implicit-int"
7920 cat >conftest.
$ac_ext <<_ACEOF
7923 cat confdefs.h
>>conftest.
$ac_ext
7924 cat >>conftest.
$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <X11/Xlib.h>
7935 rm -f conftest.
$ac_objext
7936 if { (ac_try
="$ac_compile"
7938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 { $as_echo "$as_me:$LINENO: result: yes" >&5
7954 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7956 $as_echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7960 $as_echo "test failed" >&6; }
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 LDFLAGS="$ac_save_LDFLAGS"
7976 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7978 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7979 $as_echo_n "checking --enable-gui argument... " >&6; }
7980 # Check whether --enable-gui was given.
7981 if test "${enable_gui+set}" = set; then
7982 enableval=$enable_gui;
7988 enable_gui_canon=`echo "_$enable_gui" | \
7989 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8001 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8003 case "$enable_gui_canon" in
8004 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8005 $as_echo "no GUI support" >&6; }
8007 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8008 $as_echo "yes - automatic GUI support" >&6; } ;;
8009 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8010 $as_echo "auto - automatic GUI support" >&6; } ;;
8011 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8012 $as_echo "Photon GUI support" >&6; } ;;
8013 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8014 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8018 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8020 case "$enable_gui_canon" in
8021 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8022 $as_echo "no GUI support" >&6; }
8024 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8025 $as_echo "yes - automatic GUI support" >&6; } ;;
8026 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8027 $as_echo "auto - automatic GUI support" >&6; } ;;
8028 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8029 $as_echo "Carbon GUI support" >&6; } ;;
8030 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8031 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8037 case "$enable_gui_canon" in
8038 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8039 $as_echo "no GUI support" >&6; } ;;
8040 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8041 $as_echo "yes/auto - automatic GUI support" >&6; }
8049 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8050 $as_echo "GTK+ 1.x GUI support" >&6; }
8052 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8053 $as_echo "GTK+ 2.x GUI support" >&6; }
8056 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8057 $as_echo "GNOME 1.x GUI support" >&6; }
8060 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8061 $as_echo "GNOME 2.x GUI support" >&6; }
8065 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8066 $as_echo "Motif GUI support" >&6; }
8068 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8069 $as_echo "Athena GUI support" >&6; }
8071 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8072 $as_echo "neXtaw GUI support" >&6; }
8074 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8075 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8080 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8081 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8082 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8083 # Check whether --enable-gtk-check was given.
8084 if test "${enable_gtk_check+set}" = set; then
8085 enableval=$enable_gtk_check;
8087 enable_gtk_check="yes"
8090 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8091 $as_echo "$enable_gtk_check" >&6; }
8092 if test "x$enable_gtk_check" = "xno"; then
8098 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8099 -a "$enable_gui_canon" != "gnome2"; then
8100 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8101 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8102 # Check whether --enable-gtk2-check was given.
8103 if test "${enable_gtk2_check+set}" = set; then
8104 enableval=$enable_gtk2_check;
8106 enable_gtk2_check="yes"
8109 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8110 $as_echo "$enable_gtk2_check" >&6; }
8111 if test "x$enable_gtk2_check" = "xno"; then
8116 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8117 -a "$enable_gui_canon" != "gnome2"; then
8118 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8119 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8120 # Check whether --enable-gnome-check was given.
8121 if test "${enable_gnome_check+set}" = set; then
8122 enableval=$enable_gnome_check;
8124 enable_gnome_check="no"
8127 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8128 $as_echo "$enable_gnome_check" >&6; }
8129 if test "x$enable_gnome_check" = "xno"; then
8134 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8135 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8136 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8137 # Check whether --enable-motif-check was given.
8138 if test "${enable_motif_check+set}" = set; then
8139 enableval=$enable_motif_check;
8141 enable_motif_check="yes"
8144 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8145 $as_echo "$enable_motif_check" >&6; }
8146 if test "x$enable_motif_check" = "xno"; then
8151 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8152 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8153 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8154 # Check whether --enable-athena-check was given.
8155 if test "${enable_athena_check+set}" = set; then
8156 enableval=$enable_athena_check;
8158 enable_athena_check="yes"
8161 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8162 $as_echo "$enable_athena_check" >&6; }
8163 if test "x$enable_athena_check" = "xno"; then
8168 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8169 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8170 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8171 # Check whether --enable-nextaw-check was given.
8172 if test "${enable_nextaw_check+set}" = set; then
8173 enableval=$enable_nextaw_check;
8175 enable_nextaw_check="yes"
8178 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8179 $as_echo "$enable_nextaw_check" >&6; };
8180 if test "x$enable_nextaw_check" = "xno"; then
8185 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8186 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8187 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8188 # Check whether --enable-carbon-check was given.
8189 if test "${enable_carbon_check+set}" = set; then
8190 enableval=$enable_carbon_check;
8192 enable_carbon_check="yes"
8195 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8196 $as_echo "$enable_carbon_check" >&6; };
8197 if test "x$enable_carbon_check" = "xno"; then
8203 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8204 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8205 $as_echo_n "checking for Carbon GUI... " >&6; }
8206 { $as_echo "$as_me:$LINENO: result: yes" >&5
8207 $as_echo "yes" >&6; };
8209 if test "$VIMNAME" = "vim"; then
8213 if test x$prefix = xNONE; then
8214 prefix=/Applications
8217 datadir='${prefix}/Vim.app/Contents/Resources'
8237 if test -z "$SKIP_GTK"; then
8239 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8240 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8242 # Check whether --with-gtk-prefix was given.
8243 if test "${with_gtk_prefix+set}" = set; then
8244 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8245 $as_echo "$gtk_config_prefix" >&6; }
8247 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8248 $as_echo "no" >&6; }
8252 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8253 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8255 # Check whether --with-gtk-exec-prefix was given.
8256 if test "${with_gtk_exec_prefix+set}" = set; then
8257 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8258 $as_echo "$gtk_config_prefix" >&6; }
8260 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8261 $as_echo "no" >&6; }
8265 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8266 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8267 # Check whether --enable-gtktest was given.
8268 if test "${enable_gtktest+set}" = set; then
8269 enableval=$enable_gtktest;
8274 if test "x$enable_gtktest" = "xyes" ; then
8275 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8276 $as_echo "gtk test enabled" >&6; }
8278 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8279 $as_echo "gtk test disabled" >&6; }
8282 if test "x$gtk_config_prefix" != "x" ; then
8283 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8284 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8286 if test "x$gtk_config_exec_prefix" != "x" ; then
8287 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8288 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8290 if test "X$GTK_CONFIG" = "X"; then
8291 # Extract the first word of "gtk-config", so it can be a program name with args.
8292 set dummy gtk-config; ac_word=$2
8293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8296 $as_echo_n "(cached) " >&6
8300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8322 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8323 if test -n "$GTK_CONFIG"; then
8324 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8325 $as_echo "$GTK_CONFIG" >&6; }
8327 { $as_echo "$as_me:$LINENO: result: no" >&5
8328 $as_echo "no" >&6; }
8332 if test "X$GTK_CONFIG" = "Xno"; then
8333 # Extract the first word of "gtk12-config", so it can be a program name with args.
8334 set dummy gtk12-config; ac_word=$2
8335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8338 $as_echo_n "(cached) " >&6
8340 case $GTK12_CONFIG in
8342 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8364 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8365 if test -n "$GTK12_CONFIG"; then
8366 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8367 $as_echo "$GTK12_CONFIG" >&6; }
8369 { $as_echo "$as_me:$LINENO: result: no" >&5
8370 $as_echo "no" >&6; }
8374 GTK_CONFIG="$GTK12_CONFIG"
8377 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8378 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8380 if test "X$PKG_CONFIG" = "X"; then
8381 # Extract the first word of "pkg-config", so it can be a program name with args.
8382 set dummy pkg-config; ac_word=$2
8383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8413 if test -n "$PKG_CONFIG"; then
8414 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8415 $as_echo "$PKG_CONFIG" >&6; }
8417 { $as_echo "$as_me:$LINENO: result: no" >&5
8418 $as_echo "no" >&6; }
8424 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8425 if test "X$SKIP_GTK2" != "XYES"; then
8427 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8429 min_gtk_version=2.2.0
8430 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8431 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8433 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8434 && $PKG_CONFIG --exists gtk+-2.0; then
8436 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8437 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8438 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8439 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8440 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8441 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8442 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8443 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8444 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8446 elif test "X$GTK_CONFIG" != "Xno"; then
8448 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8450 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8451 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8452 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8453 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8454 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8455 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8456 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8462 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8464 ac_save_CFLAGS="$CFLAGS"
8465 ac_save_LIBS="$LIBS"
8466 CFLAGS="$CFLAGS $GTK_CFLAGS"
8467 LIBS="$LIBS $GTK_LIBS"
8470 if test "$cross_compiling" = yes; then
8471 echo $ac_n "cross compiling; assumed OK... $ac_c"
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8480 #include <gtk/gtk.h>
8483 # include <stdlib.h>
8484 # include <stddef.h>
8490 int major, minor, micro;
8493 system ("touch conf.gtktest");
8495 /* HP/UX 9 (%@#!) writes to sscanf strings */
8496 tmp_version = g_strdup("$min_gtk_version");
8497 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8498 printf("%s, bad version string\n", "$min_gtk_version");
8502 if ((gtk_major_version > major) ||
8503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8504 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8505 (gtk_micro_version >= micro)))
8513 rm -f conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8517 *) ac_try_echo
=$ac_try;;
8519 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8520 $as_echo "$ac_try_echo") >&5
8521 (eval "$ac_link") 2>&5
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8525 { (case "(($ac_try" in
8526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_try") 2>&5
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8537 $as_echo "$as_me: program exited with status $ac_status" >&5
8538 $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8544 rm -rf conftest.dSYM
8545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8549 CFLAGS="$ac_save_CFLAGS"
8550 LIBS="$ac_save_LIBS"
8553 if test "x$no_gtk" = x ; then
8554 if test "x$enable_gtktest" = "xyes"; then
8555 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8556 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8558 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8559 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8561 GUI_LIB_LOC="$GTK_LIBDIR"
8562 GTK_LIBNAME="$GTK_LIBS"
8563 GUI_INC_LOC="$GTK_CFLAGS"
8566 { $as_echo "$as_me:$LINENO: result: no" >&5
8567 $as_echo "no" >&6; }
8583 if test "x$GTK_CFLAGS" != "x"; then
8592 if test "x$GUITYPE" != "xGTK"; then
8595 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8597 min_gtk_version=1.1.16
8598 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8599 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8601 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8602 && $PKG_CONFIG --exists gtk+-2.0; then
8604 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8605 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8606 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8607 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8609 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8610 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8611 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8612 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8614 elif test "X$GTK_CONFIG" != "Xno"; then
8616 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8618 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8619 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8620 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8621 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8622 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8623 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8624 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8630 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8632 ac_save_CFLAGS="$CFLAGS"
8633 ac_save_LIBS="$LIBS"
8634 CFLAGS="$CFLAGS $GTK_CFLAGS"
8635 LIBS="$LIBS $GTK_LIBS"
8638 if test "$cross_compiling" = yes; then
8639 echo $ac_n "cross compiling; assumed OK... $ac_c"
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 #include <gtk/gtk.h>
8651 # include <stdlib.h>
8652 # include <stddef.h>
8658 int major, minor, micro;
8661 system ("touch conf.gtktest");
8663 /* HP/UX 9 (%@#!) writes to sscanf strings */
8664 tmp_version = g_strdup("$min_gtk_version");
8665 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8666 printf("%s, bad version string\n", "$min_gtk_version");
8670 if ((gtk_major_version > major) ||
8671 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8672 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8673 (gtk_micro_version >= micro)))
8681 rm -f conftest$ac_exeext
8682 if { (ac_try="$ac_link"
8684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8685 *) ac_try_echo
=$ac_try;;
8687 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_link") 2>&5
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8693 { (case "(($ac_try" in
8694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_try") 2>&5
8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8705 $as_echo "$as_me: program exited with status $ac_status" >&5
8706 $as_echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8712 rm -rf conftest.dSYM
8713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8717 CFLAGS="$ac_save_CFLAGS"
8718 LIBS="$ac_save_LIBS"
8721 if test "x$no_gtk" = x ; then
8722 if test "x$enable_gtktest" = "xyes"; then
8723 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8724 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8726 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8727 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8729 GTK_LIBNAME="$GTK_LIBS"
8730 GUI_INC_LOC="$GTK_CFLAGS"
8733 { $as_echo "$as_me:$LINENO: result: no" >&5
8734 $as_echo "no" >&6; }
8750 if test "x$GTK_CFLAGS" != "x"; then
8759 if test "x$GUITYPE" = "xGTK"; then
8760 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8761 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8762 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8763 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8766 if test "0$gtk_major_version" -ge 2; then
8767 cat >>confdefs.h <<\_ACEOF
8771 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8772 || test "0$gtk_minor_version" -ge 2 \
8773 || test "0$gtk_major_version" -gt 2; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_GTK_MULTIHEAD 1
8780 if test -z "$SKIP_GNOME"; then
8788 # Check whether --with-gnome-includes was given.
8789 if test "${with_gnome_includes+set}" = set; then
8790 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8796 # Check whether --with-gnome-libs was given.
8797 if test "${with_gnome_libs+set}" = set; then
8798 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8804 # Check whether --with-gnome was given.
8805 if test "${with_gnome+set}" = set; then
8806 withval=$with_gnome; if test x$withval = xyes; then
8810 if test "x$withval" = xno; then
8814 LDFLAGS="$LDFLAGS -L$withval/lib"
8815 CFLAGS="$CFLAGS -I$withval/include"
8816 gnome_prefix=$withval/lib
8824 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8826 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8827 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8828 if $PKG_CONFIG --exists libgnomeui-2.0; then
8829 { $as_echo "$as_me:$LINENO: result: yes" >&5
8830 $as_echo "yes" >&6; }
8831 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8832 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8833 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8835 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8836 $as_echo_n "checking for FreeBSD... " >&6; }
8837 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8838 { $as_echo "$as_me:$LINENO: result: yes" >&5
8839 $as_echo "yes" >&6; }
8840 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8841 GNOME_LIBS="$GNOME_LIBS -pthread"
8843 { $as_echo "$as_me:$LINENO: result: no" >&5
8844 $as_echo "no" >&6; }
8848 { $as_echo "$as_me:$LINENO: result: not found" >&5
8849 $as_echo "not found" >&6; }
8850 if test "x" = xfail; then
8851 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8852 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8853 { (exit 1); exit 1; }; }
8857 elif test "x$want_gnome" = xyes; then
8859 # Extract the first word of "gnome-config", so it can be a program name with args.
8860 set dummy gnome-config; ac_word=$2
8861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8864 $as_echo_n "(cached) " >&6
8866 case $GNOME_CONFIG in
8868 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8890 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8891 if test -n "$GNOME_CONFIG"; then
8892 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8893 $as_echo "$GNOME_CONFIG" >&6; }
8895 { $as_echo "$as_me:$LINENO: result: no" >&5
8896 $as_echo "no" >&6; }
8900 if test "$GNOME_CONFIG" = "no"; then
8901 no_gnome_config="yes"
8903 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8904 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8905 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8906 { $as_echo "$as_me:$LINENO: result: yes" >&5
8907 $as_echo "yes" >&6; }
8908 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
8909 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
8910 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
8913 { $as_echo "$as_me:$LINENO: result: no" >&5
8914 $as_echo "no" >&6; }
8915 no_gnome_config="yes"
8919 if test x$exec_prefix = xNONE; then
8920 if test x$prefix = xNONE; then
8921 gnome_prefix=$ac_default_prefix/lib
8923 gnome_prefix=$prefix/lib
8926 gnome_prefix=`eval echo \
`echo $libdir\``
8929 if test "$no_gnome_config" = "yes"; then
8930 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8931 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8932 if test -f $gnome_prefix/gnomeConf.sh; then
8933 { $as_echo "$as_me:$LINENO: result: found" >&5
8934 $as_echo "found" >&6; }
8935 echo "loading gnome configuration from" \
8936 "$gnome_prefix/gnomeConf.sh"
8937 . $gnome_prefix/gnomeConf.sh
8940 { $as_echo "$as_me:$LINENO: result: not found" >&5
8941 $as_echo "not found" >&6; }
8942 if test x = xfail; then
8943 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8944 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8945 { (exit 1); exit 1; }; }
8952 if test x$have_gnome = xyes ; then
8953 cat >>confdefs.h <<\_ACEOF
8954 #define FEAT_GUI_GNOME 1
8957 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8958 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8968 if test -z "$SKIP_MOTIF"; then
8969 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"
8970 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
8972 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8973 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
8974 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
8976 for try in $gui_includes; do
8977 if test -f "$try/Xm/Xm.h"; then
8981 if test -n "$GUI_INC_LOC"; then
8982 if test "$GUI_INC_LOC" = /usr/include; then
8984 { $as_echo "$as_me:$LINENO: result: in default path" >&5
8985 $as_echo "in default path" >&6; }
8987 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8988 $as_echo "$GUI_INC_LOC" >&6; }
8991 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8992 $as_echo "<not found>" >&6; }
8998 if test -z "$SKIP_MOTIF"; then
8999 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9000 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9002 # Check whether --with-motif-lib was given.
9003 if test "${with_motif_lib+set}" = set; then
9004 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9008 if test -n "$MOTIF_LIBNAME"; then
9009 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9010 $as_echo "$MOTIF_LIBNAME" >&6; }
9013 { $as_echo "$as_me:$LINENO: result: no" >&5
9014 $as_echo "no" >&6; }
9016 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9018 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9019 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9020 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"
9022 for try in $gui_libs; do
9023 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9024 if test -f "$libtry"; then
9029 if test -n "$GUI_LIB_LOC"; then
9030 if test "$GUI_LIB_LOC" = /usr/lib; then
9032 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9033 $as_echo "in default path" >&6; }
9035 if test -n "$GUI_LIB_LOC"; then
9036 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9037 $as_echo "$GUI_LIB_LOC" >&6; }
9038 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9039 uname -r | grep '^5' >/dev/null; then
9040 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9046 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9047 $as_echo "<not found>" >&6; }
9053 if test -z "$SKIP_MOTIF"; then
9063 if test -z "$SKIP_ATHENA"; then
9064 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9065 $as_echo_n "checking if Athena header files can be found... " >&6; }
9067 CFLAGS="$CFLAGS $X_CFLAGS"
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 #include <X11/Intrinsic.h>
9076 #include <X11/Xaw/Paned.h>
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9089 *) ac_try_echo
=$ac_try;;
9091 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9092 $as_echo "$ac_try_echo") >&5
9093 (eval "$ac_compile") 2>conftest.er1
9095 grep -v '^ *+' conftest.er1
>conftest.err
9097 cat conftest.err
>&5
9098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest.
$ac_objext; then
9103 { $as_echo "$as_me:$LINENO: result: yes" >&5
9104 $as_echo "yes" >&6; }
9106 $as_echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.
$ac_ext >&5
9109 { $as_echo "$as_me:$LINENO: result: no" >&5
9110 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9117 if test -z "$SKIP_ATHENA"; then
9121 if test -z "$SKIP_NEXTAW"; then
9122 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9123 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9125 CFLAGS
="$CFLAGS $X_CFLAGS"
9126 cat >conftest.
$ac_ext <<_ACEOF
9129 cat confdefs.h
>>conftest.
$ac_ext
9130 cat >>conftest.
$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9133 #include <X11/Intrinsic.h>
9134 #include <X11/neXtaw/Paned.h>
9143 rm -f conftest.
$ac_objext
9144 if { (ac_try
="$ac_compile"
9146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9150 $as_echo "$ac_try_echo") >&5
9151 (eval "$ac_compile") 2>conftest.er1
9153 grep -v '^ *+' conftest.er1 >conftest.err
9155 cat conftest.err >&5
9156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
9161 { $as_echo "$as_me:$LINENO: result: yes" >&5
9162 $as_echo "yes" >&6; }
9164 $as_echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 { $as_echo "$as_me:$LINENO: result: no" >&5
9168 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 if test -z "$SKIP_NEXTAW"; then
9179 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9180 if test -n "$GUI_INC_LOC"; then
9181 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9183 if test -n "$GUI_LIB_LOC"; then
9184 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9187 ldflags_save=$LDFLAGS
9188 LDFLAGS="$X_LIBS $LDFLAGS"
9189 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9190 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9191 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9192 $as_echo_n "(cached) " >&6
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9209 char XShapeQueryExtension ();
9213 return XShapeQueryExtension ();
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9222 *) ac_try_echo
=$ac_try;;
9224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9225 $as_echo "$ac_try_echo") >&5
9226 (eval "$ac_link") 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest
$ac_exeext && {
9236 test "$cross_compiling" = yes ||
9237 $as_test_x conftest
$ac_exeext
9239 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9241 $as_echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.
$ac_ext >&5
9244 ac_cv_lib_Xext_XShapeQueryExtension
=no
9247 rm -rf conftest.dSYM
9248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9249 conftest
$ac_exeext conftest.
$ac_ext
9250 LIBS
=$ac_check_lib_save_LIBS
9252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9253 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9254 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9258 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9259 $as_echo_n "checking for wslen in -lw... " >&6; }
9260 if test "${ac_cv_lib_w_wslen+set}" = set; then
9261 $as_echo_n "(cached) " >&6
9263 ac_check_lib_save_LIBS
=$LIBS
9264 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9265 cat >conftest.
$ac_ext <<_ACEOF
9268 cat confdefs.h
>>conftest.
$ac_ext
9269 cat >>conftest.
$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9287 rm -f conftest.
$ac_objext conftest
$ac_exeext
9288 if { (ac_try
="$ac_link"
9290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294 $as_echo "$ac_try_echo") >&5
9295 (eval "$ac_link") 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && {
9302 test -z "$ac_c_werror_flag" ||
9303 test ! -s conftest.err
9304 } && test -s conftest$ac_exeext && {
9305 test "$cross_compiling" = yes ||
9306 $as_test_x conftest$ac_exeext
9308 ac_cv_lib_w_wslen=yes
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_lib_w_wslen=no
9316 rm -rf conftest.dSYM
9317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9318 conftest$ac_exeext conftest.$ac_ext
9319 LIBS=$ac_check_lib_save_LIBS
9321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9322 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9323 if test $ac_cv_lib_w_wslen = yes; then
9324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9327 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9328 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9329 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9330 $as_echo_n "(cached) " >&6
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9334 cat >conftest.$ac_ext <<_ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9341 /* Override any GCC internal prototype to avoid an error.
9342 Use char because int might match the return type of a GCC
9343 builtin and then its argument prototype would still apply. */
9356 rm -f conftest.$ac_objext conftest$ac_exeext
9357 if { (ac_try="$ac_link"
9359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9360 *) ac_try_echo
=$ac_try;;
9362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9363 $as_echo "$ac_try_echo") >&5
9364 (eval "$ac_link") 2>conftest.er1
9366 grep -v '^ *+' conftest.er1
>conftest.err
9368 cat conftest.err
>&5
9369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest
$ac_exeext && {
9374 test "$cross_compiling" = yes ||
9375 $as_test_x conftest
$ac_exeext
9377 ac_cv_lib_dl_dlsym
=yes
9379 $as_echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.
$ac_ext >&5
9382 ac_cv_lib_dl_dlsym
=no
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9387 conftest
$ac_exeext conftest.
$ac_ext
9388 LIBS
=$ac_check_lib_save_LIBS
9390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9391 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9392 if test $ac_cv_lib_dl_dlsym = yes; then
9393 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9396 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9397 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9398 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9401 ac_check_lib_save_LIBS
=$LIBS
9402 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9403 cat >conftest.
$ac_ext <<_ACEOF
9406 cat confdefs.h
>>conftest.
$ac_ext
9407 cat >>conftest.
$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9416 char XmuCreateStippledPixmap ();
9420 return XmuCreateStippledPixmap ();
9425 rm -f conftest.
$ac_objext conftest
$ac_exeext
9426 if { (ac_try
="$ac_link"
9428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_link") 2>conftest.er1
9435 grep -v '^ *+' conftest.er1 >conftest.err
9437 cat conftest.err >&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest$ac_exeext && {
9443 test "$cross_compiling" = yes ||
9444 $as_test_x conftest$ac_exeext
9446 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9454 rm -rf conftest.dSYM
9455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456 conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9460 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9461 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9462 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9465 if test -z "$SKIP_MOTIF"; then
9466 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9467 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9468 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9469 $as_echo_n "(cached) " >&6
9471 ac_check_lib_save_LIBS=$LIBS
9472 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9499 *) ac_try_echo
=$ac_try;;
9501 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9505 grep -v '^ *+' conftest.er1
>conftest.err
9507 cat conftest.err
>&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest
$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest
$ac_exeext
9516 ac_cv_lib_Xp_XpEndJob
=yes
9518 $as_echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.
$ac_ext >&5
9521 ac_cv_lib_Xp_XpEndJob
=no
9524 rm -rf conftest.dSYM
9525 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9526 conftest
$ac_exeext conftest.
$ac_ext
9527 LIBS
=$ac_check_lib_save_LIBS
9529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9530 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9531 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9532 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9536 LDFLAGS
=$ldflags_save
9538 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9539 $as_echo_n "checking for extra X11 defines... " >&6; }
9542 if mkdir conftestdir
; then
9544 cat > Imakefile
<<'EOF'
9546 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9548 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9554 if test -z "$NARROW_PROTO"; then
9555 { $as_echo "$as_me:$LINENO: result: no" >&5
9556 $as_echo "no" >&6; }
9558 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9559 $as_echo "$NARROW_PROTO" >&6; }
9564 if test "$enable_xsmp" = "yes"; then
9565 cppflags_save
=$CPPFLAGS
9566 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9568 for ac_header
in X11
/SM
/SMlib.h
9570 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9573 $as_echo_n "checking for $ac_header... " >&6; }
9574 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575 $as_echo_n "(cached) " >&6
9577 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9578 $as_echo "$as_val"'`
9579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9580 $as_echo "$ac_res" >&6; }
9582 # Is the header compilable?
9583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9584 $as_echo_n "checking $ac_header usability... " >&6; }
9585 cat >conftest.
$ac_ext <<_ACEOF
9588 cat confdefs.h
>>conftest.
$ac_ext
9589 cat >>conftest.
$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 $ac_includes_default
9592 #include <$ac_header>
9594 rm -f conftest.
$ac_objext
9595 if { (ac_try
="$ac_compile"
9597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9601 $as_echo "$ac_try_echo") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
9612 ac_header_compiler=yes
9614 $as_echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_header_compiler=no
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622 $as_echo "$ac_header_compiler" >&6; }
9624 # Is the header present?
9625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626 $as_echo_n "checking $ac_header presence... " >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <$ac_header>
9635 if { (ac_try="$ac_cpp conftest.$ac_ext"
9637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9638 *) ac_try_echo
=$ac_try;;
9640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1
>conftest.err
9646 cat conftest.err
>&5
9647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } >/dev
/null
&& {
9649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9652 ac_header_preproc
=yes
9654 $as_echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.
$ac_ext >&5
9657 ac_header_preproc
=no
9660 rm -f conftest.err conftest.
$ac_ext
9661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9662 $as_echo "$ac_header_preproc" >&6; }
9664 # So? What about this header?
9665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9671 ac_header_preproc
=yes
9674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 $as_echo_n "checking for $ac_header... " >&6; }
9691 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 $as_echo_n "(cached) " >&6
9694 eval "$as_ac_Header=\$ac_header_preproc"
9696 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9697 $as_echo "$as_val"'`
9698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9699 $as_echo "$ac_res" >&6; }
9702 if test `eval 'as_val=${'$as_ac_Header'}
9703 $as_echo "$as_val"'` = yes; then
9704 cat >>confdefs.h
<<_ACEOF
9705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712 CPPFLAGS
=$cppflags_save
9716 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9717 cppflags_save
=$CPPFLAGS
9718 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9721 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9723 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9724 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 $as_echo_n "checking for $ac_header... " >&6; }
9727 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728 $as_echo_n "(cached) " >&6
9730 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9731 $as_echo "$as_val"'`
9732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9733 $as_echo "$ac_res" >&6; }
9735 # Is the header compilable?
9736 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737 $as_echo_n "checking $ac_header usability... " >&6; }
9738 cat >conftest.
$ac_ext <<_ACEOF
9741 cat confdefs.h
>>conftest.
$ac_ext
9742 cat >>conftest.
$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <$ac_header>
9747 rm -f conftest.
$ac_objext
9748 if { (ac_try
="$ac_compile"
9750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 $as_echo "$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 $as_echo_n "checking $ac_header presence... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <$ac_header>
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9791 *) ac_try_echo
=$ac_try;;
9793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9797 grep -v '^ *+' conftest.er1
>conftest.err
9799 cat conftest.err
>&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev
/null
&& {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9805 ac_header_preproc
=yes
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9810 ac_header_preproc
=no
9813 rm -f conftest.err conftest.
$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 $as_echo "$ac_header_preproc" >&6; }
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9821 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc
=yes
9827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9828 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9830 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9832 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 $as_echo_n "checking for $ac_header... " >&6; }
9844 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9845 $as_echo_n "(cached) " >&6
9847 eval "$as_ac_Header=\$ac_header_preproc"
9849 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9850 $as_echo "$as_val"'`
9851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9852 $as_echo "$ac_res" >&6; }
9855 if test `eval 'as_val=${'$as_ac_Header'}
9856 $as_echo "$as_val"'` = yes; then
9857 cat >>confdefs.h
<<_ACEOF
9858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866 if test ! "$enable_xim" = "no"; then
9867 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9868 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9869 cat >conftest.
$ac_ext <<_ACEOF
9872 cat confdefs.h
>>conftest.
$ac_ext
9873 cat >>conftest.
$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <X11/Xlib.h>
9877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878 $EGREP "XIMText" >/dev
/null
2>&1; then
9879 { $as_echo "$as_me:$LINENO: result: yes" >&5
9880 $as_echo "yes" >&6; }
9882 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9883 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
9888 CPPFLAGS
=$cppflags_save
9890 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9891 -a "x$GUITYPE" != "xNONE" ; then
9892 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9893 $as_echo "X GUI selected; xim has been enabled" >&6; }
9898 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9899 cppflags_save
=$CPPFLAGS
9900 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9901 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9902 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9903 cat >conftest.
$ac_ext <<_ACEOF
9906 cat confdefs.h
>>conftest.
$ac_ext
9907 cat >>conftest.
$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 #include <X11/Intrinsic.h>
9911 #include <X11/Xmu/Editres.h>
9920 rm -f conftest.
$ac_objext
9921 if { (ac_try
="$ac_compile"
9923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927 $as_echo "$ac_try_echo") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 { $as_echo "$as_me:$LINENO: result: yes" >&5
9939 $as_echo "yes" >&6; }
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_X11_XMU_EDITRES_H 1
9945 $as_echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 { $as_echo "$as_me:$LINENO: result: no" >&5
9949 $as_echo "no" >&6; }
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 CPPFLAGS=$cppflags_save
9956 if test -z "$SKIP_MOTIF"; then
9957 cppflags_save=$CPPFLAGS
9958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9966 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9967 Xm/UnhighlightT.h Xm/Notebook.h
9969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9972 $as_echo_n "checking for $ac_header... " >&6; }
9973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9974 $as_echo_n "(cached) " >&6
9976 ac_res=`eval 'as_val=${'$as_ac_Header'}
9977 $as_echo "$as_val"'`
9978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9979 $as_echo "$ac_res" >&6; }
9981 # Is the header compilable?
9982 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983 $as_echo_n "checking $ac_header usability... " >&6; }
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 #include <$ac_header>
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9997 *) ac_try_echo
=$ac_try;;
9999 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10000 $as_echo "$ac_try_echo") >&5
10001 (eval "$ac_compile") 2>conftest.er1
10003 grep -v '^ *+' conftest.er1
>conftest.err
10005 cat conftest.err
>&5
10006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest.
$ac_objext; then
10011 ac_header_compiler
=yes
10013 $as_echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.
$ac_ext >&5
10016 ac_header_compiler
=no
10019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021 $as_echo "$ac_header_compiler" >&6; }
10023 # Is the header present?
10024 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025 $as_echo_n "checking $ac_header presence... " >&6; }
10026 cat >conftest.
$ac_ext <<_ACEOF
10029 cat confdefs.h
>>conftest.
$ac_ext
10030 cat >>conftest.
$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #include <$ac_header>
10034 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10035 case "(($ac_try" in
10036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10040 $as_echo "$ac_try_echo") >&5
10041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev/null && {
10048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10051 ac_header_preproc=yes
10053 $as_echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_header_preproc=no
10059 rm -f conftest.err conftest.$ac_ext
10060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10061 $as_echo "$ac_header_preproc" >&6; }
10063 # So? What about this header?
10064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10067 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10070 ac_header_preproc=yes
10073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10074 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10076 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10078 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10080 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10084 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 $as_echo_n "checking for $ac_header... " >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091 $as_echo_n "(cached) " >&6
10093 eval "$as_ac_Header=\$ac_header_preproc"
10095 ac_res=`eval 'as_val=${'$as_ac_Header'}
10096 $as_echo "$as_val"'`
10097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10098 $as_echo "$ac_res" >&6; }
10101 if test `eval 'as_val=${'$as_ac_Header'}
10102 $as_echo "$as_val"'` = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10112 if test $ac_cv_header_Xm_XpmP_h = yes; then
10113 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10114 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <Xm/XpmP.h>
10125 XpmAttributes_21 attr;
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10134 *) ac_try_echo
=$ac_try;;
10136 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1
>conftest.err
10142 cat conftest.err
>&5
10143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.
$ac_objext; then
10148 { $as_echo "$as_me:$LINENO: result: yes" >&5
10149 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10150 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.
$ac_ext >&5
10157 { $as_echo "$as_me:$LINENO: result: no" >&5
10158 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10159 #define XPMATTRIBUTES_TYPE XpmAttributes
10165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10167 cat >>confdefs.h
<<\_ACEOF
10168 #define XPMATTRIBUTES_TYPE XpmAttributes
10172 CPPFLAGS
=$cppflags_save
10175 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10176 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10177 $as_echo "no GUI selected; xim has been disabled" >&6; }
10180 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10181 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10182 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10183 enable_fontset
="no"
10185 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10186 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10187 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10188 enable_fontset
="no"
10191 if test -z "$SKIP_PHOTON"; then
10200 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10201 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10202 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10203 { (exit 1); exit 1; }; }
10206 if test "$enable_xim" = "yes"; then
10207 cat >>confdefs.h
<<\_ACEOF
10212 if test "$enable_fontset" = "yes"; then
10213 cat >>confdefs.h
<<\_ACEOF
10214 #define FEAT_XFONTSET 1
10222 if test "$enable_hangulinput" = "yes"; then
10223 if test "x$GUITYPE" = "xNONE"; then
10224 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10225 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10226 enable_hangulinput
=no
10228 cat >>confdefs.h
<<\_ACEOF
10229 #define FEAT_HANGULIN 1
10232 HANGULIN_SRC
=hangulin.c
10234 HANGULIN_OBJ
=objects
/hangulin.o
10240 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10241 $as_echo_n "checking whether toupper is broken... " >&6; }
10242 if test "${vim_cv_toupper_broken+set}" = set; then
10243 $as_echo_n "(cached) " >&6
10246 if test "$cross_compiling" = yes; then
10248 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10249 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10250 { (exit 1); exit 1; }; }
10253 cat >conftest.
$ac_ext <<_ACEOF
10255 #include "confdefs.h"
10258 # include <stdlib.h>
10259 # include <stddef.h>
10261 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10264 rm -f conftest
$ac_exeext
10265 if { (ac_try
="$ac_link"
10266 case "(($ac_try" in
10267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10271 $as_echo "$ac_try_echo") >&5
10272 (eval "$ac_link") 2>&5
10274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10276 { (case "(($ac_try" in
10277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10278 *) ac_try_echo
=$ac_try;;
10280 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10281 $as_echo "$ac_try_echo") >&5
10282 (eval "$ac_try") 2>&5
10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10287 vim_cv_toupper_broken
=yes
10290 $as_echo "$as_me: program exited with status $ac_status" >&5
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.
$ac_ext >&5
10294 ( exit $ac_status )
10296 vim_cv_toupper_broken
=no
10299 rm -rf conftest.dSYM
10300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10305 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10306 $as_echo "$vim_cv_toupper_broken" >&6; }
10308 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10309 cat >>confdefs.h
<<\_ACEOF
10310 #define BROKEN_TOUPPER 1
10315 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10316 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10317 cat >conftest.
$ac_ext <<_ACEOF
10320 cat confdefs.h
>>conftest.
$ac_ext
10321 cat >>conftest.
$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10327 printf("(" __DATE__ " " __TIME__ ")");
10332 rm -f conftest.
$ac_objext
10333 if { (ac_try
="$ac_compile"
10334 case "(($ac_try" in
10335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10339 $as_echo "$ac_try_echo") >&5
10340 (eval "$ac_compile") 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest.$ac_objext; then
10350 { $as_echo "$as_me:$LINENO: result: yes" >&5
10351 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_DATE_TIME 1
10356 $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 { $as_echo "$as_me:$LINENO: result: no" >&5
10360 $as_echo "no" >&6; }
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10366 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10377 int x __attribute__((unused));
10382 rm -f conftest.$ac_objext
10383 if { (ac_try="$ac_compile"
10384 case "(($ac_try" in
10385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10386 *) ac_try_echo
=$ac_try;;
10388 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10389 $as_echo "$ac_try_echo") >&5
10390 (eval "$ac_compile") 2>conftest.er1
10392 grep -v '^ *+' conftest.er1
>conftest.err
10394 cat conftest.err
>&5
10395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest.
$ac_objext; then
10400 { $as_echo "$as_me:$LINENO: result: yes" >&5
10401 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10402 #define HAVE_ATTRIBUTE_UNUSED 1
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.
$ac_ext >&5
10409 { $as_echo "$as_me:$LINENO: result: no" >&5
10410 $as_echo "no" >&6; }
10413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10415 if test "${ac_cv_header_elf_h+set}" = set; then
10416 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10417 $as_echo_n "checking for elf.h... " >&6; }
10418 if test "${ac_cv_header_elf_h+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10422 $as_echo "$ac_cv_header_elf_h" >&6; }
10424 # Is the header compilable?
10425 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10426 $as_echo_n "checking elf.h usability... " >&6; }
10427 cat >conftest.
$ac_ext <<_ACEOF
10430 cat confdefs.h
>>conftest.
$ac_ext
10431 cat >>conftest.
$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 $ac_includes_default
10436 rm -f conftest.
$ac_objext
10437 if { (ac_try
="$ac_compile"
10438 case "(($ac_try" in
10439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10443 $as_echo "$ac_try_echo") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.$ac_objext; then
10454 ac_header_compiler=yes
10456 $as_echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_header_compiler=no
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 $as_echo "$ac_header_compiler" >&6; }
10466 # Is the header present?
10467 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10468 $as_echo_n "checking elf.h presence... " >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10477 if { (ac_try="$ac_cpp conftest.$ac_ext"
10478 case "(($ac_try" in
10479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10480 *) ac_try_echo
=$ac_try;;
10482 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10483 $as_echo "$ac_try_echo") >&5
10484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1
>conftest.err
10488 cat conftest.err
>&5
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev
/null
&& {
10491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10494 ac_header_preproc
=yes
10496 $as_echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.
$ac_ext >&5
10499 ac_header_preproc
=no
10502 rm -f conftest.err conftest.
$ac_ext
10503 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10504 $as_echo "$ac_header_preproc" >&6; }
10506 # So? What about this header?
10507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10509 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10510 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10511 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10512 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10513 ac_header_preproc
=yes
10516 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10517 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10518 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10519 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10520 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10521 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10522 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10523 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10524 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10525 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10526 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10527 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10531 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10532 $as_echo_n "checking for elf.h... " >&6; }
10533 if test "${ac_cv_header_elf_h+set}" = set; then
10534 $as_echo_n "(cached) " >&6
10536 ac_cv_header_elf_h
=$ac_header_preproc
10538 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10539 $as_echo "$ac_cv_header_elf_h" >&6; }
10542 if test $ac_cv_header_elf_h = yes; then
10547 if test "$HAS_ELF" = 1; then
10549 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10550 $as_echo_n "checking for main in -lelf... " >&6; }
10551 if test "${ac_cv_lib_elf_main+set}" = set; then
10552 $as_echo_n "(cached) " >&6
10554 ac_check_lib_save_LIBS
=$LIBS
10556 cat >conftest.
$ac_ext <<_ACEOF
10559 cat confdefs.h
>>conftest.
$ac_ext
10560 cat >>conftest.
$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10572 rm -f conftest.
$ac_objext conftest
$ac_exeext
10573 if { (ac_try
="$ac_link"
10574 case "(($ac_try" in
10575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10579 $as_echo "$ac_try_echo") >&5
10580 (eval "$ac_link") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext && {
10590 test "$cross_compiling" = yes ||
10591 $as_test_x conftest$ac_exeext
10593 ac_cv_lib_elf_main=yes
10595 $as_echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_elf_main=no
10601 rm -rf conftest.dSYM
10602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10603 conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10607 $as_echo "$ac_cv_lib_elf_main" >&6; }
10608 if test $ac_cv_lib_elf_main = yes; then
10609 cat >>confdefs.h <<_ACEOF
10610 #define HAVE_LIBELF 1
10624 ac_header_dirent=no
10625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10626 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10627 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10628 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 $as_echo_n "(cached) " >&6
10632 cat >conftest.$ac_ext <<_ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <sys/types.h>
10650 rm -f conftest.$ac_objext
10651 if { (ac_try="$ac_compile"
10652 case "(($ac_try" in
10653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10654 *) ac_try_echo
=$ac_try;;
10656 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10657 $as_echo "$ac_try_echo") >&5
10658 (eval "$ac_compile") 2>conftest.er1
10660 grep -v '^ *+' conftest.er1
>conftest.err
10662 cat conftest.err
>&5
10663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest.
$ac_objext; then
10668 eval "$as_ac_Header=yes"
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.
$ac_ext >&5
10673 eval "$as_ac_Header=no"
10676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10678 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10679 $as_echo "$as_val"'`
10680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10681 $as_echo "$ac_res" >&6; }
10682 if test `eval 'as_val=${'$as_ac_Header'}
10683 $as_echo "$as_val"'` = yes; then
10684 cat >>confdefs.h
<<_ACEOF
10685 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10688 ac_header_dirent
=$ac_hdr; break
10692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10693 if test $ac_header_dirent = dirent.h
; then
10694 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10695 $as_echo_n "checking for library containing opendir... " >&6; }
10696 if test "${ac_cv_search_opendir+set}" = set; then
10697 $as_echo_n "(cached) " >&6
10699 ac_func_search_save_LIBS
=$LIBS
10700 cat >conftest.
$ac_ext <<_ACEOF
10703 cat confdefs.h
>>conftest.
$ac_ext
10704 cat >>conftest.
$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10722 for ac_lib
in '' dir
; do
10723 if test -z "$ac_lib"; then
10724 ac_res
="none required"
10727 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10729 rm -f conftest.
$ac_objext conftest
$ac_exeext
10730 if { (ac_try
="$ac_link"
10731 case "(($ac_try" in
10732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736 $as_echo "$ac_try_echo") >&5
10737 (eval "$ac_link") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext && {
10747 test "$cross_compiling" = yes ||
10748 $as_test_x conftest$ac_exeext
10750 ac_cv_search_opendir=$ac_res
10752 $as_echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10758 rm -rf conftest.dSYM
10759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10761 if test "${ac_cv_search_opendir+set}" = set; then
10765 if test "${ac_cv_search_opendir+set}" = set; then
10768 ac_cv_search_opendir=no
10770 rm conftest.$ac_ext
10771 LIBS=$ac_func_search_save_LIBS
10773 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10774 $as_echo "$ac_cv_search_opendir" >&6; }
10775 ac_res=$ac_cv_search_opendir
10776 if test "$ac_res" != no; then
10777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10782 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10783 $as_echo_n "checking for library containing opendir... " >&6; }
10784 if test "${ac_cv_search_opendir+set}" = set; then
10785 $as_echo_n "(cached) " >&6
10787 ac_func_search_save_LIBS=$LIBS
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10810 for ac_lib in '' x; do
10811 if test -z "$ac_lib"; then
10812 ac_res="none required"
10815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (ac_try="$ac_link"
10819 case "(($ac_try" in
10820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10821 *) ac_try_echo
=$ac_try;;
10823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10824 $as_echo "$ac_try_echo") >&5
10825 (eval "$ac_link") 2>conftest.er1
10827 grep -v '^ *+' conftest.er1
>conftest.err
10829 cat conftest.err
>&5
10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest
$ac_exeext && {
10835 test "$cross_compiling" = yes ||
10836 $as_test_x conftest
$ac_exeext
10838 ac_cv_search_opendir
=$ac_res
10840 $as_echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.
$ac_ext >&5
10846 rm -rf conftest.dSYM
10847 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10849 if test "${ac_cv_search_opendir+set}" = set; then
10853 if test "${ac_cv_search_opendir+set}" = set; then
10856 ac_cv_search_opendir
=no
10858 rm conftest.
$ac_ext
10859 LIBS
=$ac_func_search_save_LIBS
10861 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10862 $as_echo "$ac_cv_search_opendir" >&6; }
10863 ac_res
=$ac_cv_search_opendir
10864 if test "$ac_res" != no
; then
10865 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10872 if test $ac_cv_header_sys_wait_h = no
; then
10873 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10874 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10875 cat >conftest.
$ac_ext <<_ACEOF
10878 cat confdefs.h
>>conftest.
$ac_ext
10879 cat >>conftest.
$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <sys/wait.h>
10885 union wait xx, yy; xx = yy
10890 rm -f conftest.
$ac_objext
10891 if { (ac_try
="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898 (eval "$ac_compile") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest.$ac_objext; then
10908 { $as_echo "$as_me:$LINENO: result: yes" >&5
10909 $as_echo "yes" >&6; }
10910 cat >>confdefs.h <<\_ACEOF
10911 #define HAVE_SYS_WAIT_H 1
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_UNION_WAIT 1
10919 $as_echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 { $as_echo "$as_me:$LINENO: result: no" >&5
10923 $as_echo "no" >&6; }
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10971 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10972 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10973 sys/resource.h sys/systeminfo.h locale.h \
10974 sys/stream.h termios.h libc.h sys/statfs.h \
10975 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10976 libgen.h util/debug.h util/msg18n.h frame.h \
10977 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 $as_echo_n "checking for $ac_header... " >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 $as_echo_n "(cached) " >&6
10986 ac_res=`eval 'as_val=${'$as_ac_Header'}
10987 $as_echo "$as_val"'`
10988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10989 $as_echo "$ac_res" >&6; }
10991 # Is the header compilable?
10992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10993 $as_echo_n "checking $ac_header usability... " >&6; }
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11001 #include <$ac_header>
11003 rm -f conftest.$ac_objext
11004 if { (ac_try="$ac_compile"
11005 case "(($ac_try" in
11006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11007 *) ac_try_echo
=$ac_try;;
11009 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11010 $as_echo "$ac_try_echo") >&5
11011 (eval "$ac_compile") 2>conftest.er1
11013 grep -v '^ *+' conftest.er1
>conftest.err
11015 cat conftest.err
>&5
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && {
11018 test -z "$ac_c_werror_flag" ||
11019 test ! -s conftest.err
11020 } && test -s conftest.
$ac_objext; then
11021 ac_header_compiler
=yes
11023 $as_echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.
$ac_ext >&5
11026 ac_header_compiler
=no
11029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031 $as_echo "$ac_header_compiler" >&6; }
11033 # Is the header present?
11034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035 $as_echo_n "checking $ac_header presence... " >&6; }
11036 cat >conftest.
$ac_ext <<_ACEOF
11039 cat confdefs.h
>>conftest.
$ac_ext
11040 cat >>conftest.
$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <$ac_header>
11044 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11045 case "(($ac_try" in
11046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11050 $as_echo "$ac_try_echo") >&5
11051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null && {
11058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11061 ac_header_preproc=yes
11063 $as_echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_header_preproc=no
11069 rm -f conftest.err conftest.$ac_ext
11070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 $as_echo "$ac_header_preproc" >&6; }
11073 # So? What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080 ac_header_preproc=yes
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 $as_echo_n "checking for $ac_header... " >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 $as_echo_n "(cached) " >&6
11103 eval "$as_ac_Header=\$ac_header_preproc"
11105 ac_res=`eval 'as_val=${'$as_ac_Header'}
11106 $as_echo "$as_val"'`
11107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11108 $as_echo "$ac_res" >&6; }
11111 if test `eval 'as_val=${'$as_ac_Header'}
11112 $as_echo "$as_val"'` = yes; then
11113 cat >>confdefs.h <<_ACEOF
11114 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11123 for ac_header in sys/ptem.h
11125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11127 $as_echo_n "checking for $ac_header... " >&6; }
11128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11129 $as_echo_n "(cached) " >&6
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #if defined HAVE_SYS_STREAM_H
11138 # include <sys/stream.h>
11141 #include <$ac_header>
11143 rm -f conftest.$ac_objext
11144 if { (ac_try="$ac_compile"
11145 case "(($ac_try" in
11146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11147 *) ac_try_echo
=$ac_try;;
11149 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11150 $as_echo "$ac_try_echo") >&5
11151 (eval "$ac_compile") 2>conftest.er1
11153 grep -v '^ *+' conftest.er1
>conftest.err
11155 cat conftest.err
>&5
11156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } && {
11158 test -z "$ac_c_werror_flag" ||
11159 test ! -s conftest.err
11160 } && test -s conftest.
$ac_objext; then
11161 eval "$as_ac_Header=yes"
11163 $as_echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.
$ac_ext >&5
11166 eval "$as_ac_Header=no"
11169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11171 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11172 $as_echo "$as_val"'`
11173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11174 $as_echo "$ac_res" >&6; }
11175 if test `eval 'as_val=${'$as_ac_Header'}
11176 $as_echo "$as_val"'` = yes; then
11177 cat >>confdefs.h
<<_ACEOF
11178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11187 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11188 $as_echo_n "checking for pthread_np.h... " >&6; }
11189 cat >conftest.
$ac_ext <<_ACEOF
11192 cat confdefs.h
>>conftest.
$ac_ext
11193 cat >>conftest.
$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11196 #include <pthread.h>
11197 #include <pthread_np.h>
11206 rm -f conftest.
$ac_objext
11207 if { (ac_try
="$ac_compile"
11208 case "(($ac_try" in
11209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11213 $as_echo "$ac_try_echo") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11216 grep -v '^ *+' conftest.er1 >conftest.err
11218 cat conftest.err >&5
11219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } && {
11221 test -z "$ac_c_werror_flag" ||
11222 test ! -s conftest.err
11223 } && test -s conftest.$ac_objext; then
11224 { $as_echo "$as_me:$LINENO: result: yes" >&5
11225 $as_echo "yes" >&6; }
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_PTHREAD_NP_H 1
11231 $as_echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 { $as_echo "$as_me:$LINENO: result: no" >&5
11235 $as_echo "no" >&6; }
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 for ac_header in strings.h
11243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 $as_echo_n "checking for $ac_header... " >&6; }
11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248 $as_echo_n "(cached) " >&6
11250 ac_res=`eval 'as_val=${'$as_ac_Header'}
11251 $as_echo "$as_val"'`
11252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11253 $as_echo "$ac_res" >&6; }
11255 # Is the header compilable?
11256 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11257 $as_echo_n "checking $ac_header usability... " >&6; }
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11265 #include <$ac_header>
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11271 *) ac_try_echo
=$ac_try;;
11273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11274 $as_echo "$ac_try_echo") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1
>conftest.err
11279 cat conftest.err
>&5
11280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest.
$ac_objext; then
11285 ac_header_compiler
=yes
11287 $as_echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.
$ac_ext >&5
11290 ac_header_compiler
=no
11293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11294 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295 $as_echo "$ac_header_compiler" >&6; }
11297 # Is the header present?
11298 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299 $as_echo_n "checking $ac_header presence... " >&6; }
11300 cat >conftest.
$ac_ext <<_ACEOF
11303 cat confdefs.h
>>conftest.
$ac_ext
11304 cat >>conftest.
$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <$ac_header>
11308 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11309 case "(($ac_try" in
11310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314 $as_echo "$ac_try_echo") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null && {
11322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11323 test ! -s conftest.err
11325 ac_header_preproc=yes
11327 $as_echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_header_preproc=no
11333 rm -f conftest.err conftest.$ac_ext
11334 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335 $as_echo "$ac_header_preproc" >&6; }
11337 # So? What about this header?
11338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11341 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11344 ac_header_preproc=yes
11347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11348 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11350 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11352 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11354 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11358 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 $as_echo_n "checking for $ac_header... " >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365 $as_echo_n "(cached) " >&6
11367 eval "$as_ac_Header=\$ac_header_preproc"
11369 ac_res=`eval 'as_val=${'$as_ac_Header'}
11370 $as_echo "$as_val"'`
11371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11372 $as_echo "$ac_res" >&6; }
11375 if test `eval 'as_val=${'$as_ac_Header'}
11376 $as_echo "$as_val"'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11385 if test "x$MACOSX" = "xyes"; then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define NO_STRINGS_WITH_STRING_H 1
11392 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11393 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11394 cppflags_save=$CPPFLAGS
11395 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11403 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11404 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11405 /* but don't do it on AIX 5.1 (Uribarri) */
11407 #ifdef HAVE_XM_XM_H
11408 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11410 #ifdef HAVE_STRING_H
11411 # include <string.h>
11413 #if defined(HAVE_STRINGS_H)
11414 # include <strings.h>
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11429 *) ac_try_echo
=$ac_try;;
11431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11432 $as_echo "$ac_try_echo") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1
>conftest.err
11437 cat conftest.err
>&5
11438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_c_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest.
$ac_objext; then
11443 { $as_echo "$as_me:$LINENO: result: yes" >&5
11444 $as_echo "yes" >&6; }
11446 $as_echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.
$ac_ext >&5
11449 cat >>confdefs.h
<<\_ACEOF
11450 #define NO_STRINGS_WITH_STRING_H 1
11453 { $as_echo "$as_me:$LINENO: result: no" >&5
11454 $as_echo "no" >&6; }
11457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 CPPFLAGS
=$cppflags_save
11461 if test $ac_cv_c_compiler_gnu = yes; then
11462 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11463 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11464 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11465 $as_echo_n "(cached) " >&6
11467 ac_pattern
="Autoconf.*'x'"
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11479 ac_cv_prog_gcc_traditional
=yes
11481 ac_cv_prog_gcc_traditional
=no
11486 if test $ac_cv_prog_gcc_traditional = no
; then
11487 cat >conftest.
$ac_ext <<_ACEOF
11490 cat confdefs.h
>>conftest.
$ac_ext
11491 cat >>conftest.
$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 #include <termio.h>
11496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11497 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
11498 ac_cv_prog_gcc_traditional
=yes
11504 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11505 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11506 if test $ac_cv_prog_gcc_traditional = yes; then
11507 CC
="$CC -traditional"
11511 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11512 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11513 if test "${ac_cv_c_const+set}" = set; then
11514 $as_echo_n "(cached) " >&6
11516 cat >conftest.
$ac_ext <<_ACEOF
11519 cat confdefs.h
>>conftest.
$ac_ext
11520 cat >>conftest.
$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11526 /* FIXME: Include the comments suggested by Paul. */
11527 #ifndef __cplusplus
11528 /* Ultrix mips cc rejects this. */
11529 typedef int charset[2];
11531 /* SunOS 4.1.1 cc rejects this. */
11532 char const *const *pcpcc;
11534 /* NEC SVR4.0.2 mips cc rejects this. */
11535 struct point {int x, y;};
11536 static struct point const zero = {0,0};
11537 /* AIX XL C 1.02.0.0 rejects this.
11538 It does not let you subtract one const X* pointer from another in
11539 an arm of an if-expression whose if-part is not a constant
11541 const char *g = "string";
11542 pcpcc = &g + (g ? g-g : 0);
11543 /* HPUX 7.0 cc rejects these. */
11545 ppc = (char**) pcpcc;
11546 pcpcc = (char const *const *) ppc;
11547 { /* SCO 3.2v4 cc rejects this. */
11549 char const *s = 0 ? (char *) 0 : (char const *) 0;
11554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11555 int x[] = {25, 17};
11556 const int *foo = &x[0];
11559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11560 typedef const int *iptr;
11564 { /* AIX XL C 1.02.0.0 rejects this saying
11565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11566 struct s { int j; const int *ap[3]; };
11567 struct s *b; b->j = 5;
11569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11570 const int foo = 10;
11571 if (!foo) return 0;
11573 return !cs[0] && !zero.x;
11580 rm -f conftest.
$ac_objext
11581 if { (ac_try
="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11587 $as_echo "$ac_try_echo") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.$ac_objext; then
11600 $as_echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11609 $as_echo "$ac_cv_c_const" >&6; }
11610 if test $ac_cv_c_const = no; then
11612 cat >>confdefs.h <<\_ACEOF
11618 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11619 $as_echo_n "checking for working volatile... " >&6; }
11620 if test "${ac_cv_c_volatile+set}" = set; then
11621 $as_echo_n "(cached) " >&6
11623 cat >conftest.$ac_ext <<_ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11635 int * volatile y = (int *) 0;
11641 rm -f conftest.$ac_objext
11642 if { (ac_try="$ac_compile"
11643 case "(($ac_try" in
11644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11645 *) ac_try_echo
=$ac_try;;
11647 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11648 $as_echo "$ac_try_echo") >&5
11649 (eval "$ac_compile") 2>conftest.er1
11651 grep -v '^ *+' conftest.er1
>conftest.err
11653 cat conftest.err
>&5
11654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest.
$ac_objext; then
11659 ac_cv_c_volatile
=yes
11661 $as_echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.
$ac_ext >&5
11664 ac_cv_c_volatile
=no
11667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11670 $as_echo "$ac_cv_c_volatile" >&6; }
11671 if test $ac_cv_c_volatile = no
; then
11673 cat >>confdefs.h
<<\_ACEOF
11674 #define volatile /**/
11679 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11680 $as_echo_n "checking for mode_t... " >&6; }
11681 if test "${ac_cv_type_mode_t+set}" = set; then
11682 $as_echo_n "(cached) " >&6
11684 ac_cv_type_mode_t
=no
11685 cat >conftest.
$ac_ext <<_ACEOF
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 $ac_includes_default
11695 if (sizeof (mode_t))
11701 rm -f conftest.
$ac_objext
11702 if { (ac_try
="$ac_compile"
11703 case "(($ac_try" in
11704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708 $as_echo "$ac_try_echo") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 cat >conftest.$ac_ext <<_ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 $ac_includes_default
11729 if (sizeof ((mode_t)))
11735 rm -f conftest.$ac_objext
11736 if { (ac_try="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11739 *) ac_try_echo
=$ac_try;;
11741 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11742 $as_echo "$ac_try_echo") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1
>conftest.err
11747 cat conftest.err
>&5
11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.
$ac_objext; then
11755 $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11758 ac_cv_type_mode_t
=yes
11761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.
$ac_ext >&5
11769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11772 $as_echo "$ac_cv_type_mode_t" >&6; }
11773 if test $ac_cv_type_mode_t = yes; then
11777 cat >>confdefs.h
<<_ACEOF
11783 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11784 $as_echo_n "checking for off_t... " >&6; }
11785 if test "${ac_cv_type_off_t+set}" = set; then
11786 $as_echo_n "(cached) " >&6
11788 ac_cv_type_off_t
=no
11789 cat >conftest.
$ac_ext <<_ACEOF
11792 cat confdefs.h
>>conftest.
$ac_ext
11793 cat >>conftest.
$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11799 if (sizeof (off_t))
11805 rm -f conftest.
$ac_objext
11806 if { (ac_try
="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11812 $as_echo "$ac_try_echo") >&5
11813 (eval "$ac_compile") 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } && {
11820 test -z "$ac_c_werror_flag" ||
11821 test ! -s conftest.err
11822 } && test -s conftest.$ac_objext; then
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 $ac_includes_default
11833 if (sizeof ((off_t)))
11839 rm -f conftest.$ac_objext
11840 if { (ac_try="$ac_compile"
11841 case "(($ac_try" in
11842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11843 *) ac_try_echo
=$ac_try;;
11845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11846 $as_echo "$ac_try_echo") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1
>conftest.err
11851 cat conftest.err
>&5
11852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.
$ac_objext; then
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.
$ac_ext >&5
11862 ac_cv_type_off_t
=yes
11865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11867 $as_echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.
$ac_ext >&5
11873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11876 $as_echo "$ac_cv_type_off_t" >&6; }
11877 if test $ac_cv_type_off_t = yes; then
11881 cat >>confdefs.h
<<_ACEOF
11882 #define off_t long int
11887 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11888 $as_echo_n "checking for pid_t... " >&6; }
11889 if test "${ac_cv_type_pid_t+set}" = set; then
11890 $as_echo_n "(cached) " >&6
11892 ac_cv_type_pid_t
=no
11893 cat >conftest.
$ac_ext <<_ACEOF
11896 cat confdefs.h
>>conftest.
$ac_ext
11897 cat >>conftest.
$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 $ac_includes_default
11903 if (sizeof (pid_t))
11909 rm -f conftest.
$ac_objext
11910 if { (ac_try
="$ac_compile"
11911 case "(($ac_try" in
11912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916 $as_echo "$ac_try_echo") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 cat >conftest.$ac_ext <<_ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11937 if (sizeof ((pid_t)))
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 ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11950 $as_echo "$ac_try_echo") >&5
11951 (eval "$ac_compile") 2>conftest.er1
11953 grep -v '^ *+' conftest.er1
>conftest.err
11955 cat conftest.err
>&5
11956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest.
$ac_objext; then
11963 $as_echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.
$ac_ext >&5
11966 ac_cv_type_pid_t
=yes
11969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11971 $as_echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11979 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11980 $as_echo "$ac_cv_type_pid_t" >&6; }
11981 if test $ac_cv_type_pid_t = yes; then
11985 cat >>confdefs.h
<<_ACEOF
11991 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11992 $as_echo_n "checking for size_t... " >&6; }
11993 if test "${ac_cv_type_size_t+set}" = set; then
11994 $as_echo_n "(cached) " >&6
11996 ac_cv_type_size_t
=no
11997 cat >conftest.
$ac_ext <<_ACEOF
12000 cat confdefs.h
>>conftest.
$ac_ext
12001 cat >>conftest.
$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12007 if (sizeof (size_t))
12013 rm -f conftest.
$ac_objext
12014 if { (ac_try
="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020 $as_echo "$ac_try_echo") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12023 grep -v '^ *+' conftest.er1 >conftest.err
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } && {
12028 test -z "$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 } && test -s conftest.$ac_objext; then
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 $ac_includes_default
12041 if (sizeof ((size_t)))
12047 rm -f conftest.$ac_objext
12048 if { (ac_try="$ac_compile"
12049 case "(($ac_try" in
12050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12051 *) ac_try_echo
=$ac_try;;
12053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_compile") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1
>conftest.err
12059 cat conftest.err
>&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest.
$ac_objext; then
12067 $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.
$ac_ext >&5
12070 ac_cv_type_size_t
=yes
12073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12075 $as_echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.
$ac_ext >&5
12081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12083 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12084 $as_echo "$ac_cv_type_size_t" >&6; }
12085 if test $ac_cv_type_size_t = yes; then
12089 cat >>confdefs.h
<<_ACEOF
12090 #define size_t unsigned int
12095 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12096 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12097 if test "${ac_cv_type_uid_t+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12100 cat >conftest.
$ac_ext <<_ACEOF
12103 cat confdefs.h
>>conftest.
$ac_ext
12104 cat >>conftest.
$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <sys/types.h>
12109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12110 $EGREP "uid_t" >/dev
/null
2>&1; then
12111 ac_cv_type_uid_t
=yes
12113 ac_cv_type_uid_t
=no
12118 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12119 $as_echo "$ac_cv_type_uid_t" >&6; }
12120 if test $ac_cv_type_uid_t = no
; then
12122 cat >>confdefs.h
<<\_ACEOF
12127 cat >>confdefs.h
<<\_ACEOF
12133 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12134 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12135 if test "${ac_cv_header_time+set}" = set; then
12136 $as_echo_n "(cached) " >&6
12138 cat >conftest.
$ac_ext <<_ACEOF
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <sys/types.h>
12145 #include <sys/time.h>
12151 if ((struct tm *) 0)
12157 rm -f conftest.
$ac_objext
12158 if { (ac_try
="$ac_compile"
12159 case "(($ac_try" in
12160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest.$ac_objext; then
12175 ac_cv_header_time=yes
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_cv_header_time=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12186 $as_echo "$ac_cv_header_time" >&6; }
12187 if test $ac_cv_header_time = yes; then
12189 cat >>confdefs.h <<\_ACEOF
12190 #define TIME_WITH_SYS_TIME 1
12195 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12196 $as_echo_n "checking for ino_t... " >&6; }
12197 if test "${ac_cv_type_ino_t+set}" = set; then
12198 $as_echo_n "(cached) " >&6
12200 ac_cv_type_ino_t=no
12201 cat >conftest.$ac_ext <<_ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 $ac_includes_default
12211 if (sizeof (ino_t))
12217 rm -f conftest.$ac_objext
12218 if { (ac_try="$ac_compile"
12219 case "(($ac_try" in
12220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12221 *) ac_try_echo
=$ac_try;;
12223 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12224 $as_echo "$ac_try_echo") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12227 grep -v '^ *+' conftest.er1
>conftest.err
12229 cat conftest.err
>&5
12230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && {
12232 test -z "$ac_c_werror_flag" ||
12233 test ! -s conftest.err
12234 } && test -s conftest.
$ac_objext; then
12235 cat >conftest.
$ac_ext <<_ACEOF
12238 cat confdefs.h
>>conftest.
$ac_ext
12239 cat >>conftest.
$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 $ac_includes_default
12245 if (sizeof ((ino_t)))
12251 rm -f conftest.
$ac_objext
12252 if { (ac_try
="$ac_compile"
12253 case "(($ac_try" in
12254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12258 $as_echo "$ac_try_echo") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_type_ino_t=yes
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 $as_echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12288 $as_echo "$ac_cv_type_ino_t" >&6; }
12289 if test $ac_cv_type_ino_t = yes; then
12293 cat >>confdefs.h <<_ACEOF
12299 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12300 $as_echo_n "checking for dev_t... " >&6; }
12301 if test "${ac_cv_type_dev_t+set}" = set; then
12302 $as_echo_n "(cached) " >&6
12304 ac_cv_type_dev_t=no
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12315 if (sizeof (dev_t))
12321 rm -f conftest.$ac_objext
12322 if { (ac_try="$ac_compile"
12323 case "(($ac_try" in
12324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12325 *) ac_try_echo
=$ac_try;;
12327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12328 $as_echo "$ac_try_echo") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1
>conftest.err
12333 cat conftest.err
>&5
12334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.
$ac_objext; then
12339 cat >conftest.
$ac_ext <<_ACEOF
12342 cat confdefs.h
>>conftest.
$ac_ext
12343 cat >>conftest.
$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 $ac_includes_default
12349 if (sizeof ((dev_t)))
12355 rm -f conftest.
$ac_objext
12356 if { (ac_try
="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12362 $as_echo "$ac_try_echo") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } && {
12370 test -z "$ac_c_werror_flag" ||
12371 test ! -s conftest.err
12372 } && test -s conftest.$ac_objext; then
12375 $as_echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_type_dev_t=yes
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 $as_echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12392 $as_echo "$ac_cv_type_dev_t" >&6; }
12393 if test $ac_cv_type_dev_t = yes; then
12397 cat >>confdefs.h <<_ACEOF
12398 #define dev_t unsigned
12404 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12405 $as_echo_n "checking for rlim_t... " >&6; }
12406 if eval "test \"`echo '$''{'ac_cv_type_rlim_t
'+set}'`\" = set"; then
12407 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12408 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12417 #include <sys/types.h>
12419 # include <stdlib.h>
12420 # include <stddef.h>
12422 #ifdef HAVE_SYS_RESOURCE_H
12423 # include <sys/resource.h>
12427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12428 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12429 ac_cv_type_rlim_t=yes
12431 ac_cv_type_rlim_t=no
12435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12436 $as_echo "$ac_cv_type_rlim_t" >&6; }
12438 if test $ac_cv_type_rlim_t = no; then
12439 cat >> confdefs.h <<\EOF
12440 #define rlim_t unsigned long
12444 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12445 $as_echo_n "checking for stack_t... " >&6; }
12446 if eval "test \"`echo '$''{'ac_cv_type_stack_t
'+set}'`\" = set"; then
12447 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12448 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 #include <sys/types.h>
12459 # include <stdlib.h>
12460 # include <stddef.h>
12462 #include <signal.h>
12465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12466 $EGREP "stack_t" >/dev/null 2>&1; then
12467 ac_cv_type_stack_t=yes
12469 ac_cv_type_stack_t=no
12473 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12474 $as_echo "$ac_cv_type_stack_t" >&6; }
12476 if test $ac_cv_type_stack_t = no; then
12477 cat >> confdefs.h <<\EOF
12478 #define stack_t struct sigaltstack
12482 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12483 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 #include <sys/types.h>
12493 # include <stdlib.h>
12494 # include <stddef.h>
12496 #include <signal.h>
12497 #include "confdefs.h"
12502 stack_t sigstk; sigstk.ss_base = 0;
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12511 *) ac_try_echo
=$ac_try;;
12513 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12514 $as_echo "$ac_try_echo") >&5
12515 (eval "$ac_compile") 2>conftest.er1
12517 grep -v '^ *+' conftest.er1
>conftest.err
12519 cat conftest.err
>&5
12520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.
$ac_objext; then
12525 { $as_echo "$as_me:$LINENO: result: yes" >&5
12526 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12527 #define HAVE_SS_BASE 1
12531 $as_echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.
$ac_ext >&5
12534 { $as_echo "$as_me:$LINENO: result: no" >&5
12535 $as_echo "no" >&6; }
12538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12541 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12542 $as_echo_n "checking --with-tlib argument... " >&6; }
12544 # Check whether --with-tlib was given.
12545 if test "${with_tlib+set}" = set; then
12546 withval
=$with_tlib;
12549 if test -n "$with_tlib"; then
12550 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12551 $as_echo "$with_tlib" >&6; }
12552 LIBS
="$LIBS -l$with_tlib"
12553 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12554 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12555 cat >conftest.
$ac_ext <<_ACEOF
12558 cat confdefs.h
>>conftest.
$ac_ext
12559 cat >>conftest.
$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12570 rm -f conftest.
$ac_objext conftest
$ac_exeext
12571 if { (ac_try
="$ac_link"
12572 case "(($ac_try" in
12573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12577 $as_echo "$ac_try_echo") >&5
12578 (eval "$ac_link") 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest$ac_exeext && {
12588 test "$cross_compiling" = yes ||
12589 $as_test_x conftest$ac_exeext
12591 { $as_echo "$as_me:$LINENO: result: OK" >&5
12592 $as_echo "OK" >&6; }
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12598 $as_echo "$as_me: error: FAILED" >&2;}
12599 { (exit 1); exit 1; }; }
12602 rm -rf conftest.dSYM
12603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12604 conftest$ac_exeext conftest.$ac_ext
12607 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12608 $as_echo "empty: automatic terminal library selection" >&6; }
12609 case "`uname
-s 2>/dev
/null
`" in
12610 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12611 *) tlibs="ncurses termlib termcap curses";;
12613 for libname in $tlibs; do
12615 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" |
$as_tr_sh`
12616 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12617 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12619 $as_echo_n "(cached) " >&6
12621 ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-l${libname} $LIBS"
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12649 *) ac_try_echo
=$ac_try;;
12651 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12652 $as_echo "$ac_try_echo") >&5
12653 (eval "$ac_link") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1
>conftest.err
12657 cat conftest.err
>&5
12658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest
$ac_exeext && {
12663 test "$cross_compiling" = yes ||
12664 $as_test_x conftest
$ac_exeext
12666 eval "$as_ac_Lib=yes"
12668 $as_echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.
$ac_ext >&5
12671 eval "$as_ac_Lib=no"
12674 rm -rf conftest.dSYM
12675 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12676 conftest
$ac_exeext conftest.
$ac_ext
12677 LIBS
=$ac_check_lib_save_LIBS
12679 ac_res
=`eval 'as_val=${'$as_ac_Lib'}
12680 $as_echo "$as_val"'`
12681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12682 $as_echo "$ac_res" >&6; }
12683 if test `eval 'as_val=${'$as_ac_Lib'}
12684 $as_echo "$as_val"'` = yes; then
12685 cat >>confdefs.h
<<_ACEOF
12686 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12689 LIBS
="-l${libname} $LIBS"
12693 if test "x$olibs" != "x$LIBS"; then
12694 if test "$cross_compiling" = yes; then
12697 cat >conftest.
$ac_ext <<_ACEOF
12700 cat confdefs.h
>>conftest.
$ac_ext
12701 cat >>conftest.
$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 #ifdef HAVE_TERMCAP_H
12705 # include <termcap.h>
12708 # include <stdlib.h>
12709 # include <stddef.h>
12711 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12713 rm -f conftest
$ac_exeext
12714 if { (ac_try
="$ac_link"
12715 case "(($ac_try" in
12716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12720 $as_echo "$ac_try_echo") >&5
12721 (eval "$ac_link") 2>&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12727 *) ac_try_echo
=$ac_try;;
12729 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12730 $as_echo "$ac_try_echo") >&5
12731 (eval "$ac_try") 2>&5
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12737 $as_echo "$as_me: program exited with status $ac_status" >&5
12738 $as_echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.
$ac_ext >&5
12741 ( exit $ac_status )
12744 rm -rf conftest.dSYM
12745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12749 if test "$res" = "OK"; then
12752 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12753 $as_echo "$libname library is not usable" >&6; }
12757 if test "x$olibs" = "x$LIBS"; then
12758 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12759 $as_echo "no terminal library found" >&6; }
12763 if test "x$olibs" = "x$LIBS"; then
12764 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12765 $as_echo_n "checking for tgetent()... " >&6; }
12766 cat >conftest.
$ac_ext <<_ACEOF
12769 cat confdefs.h
>>conftest.
$ac_ext
12770 cat >>conftest.
$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12776 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12781 rm -f conftest.
$ac_objext conftest
$ac_exeext
12782 if { (ac_try
="$ac_link"
12783 case "(($ac_try" in
12784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_link") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext && {
12799 test "$cross_compiling" = yes ||
12800 $as_test_x conftest$ac_exeext
12802 { $as_echo "$as_me:$LINENO: result: yes" >&5
12803 $as_echo "yes" >&6; }
12805 $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12809 You need to install a terminal library; for example ncurses.
12810 Or specify the name of the library with --with-tlib." >&5
12811 $as_echo "$as_me: error: NOT FOUND!
12812 You need to install a terminal library; for example ncurses.
12813 Or specify the name of the library with --with-tlib." >&2;}
12814 { (exit 1); exit 1; }; }
12817 rm -rf conftest.dSYM
12818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12819 conftest$ac_exeext conftest.$ac_ext
12822 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12823 $as_echo_n "checking whether we talk terminfo... " >&6; }
12824 if test "${vim_cv_terminfo+set}" = set; then
12825 $as_echo_n "(cached) " >&6
12828 if test "$cross_compiling" = yes; then
12830 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12831 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12832 { (exit 1); exit 1; }; }
12835 cat >conftest.$ac_ext <<_ACEOF
12837 #include "confdefs.h"
12838 #ifdef HAVE_TERMCAP_H
12839 # include <termcap.h>
12841 #ifdef HAVE_STRING_H
12842 # include <string.h>
12845 # include <stdlib.h>
12846 # include <stddef.h>
12849 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12852 rm -f conftest$ac_exeext
12853 if { (ac_try="$ac_link"
12854 case "(($ac_try" in
12855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12856 *) ac_try_echo
=$ac_try;;
12858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12859 $as_echo "$ac_try_echo") >&5
12860 (eval "$ac_link") 2>&5
12862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12869 $as_echo "$ac_try_echo") >&5
12870 (eval "$ac_try") 2>&5
12872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12878 $as_echo "$as_me: program exited with status $ac_status" >&5
12879 $as_echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 ( exit $ac_status )
12884 vim_cv_terminfo=yes
12887 rm -rf conftest.dSYM
12888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12894 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12895 $as_echo "$vim_cv_terminfo" >&6; }
12897 if test "x$vim_cv_terminfo" = "xyes" ; then
12898 cat >>confdefs.h <<\_ACEOF
12904 if test "x$olibs" != "x$LIBS"; then
12905 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12906 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12907 if test "${vim_cv_tgent+set}" = set; then
12908 $as_echo_n "(cached) " >&6
12911 if test "$cross_compiling" = yes; then
12913 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12914 $as_echo "$as_me: error: failed to compile test program." >&2;}
12915 { (exit 1); exit 1; }; }
12918 cat >conftest.$ac_ext <<_ACEOF
12920 #include "confdefs.h"
12921 #ifdef HAVE_TERMCAP_H
12922 # include <termcap.h>
12925 # include <stdlib.h>
12926 # include <stddef.h>
12929 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12932 rm -f conftest$ac_exeext
12933 if { (ac_try="$ac_link"
12934 case "(($ac_try" in
12935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12936 *) ac_try_echo
=$ac_try;;
12938 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>&5
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12944 { (case "(($ac_try" in
12945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_try") 2>&5
12952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12958 $as_echo "$as_me: program exited with status $ac_status" >&5
12959 $as_echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12962 ( exit $ac_status )
12964 vim_cv_tgent=non-zero
12967 rm -rf conftest.dSYM
12968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12974 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12975 $as_echo "$vim_cv_tgent" >&6; }
12977 if test "x$vim_cv_tgent" = "xzero" ; then
12978 cat >>confdefs.h <<\_ACEOF
12979 #define TGETENT_ZERO_ERR 0
12985 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12986 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 #ifdef HAVE_TERMCAP_H
12995 # include <termcap.h>
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13010 *) ac_try_echo
=$ac_try;;
13012 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13013 $as_echo "$ac_try_echo") >&5
13014 (eval "$ac_link") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1
>conftest.err
13018 cat conftest.err
>&5
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest
$ac_exeext && {
13024 test "$cross_compiling" = yes ||
13025 $as_test_x conftest
$ac_exeext
13027 { $as_echo "$as_me:$LINENO: result: yes" >&5
13028 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13029 #define HAVE_OSPEED 1
13033 $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.
$ac_ext >&5
13036 { $as_echo "$as_me:$LINENO: result: no" >&5
13037 $as_echo "no" >&6; }
13038 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13039 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13040 cat >conftest.
$ac_ext <<_ACEOF
13043 cat confdefs.h
>>conftest.
$ac_ext
13044 cat >>conftest.
$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13047 #ifdef HAVE_TERMCAP_H
13048 # include <termcap.h>
13050 extern short ospeed;
13060 rm -f conftest.
$ac_objext conftest
$ac_exeext
13061 if { (ac_try
="$ac_link"
13062 case "(($ac_try" in
13063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068 (eval "$ac_link") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } && {
13075 test -z "$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 } && test -s conftest$ac_exeext && {
13078 test "$cross_compiling" = yes ||
13079 $as_test_x conftest$ac_exeext
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13083 #define OSPEED_EXTERN 1
13087 $as_echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 { $as_echo "$as_me:$LINENO: result: no" >&5
13091 $as_echo "no" >&6; }
13094 rm -rf conftest.dSYM
13095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13096 conftest$ac_exeext conftest.$ac_ext
13100 rm -rf conftest.dSYM
13101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13102 conftest$ac_exeext conftest.$ac_ext
13104 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13105 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13113 #ifdef HAVE_TERMCAP_H
13114 # include <termcap.h>
13120 if (UP == 0 && BC == 0) PC = 1
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13129 *) ac_try_echo
=$ac_try;;
13131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_link") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1
>conftest.err
13137 cat conftest.err
>&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest
$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest
$ac_exeext
13146 { $as_echo "$as_me:$LINENO: result: yes" >&5
13147 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13148 #define HAVE_UP_BC_PC 1
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.
$ac_ext >&5
13155 { $as_echo "$as_me:$LINENO: result: no" >&5
13156 $as_echo "no" >&6; }
13157 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13158 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13159 cat >conftest.
$ac_ext <<_ACEOF
13162 cat confdefs.h
>>conftest.
$ac_ext
13163 cat >>conftest.
$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 #ifdef HAVE_TERMCAP_H
13167 # include <termcap.h>
13169 extern char *UP, *BC, PC;
13174 if (UP == 0 && BC == 0) PC = 1
13179 rm -f conftest.
$ac_objext conftest
$ac_exeext
13180 if { (ac_try
="$ac_link"
13181 case "(($ac_try" in
13182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186 $as_echo "$ac_try_echo") >&5
13187 (eval "$ac_link") 2>conftest.er1
13189 grep -v '^ *+' conftest.er1 >conftest.err
13191 cat conftest.err >&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest$ac_exeext && {
13197 test "$cross_compiling" = yes ||
13198 $as_test_x conftest$ac_exeext
13200 { $as_echo "$as_me:$LINENO: result: yes" >&5
13201 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13202 #define UP_BC_PC_EXTERN 1
13206 $as_echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 { $as_echo "$as_me:$LINENO: result: no" >&5
13210 $as_echo "no" >&6; }
13213 rm -rf conftest.dSYM
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13219 rm -rf conftest.dSYM
13220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13221 conftest$ac_exeext conftest.$ac_ext
13223 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13224 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 #ifdef HAVE_TERMCAP_H
13233 # include <termcap.h>
13239 extern int xx(); tputs("test", 1, (outfuntype)xx)
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13248 *) ac_try_echo
=$ac_try;;
13250 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13251 $as_echo "$ac_try_echo") >&5
13252 (eval "$ac_compile") 2>conftest.er1
13254 grep -v '^ *+' conftest.er1
>conftest.err
13256 cat conftest.err
>&5
13257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest.
$ac_objext; then
13262 { $as_echo "$as_me:$LINENO: result: yes" >&5
13263 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13264 #define HAVE_OUTFUNTYPE 1
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 { $as_echo "$as_me:$LINENO: result: no" >&5
13272 $as_echo "no" >&6; }
13275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13277 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13278 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13279 cat >conftest.
$ac_ext <<_ACEOF
13282 cat confdefs.h
>>conftest.
$ac_ext
13283 cat >>conftest.
$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 #include <sys/types.h>
13287 #include <sys/time.h>
13288 #include <sys/select.h>
13297 rm -f conftest.
$ac_objext
13298 if { (ac_try
="$ac_compile"
13299 case "(($ac_try" in
13300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13304 $as_echo "$ac_try_echo") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 { $as_echo "$as_me:$LINENO: result: yes" >&5
13316 $as_echo "yes" >&6; }
13317 cat >>confdefs.h <<\_ACEOF
13318 #define SYS_SELECT_WITH_SYS_TIME 1
13322 $as_echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 { $as_echo "$as_me:$LINENO: result: no" >&5
13326 $as_echo "no" >&6; }
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13333 $as_echo_n "checking for /dev/ptc... " >&6; }
13334 if test -r /dev/ptc; then
13335 cat >>confdefs.h <<\_ACEOF
13336 #define HAVE_DEV_PTC 1
13339 { $as_echo "$as_me:$LINENO: result: yes" >&5
13340 $as_echo "yes" >&6; }
13342 { $as_echo "$as_me:$LINENO: result: no" >&5
13343 $as_echo "no" >&6; }
13346 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13347 $as_echo_n "checking for SVR4 ptys... " >&6; }
13348 if test -c /dev/ptmx ; then
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13359 ptsname(0);grantpt(0);unlockpt(0);
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (ac_try="$ac_link"
13366 case "(($ac_try" in
13367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13368 *) ac_try_echo
=$ac_try;;
13370 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13371 $as_echo "$ac_try_echo") >&5
13372 (eval "$ac_link") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1
>conftest.err
13376 cat conftest.err
>&5
13377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && {
13379 test -z "$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 } && test -s conftest
$ac_exeext && {
13382 test "$cross_compiling" = yes ||
13383 $as_test_x conftest
$ac_exeext
13385 { $as_echo "$as_me:$LINENO: result: yes" >&5
13386 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13387 #define HAVE_SVR4_PTYS 1
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.
$ac_ext >&5
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395 $as_echo "no" >&6; }
13398 rm -rf conftest.dSYM
13399 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13400 conftest
$ac_exeext conftest.
$ac_ext
13402 { $as_echo "$as_me:$LINENO: result: no" >&5
13403 $as_echo "no" >&6; }
13406 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13407 $as_echo_n "checking for ptyranges... " >&6; }
13408 if test -d /dev
/ptym
; then
13413 cat >conftest.
$ac_ext <<_ACEOF
13416 cat confdefs.h
>>conftest.
$ac_ext
13417 cat >>conftest.
$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13425 $EGREP "yes" >/dev
/null
2>&1; then
13426 ptys
=`echo /dev/ptyp??`
13428 ptys
=`echo $pdir/pty??`
13432 if test "$ptys" != "$pdir/pty??" ; then
13433 p0
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13434 p1
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13435 cat >>confdefs.h
<<_ACEOF
13436 #define PTYRANGE0 "$p0"
13439 cat >>confdefs.h
<<_ACEOF
13440 #define PTYRANGE1 "$p1"
13443 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13444 $as_echo "$p0 / $p1" >&6; }
13446 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13447 $as_echo "don't know" >&6; }
13451 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13452 $as_echo_n "checking default tty permissions/group... " >&6; }
13453 if test "${vim_cv_tty_group+set}" = set; then
13454 $as_echo_n "(cached) " >&6
13457 if test "$cross_compiling" = yes; then
13459 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13460 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13461 { (exit 1); exit 1; }; }
13464 cat >conftest.
$ac_ext <<_ACEOF
13466 #include "confdefs.h"
13467 #include <sys/types.h>
13469 # include <stdlib.h>
13470 # include <stddef.h>
13472 #ifdef HAVE_UNISTD_H
13473 #include <unistd.h>
13475 #include <sys/stat.h>
13480 char *x,*ttyname();
13484 if (!(x = ttyname(0))) exit(1);
13485 if (stat(x, &sb)) exit(1);
13487 if (om & 002) exit(0);
13488 m = system("mesg y");
13489 if (m == -1 || m == 127) exit(1);
13490 if (stat(x, &sb)) exit(1);
13492 if (chmod(x, om)) exit(1);
13493 if (m & 002) exit(0);
13494 if (sb.st_gid == getgid()) exit(1);
13495 if (!(fp=fopen("conftest_grp", "w")))
13497 fprintf(fp, "%d\n", sb.st_gid);
13503 rm -f conftest
$ac_exeext
13504 if { (ac_try
="$ac_link"
13505 case "(($ac_try" in
13506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_link") 2>&5
13513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13515 { (case "(($ac_try" in
13516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13517 *) ac_try_echo
=$ac_try;;
13519 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13520 $as_echo "$ac_try_echo") >&5
13521 (eval "$ac_try") 2>&5
13523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13526 if test -f conftest_grp
; then
13527 vim_cv_tty_group
=`cat conftest_grp`
13528 if test "x$vim_cv_tty_mode" = "x" ; then
13529 vim_cv_tty_mode
=0620
13531 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13532 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13534 vim_cv_tty_group
=world
13535 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13536 $as_echo "ptys are world accessable" >&6; }
13540 $as_echo "$as_me: program exited with status $ac_status" >&5
13541 $as_echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.
$ac_ext >&5
13544 ( exit $ac_status )
13546 vim_cv_tty_group
=world
13547 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13548 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13551 rm -rf conftest.dSYM
13552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13558 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13559 $as_echo "$vim_cv_tty_group" >&6; }
13562 if test "x$vim_cv_tty_group" != "xworld" ; then
13563 cat >>confdefs.h
<<_ACEOF
13564 #define PTYGROUP $vim_cv_tty_group
13567 if test "x$vim_cv_tty_mode" = "x" ; then
13568 { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
13569 $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13570 { (exit 1); exit 1; }; }
13572 cat >>confdefs.h
<<\_ACEOF
13573 #define PTYMODE 0620
13580 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13581 $as_echo_n "checking return type of signal handlers... " >&6; }
13582 if test "${ac_cv_type_signal+set}" = set; then
13583 $as_echo_n "(cached) " >&6
13585 cat >conftest.
$ac_ext <<_ACEOF
13588 cat confdefs.h
>>conftest.
$ac_ext
13589 cat >>conftest.
$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <signal.h>
13597 return *(signal (0, 0)) (0) == 1;
13602 rm -f conftest.
$ac_objext
13603 if { (ac_try
="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609 $as_echo "$ac_try_echo") >&5
13610 (eval "$ac_compile") 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest.$ac_objext; then
13620 ac_cv_type_signal=int
13622 $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 ac_cv_type_signal=void
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13631 $as_echo "$ac_cv_type_signal" >&6; }
13633 cat >>confdefs.h <<_ACEOF
13634 #define RETSIGTYPE $ac_cv_type_signal
13639 if test $ac_cv_type_signal = void; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define SIGRETURN return
13645 cat >>confdefs.h <<\_ACEOF
13646 #define SIGRETURN return 0
13651 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13652 $as_echo_n "checking for struct sigcontext... " >&6; }
13653 cat >conftest.$ac_ext <<_ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13660 #include <signal.h>
13663 struct sigcontext *scont;
13664 scont = (struct sigcontext *)0;
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13679 *) ac_try_echo
=$ac_try;;
13681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13682 $as_echo "$ac_try_echo") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1
>conftest.err
13687 cat conftest.err
>&5
13688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.
$ac_objext; then
13693 { $as_echo "$as_me:$LINENO: result: yes" >&5
13694 $as_echo "yes" >&6; }
13695 cat >>confdefs.h
<<\_ACEOF
13696 #define HAVE_SIGCONTEXT 1
13700 $as_echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.
$ac_ext >&5
13703 { $as_echo "$as_me:$LINENO: result: no" >&5
13704 $as_echo "no" >&6; }
13707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13709 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13710 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13711 if test "${vim_cv_getcwd_broken+set}" = set; then
13712 $as_echo_n "(cached) " >&6
13715 if test "$cross_compiling" = yes; then
13717 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13718 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13719 { (exit 1); exit 1; }; }
13722 cat >conftest.
$ac_ext <<_ACEOF
13724 #include "confdefs.h"
13725 #ifdef HAVE_UNISTD_H
13726 #include <unistd.h>
13728 char *dagger[] = { "IFS=pwd", 0 };
13732 extern char **environ;
13734 return getcwd(buffer, 500) ? 0 : 1;
13738 rm -f conftest
$ac_exeext
13739 if { (ac_try
="$ac_link"
13740 case "(($ac_try" in
13741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13745 $as_echo "$ac_try_echo") >&5
13746 (eval "$ac_link") 2>&5
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13752 *) ac_try_echo
=$ac_try;;
13754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13755 $as_echo "$ac_try_echo") >&5
13756 (eval "$ac_try") 2>&5
13758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13761 vim_cv_getcwd_broken
=no
13764 $as_echo "$as_me: program exited with status $ac_status" >&5
13765 $as_echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.
$ac_ext >&5
13768 ( exit $ac_status )
13770 vim_cv_getcwd_broken
=yes
13773 rm -rf conftest.dSYM
13774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13780 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13781 $as_echo "$vim_cv_getcwd_broken" >&6; }
13783 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13784 cat >>confdefs.h
<<\_ACEOF
13785 #define BAD_GETCWD 1
13836 for ac_func
in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13837 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13838 memset nanosleep opendir putenv qsort readlink
select setenv \
13839 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13840 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13841 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13842 usleep utime utimes
13844 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13846 $as_echo_n "checking for $ac_func... " >&6; }
13847 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13848 $as_echo_n "(cached) " >&6
13850 cat >conftest.
$ac_ext <<_ACEOF
13853 cat confdefs.h
>>conftest.
$ac_ext
13854 cat >>conftest.
$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13858 #define $ac_func innocuous_$ac_func
13860 /* System header to define __stub macros and hopefully few prototypes,
13861 which can conflict with char $ac_func (); below.
13862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13863 <limits.h> exists even on freestanding compilers. */
13866 # include <limits.h>
13868 # include <assert.h>
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined __stub_$ac_func || defined __stub___$ac_func
13890 return $ac_func ();
13895 rm -f conftest.
$ac_objext conftest
$ac_exeext
13896 if { (ac_try
="$ac_link"
13897 case "(($ac_try" in
13898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902 $as_echo "$ac_try_echo") >&5
13903 (eval "$ac_link") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext && {
13913 test "$cross_compiling" = yes ||
13914 $as_test_x conftest$ac_exeext
13916 eval "$as_ac_var=yes"
13918 $as_echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 eval "$as_ac_var=no"
13924 rm -rf conftest.dSYM
13925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13926 conftest$ac_exeext conftest.$ac_ext
13928 ac_res=`eval 'as_val=${'$as_ac_var'}
13929 $as_echo "$as_val"'`
13930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13931 $as_echo "$ac_res" >&6; }
13932 if test `eval 'as_val=${'$as_ac_var'}
13933 $as_echo "$as_val"'` = yes; then
13934 cat >>confdefs.h <<_ACEOF
13935 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13942 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13943 $as_echo_n "checking for st_blksize... " >&6; }
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <sys/types.h>
13951 #include <sys/stat.h>
13959 n = (int)st.st_blksize;
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13968 *) ac_try_echo
=$ac_try;;
13970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13971 $as_echo "$ac_try_echo") >&5
13972 (eval "$ac_compile") 2>conftest.er1
13974 grep -v '^ *+' conftest.er1
>conftest.err
13976 cat conftest.err
>&5
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest.
$ac_objext; then
13982 { $as_echo "$as_me:$LINENO: result: yes" >&5
13983 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13984 #define HAVE_ST_BLKSIZE 1
13988 $as_echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.
$ac_ext >&5
13991 { $as_echo "$as_me:$LINENO: result: no" >&5
13992 $as_echo "no" >&6; }
13995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13997 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13998 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13999 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14000 $as_echo_n "(cached) " >&6
14003 if test "$cross_compiling" = yes; then
14005 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14006 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14007 { (exit 1); exit 1; }; }
14010 cat >conftest.
$ac_ext <<_ACEOF
14012 #include "confdefs.h"
14014 # include <stdlib.h>
14015 # include <stddef.h>
14017 #include <sys/types.h>
14018 #include <sys/stat.h>
14019 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14022 rm -f conftest
$ac_exeext
14023 if { (ac_try
="$ac_link"
14024 case "(($ac_try" in
14025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_link") 2>&5
14032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14034 { (case "(($ac_try" in
14035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14036 *) ac_try_echo
=$ac_try;;
14038 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040 (eval "$ac_try") 2>&5
14042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14045 vim_cv_stat_ignores_slash
=yes
14048 $as_echo "$as_me: program exited with status $ac_status" >&5
14049 $as_echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.
$ac_ext >&5
14052 ( exit $ac_status )
14054 vim_cv_stat_ignores_slash
=no
14057 rm -rf conftest.dSYM
14058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14064 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14065 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14067 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14068 cat >>confdefs.h
<<\_ACEOF
14069 #define STAT_IGNORES_SLASH 1
14074 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14075 $as_echo_n "checking for iconv_open()... " >&6; }
14077 LIBS
="$LIBS -liconv"
14078 cat >conftest.
$ac_ext <<_ACEOF
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 #ifdef HAVE_ICONV_H
14086 # include <iconv.h>
14092 iconv_open("fr", "to");
14097 rm -f conftest.
$ac_objext conftest
$ac_exeext
14098 if { (ac_try
="$ac_link"
14099 case "(($ac_try" in
14100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105 (eval "$ac_link") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14109 cat conftest.err >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest$ac_exeext && {
14115 test "$cross_compiling" = yes ||
14116 $as_test_x conftest$ac_exeext
14118 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14119 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_ICONV 1
14124 $as_echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14128 cat >conftest.$ac_ext <<_ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14135 #ifdef HAVE_ICONV_H
14136 # include <iconv.h>
14142 iconv_open("fr", "to");
14147 rm -f conftest.$ac_objext conftest$ac_exeext
14148 if { (ac_try="$ac_link"
14149 case "(($ac_try" in
14150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14151 *) ac_try_echo
=$ac_try;;
14153 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14154 $as_echo "$ac_try_echo") >&5
14155 (eval "$ac_link") 2>conftest.er1
14157 grep -v '^ *+' conftest.er1
>conftest.err
14159 cat conftest.err
>&5
14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest
$ac_exeext && {
14165 test "$cross_compiling" = yes ||
14166 $as_test_x conftest
$ac_exeext
14168 { $as_echo "$as_me:$LINENO: result: yes" >&5
14169 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14170 #define HAVE_ICONV 1
14174 $as_echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.
$ac_ext >&5
14177 { $as_echo "$as_me:$LINENO: result: no" >&5
14178 $as_echo "no" >&6; }
14181 rm -rf conftest.dSYM
14182 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14183 conftest
$ac_exeext conftest.
$ac_ext
14186 rm -rf conftest.dSYM
14187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14188 conftest
$ac_exeext conftest.
$ac_ext
14191 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14192 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14193 cat >conftest.
$ac_ext <<_ACEOF
14196 cat confdefs.h
>>conftest.
$ac_ext
14197 cat >>conftest.
$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14200 #ifdef HAVE_LANGINFO_H
14201 # include <langinfo.h>
14207 char *cs = nl_langinfo(CODESET);
14212 rm -f conftest.
$ac_objext conftest
$ac_exeext
14213 if { (ac_try
="$ac_link"
14214 case "(($ac_try" in
14215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14219 $as_echo "$ac_try_echo") >&5
14220 (eval "$ac_link") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } && {
14227 test -z "$ac_c_werror_flag" ||
14228 test ! -s conftest.err
14229 } && test -s conftest$ac_exeext && {
14230 test "$cross_compiling" = yes ||
14231 $as_test_x conftest$ac_exeext
14233 { $as_echo "$as_me:$LINENO: result: yes" >&5
14234 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_NL_LANGINFO_CODESET 1
14239 $as_echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 { $as_echo "$as_me:$LINENO: result: no" >&5
14243 $as_echo "no" >&6; }
14246 rm -rf conftest.dSYM
14247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14248 conftest$ac_exeext conftest.$ac_ext
14251 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14252 $as_echo_n "checking for strtod in -lm... " >&6; }
14253 if test "${ac_cv_lib_m_strtod+set}" = set; then
14254 $as_echo_n "(cached) " >&6
14256 ac_check_lib_save_LIBS=$LIBS
14258 cat >conftest.$ac_ext <<_ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14284 *) ac_try_echo
=$ac_try;;
14286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_link") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1
>conftest.err
14292 cat conftest.err
>&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest
$ac_exeext && {
14298 test "$cross_compiling" = yes ||
14299 $as_test_x conftest
$ac_exeext
14301 ac_cv_lib_m_strtod
=yes
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.
$ac_ext >&5
14306 ac_cv_lib_m_strtod
=no
14309 rm -rf conftest.dSYM
14310 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14311 conftest
$ac_exeext conftest.
$ac_ext
14312 LIBS
=$ac_check_lib_save_LIBS
14314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14315 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14316 if test $ac_cv_lib_m_strtod = yes; then
14317 cat >>confdefs.h
<<_ACEOF
14318 #define HAVE_LIBM 1
14325 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14326 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14327 cat >conftest.
$ac_ext <<_ACEOF
14330 cat confdefs.h
>>conftest.
$ac_ext
14331 cat >>conftest.
$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14338 # include <stdlib.h>
14339 # include <stddef.h>
14346 d = strtod("1.1", &s);
14351 d = pow(1.11, 2.22);
14361 rm -f conftest.
$ac_objext conftest
$ac_exeext
14362 if { (ac_try
="$ac_link"
14363 case "(($ac_try" in
14364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14368 $as_echo "$ac_try_echo") >&5
14369 (eval "$ac_link") 2>conftest.er1
14371 grep -v '^ *+' conftest.er1 >conftest.err
14373 cat conftest.err >&5
14374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest$ac_exeext && {
14379 test "$cross_compiling" = yes ||
14380 $as_test_x conftest$ac_exeext
14382 { $as_echo "$as_me:$LINENO: result: yes" >&5
14383 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_FLOAT_FUNCS 1
14388 $as_echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 { $as_echo "$as_me:$LINENO: result: no" >&5
14392 $as_echo "no" >&6; }
14395 rm -rf conftest.dSYM
14396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext conftest.$ac_ext
14399 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14400 $as_echo_n "checking --disable-acl argument... " >&6; }
14401 # Check whether --enable-acl was given.
14402 if test "${enable_acl+set}" = set; then
14403 enableval=$enable_acl;
14408 if test "$enable_acl" = "yes"; then
14409 { $as_echo "$as_me:$LINENO: result: no" >&5
14410 $as_echo "no" >&6; }
14411 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14412 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14413 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14414 $as_echo_n "(cached) " >&6
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lposix1e $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14431 char acl_get_file ();
14435 return acl_get_file ();
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14444 *) ac_try_echo
=$ac_try;;
14446 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14447 $as_echo "$ac_try_echo") >&5
14448 (eval "$ac_link") 2>conftest.er1
14450 grep -v '^ *+' conftest.er1
>conftest.err
14452 cat conftest.err
>&5
14453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && {
14455 test -z "$ac_c_werror_flag" ||
14456 test ! -s conftest.err
14457 } && test -s conftest
$ac_exeext && {
14458 test "$cross_compiling" = yes ||
14459 $as_test_x conftest
$ac_exeext
14461 ac_cv_lib_posix1e_acl_get_file
=yes
14463 $as_echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.
$ac_ext >&5
14466 ac_cv_lib_posix1e_acl_get_file
=no
14469 rm -rf conftest.dSYM
14470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14471 conftest
$ac_exeext conftest.
$ac_ext
14472 LIBS
=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14475 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14476 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14477 LIBS
="$LIBS -lposix1e"
14479 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14480 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14481 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14482 $as_echo_n "(cached) " >&6
14484 ac_check_lib_save_LIBS
=$LIBS
14486 cat >conftest.
$ac_ext <<_ACEOF
14489 cat confdefs.h
>>conftest.
$ac_ext
14490 cat >>conftest.
$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14493 /* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14499 char acl_get_file ();
14503 return acl_get_file ();
14508 rm -f conftest.
$ac_objext conftest
$ac_exeext
14509 if { (ac_try
="$ac_link"
14510 case "(($ac_try" in
14511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516 (eval "$ac_link") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && {
14523 test -z "$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14525 } && test -s conftest$ac_exeext && {
14526 test "$cross_compiling" = yes ||
14527 $as_test_x conftest$ac_exeext
14529 ac_cv_lib_acl_acl_get_file=yes
14531 $as_echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_lib_acl_acl_get_file=no
14537 rm -rf conftest.dSYM
14538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14539 conftest$ac_exeext conftest.$ac_ext
14540 LIBS=$ac_check_lib_save_LIBS
14542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14543 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14544 if test $ac_cv_lib_acl_acl_get_file = yes; then
14546 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14547 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14548 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14549 $as_echo_n "(cached) " >&6
14551 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lattr $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14570 return fgetxattr ();
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14579 *) ac_try_echo
=$ac_try;;
14581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583 (eval "$ac_link") 2>conftest.er1
14585 grep -v '^ *+' conftest.er1
>conftest.err
14587 cat conftest.err
>&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest
$ac_exeext && {
14593 test "$cross_compiling" = yes ||
14594 $as_test_x conftest
$ac_exeext
14596 ac_cv_lib_attr_fgetxattr
=yes
14598 $as_echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.
$ac_ext >&5
14601 ac_cv_lib_attr_fgetxattr
=no
14604 rm -rf conftest.dSYM
14605 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14606 conftest
$ac_exeext conftest.
$ac_ext
14607 LIBS
=$ac_check_lib_save_LIBS
14609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14610 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14611 if test $ac_cv_lib_attr_fgetxattr = yes; then
14612 LIBS
="$LIBS -lattr"
14620 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14621 $as_echo_n "checking for POSIX ACL support... " >&6; }
14622 cat >conftest.
$ac_ext <<_ACEOF
14625 cat confdefs.h
>>conftest.
$ac_ext
14626 cat >>conftest.
$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14629 #include <sys/types.h>
14630 #ifdef HAVE_SYS_ACL_H
14631 # include <sys/acl.h>
14637 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14638 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14644 rm -f conftest.
$ac_objext conftest
$ac_exeext
14645 if { (ac_try
="$ac_link"
14646 case "(($ac_try" in
14647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14651 $as_echo "$ac_try_echo") >&5
14652 (eval "$ac_link") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest$ac_exeext && {
14662 test "$cross_compiling" = yes ||
14663 $as_test_x conftest$ac_exeext
14665 { $as_echo "$as_me:$LINENO: result: yes" >&5
14666 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_POSIX_ACL 1
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 { $as_echo "$as_me:$LINENO: result: no" >&5
14675 $as_echo "no" >&6; }
14678 rm -rf conftest.dSYM
14679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14680 conftest$ac_exeext conftest.$ac_ext
14682 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14683 $as_echo_n "checking for Solaris ACL support... " >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14691 #ifdef HAVE_SYS_ACL_H
14692 # include <sys/acl.h>
14697 acl("foo", GETACLCNT, 0, NULL);
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14707 *) ac_try_echo
=$ac_try;;
14709 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711 (eval "$ac_link") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1
>conftest.err
14715 cat conftest.err
>&5
14716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest
$ac_exeext && {
14721 test "$cross_compiling" = yes ||
14722 $as_test_x conftest
$ac_exeext
14724 { $as_echo "$as_me:$LINENO: result: yes" >&5
14725 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14726 #define HAVE_SOLARIS_ACL 1
14730 $as_echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.
$ac_ext >&5
14733 { $as_echo "$as_me:$LINENO: result: no" >&5
14734 $as_echo "no" >&6; }
14737 rm -rf conftest.dSYM
14738 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14739 conftest
$ac_exeext conftest.
$ac_ext
14741 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14742 $as_echo_n "checking for AIX ACL support... " >&6; }
14743 cat >conftest.
$ac_ext <<_ACEOF
14746 cat confdefs.h
>>conftest.
$ac_ext
14747 cat >>conftest.
$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14751 # include <stdlib.h>
14752 # include <stddef.h>
14754 #ifdef HAVE_SYS_ACL_H
14755 # include <sys/acl.h>
14757 #ifdef HAVE_SYS_ACCESS_H
14758 # include <sys/access.h>
14760 #define _ALL_SOURCE
14762 #include <sys/stat.h>
14765 struct acl *aclent;
14769 aclsize = sizeof(struct acl);
14770 aclent = (void *)malloc(aclsize);
14771 statacl("foo", STX_NORMAL, aclent, aclsize);
14777 rm -f conftest.
$ac_objext conftest
$ac_exeext
14778 if { (ac_try
="$ac_link"
14779 case "(($ac_try" in
14780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14784 $as_echo "$ac_try_echo") >&5
14785 (eval "$ac_link") 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest$ac_exeext && {
14795 test "$cross_compiling" = yes ||
14796 $as_test_x conftest$ac_exeext
14798 { $as_echo "$as_me:$LINENO: result: yes" >&5
14799 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AIX_ACL 1
14804 $as_echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 { $as_echo "$as_me:$LINENO: result: no" >&5
14808 $as_echo "no" >&6; }
14811 rm -rf conftest.dSYM
14812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14813 conftest$ac_exeext conftest.$ac_ext
14815 { $as_echo "$as_me:$LINENO: result: yes" >&5
14816 $as_echo "yes" >&6; }
14819 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14820 $as_echo_n "checking --disable-gpm argument... " >&6; }
14821 # Check whether --enable-gpm was given.
14822 if test "${enable_gpm+set}" = set; then
14823 enableval=$enable_gpm;
14829 if test "$enable_gpm" = "yes"; then
14830 { $as_echo "$as_me:$LINENO: result: no" >&5
14831 $as_echo "no" >&6; }
14832 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14833 $as_echo_n "checking for gpm... " >&6; }
14834 if test "${vi_cv_have_gpm+set}" = set; then
14835 $as_echo_n "(cached) " >&6
14837 olibs="$LIBS" ; LIBS="-lgpm"
14838 cat >conftest.$ac_ext <<_ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14845 #include <linux/keyboard.h>
14849 Gpm_GetLibVersion(NULL);
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14858 *) ac_try_echo
=$ac_try;;
14860 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14861 $as_echo "$ac_try_echo") >&5
14862 (eval "$ac_link") 2>conftest.er1
14864 grep -v '^ *+' conftest.er1
>conftest.err
14866 cat conftest.err
>&5
14867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } && {
14869 test -z "$ac_c_werror_flag" ||
14870 test ! -s conftest.err
14871 } && test -s conftest
$ac_exeext && {
14872 test "$cross_compiling" = yes ||
14873 $as_test_x conftest
$ac_exeext
14877 $as_echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.
$ac_ext >&5
14883 rm -rf conftest.dSYM
14884 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14885 conftest
$ac_exeext conftest.
$ac_ext
14889 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14890 $as_echo "$vi_cv_have_gpm" >&6; }
14891 if test $vi_cv_have_gpm = yes; then
14893 cat >>confdefs.h
<<\_ACEOF
14899 { $as_echo "$as_me:$LINENO: result: yes" >&5
14900 $as_echo "yes" >&6; }
14903 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14904 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
14905 # Check whether --enable-sysmouse was given.
14906 if test "${enable_sysmouse+set}" = set; then
14907 enableval
=$enable_sysmouse;
14909 enable_sysmouse
="yes"
14913 if test "$enable_sysmouse" = "yes"; then
14914 { $as_echo "$as_me:$LINENO: result: no" >&5
14915 $as_echo "no" >&6; }
14916 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14917 $as_echo_n "checking for sysmouse... " >&6; }
14918 if test "${vi_cv_have_sysmouse+set}" = set; then
14919 $as_echo_n "(cached) " >&6
14921 cat >conftest.
$ac_ext <<_ACEOF
14924 cat confdefs.h
>>conftest.
$ac_ext
14925 cat >>conftest.
$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 #include <sys/consio.h>
14928 #include <signal.h>
14929 #include <sys/fbio.h>
14933 struct mouse_info mouse;
14934 mouse.operation = MOUSE_MODE;
14935 mouse.operation = MOUSE_SHOW;
14936 mouse.u.mode.mode = 0;
14937 mouse.u.mode.signal = SIGUSR2;
14942 rm -f conftest.
$ac_objext conftest
$ac_exeext
14943 if { (ac_try
="$ac_link"
14944 case "(($ac_try" in
14945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14949 $as_echo "$ac_try_echo") >&5
14950 (eval "$ac_link") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext && {
14960 test "$cross_compiling" = yes ||
14961 $as_test_x conftest$ac_exeext
14963 vi_cv_have_sysmouse=yes
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 vi_cv_have_sysmouse=no
14971 rm -rf conftest.dSYM
14972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14973 conftest$ac_exeext conftest.$ac_ext
14976 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14977 $as_echo "$vi_cv_have_sysmouse" >&6; }
14978 if test $vi_cv_have_sysmouse = yes; then
14979 cat >>confdefs.h <<\_ACEOF
14980 #define HAVE_SYSMOUSE 1
14985 { $as_echo "$as_me:$LINENO: result: yes" >&5
14986 $as_echo "yes" >&6; }
14989 { $as_echo "$as_me:$LINENO: checking for rename" >&5
14990 $as_echo_n "checking for rename... " >&6; }
14991 cat >conftest.$ac_ext <<_ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
15001 rename("this", "that")
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15010 *) ac_try_echo
=$ac_try;;
15012 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15013 $as_echo "$ac_try_echo") >&5
15014 (eval "$ac_link") 2>conftest.er1
15016 grep -v '^ *+' conftest.er1
>conftest.err
15018 cat conftest.err
>&5
15019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest
$ac_exeext && {
15024 test "$cross_compiling" = yes ||
15025 $as_test_x conftest
$ac_exeext
15027 { $as_echo "$as_me:$LINENO: result: yes" >&5
15028 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15029 #define HAVE_RENAME 1
15033 $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.
$ac_ext >&5
15036 { $as_echo "$as_me:$LINENO: result: no" >&5
15037 $as_echo "no" >&6; }
15040 rm -rf conftest.dSYM
15041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15042 conftest
$ac_exeext conftest.
$ac_ext
15044 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15045 $as_echo_n "checking for sysctl... " >&6; }
15046 cat >conftest.
$ac_ext <<_ACEOF
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 #include <sys/types.h>
15053 #include <sys/sysctl.h>
15061 mib[1] = HW_USERMEM;
15063 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15069 rm -f conftest.
$ac_objext
15070 if { (ac_try
="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15076 $as_echo "$ac_try_echo") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_c_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest.$ac_objext; then
15087 { $as_echo "$as_me:$LINENO: result: yes" >&5
15088 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_SYSCTL 1
15093 $as_echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15097 $as_echo "not usable" >&6; }
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15103 $as_echo_n "checking for sysinfo... " >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <sys/types.h>
15111 #include <sys/sysinfo.h>
15115 struct sysinfo sinfo;
15118 (void)sysinfo(&sinfo);
15119 t = sinfo.totalram;
15125 rm -f conftest.$ac_objext
15126 if { (ac_try="$ac_compile"
15127 case "(($ac_try" in
15128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15129 *) ac_try_echo
=$ac_try;;
15131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15132 $as_echo "$ac_try_echo") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1
>conftest.err
15137 cat conftest.err
>&5
15138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_c_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest.
$ac_objext; then
15143 { $as_echo "$as_me:$LINENO: result: yes" >&5
15144 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15145 #define HAVE_SYSINFO 1
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.
$ac_ext >&5
15152 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15153 $as_echo "not usable" >&6; }
15156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15158 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15159 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15160 cat >conftest.
$ac_ext <<_ACEOF
15163 cat confdefs.h
>>conftest.
$ac_ext
15164 cat >>conftest.
$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #include <sys/types.h>
15167 #include <sys/sysinfo.h>
15171 struct sysinfo sinfo;
15172 sinfo.mem_unit = 1;
15178 rm -f conftest.
$ac_objext
15179 if { (ac_try
="$ac_compile"
15180 case "(($ac_try" in
15181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15185 $as_echo "$ac_try_echo") >&5
15186 (eval "$ac_compile") 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest.$ac_objext; then
15196 { $as_echo "$as_me:$LINENO: result: yes" >&5
15197 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15198 #define HAVE_SYSINFO_MEM_UNIT 1
15202 $as_echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15205 { $as_echo "$as_me:$LINENO: result: no" >&5
15206 $as_echo "no" >&6; }
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15212 $as_echo_n "checking for sysconf... " >&6; }
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <unistd.h>
15223 (void)sysconf(_SC_PAGESIZE);
15224 (void)sysconf(_SC_PHYS_PAGES);
15230 rm -f conftest.$ac_objext
15231 if { (ac_try="$ac_compile"
15232 case "(($ac_try" in
15233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15234 *) ac_try_echo
=$ac_try;;
15236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15237 $as_echo "$ac_try_echo") >&5
15238 (eval "$ac_compile") 2>conftest.er1
15240 grep -v '^ *+' conftest.er1
>conftest.err
15242 cat conftest.err
>&5
15243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest.
$ac_objext; then
15248 { $as_echo "$as_me:$LINENO: result: yes" >&5
15249 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15250 #define HAVE_SYSCONF 1
15254 $as_echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.
$ac_ext >&5
15257 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15258 $as_echo "not usable" >&6; }
15261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15264 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15265 $as_echo_n "checking size of int... " >&6; }
15266 if test "${ac_cv_sizeof_int+set}" = set; then
15267 $as_echo_n "(cached) " >&6
15269 if test "$cross_compiling" = yes; then
15270 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15271 $as_echo "$as_me: error: failed to compile test program" >&2;}
15272 { (exit 1); exit 1; }; }
15274 cat >conftest.
$ac_ext <<_ACEOF
15277 cat confdefs.h
>>conftest.
$ac_ext
15278 cat >>conftest.
$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15283 # include <stdlib.h>
15284 # include <stddef.h>
15288 FILE *f=fopen("conftestval", "w");
15290 fprintf(f, "%d\n", (int)sizeof(int));
15294 rm -f conftest
$ac_exeext
15295 if { (ac_try
="$ac_link"
15296 case "(($ac_try" in
15297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15301 $as_echo "$ac_try_echo") >&5
15302 (eval "$ac_link") 2>&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15306 { (case "(($ac_try" in
15307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15308 *) ac_try_echo
=$ac_try;;
15310 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312 (eval "$ac_try") 2>&5
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_sizeof_int
=`cat conftestval`
15318 $as_echo "$as_me: program exited with status $ac_status" >&5
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.
$ac_ext >&5
15322 ( exit $ac_status )
15325 rm -rf conftest.dSYM
15326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15332 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15333 $as_echo "$ac_cv_sizeof_int" >&6; }
15334 cat >>confdefs.h
<<_ACEOF
15335 #define SIZEOF_INT $ac_cv_sizeof_int
15342 #include "confdefs.h"
15343 #ifdef HAVE_STRING_H
15344 # include <string.h>
15347 # include <stdlib.h>
15348 # include <stddef.h>
15352 strcpy(buf, "abcdefghi");
15353 mch_memmove(buf, buf + 2, 3);
15354 if (strncmp(buf, "ababcf", 6))
15356 strcpy(buf, "abcdefghi");
15357 mch_memmove(buf + 2, buf, 3);
15358 if (strncmp(buf, "cdedef", 6))
15360 exit(0); /* libc version works properly. */
15363 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15364 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15365 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15366 $as_echo_n "(cached) " >&6
15369 if test "$cross_compiling" = yes; then
15371 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15372 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15373 { (exit 1); exit 1; }; }
15376 cat >conftest.
$ac_ext <<_ACEOF
15377 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15379 rm -f conftest
$ac_exeext
15380 if { (ac_try
="$ac_link"
15381 case "(($ac_try" in
15382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15386 $as_echo "$ac_try_echo") >&5
15387 (eval "$ac_link") 2>&5
15389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15393 *) ac_try_echo
=$ac_try;;
15395 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_try") 2>&5
15399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15402 vim_cv_memmove_handles_overlap
=yes
15405 $as_echo "$as_me: program exited with status $ac_status" >&5
15406 $as_echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.
$ac_ext >&5
15409 ( exit $ac_status )
15411 vim_cv_memmove_handles_overlap
=no
15414 rm -rf conftest.dSYM
15415 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15421 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15422 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15424 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15425 cat >>confdefs.h
<<\_ACEOF
15426 #define USEMEMMOVE 1
15430 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15431 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15432 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15433 $as_echo_n "(cached) " >&6
15436 if test "$cross_compiling" = yes; then
15438 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15439 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15440 { (exit 1); exit 1; }; }
15443 cat >conftest.
$ac_ext <<_ACEOF
15444 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15446 rm -f conftest
$ac_exeext
15447 if { (ac_try
="$ac_link"
15448 case "(($ac_try" in
15449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15453 $as_echo "$ac_try_echo") >&5
15454 (eval "$ac_link") 2>&5
15456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15460 *) ac_try_echo
=$ac_try;;
15462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464 (eval "$ac_try") 2>&5
15466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15469 vim_cv_bcopy_handles_overlap
=yes
15472 $as_echo "$as_me: program exited with status $ac_status" >&5
15473 $as_echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.
$ac_ext >&5
15476 ( exit $ac_status )
15478 vim_cv_bcopy_handles_overlap
=no
15481 rm -rf conftest.dSYM
15482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15488 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15489 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15491 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15492 cat >>confdefs.h
<<\_ACEOF
15497 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15498 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15499 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15500 $as_echo_n "(cached) " >&6
15503 if test "$cross_compiling" = yes; then
15505 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15506 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15507 { (exit 1); exit 1; }; }
15510 cat >conftest.
$ac_ext <<_ACEOF
15511 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15513 rm -f conftest
$ac_exeext
15514 if { (ac_try
="$ac_link"
15515 case "(($ac_try" in
15516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15520 $as_echo "$ac_try_echo") >&5
15521 (eval "$ac_link") 2>&5
15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15525 { (case "(($ac_try" in
15526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15527 *) ac_try_echo
=$ac_try;;
15529 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15530 $as_echo "$ac_try_echo") >&5
15531 (eval "$ac_try") 2>&5
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15536 vim_cv_memcpy_handles_overlap
=yes
15539 $as_echo "$as_me: program exited with status $ac_status" >&5
15540 $as_echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.
$ac_ext >&5
15543 ( exit $ac_status )
15545 vim_cv_memcpy_handles_overlap
=no
15548 rm -rf conftest.dSYM
15549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15555 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15556 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15558 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15559 cat >>confdefs.h
<<\_ACEOF
15560 #define USEMEMCPY 1
15569 if test "$enable_multibyte" = "yes"; then
15570 cflags_save
=$CFLAGS
15571 ldflags_save
=$LDFLAGS
15572 if test "x$x_includes" != "xNONE" ; then
15573 CFLAGS
="$CFLAGS -I$x_includes"
15574 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
15575 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15576 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15577 cat >conftest.
$ac_ext <<_ACEOF
15580 cat confdefs.h
>>conftest.
$ac_ext
15581 cat >>conftest.
$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <X11/Xlocale.h>
15592 rm -f conftest.
$ac_objext
15593 if { (ac_try
="$ac_compile"
15594 case "(($ac_try" in
15595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15599 $as_echo "$ac_try_echo") >&5
15600 (eval "$ac_compile") 2>conftest.er1
15602 grep -v '^ *+' conftest.er1 >conftest.err
15604 cat conftest.err >&5
15605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } && {
15607 test -z "$ac_c_werror_flag" ||
15608 test ! -s conftest.err
15609 } && test -s conftest.$ac_objext; then
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15623 char _Xsetlocale ();
15627 return _Xsetlocale ();
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15636 *) ac_try_echo
=$ac_try;;
15638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>conftest.er1
15642 grep -v '^ *+' conftest.er1
>conftest.err
15644 cat conftest.err
>&5
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest
$ac_exeext && {
15650 test "$cross_compiling" = yes ||
15651 $as_test_x conftest
$ac_exeext
15653 { $as_echo "$as_me:$LINENO: result: yes" >&5
15654 $as_echo "yes" >&6; }
15655 cat >>confdefs.h
<<\_ACEOF
15660 $as_echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.
$ac_ext >&5
15663 { $as_echo "$as_me:$LINENO: result: no" >&5
15664 $as_echo "no" >&6; }
15667 rm -rf conftest.dSYM
15668 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15669 conftest
$ac_exeext conftest.
$ac_ext
15671 $as_echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.
$ac_ext >&5
15674 { $as_echo "$as_me:$LINENO: result: no" >&5
15675 $as_echo "no" >&6; }
15678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15680 CFLAGS
=$cflags_save
15681 LDFLAGS
=$ldflags_save
15684 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15685 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15686 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15687 $as_echo_n "(cached) " >&6
15689 ac_check_lib_save_LIBS
=$LIBS
15690 LIBS
="-lxpg4 $LIBS"
15691 cat >conftest.
$ac_ext <<_ACEOF
15694 cat confdefs.h
>>conftest.
$ac_ext
15695 cat >>conftest.
$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15698 /* Override any GCC internal prototype to avoid an error.
15699 Use char because int might match the return type of a GCC
15700 builtin and then its argument prototype would still apply. */
15704 char _xpg4_setrunelocale ();
15708 return _xpg4_setrunelocale ();
15713 rm -f conftest.
$ac_objext conftest
$ac_exeext
15714 if { (ac_try
="$ac_link"
15715 case "(($ac_try" in
15716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15720 $as_echo "$ac_try_echo") >&5
15721 (eval "$ac_link") 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
15730 } && test -s conftest$ac_exeext && {
15731 test "$cross_compiling" = yes ||
15732 $as_test_x conftest$ac_exeext
15734 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15736 $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15742 rm -rf conftest.dSYM
15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15744 conftest$ac_exeext conftest.$ac_ext
15745 LIBS=$ac_check_lib_save_LIBS
15747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15748 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15749 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15750 LIBS="$LIBS -lxpg4"
15754 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15755 $as_echo_n "checking how to create tags... " >&6; }
15756 test -f tags && mv tags tags.save
15757 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15758 TAGPRG="ctags -I INIT+ --fields=+S"
15761 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15762 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15763 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15764 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15765 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15766 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15767 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15769 test -f tags.save && mv tags.save tags
15770 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15771 $as_echo "$TAGPRG" >&6; }
15773 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15774 $as_echo_n "checking how to run man with a section nr... " >&6; }
15776 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15777 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15778 $as_echo "$MANDEF" >&6; }
15779 if test "$MANDEF" = "man -s"; then
15780 cat >>confdefs.h <<\_ACEOF
15786 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15787 $as_echo_n "checking --disable-nls argument... " >&6; }
15788 # Check whether --enable-nls was given.
15789 if test "${enable_nls+set}" = set; then
15790 enableval=$enable_nls;
15796 if test "$enable_nls" = "yes"; then
15797 { $as_echo "$as_me:$LINENO: result: no" >&5
15798 $as_echo "no" >&6; }
15800 INSTALL_LANGS=install-languages
15802 INSTALL_TOOL_LANGS=install-tool-languages
15805 # Extract the first word of "msgfmt", so it can be a program name with args.
15806 set dummy msgfmt; ac_word=$2
15807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15808 $as_echo_n "checking for $ac_word... " >&6; }
15809 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15810 $as_echo_n "(cached) " >&6
15812 if test -n "$MSGFMT"; then
15813 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15819 test -z "$as_dir" && as_dir=.
15820 for ac_exec_ext in '' $ac_executable_extensions; do
15821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15822 ac_cv_prog_MSGFMT="msgfmt"
15823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15832 MSGFMT=$ac_cv_prog_MSGFMT
15833 if test -n "$MSGFMT"; then
15834 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15835 $as_echo "$MSGFMT" >&6; }
15837 { $as_echo "$as_me:$LINENO: result: no" >&5
15838 $as_echo "no" >&6; }
15842 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15843 $as_echo_n "checking for NLS... " >&6; }
15844 if test -f po/Makefile; then
15846 if test -n "$MSGFMT"; then
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <libintl.h>
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15866 *) ac_try_echo
=$ac_try;;
15868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15869 $as_echo "$ac_try_echo") >&5
15870 (eval "$ac_link") 2>conftest.er1
15872 grep -v '^ *+' conftest.er1
>conftest.err
15874 cat conftest.err
>&5
15875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest
$ac_exeext && {
15880 test "$cross_compiling" = yes ||
15881 $as_test_x conftest
$ac_exeext
15883 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15884 $as_echo "gettext() works" >&6; }; have_gettext
="yes"
15886 $as_echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.
$ac_ext >&5
15890 LIBS
="$LIBS -lintl"
15891 cat >conftest.
$ac_ext <<_ACEOF
15894 cat confdefs.h
>>conftest.
$ac_ext
15895 cat >>conftest.
$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 #include <libintl.h>
15906 rm -f conftest.
$ac_objext conftest
$ac_exeext
15907 if { (ac_try
="$ac_link"
15908 case "(($ac_try" in
15909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15913 $as_echo "$ac_try_echo") >&5
15914 (eval "$ac_link") 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } && {
15921 test -z "$ac_c_werror_flag" ||
15922 test ! -s conftest.err
15923 } && test -s conftest$ac_exeext && {
15924 test "$cross_compiling" = yes ||
15925 $as_test_x conftest$ac_exeext
15927 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15928 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15934 $as_echo "gettext() doesn't work" >&6; };
15938 rm -rf conftest.dSYM
15939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
15943 rm -rf conftest.dSYM
15944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15945 conftest$ac_exeext conftest.$ac_ext
15947 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15948 $as_echo "msgfmt not found - disabled" >&6; };
15950 if test $have_gettext = "yes"; then
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_GETTEXT 1
15958 for ac_func in bind_textdomain_codeset
15960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15962 $as_echo_n "checking for $ac_func... " >&6; }
15963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15964 $as_echo_n "(cached) " >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15974 #define $ac_func innocuous_$ac_func
15976 /* System header to define __stub macros and hopefully few prototypes,
15977 which can conflict with char $ac_func (); below.
15978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979 <limits.h> exists even on freestanding compilers. */
15982 # include <limits.h>
15984 # include <assert.h>
15989 /* Override any GCC internal prototype to avoid an error.
15990 Use char because int might match the return type of a GCC
15991 builtin and then its argument prototype would still apply. */
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined __stub_$ac_func || defined __stub___$ac_func
16006 return $ac_func ();
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16015 *) ac_try_echo
=$ac_try;;
16017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019 (eval "$ac_link") 2>conftest.er1
16021 grep -v '^ *+' conftest.er1
>conftest.err
16023 cat conftest.err
>&5
16024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest
$ac_exeext && {
16029 test "$cross_compiling" = yes ||
16030 $as_test_x conftest
$ac_exeext
16032 eval "$as_ac_var=yes"
16034 $as_echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.
$ac_ext >&5
16037 eval "$as_ac_var=no"
16040 rm -rf conftest.dSYM
16041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16042 conftest
$ac_exeext conftest.
$ac_ext
16044 ac_res
=`eval 'as_val=${'$as_ac_var'}
16045 $as_echo "$as_val"'`
16046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16047 $as_echo "$ac_res" >&6; }
16048 if test `eval 'as_val=${'$as_ac_var'}
16049 $as_echo "$as_val"'` = yes; then
16050 cat >>confdefs.h
<<_ACEOF
16051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16057 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16058 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16059 cat >conftest.
$ac_ext <<_ACEOF
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <libintl.h>
16066 extern int _nl_msg_cat_cntr;
16070 ++_nl_msg_cat_cntr;
16075 rm -f conftest.
$ac_objext conftest
$ac_exeext
16076 if { (ac_try
="$ac_link"
16077 case "(($ac_try" in
16078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16082 $as_echo "$ac_try_echo") >&5
16083 (eval "$ac_link") 2>conftest.er1
16085 grep -v '^ *+' conftest.er1 >conftest.err
16087 cat conftest.err >&5
16088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && {
16090 test -z "$ac_c_werror_flag" ||
16091 test ! -s conftest.err
16092 } && test -s conftest$ac_exeext && {
16093 test "$cross_compiling" = yes ||
16094 $as_test_x conftest$ac_exeext
16096 { $as_echo "$as_me:$LINENO: result: yes" >&5
16097 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_NL_MSG_CAT_CNTR 1
16102 $as_echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 { $as_echo "$as_me:$LINENO: result: no" >&5
16106 $as_echo "no" >&6; }
16109 rm -rf conftest.dSYM
16110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16111 conftest$ac_exeext conftest.$ac_ext
16114 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16115 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16118 { $as_echo "$as_me:$LINENO: result: yes" >&5
16119 $as_echo "yes" >&6; }
16122 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16123 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16124 $as_echo_n "checking for dlfcn.h... " >&6; }
16125 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16126 $as_echo_n "(cached) " >&6
16128 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16129 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16131 # Is the header compilable?
16132 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16133 $as_echo_n "checking dlfcn.h usability... " >&6; }
16134 cat >conftest.$ac_ext <<_ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h. */
16140 $ac_includes_default
16143 rm -f conftest.$ac_objext
16144 if { (ac_try="$ac_compile"
16145 case "(($ac_try" in
16146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16147 *) ac_try_echo
=$ac_try;;
16149 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16150 $as_echo "$ac_try_echo") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16153 grep -v '^ *+' conftest.er1
>conftest.err
16155 cat conftest.err
>&5
16156 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16171 $as_echo "$ac_header_compiler" >&6; }
16173 # Is the header present?
16174 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16175 $as_echo_n "checking dlfcn.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16190 $as_echo "$ac_try_echo") >&5
16191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16193 grep -v '^ *+' conftest.er1 >conftest.err
16195 cat conftest.err >&5
16196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } >/dev/null && {
16198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16199 test ! -s conftest.err
16201 ac_header_preproc=yes
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_header_preproc=no
16209 rm -f conftest.err conftest.$ac_ext
16210 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16211 $as_echo "$ac_header_preproc" >&6; }
16213 # So? What about this header?
16214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16216 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16217 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16218 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16219 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16220 ac_header_preproc=yes
16223 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16224 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16225 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16226 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16227 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16228 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16229 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16230 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16231 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16232 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16233 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16234 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16238 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16239 $as_echo_n "checking for dlfcn.h... " >&6; }
16240 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16241 $as_echo_n "(cached) " >&6
16243 ac_cv_header_dlfcn_h=$ac_header_preproc
16245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16246 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16249 if test $ac_cv_header_dlfcn_h = yes; then
16252 if test "${ac_cv_header_dl_h+set}" = set; then
16253 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16254 $as_echo_n "checking for dl.h... " >&6; }
16255 if test "${ac_cv_header_dl_h+set}" = set; then
16256 $as_echo_n "(cached) " >&6
16258 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16259 $as_echo "$ac_cv_header_dl_h" >&6; }
16261 # Is the header compilable?
16262 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16263 $as_echo_n "checking dl.h usability... " >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 $ac_includes_default
16273 rm -f conftest.$ac_objext
16274 if { (ac_try="$ac_compile"
16275 case "(($ac_try" in
16276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16277 *) ac_try_echo
=$ac_try;;
16279 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16280 $as_echo "$ac_try_echo") >&5
16281 (eval "$ac_compile") 2>conftest.er1
16283 grep -v '^ *+' conftest.er1
>conftest.err
16285 cat conftest.err
>&5
16286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest.
$ac_objext; then
16291 ac_header_compiler
=yes
16293 $as_echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16296 ac_header_compiler
=no
16299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16301 $as_echo "$ac_header_compiler" >&6; }
16303 # Is the header present?
16304 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16305 $as_echo_n "checking dl.h presence... " >&6; }
16306 cat >conftest.
$ac_ext <<_ACEOF
16309 cat confdefs.h
>>conftest.
$ac_ext
16310 cat >>conftest.
$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16314 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16315 case "(($ac_try" in
16316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16320 $as_echo "$ac_try_echo") >&5
16321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } >/dev/null && {
16328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16329 test ! -s conftest.err
16331 ac_header_preproc=yes
16333 $as_echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_header_preproc=no
16339 rm -f conftest.err conftest.$ac_ext
16340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16341 $as_echo "$ac_header_preproc" >&6; }
16343 # So? What about this header?
16344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16346 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16347 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16348 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16349 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16350 ac_header_preproc=yes
16353 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16354 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16355 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16356 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16357 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16358 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16359 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16360 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16361 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16362 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16363 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16364 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16368 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16369 $as_echo_n "checking for dl.h... " >&6; }
16370 if test "${ac_cv_header_dl_h+set}" = set; then
16371 $as_echo_n "(cached) " >&6
16373 ac_cv_header_dl_h=$ac_header_preproc
16375 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16376 $as_echo "$ac_cv_header_dl_h" >&6; }
16379 if test $ac_cv_header_dl_h = yes; then
16387 if test x${DLL} = xdlfcn.h; then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_DLFCN_H 1
16393 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16394 $as_echo_n "checking for dlopen()... " >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16406 extern void* dlopen();
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16417 *) ac_try_echo
=$ac_try;;
16419 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16420 $as_echo "$ac_try_echo") >&5
16421 (eval "$ac_link") 2>conftest.er1
16423 grep -v '^ *+' conftest.er1
>conftest.err
16425 cat conftest.err
>&5
16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } && {
16428 test -z "$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16430 } && test -s conftest
$ac_exeext && {
16431 test "$cross_compiling" = yes ||
16432 $as_test_x conftest
$ac_exeext
16434 { $as_echo "$as_me:$LINENO: result: yes" >&5
16435 $as_echo "yes" >&6; };
16437 cat >>confdefs.h
<<\_ACEOF
16438 #define HAVE_DLOPEN 1
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 { $as_echo "$as_me:$LINENO: result: no" >&5
16446 $as_echo "no" >&6; };
16447 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16448 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16451 cat >conftest.
$ac_ext <<_ACEOF
16454 cat confdefs.h
>>conftest.
$ac_ext
16455 cat >>conftest.
$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16462 extern void* dlopen();
16469 rm -f conftest.
$ac_objext conftest
$ac_exeext
16470 if { (ac_try
="$ac_link"
16471 case "(($ac_try" in
16472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16476 $as_echo "$ac_try_echo") >&5
16477 (eval "$ac_link") 2>conftest.er1
16479 grep -v '^ *+' conftest.er1 >conftest.err
16481 cat conftest.err >&5
16482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } && {
16484 test -z "$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16486 } && test -s conftest$ac_exeext && {
16487 test "$cross_compiling" = yes ||
16488 $as_test_x conftest$ac_exeext
16490 { $as_echo "$as_me:$LINENO: result: yes" >&5
16491 $as_echo "yes" >&6; };
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_DLOPEN 1
16498 $as_echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 { $as_echo "$as_me:$LINENO: result: no" >&5
16502 $as_echo "no" >&6; };
16506 rm -rf conftest.dSYM
16507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16508 conftest$ac_exeext conftest.$ac_ext
16511 rm -rf conftest.dSYM
16512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16513 conftest$ac_exeext conftest.$ac_ext
16514 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16515 $as_echo_n "checking for dlsym()... " >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16527 extern void* dlsym();
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (ac_try="$ac_link"
16536 case "(($ac_try" in
16537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16538 *) ac_try_echo
=$ac_try;;
16540 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16541 $as_echo "$ac_try_echo") >&5
16542 (eval "$ac_link") 2>conftest.er1
16544 grep -v '^ *+' conftest.er1
>conftest.err
16546 cat conftest.err
>&5
16547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest
$ac_exeext && {
16552 test "$cross_compiling" = yes ||
16553 $as_test_x conftest
$ac_exeext
16555 { $as_echo "$as_me:$LINENO: result: yes" >&5
16556 $as_echo "yes" >&6; };
16558 cat >>confdefs.h
<<\_ACEOF
16559 #define HAVE_DLSYM 1
16563 $as_echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.
$ac_ext >&5
16566 { $as_echo "$as_me:$LINENO: result: no" >&5
16567 $as_echo "no" >&6; };
16568 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16569 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16572 cat >conftest.
$ac_ext <<_ACEOF
16575 cat confdefs.h
>>conftest.
$ac_ext
16576 cat >>conftest.
$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16583 extern void* dlsym();
16590 rm -f conftest.
$ac_objext conftest
$ac_exeext
16591 if { (ac_try
="$ac_link"
16592 case "(($ac_try" in
16593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16597 $as_echo "$ac_try_echo") >&5
16598 (eval "$ac_link") 2>conftest.er1
16600 grep -v '^ *+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest$ac_exeext && {
16608 test "$cross_compiling" = yes ||
16609 $as_test_x conftest$ac_exeext
16611 { $as_echo "$as_me:$LINENO: result: yes" >&5
16612 $as_echo "yes" >&6; };
16614 cat >>confdefs.h <<\_ACEOF
16615 #define HAVE_DLSYM 1
16619 $as_echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 { $as_echo "$as_me:$LINENO: result: no" >&5
16623 $as_echo "no" >&6; };
16627 rm -rf conftest.dSYM
16628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16629 conftest$ac_exeext conftest.$ac_ext
16632 rm -rf conftest.dSYM
16633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16634 conftest$ac_exeext conftest.$ac_ext
16635 elif test x${DLL} = xdl.h; then
16637 cat >>confdefs.h <<\_ACEOF
16638 #define HAVE_DL_H 1
16641 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16642 $as_echo_n "checking for shl_load()... " >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16654 extern void* shl_load();
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16665 *) ac_try_echo
=$ac_try;;
16667 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16668 $as_echo "$ac_try_echo") >&5
16669 (eval "$ac_link") 2>conftest.er1
16671 grep -v '^ *+' conftest.er1
>conftest.err
16673 cat conftest.err
>&5
16674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && {
16676 test -z "$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 } && test -s conftest
$ac_exeext && {
16679 test "$cross_compiling" = yes ||
16680 $as_test_x conftest
$ac_exeext
16682 { $as_echo "$as_me:$LINENO: result: yes" >&5
16683 $as_echo "yes" >&6; };
16685 cat >>confdefs.h
<<\_ACEOF
16686 #define HAVE_SHL_LOAD 1
16690 $as_echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.
$ac_ext >&5
16693 { $as_echo "$as_me:$LINENO: result: no" >&5
16694 $as_echo "no" >&6; };
16695 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16696 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16699 cat >conftest.
$ac_ext <<_ACEOF
16702 cat confdefs.h
>>conftest.
$ac_ext
16703 cat >>conftest.
$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16710 extern void* shl_load();
16717 rm -f conftest.
$ac_objext conftest
$ac_exeext
16718 if { (ac_try
="$ac_link"
16719 case "(($ac_try" in
16720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_link") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest$ac_exeext && {
16735 test "$cross_compiling" = yes ||
16736 $as_test_x conftest$ac_exeext
16738 { $as_echo "$as_me:$LINENO: result: yes" >&5
16739 $as_echo "yes" >&6; };
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE_SHL_LOAD 1
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 { $as_echo "$as_me:$LINENO: result: no" >&5
16750 $as_echo "no" >&6; };
16754 rm -rf conftest.dSYM
16755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16756 conftest$ac_exeext conftest.$ac_ext
16759 rm -rf conftest.dSYM
16760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761 conftest$ac_exeext conftest.$ac_ext
16764 for ac_header in setjmp.h
16766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16769 $as_echo_n "checking for $ac_header... " >&6; }
16770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16771 $as_echo_n "(cached) " >&6
16773 ac_res=`eval 'as_val=${'$as_ac_Header'}
16774 $as_echo "$as_val"'`
16775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16776 $as_echo "$ac_res" >&6; }
16778 # Is the header compilable?
16779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16780 $as_echo_n "checking $ac_header usability... " >&6; }
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 $ac_includes_default
16788 #include <$ac_header>
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16794 *) ac_try_echo
=$ac_try;;
16796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16797 $as_echo "$ac_try_echo") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16800 grep -v '^ *+' conftest.er1
>conftest.err
16802 cat conftest.err
>&5
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.
$ac_objext; then
16808 ac_header_compiler
=yes
16810 $as_echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.
$ac_ext >&5
16813 ac_header_compiler
=no
16816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16818 $as_echo "$ac_header_compiler" >&6; }
16820 # Is the header present?
16821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16822 $as_echo_n "checking $ac_header presence... " >&6; }
16823 cat >conftest.
$ac_ext <<_ACEOF
16826 cat confdefs.h
>>conftest.
$ac_ext
16827 cat >>conftest.
$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 #include <$ac_header>
16831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16832 case "(($ac_try" in
16833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16837 $as_echo "$ac_try_echo") >&5
16838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } >/dev/null && {
16845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16848 ac_header_preproc=yes
16850 $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_header_preproc=no
16856 rm -f conftest.err conftest.$ac_ext
16857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16858 $as_echo "$ac_header_preproc" >&6; }
16860 # So? What about this header?
16861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16867 ac_header_preproc=yes
16870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16873 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16877 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16886 $as_echo_n "checking for $ac_header... " >&6; }
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888 $as_echo_n "(cached) " >&6
16890 eval "$as_ac_Header=\$ac_header_preproc"
16892 ac_res=`eval 'as_val=${'$as_ac_Header'}
16893 $as_echo "$as_val"'`
16894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16895 $as_echo "$ac_res" >&6; }
16898 if test `eval 'as_val=${'$as_ac_Header'}
16899 $as_echo "$as_val"'` = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16909 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16910 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16911 LIBS=`echo $LIBS |
sed s
/-ldl//`
16912 PERL_LIBS="$PERL_LIBS -ldl"
16916 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16917 && test "x$GUITYPE" != "xCARBONGUI"; then
16918 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16919 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
16920 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16921 || test "x$features" = "xhuge"; then
16922 LIBS="$LIBS -framework Carbon"
16923 { $as_echo "$as_me:$LINENO: result: yes" >&5
16924 $as_echo "yes" >&6; }
16926 { $as_echo "$as_me:$LINENO: result: no" >&5
16927 $as_echo "no" >&6; }
16930 if test "x$MACARCH" = "xboth"; then
16931 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16934 DEPEND_CFLAGS_FILTER=
16935 if test "$GCC" = yes; then
16936 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16937 $as_echo_n "checking for GCC 3 or later... " >&6; }
16938 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
16939 if test "$gccmajor" -gt "2"; then
16940 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16941 { $as_echo "$as_me:$LINENO: result: yes" >&5
16942 $as_echo "yes" >&6; }
16944 { $as_echo "$as_me:$LINENO: result: no" >&5
16945 $as_echo "no" >&6; }
16947 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16948 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
16949 if test "$gccmajor" -gt "3"; then
16950 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
16951 { $as_echo "$as_me:$LINENO: result: yes" >&5
16952 $as_echo "yes" >&6; }
16954 { $as_echo "$as_me:$LINENO: result: no" >&5
16955 $as_echo "no" >&6; }
16960 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16962 cat >confcache <<\_ACEOF
16963 # This file is a shell script that caches the results of configure
16964 # tests run on this system so they can be shared between configure
16965 # scripts and configure runs, see configure's option --config-cache.
16966 # It is not useful on other systems. If it contains results you don't
16967 # want to keep, you may remove or edit it.
16969 # config.status only pays attention to the cache file if you give it
16970 # the --recheck option to rerun configure.
16972 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
16973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16974 # following values.
16978 # The following way of writing the cache mishandles newlines in values,
16979 # but we know of no workaround that is simple, portable, and efficient.
16980 # So, we kill variables containing newlines.
16981 # Ultrix sh set writes to stderr and can't be redirected directly,
16982 # and sets the high bit in the cache file unless we assign to the vars.
16984 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16985 eval ac_val
=\$
$ac_var
16989 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16990 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16993 _ | IFS | as_nl
) ;; #(
16994 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16995 *) $as_unset $ac_var ;;
17001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17002 *${as_nl}ac_space
=\
*)
17003 # `set' does not quote correctly, so add quotes (double-quote
17004 # substitution turns \\\\ into \\, and sed turns \\ into \).
17007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17010 # `set' quotes correctly as required by POSIX, so do not add quotes.
17011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17024 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17025 if test -w "$cache_file"; then
17026 test "x$cache_file" != "x/dev/null" &&
17027 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17028 $as_echo "$as_me: updating cache $cache_file" >&6;}
17029 cat confcache
>$cache_file
17031 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17037 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17038 # Let make expand exec_prefix.
17039 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17041 DEFS
=-DHAVE_CONFIG_H
17045 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17046 # 1. Remove the extension, and $U if already installed.
17047 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17048 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17050 # will be set to the directory where LIBOBJS objects are built.
17051 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17052 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17054 LIBOBJS
=$ac_libobjs
17056 LTLIBOBJS
=$ac_ltlibobjs
17060 : ${CONFIG_STATUS=./config.status}
17062 ac_clean_files_save
=$ac_clean_files
17063 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17064 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17065 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17066 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17068 # Generated by $as_me.
17069 # Run this file to recreate the current configuration.
17070 # Compiler output produced by configure, useful for debugging
17071 # configure, is in config.log if it exists.
17074 ac_cs_recheck=false
17076 SHELL=\${CONFIG_SHELL-$SHELL}
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17080 ## --------------------- ##
17081 ## M4sh Initialization. ##
17082 ## --------------------- ##
17084 # Be more Bourne compatible
17085 DUALCASE
=1; export DUALCASE
# for MKS sh
17086 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17090 # is contrary to our usage. Disable this feature.
17091 alias -g '${1+"$@"}'='"$@"'
17092 setopt NO_GLOB_SUBST
17094 case `(set -o) 2>/dev/null` in
17095 *posix
*) set -o posix
;;
17104 # Avoid depending upon Character Ranges.
17105 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17106 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17107 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17108 as_cr_digits
='0123456789'
17109 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17114 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17115 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17118 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17119 as_echo='printf %s
\n'
17120 as_echo_n='printf %s
'
17122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17123 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17124 as_echo_n='/usr
/ucb
/echo -n'
17126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17127 as_echo_n_body='eval
17131 expr "X$arg" : "X\\(.*\\)$as_nl";
17132 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17134 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17136 export as_echo_n_body
17137 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17139 export as_echo_body
17140 as_echo='sh
-c $as_echo_body as_echo
'
17143 # The user is always right.
17144 if test "${PATH_SEPARATOR+set}" != set; then
17146 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17147 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17152 # Support unset when possible.
17153 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17161 # We need space, tab and new line, in precisely that order. Quoting is
17162 # there to prevent editors from complaining about space-tab.
17163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17164 # splitting by setting IFS to empty value.)
17167 # Find who we are. Look in the path if we contain no directory separator.
17169 *[\\/]* ) as_myself=$0 ;;
17170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17174 test -z "$as_dir" && as_dir=.
17175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17181 # We did not find ourselves, most probably we were run as `sh COMMAND'
17182 # in which case we are not to be found in the path.
17183 if test "x$as_myself" = x
; then
17186 if test ! -f "$as_myself"; then
17187 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17188 { (exit 1); exit 1; }
17191 # Work around bugs in pre-3.0 UWIN ksh.
17192 for as_var
in ENV MAIL MAILPATH
17193 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17205 # Required to use basename.
17206 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17207 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17213 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17214 as_basename
=basename
17220 # Name of the executable.
17221 as_me
=`$as_basename -- "$0" ||
17222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17223 X"$0" : 'X\(//\)$' \| \
17224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17226 sed '/^.*\/\([^/][^/]*\)\/*$/{
17245 as_lineno_1
=$LINENO
17246 as_lineno_2
=$LINENO
17247 test "x$as_lineno_1" != "x$as_lineno_2" &&
17248 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17250 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17251 # uniformly replaced by the line number. The first 'sed' inserts a
17252 # line-number line after each line using $LINENO; the second 'sed'
17253 # does the real work. The second script uses 'N' to pair each
17254 # line-number line with the line containing $LINENO, and appends
17255 # trailing '-' during substitution so that $LINENO is not a special
17256 # case at line end.
17257 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17258 # scripts with optimization help from Paolo Bonzini. Blame Lee
17259 # E. McMahon (1931-1989) for sed's syntax. :-)
17271 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17274 ' >$as_me.lineno
&&
17275 chmod +x
"$as_me.lineno" ||
17276 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17277 { (exit 1); exit 1; }; }
17279 # Don't try to exec as it changes $[0], causing all sort of problems
17280 # (the dirname of $[0] is not the place where we might find the
17281 # original and so on. Autoconf is especially sensitive to this).
17282 .
"./$as_me.lineno"
17283 # Exit status is that of the last command.
17288 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17294 ECHO_C
= ECHO_N
= ECHO_T
=
17295 case `echo -n x` in
17297 case `echo 'x\c'` in
17298 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17304 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17305 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17311 rm -f conf$$ conf$$.exe conf$$.
file
17312 if test -d conf$$.dir
; then
17313 rm -f conf$$.dir
/conf$$.
file
17316 mkdir conf$$.dir
2>/dev
/null
17318 if (echo >conf$$.
file) 2>/dev
/null
; then
17319 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17321 # ... but there are two gotchas:
17322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17324 # In both cases, we have to default to `cp -p'.
17325 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17327 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17335 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17336 rmdir conf$$.dir
2>/dev
/null
17338 if mkdir
-p .
2>/dev
/null
; then
17341 test -d .
/-p && rmdir .
/-p
17345 if test -x / >/dev
/null
2>&1; then
17346 as_test_x
='test -x'
17348 if ls -dL / >/dev
/null
2>&1; then
17355 if test -d "$1"; then
17361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17362 ???[sx]*):;;*)false;;esac;fi
17366 as_executable_p
=$as_test_x
17368 # Sed expression to map a string onto a valid CPP name.
17369 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17371 # Sed expression to map a string onto a valid variable name.
17372 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17377 # Save the log message, to keep $[0] and so on meaningful, and to
17378 # report actual input values of CONFIG_FILES etc. instead of their
17379 # values after options handling.
17381 This file was extended by $as_me, which was
17382 generated by GNU Autoconf 2.62. Invocation command line was
17384 CONFIG_FILES = $CONFIG_FILES
17385 CONFIG_HEADERS = $CONFIG_HEADERS
17386 CONFIG_LINKS = $CONFIG_LINKS
17387 CONFIG_COMMANDS = $CONFIG_COMMANDS
17390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396 # Files that config.status was made for.
17397 config_files="$ac_config_files"
17398 config_headers="$ac_config_headers"
17402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17404 \`$as_me' instantiates files from templates according to the
17405 current configuration.
17407 Usage: $0 [OPTIONS] [FILE]...
17409 -h, --help print this help, then exit
17410 -V, --version print version number and configuration settings, then exit
17411 -q, --quiet do not print progress messages
17412 -d, --debug don't remove temporary files
17413 --recheck update $as_me by reconfiguring in the same conditions
17414 --file=FILE[:TEMPLATE]
17415 instantiate the configuration file FILE
17416 --header=FILE[:TEMPLATE]
17417 instantiate the configuration header FILE
17419 Configuration files:
17422 Configuration headers:
17425 Report bugs to <bug-autoconf@gnu.org>."
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17431 configured by $0, generated by GNU Autoconf 2.62,
17432 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17434 Copyright (C) 2008 Free Software Foundation, Inc.
17435 This config.status script is free software; the Free Software Foundation
17436 gives unlimited permission to copy, distribute and modify it."
17441 test -n "\$AWK" || AWK=awk
17444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17445 # The default lists apply if the user does not specify any file.
17451 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17452 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17463 # Handling of the options.
17464 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17466 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17467 $as_echo "$ac_cs_version"; exit ;;
17468 --debug |
--debu |
--deb |
--de |
--d |
-d )
17470 --file |
--fil |
--fi |
--f )
17473 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17475 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17476 ac_need_defaults
=false
;;
17477 --header |
--heade |
--head |
--hea )
17480 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17482 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17483 ac_need_defaults
=false
;;
17485 # Conflict between --help and --header
17486 { $as_echo "$as_me: error: ambiguous option: $1
17487 Try \`$0 --help' for more information." >&2
17488 { (exit 1); exit 1; }; };;
17489 --help |
--hel |
-h )
17490 $as_echo "$ac_cs_usage"; exit ;;
17491 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17492 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17495 # This is an error.
17496 -*) { $as_echo "$as_me: error: unrecognized option: $1
17497 Try \`$0 --help' for more information." >&2
17498 { (exit 1); exit 1; }; } ;;
17500 *) ac_config_targets
="$ac_config_targets $1"
17501 ac_need_defaults
=false
;;
17507 ac_configure_extra_args
=
17509 if $ac_cs_silent; then
17511 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17516 if \$ac_cs_recheck; then
17517 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17519 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17520 CONFIG_SHELL='$SHELL'
17521 export CONFIG_SHELL
17526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17527 exec 5>>auto
/config.log
17530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17531 ## Running $as_me. ##
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17542 # Handling of arguments.
17543 for ac_config_target
in $ac_config_targets
17545 case $ac_config_target in
17546 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17547 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17549 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17550 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17551 { (exit 1); exit 1; }; };;
17556 # If the user did not use the arguments to specify the items to instantiate,
17557 # then the envvar interface is used. Set only those that are not.
17558 # We use the long form for the default assignment because of an extremely
17559 # bizarre bug on SunOS 4.1.3.
17560 if $ac_need_defaults; then
17561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17565 # Have a temporary directory for convenience. Make it in the build tree
17566 # simply because there is no reason against having it here, and in addition,
17567 # creating and moving files from /tmp can sometimes cause problems.
17568 # Hook for its removal unless debugging.
17569 # Note that there is a small window in which the directory will not be cleaned:
17570 # after its creation but before its name has been assigned to `$tmp'.
17574 trap 'exit_status=$?
17575 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17577 trap '{ (exit 1); exit 1; }' 1 2 13 15
17579 # Create a (secure) tmp directory for tmp files.
17582 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17583 test -n "$tmp" && test -d "$tmp"
17586 tmp
=.
/conf$$
-$RANDOM
17587 (umask 077 && mkdir
"$tmp")
17590 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17591 { (exit 1); exit 1; }
17594 # Set up the scripts for CONFIG_FILES section.
17595 # No need to generate them if there are no CONFIG_FILES.
17596 # This happens for instance with `./config.status config.h'.
17597 if test -n "$CONFIG_FILES"; then
17601 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17602 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17605 ac_cs_awk_cr
=$ac_cr
17608 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17613 echo "cat >conf$$subs.awk <<_ACEOF" &&
17614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17616 } >conf$$subs.sh ||
17617 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17618 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17619 { (exit 1); exit 1; }; }
17620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17622 for ac_last_try in false false false false false :; do
17623 . ./conf$$subs.sh ||
17624 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17625 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17626 { (exit 1); exit 1; }; }
17628 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17630 elif $ac_last_try; then
17631 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17632 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17633 { (exit 1); exit 1; }; }
17635 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17638 rm -f conf$$subs.sh
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17645 s/^/S["/; s
/!.
*/"]=/
17655 s/\(.\{148\}\).*/\1/
17657 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17662 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17669 s/\(.\{148\}\).*/\1/
17671 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17675 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17680 ' <conf$$subs.awk | sed '
17685 ' >>$CONFIG_STATUS || ac_write_fail=1
17686 rm -f conf$$subs.awk
17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17689 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17690 for (key in S) S_is_set[key] = 1
17696 nfields = split(line, field, "@
")
17698 len = length(field[1])
17699 for (i = 2; i < nfields; i++) {
17701 keylen = length(key)
17702 if (S_is_set[key]) {
17704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17705 len += length(value) + length(field[++i])
17716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17717 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17718 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17721 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17722 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
17723 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
17724 { (exit 1); exit 1; }; }
17727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17729 # trailing colons and then remove the whole line if VPATH becomes empty
17730 # (actually we leave an empty line to preserve line numbers).
17731 if test "x
$srcdir" = x.; then
17732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17733 s/:*\$(srcdir):*/:/
17734 s/:*\${srcdir}:*/:/
17736 s/^\([^=]*=[ ]*\):*/\1/
17742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743 fi # test -n "$CONFIG_FILES"
17745 # Set up the scripts for CONFIG_HEADERS section.
17746 # No need to generate them if there are no CONFIG_HEADERS.
17747 # This happens for instance with `./config.status Makefile'.
17748 if test -n "$CONFIG_HEADERS"; then
17749 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17753 # Transform confdefs.h into an awk script `defines.awk', embedded as
17754 # here-document in config.status, that substitutes the proper values into
17755 # config.h.in to produce config.h.
17757 # Create a delimiter string that does not exist in confdefs.h, to ease
17758 # handling of long lines.
17760 for ac_last_try in false false :; do
17761 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17762 if test -z "$ac_t"; then
17764 elif $ac_last_try; then
17765 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
17766 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
17767 { (exit 1); exit 1; }; }
17769 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17773 # For the awk script, D is an array of macro values keyed by name,
17774 # likewise P contains macro parameters if any. Preserve backslash
17775 # newline sequences.
17777 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17779 s/.\{148\}/&'"$ac_delim"'/g
17782 s/^[ ]*#[ ]*define[ ][ ]*/ /
17789 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17791 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17796 D["\
1"]=" \
3\\\\\\n
"\\/p
17798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17803 s/.\{148\}/&'"$ac_delim"'/g
17808 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17811 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17813 ' <confdefs.h | sed '
17814 s/'"$ac_delim"'/"\\\
17815 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17818 for (key in D) D_is_set[key] = 1
17821 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17823 split(line, arg, " ")
17824 if (arg[1] == "#") {
17828 defundef
= substr
(arg
[1], 2)
17831 split(mac1
, mac2
, "(") #)
17833 if (D_is_set
[macro
]) {
17834 # Preserve the white space surrounding the "#".
17835 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17836 print prefix
"define", macro P
[macro
] D
[macro
]
17839 # Replace #undef with comments. This is necessary, for example,
17840 # in the case of _POSIX_SOURCE, which is predefined and required
17841 # on some systems where configure will not decide to define it.
17842 if (defundef
== "undef") {
17843 print
"/*", line
, "*/"
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17852 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17853 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17854 { (exit 1); exit 1; }; }
17855 fi # test -n "$CONFIG_HEADERS"
17858 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
17863 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17865 case $ac_mode$ac_tag in
17867 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17868 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17869 { (exit 1); exit 1; }; };;
17870 :[FH
]-) ac_tag
=-:-;;
17871 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17888 -) ac_f
="$tmp/stdin";;
17889 *) # Look for the file first in the build tree, then in the source tree
17890 # (if the path is not absolute). The absolute path cannot be DOS-style,
17891 # because $ac_f cannot contain `:'.
17895 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17897 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17898 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17899 { (exit 1); exit 1; }; };;
17901 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17902 ac_file_inputs
="$ac_file_inputs '$ac_f'"
17905 # Let's still pretend it is `configure' which instantiates (i.e., don't
17906 # use $as_me), people would be surprised to read:
17907 # /* config.h. Generated by config.status. */
17908 configure_input
='Generated from '`
17909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17911 if test x
"$ac_file" != x-
; then
17912 configure_input
="$ac_file. $configure_input"
17913 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17914 $as_echo "$as_me: creating $ac_file" >&6;}
17916 # Neutralize special characters interpreted by sed in replacement strings.
17917 case $configure_input in #(
17918 *\
&* |
*\|
* |
*\\* )
17919 ac_sed_conf_input
=`$as_echo "$configure_input" |
17920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17921 *) ac_sed_conf_input
=$configure_input;;
17925 *:-:* |
*:-) cat >"$tmp/stdin" \
17926 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17927 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17928 { (exit 1); exit 1; }; } ;;
17933 ac_dir
=`$as_dirname -- "$ac_file" ||
17934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17935 X"$ac_file" : 'X\(//\)[^/]' \| \
17936 X"$ac_file" : 'X\(//\)$' \| \
17937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17938 $as_echo X"$ac_file" |
17939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17943 /^X\(\/\/\)[^/].*/{
17958 -*) as_dir
=.
/$as_dir;;
17960 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17964 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17965 *) as_qdir
=$as_dir;;
17967 as_dirs
="'$as_qdir' $as_dirs"
17968 as_dir
=`$as_dirname -- "$as_dir" ||
17969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17970 X"$as_dir" : 'X\(//\)[^/]' \| \
17971 X"$as_dir" : 'X\(//\)$' \| \
17972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17973 $as_echo X"$as_dir" |
17974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17978 /^X\(\/\/\)[^/].*/{
17991 test -d "$as_dir" && break
17993 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17994 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17995 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17996 { (exit 1); exit 1; }; }; }
18000 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18002 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18003 # A ".." for each directory in $ac_dir_suffix.
18004 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18005 case $ac_top_builddir_sub in
18006 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18007 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18010 ac_abs_top_builddir
=$ac_pwd
18011 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18012 # for backward compatibility:
18013 ac_top_builddir
=$ac_top_build_prefix
18016 .
) # We are building in place.
18018 ac_top_srcdir
=$ac_top_builddir_sub
18019 ac_abs_top_srcdir
=$ac_pwd ;;
18020 [\\/]* | ?
:[\\/]* ) # Absolute name.
18021 ac_srcdir
=$srcdir$ac_dir_suffix;
18022 ac_top_srcdir
=$srcdir
18023 ac_abs_top_srcdir
=$srcdir ;;
18024 *) # Relative name.
18025 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18026 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18027 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18029 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18041 # If the template does not know about datarootdir, expand it.
18042 # FIXME: This hack should be removed a few years after 2.60.
18043 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18057 *datarootdir
*) ac_datarootdir_seen
=yes;;
18058 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18059 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18060 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18063 ac_datarootdir_hack='
18064 s&@datadir@&$datadir&g
18065 s&@docdir@&$docdir&g
18066 s&@infodir@&$infodir&g
18067 s&@localedir@&$localedir&g
18068 s&@mandir@&$mandir&g
18069 s&\\\${datarootdir}&$datarootdir&g' ;;
18073 # Neutralize VPATH when `$srcdir' = `.'.
18074 # Shell code in configure.ac might set extrasub.
18075 # FIXME: do we really want to maintain this feature?
18076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18077 ac_sed_extra="$ac_vpsub
18080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18082 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18083 s|@configure_input@|
$ac_sed_conf_input|
;t t
18084 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18085 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18086 s
&@srcdir@
&$ac_srcdir&;t t
18087 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18088 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18089 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18090 s
&@builddir@
&$ac_builddir&;t t
18091 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18092 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18093 $ac_datarootdir_hack
18095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18096 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18097 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18098 { (exit 1); exit 1; }; }
18100 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18101 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18102 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18103 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18104 which seems to be undefined. Please make sure it is defined." >&5
18105 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18106 which seems to be undefined. Please make sure it is defined." >&2;}
18110 -) cat "$tmp/out" && rm -f "$tmp/out";;
18111 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18113 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18114 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18115 { (exit 1); exit 1; }; }
18121 if test x"$ac_file" != x-; then
18123 $as_echo "/* $configure_input */" \
18124 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18125 } >"$tmp/config.h" \
18126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18128 { (exit 1); exit 1; }; }
18129 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18130 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18131 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18134 mv "$tmp/config.h" "$ac_file" \
18135 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18136 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18137 { (exit 1); exit 1; }; }
18140 $as_echo "/* $configure_input */" \
18141 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18142 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18143 $as_echo "$as_me: error: could not create -" >&2;}
18144 { (exit 1); exit 1; }; }
18154 { (exit 0); exit 0; }
18156 chmod +x $CONFIG_STATUS
18157 ac_clean_files=$ac_clean_files_save
18159 test $ac_write_fail = 0 ||
18160 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18161 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18162 { (exit 1); exit 1; }; }
18165 # configure is writing to config.log, and then calls config.status.
18166 # config.status does its own redirection, appending to config.log.
18167 # Unfortunately, on DOS this fails, as config.log is still kept open
18168 # by configure, so config.status won't be able to
write to it
; its
18169 # output is simply discarded. So we exec the FD to /dev/null,
18170 # effectively closing config.log, so it can be properly (re)opened and
18171 # appended to by config.status. When coming back to configure, we
18172 # need to make the FD available again.
18173 if test "$no_create" != yes; then
18175 ac_config_status_args
=
18176 test "$silent" = yes &&
18177 ac_config_status_args
="$ac_config_status_args --quiet"
18179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18180 exec 5>>auto
/config.log
18181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18182 # would make configure fail if this is the last instruction.
18183 $ac_cs_success ||
{ (exit 1); exit 1; }
18185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18186 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18187 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}