2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="vim.h"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --x-includes=DIR X include files are
in DIR
836 --x-libraries=DIR X library files are
in DIR
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --disable-darwin Disable Darwin
(Mac OS X
) support.
848 --disable-selinux Don
't check for SELinux support.
849 --disable-xsmp Disable XSMP session management
850 --disable-xsmp-interact Disable XSMP interaction
851 --enable-mzschemeinterp Include MzScheme interpreter.
852 --enable-perlinterp Include Perl interpreter.
853 --enable-pythoninterp Include Python interpreter.
854 --enable-tclinterp Include Tcl interpreter.
855 --enable-rubyinterp Include Ruby interpreter.
856 --enable-cscope Include cscope interface.
857 --enable-workshop Include Sun Visual Workshop support.
858 --disable-netbeans Disable NetBeans integration support.
859 --enable-sniff Include Sniff interface.
860 --enable-multibyte Include multibyte editing support.
861 --enable-hangulinput Include Hangul input support.
862 --enable-xim Include XIM input support.
863 --enable-fontset Include X fontset output support.
864 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
865 --enable-gtk-check If auto-select GUI, check for GTK default=yes
866 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
867 --enable-gnome-check If GTK GUI, check for GNOME default=no
868 --enable-motif-check If auto-select GUI, check for Motif default=yes
869 --enable-athena-check If auto-select GUI, check for Athena default=yes
870 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
871 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
872 --disable-gtktest Do not try to compile and run a test GTK program
873 --disable-acl Don't check
for ACL support.
874 --disable-gpm Don
't use gpm (Linux mouse daemon).
875 --disable-nls Don't support NLS
(gettext()).
878 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
879 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
880 --with-mac-arch=ARCH current
, intel
, ppc or both
881 --with-vim-name=NAME what to call the Vim executable
882 --with-ex-name=NAME what to call the Ex executable
883 --with-view-name=NAME what to call the View executable
884 --with-global-runtime=DIR global runtime directory
in 'runtimepath'
885 --with-modified-by=NAME name of who modified a release version
886 --with-features=TYPE tiny
, small
, normal
, big or huge
(default
: normal
)
887 --with-compiledby=NAME name to show
in :version message
888 --with-plthome=PLTHOME Use PLTHOME.
889 --with-python-config-dir=PATH Python
's config directory
890 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
891 --with-x use the X Window System
892 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
893 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
894 --with-gnome-includes=DIR Specify location of GNOME headers
895 --with-gnome-libs=DIR Specify location of GNOME libs
896 --with-gnome Specify prefix for GNOME files
897 --with-motif-lib=STRING Library for Motif
898 --with-tlib=library terminal library to be used
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
909 Use these variables to override the choices made by `configure' or to
help
910 it to
find libraries and programs with nonstandard names
/locations.
915 if test "$ac_init_help" = "recursive"; then
916 # If there are subdirs, report their specific --help.
918 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
919 test -d $ac_dir ||
continue
922 if test "$ac_dir" != .
; then
923 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924 # A "../" for each directory in $ac_dir_suffix.
925 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927 ac_dir_suffix
= ac_top_builddir
=
931 .
) # No --srcdir option. We are building in place.
933 if test -z "$ac_top_builddir"; then
936 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
938 [\\/]* | ?
:[\\/]* ) # Absolute path.
939 ac_srcdir
=$srcdir$ac_dir_suffix;
940 ac_top_srcdir
=$srcdir ;;
942 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
943 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
946 # Do not use `cd foo && pwd` to compute absolute paths, because
947 # the directories may not exist.
949 .
) ac_abs_builddir
="$ac_dir";;
952 .
) ac_abs_builddir
=`pwd`;;
953 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
954 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
957 case $ac_abs_builddir in
958 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
960 case ${ac_top_builddir}.
in
961 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
962 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
963 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
966 case $ac_abs_builddir in
967 .
) ac_abs_srcdir
=$ac_srcdir;;
970 .
) ac_abs_srcdir
=$ac_abs_builddir;;
971 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
972 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
975 case $ac_abs_builddir in
976 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
978 case $ac_top_srcdir in
979 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
980 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
981 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
986 # Check for guested configure; otherwise get Cygnus style configure.
987 if test -f $ac_srcdir/configure.gnu
; then
989 $SHELL $ac_srcdir/configure.gnu
--help=recursive
990 elif test -f $ac_srcdir/configure
; then
992 $SHELL $ac_srcdir/configure
--help=recursive
993 elif test -f $ac_srcdir/configure.ac ||
994 test -f $ac_srcdir/configure.
in; then
998 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004 test -n "$ac_init_help" && exit 0
1005 if $ac_init_version; then
1008 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1009 This configure
script is free software
; the Free Software Foundation
1010 gives unlimited permission to copy
, distribute and modify it.
1014 exec 5>auto
/config.log
1016 This file contains any messages produced by compilers while
1017 running configure, to aid debugging if configure makes a mistake.
1019 It was created by $as_me, which was
1020 generated by GNU Autoconf 2.59. Invocation command line was
1031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1043 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1054 test -z "$as_dir" && as_dir
=.
1055 echo "PATH: $as_dir"
1070 # Keep a trace of the command line.
1071 # Strip out --no-create and --no-recursion so they do not pile up.
1072 # Strip out --silent because we don't want to record it for future runs.
1073 # Also quote any args containing shell meta-characters.
1074 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_must_keep_next
=false
1085 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1087 |
-silent |
--silent |
--silen |
--sile |
--sil)
1089 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1090 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1095 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1096 if test $ac_must_keep_next = true
; then
1097 ac_must_keep_next
=false
# Got value, back to normal.
1100 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1101 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1102 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1103 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1104 case "$ac_configure_args0 " in
1105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108 -* ) ac_must_keep_next
=true
;;
1111 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1112 # Get rid of the leading space.
1118 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1119 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1121 # When interrupted or exit'd, cleanup temporary files, and complete
1122 # config.log. We remove comments because anyway the quotes in there
1123 # would cause problems or look ugly.
1124 # WARNING: Be sure not to use single quotes in there, as some shells,
1125 # such as our DU 5.0 friend, will then `close' the trap.
1126 trap 'exit_status=$?
1127 # Save into config.log some information that might help in debugging.
1132 ## ---------------- ##
1133 ## Cache variables. ##
1134 ## ---------------- ##
1137 # The following way of writing the cache mishandles newlines in values,
1140 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 ## ----------------- ##
1156 ## Output variables. ##
1157 ## ----------------- ##
1160 for ac_var in $ac_subst_vars
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -n "$ac_subst_files"; then
1174 for ac_var in $ac_subst_files
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1182 if test -s confdefs.h; then
1189 sed "/^$/d" confdefs.h | sort
1192 test "$ac_signal" != 0 &&
1193 echo "$as_me: caught signal $ac_signal"
1194 echo "$as_me: exit $exit_status"
1196 rm -f core *.core &&
1197 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200 for ac_signal
in 1 2 13 15; do
1201 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1206 rm -rf conftest
* confdefs.h
1207 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210 # Predefined preprocessor variables.
1212 cat >>confdefs.h
<<_ACEOF
1213 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 cat >>confdefs.h
<<_ACEOF
1218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 cat >>confdefs.h
<<_ACEOF
1223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 cat >>confdefs.h
<<_ACEOF
1228 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 cat >>confdefs.h
<<_ACEOF
1233 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 # Let the site file select an alternate cache file if it wants to.
1238 # Prefer explicitly selected file to automatically selected ones.
1239 if test -z "$CONFIG_SITE"; then
1240 if test "x$prefix" != xNONE
; then
1241 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1243 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246 for ac_site_file
in $CONFIG_SITE; do
1247 if test -r "$ac_site_file"; then
1248 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1249 echo "$as_me: loading site script $ac_site_file" >&6;}
1250 sed 's/^/| /' "$ac_site_file" >&5
1255 if test -r "$cache_file"; then
1256 # Some versions of bash will fail to source /dev/null (special
1257 # files actually), so we avoid doing that.
1258 if test -f "$cache_file"; then
1259 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1260 echo "$as_me: loading cache $cache_file" >&6;}
1262 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1263 *) . .
/$cache_file;;
1267 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1268 echo "$as_me: creating cache $cache_file" >&6;}
1272 # Check that the precious variables saved in the cache have kept the same
1274 ac_cache_corrupted
=false
1275 for ac_var
in `(set) 2>&1 |
1276 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1277 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1278 eval ac_new_set
=\
$ac_env_${ac_var}_set
1279 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1280 eval ac_new_val
="\$ac_env_${ac_var}_value"
1281 case $ac_old_set,$ac_new_set in
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1285 ac_cache_corrupted
=: ;;
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1289 ac_cache_corrupted
=: ;;
1292 if test "x$ac_old_val" != "x$ac_new_val"; then
1293 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1294 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1295 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1296 echo "$as_me: former value: $ac_old_val" >&2;}
1297 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1298 echo "$as_me: current value: $ac_new_val" >&2;}
1299 ac_cache_corrupted
=:
1302 # Pass precious variables to config.status.
1303 if test "$ac_new_set" = set; then
1305 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 *) ac_arg
=$ac_var=$ac_new_val ;;
1309 case " $ac_configure_args " in
1310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1311 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1315 if $ac_cache_corrupted; then
1316 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1317 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1318 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1319 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1320 { (exit 1); exit 1; }; }
1324 ac_cpp
='$CPP $CPPFLAGS'
1325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1347 ac_config_headers
="$ac_config_headers auto/config.h:config.h.in"
1350 cat >>confdefs.h
<<\_ACEOF
1354 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1355 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1356 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1357 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 cat >conftest.
make <<\_ACEOF
1362 @
echo 'ac_maketemp="$(MAKE)"'
1364 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1365 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1366 if test -n "$ac_maketemp"; then
1367 eval ac_cv_prog_make_
${ac_make}_set
=yes
1369 eval ac_cv_prog_make_
${ac_make}_set
=no
1373 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1374 echo "$as_me:$LINENO: result: yes" >&5
1375 echo "${ECHO_T}yes" >&6
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1380 SET_MAKE
="MAKE=${MAKE-make}"
1385 ac_cpp
='$CPP $CPPFLAGS'
1386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1391 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC
="$CC" # Let the user override the test.
1400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir
=.
1405 for ac_exec_ext
in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1428 # Extract the first word of "gcc", so it can be a program name with args.
1429 set dummy gcc
; ac_word
=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir
=.
1443 for ac_exec_ext
in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC
="gcc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1471 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC
="$CC" # Let the user override the test.
1480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir
=.
1485 for ac_exec_ext
in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc
; ac_word
=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir
=.
1523 for ac_exec_ext
in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC
="cc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc
; ac_word
=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC
="$CC" # Let the user override the test.
1561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir
=.
1566 for ac_exec_ext
in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1569 ac_prog_rejected
=yes
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 if test $ac_prog_rejected = yes; then
1580 # We found a bogon in the path, so make sure we never use it.
1581 set dummy
$ac_cv_prog_CC
1583 if test $# != 0; then
1584 # We chose a different compiler from the bogus one.
1585 # However, it has the same basename, so the bogon will be chosen
1586 # first if we set CC to just the basename; use the full file name.
1588 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC
="$CC" # Let the user override the test.
1617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir
=.
1622 for ac_exec_ext
in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1645 if test -z "$CC"; then
1649 # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy
$ac_prog; ac_word
=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir
=.
1664 for ac_exec_ext
in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC
="$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$ac_ct_CC" && break
1693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1694 See \`config.log' for more details." >&5
1695 echo "$as_me: error: no acceptable C compiler found in \$PATH
1696 See \`config.log' for more details." >&2;}
1697 { (exit 1); exit 1; }; }
1699 # Provide some information about the compiler.
1700 echo "$as_me:$LINENO:" \
1701 "checking for C compiler version" >&5
1702 ac_compiler
=`set X $ac_compile; echo $2`
1703 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1704 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1709 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1714 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1719 cat >conftest.
$ac_ext <<_ACEOF
1722 cat confdefs.h
>>conftest.
$ac_ext
1723 cat >>conftest.
$ac_ext <<_ACEOF
1724 /* end confdefs.h. */
1734 ac_clean_files_save
=$ac_clean_files
1735 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1736 # Try to create an executable without -o first, disregard a.out.
1737 # It will help us diagnose broken compilers, and finding out an intuition
1739 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1740 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1741 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1742 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1743 (eval $ac_link_default) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }; then
1747 # Find the output, starting from the most likely. This scheme is
1748 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1751 # Be careful to initialize this variable, since it used to be cached.
1752 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1754 # b.out is created by i960 compilers.
1755 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1757 test -f "$ac_file" ||
continue
1759 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1762 # This is the source file.
1765 # We found the default executable, but exeext='' is most
1769 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1770 # FIXME: I believe we export ac_cv_exeext for Libtool,
1771 # but it would be cool to find out if it's true. Does anybody
1772 # maintain Libtool? --akim.
1780 echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.
$ac_ext >&5
1783 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1784 See \`config.log' for more details." >&5
1785 echo "$as_me: error: C compiler cannot create executables
1786 See \`config.log' for more details." >&2;}
1787 { (exit 77); exit 77; }; }
1790 ac_exeext
=$ac_cv_exeext
1791 echo "$as_me:$LINENO: result: $ac_file" >&5
1792 echo "${ECHO_T}$ac_file" >&6
1794 # Check the compiler produces executables we can run. If not, either
1795 # the compiler is broken, or we cross compile.
1796 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1797 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1798 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1799 # If not cross compiling, check that we can run a simple program.
1800 if test "$cross_compiling" != yes; then
1801 if { ac_try
='./$ac_file'
1802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1809 if test "$cross_compiling" = maybe
; then
1812 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1813 If you meant to cross compile, use \`--host'.
1814 See \`config.log' for more details." >&5
1815 echo "$as_me: error: cannot run C compiled programs.
1816 If you meant to cross compile, use \`--host'.
1817 See \`config.log' for more details." >&2;}
1818 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1825 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1826 ac_clean_files
=$ac_clean_files_save
1827 # Check the compiler produces executables we can run. If not, either
1828 # the compiler is broken, or we cross compile.
1829 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1830 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1831 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1832 echo "${ECHO_T}$cross_compiling" >&6
1834 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1835 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1837 (eval $ac_link) 2>&5
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; then
1841 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1842 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1843 # work properly (i.e., refer to `conftest.exe'), while it won't with
1845 for ac_file
in conftest.exe conftest conftest.
*; do
1846 test -f "$ac_file" ||
continue
1848 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1849 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1863 rm -f conftest
$ac_cv_exeext
1864 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1865 echo "${ECHO_T}$ac_cv_exeext" >&6
1867 rm -f conftest.
$ac_ext
1868 EXEEXT
=$ac_cv_exeext
1870 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1871 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1872 if test "${ac_cv_objext+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 cat >conftest.
$ac_ext <<_ACEOF
1878 cat confdefs.h
>>conftest.
$ac_ext
1879 cat >>conftest.
$ac_ext <<_ACEOF
1880 /* end confdefs.h. */
1890 rm -f conftest.o conftest.obj
1891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; then
1896 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1898 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1899 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1904 echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.
$ac_ext >&5
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1916 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1917 echo "${ECHO_T}$ac_cv_objext" >&6
1918 OBJEXT
=$ac_cv_objext
1920 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.
$ac_ext <<_ACEOF
1928 cat confdefs.h
>>conftest.
$ac_ext
1929 cat >>conftest.
$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1943 rm -f conftest.
$ac_objext
1944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1945 (eval $ac_compile) 2>conftest.er1
1947 grep -v '^ *+' conftest.er1
>conftest.err
1949 cat conftest.err
>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); } &&
1952 { ac_try
='test -z "$ac_c_werror_flag"
1953 || test ! -s conftest.err'
1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; } &&
1959 { ac_try
='test -s conftest.$ac_objext'
1960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1967 echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.
$ac_ext >&5
1972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1973 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1976 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1978 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1979 ac_test_CFLAGS
=${CFLAGS+set}
1980 ac_save_CFLAGS
=$CFLAGS
1982 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1983 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1984 if test "${ac_cv_prog_cc_g+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 cat >conftest.
$ac_ext <<_ACEOF
1990 cat confdefs.h
>>conftest.
$ac_ext
1991 cat >>conftest.
$ac_ext <<_ACEOF
1992 /* end confdefs.h. */
2002 rm -f conftest.
$ac_objext
2003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>conftest.er1
2006 grep -v '^ *+' conftest.er1
>conftest.err
2008 cat conftest.err
>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); } &&
2011 { ac_try
='test -z "$ac_c_werror_flag"
2012 || test ! -s conftest.err'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; } &&
2018 { ac_try
='test -s conftest.$ac_objext'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2026 echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.
$ac_ext >&5
2031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2033 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2034 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2035 if test "$ac_test_CFLAGS" = set; then
2036 CFLAGS
=$ac_save_CFLAGS
2037 elif test $ac_cv_prog_cc_g = yes; then
2038 if test "$GCC" = yes; then
2044 if test "$GCC" = yes; then
2050 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2051 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2052 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 ac_cv_prog_cc_stdc
=no
2057 cat >conftest.
$ac_ext <<_ACEOF
2060 cat confdefs.h
>>conftest.
$ac_ext
2061 cat >>conftest.
$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2065 #include <sys/types.h>
2066 #include <sys/stat.h>
2067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2068 struct buf { int x; };
2069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2070 static char *e (p, i)
2076 static char *f (char * (*g) (char **, int), char **p, ...)
2081 s = g (p, va_arg (v,int));
2086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2087 function prototypes and stuff, but not '\xHH' hex character constants.
2088 These don't provoke an error unfortunately, instead are silently treated
2089 as 'x'. The following induces an error, until -std1 is added to get
2090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2091 array size at least. It's necessary to write '\x00'==0 to get something
2092 that's true only with -std1. */
2093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2095 int test (int i, double x);
2096 struct s1 {int (*f) (int a);};
2097 struct s2 {int (*f) (double a);};
2098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2109 # Don't try gcc -ansi; that turns off useful extensions and
2110 # breaks some systems' header files.
2111 # AIX -qlanglvl=ansi
2112 # Ultrix and OSF/1 -std1
2113 # HP-UX 10.20 and later -Ae
2114 # HP-UX older versions -Aa -D_HPUX_SOURCE
2115 # SVR4 -Xc -D__EXTENSIONS__
2116 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2118 CC
="$ac_save_CC $ac_arg"
2119 rm -f conftest.
$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>conftest.er1
2123 grep -v '^ *+' conftest.er1
>conftest.err
2125 cat conftest.err
>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); } &&
2128 { ac_try
='test -z "$ac_c_werror_flag"
2129 || test ! -s conftest.err'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; } &&
2135 { ac_try
='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2141 ac_cv_prog_cc_stdc
=$ac_arg
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.
$ac_ext >&5
2148 rm -f conftest.err conftest.
$ac_objext
2150 rm -f conftest.
$ac_ext conftest.
$ac_objext
2155 case "x$ac_cv_prog_cc_stdc" in
2157 echo "$as_me:$LINENO: result: none needed" >&5
2158 echo "${ECHO_T}none needed" >&6 ;;
2160 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2161 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2162 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2165 # Some people use a C++ compiler to compile C. Since we use `exit',
2166 # in C++ we need to declare it. In case someone uses the same compiler
2167 # for both compiling C and C++ we need to have the C++ compiler decide
2168 # the declaration of exit, since it's the most demanding environment.
2169 cat >conftest.
$ac_ext <<_ACEOF
2174 rm -f conftest.
$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>conftest.er1
2178 grep -v '^ *+' conftest.er1
>conftest.err
2180 cat conftest.err
>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try
='test -z "$ac_c_werror_flag"
2184 || test ! -s conftest.err'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; } &&
2190 { ac_try
='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 for ac_declaration
in \
2198 'extern "C" void std::exit (int) throw (); using std::exit;' \
2199 'extern "C" void std::exit (int); using std::exit;' \
2200 'extern "C" void exit (int) throw ();' \
2201 'extern "C" void exit (int);' \
2204 cat >conftest.
$ac_ext <<_ACEOF
2207 cat confdefs.h
>>conftest.
$ac_ext
2208 cat >>conftest.
$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2220 rm -f conftest.
$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2224 grep -v '^ *+' conftest.er1
>conftest.err
2226 cat conftest.err
>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try
='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try
='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.
$ac_ext >&5
2249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2250 cat >conftest.
$ac_ext <<_ACEOF
2253 cat confdefs.h
>>conftest.
$ac_ext
2254 cat >>conftest.
$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2265 rm -f conftest.
$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2269 grep -v '^ *+' conftest.er1
>conftest.err
2271 cat conftest.err
>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try
='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try
='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.
$ac_ext >&5
2293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2296 if test -n "$ac_declaration"; then
2297 echo '#ifdef __cplusplus' >>confdefs.h
2298 echo $ac_declaration >>confdefs.h
2299 echo '#endif' >>confdefs.h
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.
$ac_ext >&5
2307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2309 ac_cpp
='$CPP $CPPFLAGS'
2310 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2314 ac_cpp
='$CPP $CPPFLAGS'
2315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2318 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2319 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2320 # On Suns, sometimes $CPP names a directory.
2321 if test -n "$CPP" && test -d "$CPP"; then
2324 if test -z "$CPP"; then
2325 if test "${ac_cv_prog_CPP+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 # Double quotes because CPP needs to be expanded
2329 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2332 for ac_c_preproc_warn_flag
in '' yes
2334 # Use a header file that comes with gcc, so configuring glibc
2335 # with a fresh cross-compiler works.
2336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2337 # <limits.h> exists even on freestanding compilers.
2338 # On the NeXT, cc -E runs the code through the compiler's parser,
2339 # not just through cpp. "Syntax error" is here to catch this case.
2340 cat >conftest.
$ac_ext <<_ACEOF
2343 cat confdefs.h
>>conftest.
$ac_ext
2344 cat >>conftest.
$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2347 # include <limits.h>
2349 # include <assert.h>
2353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2356 grep -v '^ *+' conftest.er1
>conftest.err
2358 cat conftest.err
>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } >/dev
/null
; then
2361 if test -s conftest.err
; then
2362 ac_cpp_err
=$ac_c_preproc_warn_flag
2363 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2370 if test -z "$ac_cpp_err"; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.
$ac_ext >&5
2376 # Broken: fails on valid input.
2379 rm -f conftest.err conftest.
$ac_ext
2381 # OK, works on sane cases. Now check whether non-existent headers
2382 # can be detected and how.
2383 cat >conftest.
$ac_ext <<_ACEOF
2386 cat confdefs.h
>>conftest.
$ac_ext
2387 cat >>conftest.
$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2389 #include <ac_nonexistent.h>
2391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2394 grep -v '^ *+' conftest.er1
>conftest.err
2396 cat conftest.err
>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } >/dev
/null
; then
2399 if test -s conftest.err
; then
2400 ac_cpp_err
=$ac_c_preproc_warn_flag
2401 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2408 if test -z "$ac_cpp_err"; then
2409 # Broken: success on invalid input.
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.
$ac_ext >&5
2415 # Passes both tests.
2419 rm -f conftest.err conftest.
$ac_ext
2422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423 rm -f conftest.err conftest.
$ac_ext
2424 if $ac_preproc_ok; then
2436 echo "$as_me:$LINENO: result: $CPP" >&5
2437 echo "${ECHO_T}$CPP" >&6
2439 for ac_c_preproc_warn_flag
in '' yes
2441 # Use a header file that comes with gcc, so configuring glibc
2442 # with a fresh cross-compiler works.
2443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2444 # <limits.h> exists even on freestanding compilers.
2445 # On the NeXT, cc -E runs the code through the compiler's parser,
2446 # not just through cpp. "Syntax error" is here to catch this case.
2447 cat >conftest.
$ac_ext <<_ACEOF
2450 cat confdefs.h
>>conftest.
$ac_ext
2451 cat >>conftest.
$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2454 # include <limits.h>
2456 # include <assert.h>
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1
>conftest.err
2465 cat conftest.err
>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev
/null
; then
2468 if test -s conftest.err
; then
2469 ac_cpp_err
=$ac_c_preproc_warn_flag
2470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2477 if test -z "$ac_cpp_err"; then
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.
$ac_ext >&5
2483 # Broken: fails on valid input.
2486 rm -f conftest.err conftest.
$ac_ext
2488 # OK, works on sane cases. Now check whether non-existent headers
2489 # can be detected and how.
2490 cat >conftest.
$ac_ext <<_ACEOF
2493 cat confdefs.h
>>conftest.
$ac_ext
2494 cat >>conftest.
$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2496 #include <ac_nonexistent.h>
2498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1
>conftest.err
2503 cat conftest.err
>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } >/dev
/null
; then
2506 if test -s conftest.err
; then
2507 ac_cpp_err
=$ac_c_preproc_warn_flag
2508 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2515 if test -z "$ac_cpp_err"; then
2516 # Broken: success on invalid input.
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.
$ac_ext >&5
2522 # Passes both tests.
2526 rm -f conftest.err conftest.
$ac_ext
2529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2530 rm -f conftest.err conftest.
$ac_ext
2531 if $ac_preproc_ok; then
2534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2537 See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
2542 ac_cpp
='$CPP $CPPFLAGS'
2543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2548 echo "$as_me:$LINENO: checking for egrep" >&5
2549 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2550 if test "${ac_cv_prog_egrep+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2554 then ac_cv_prog_egrep
='grep -E'
2555 else ac_cv_prog_egrep
='egrep'
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2559 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2560 EGREP
=$ac_cv_prog_egrep
2563 cat >conftest.
$ac_ext <<_ACEOF
2566 cat confdefs.h
>>conftest.
$ac_ext
2567 cat >>conftest.
$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 $EGREP "" >/dev
/null
2>&1; then
2576 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2577 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2578 if test "${ac_cv_search_strerror+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 ac_func_search_save_LIBS
=$LIBS
2582 ac_cv_search_strerror
=no
2583 cat >conftest.
$ac_ext <<_ACEOF
2586 cat confdefs.h
>>conftest.
$ac_ext
2587 cat >>conftest.
$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2590 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2605 rm -f conftest.
$ac_objext conftest
$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607 (eval $ac_link) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1
>conftest.err
2611 cat conftest.err
>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try
='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try
='test -s conftest$ac_exeext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_search_strerror
="none required"
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.
$ac_ext >&5
2633 rm -f conftest.err conftest.
$ac_objext \
2634 conftest
$ac_exeext conftest.
$ac_ext
2635 if test "$ac_cv_search_strerror" = no
; then
2636 for ac_lib
in cposix
; do
2637 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2638 cat >conftest.
$ac_ext <<_ACEOF
2641 cat confdefs.h
>>conftest.
$ac_ext
2642 cat >>conftest.
$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2645 /* Override any gcc2 internal prototype to avoid an error. */
2649 /* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2660 rm -f conftest.
$ac_objext conftest
$ac_exeext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2662 (eval $ac_link) 2>conftest.er1
2664 grep -v '^ *+' conftest.er1
>conftest.err
2666 cat conftest.err
>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try
='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try
='test -s conftest$ac_exeext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_cv_search_strerror
="-l$ac_lib"
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2689 rm -f conftest.err conftest.
$ac_objext \
2690 conftest
$ac_exeext conftest.
$ac_ext
2693 LIBS
=$ac_func_search_save_LIBS
2695 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2696 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2697 if test "$ac_cv_search_strerror" != no
; then
2698 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2701 for ac_prog
in gawk mawk nawk
awk
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy
$ac_prog; ac_word
=$2
2705 echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2707 if test "${ac_cv_prog_AWK+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir
=.
2718 for ac_exec_ext
in '' $ac_executable_extensions; do
2719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_AWK
="$ac_prog"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 if test -n "$AWK"; then
2731 echo "$as_me:$LINENO: result: $AWK" >&5
2732 echo "${ECHO_T}$AWK" >&6
2734 echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2738 test -n "$AWK" && break
2741 # Extract the first word of "strip", so it can be a program name with args.
2742 set dummy strip
; ac_word
=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_STRIP+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$STRIP"; then
2749 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_STRIP
="strip"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2768 STRIP
=$ac_cv_prog_STRIP
2769 if test -n "$STRIP"; then
2770 echo "$as_me:$LINENO: result: $STRIP" >&5
2771 echo "${ECHO_T}$STRIP" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2780 if test -z "$CFLAGS"; then
2782 test "$GCC" = yes && CFLAGS
="-O2 -fno-strength-reduce -Wall"
2784 if test "$GCC" = yes; then
2785 gccversion
=`"$CC" -dumpversion`
2786 if test "x$gccversion" = "x"; then
2787 gccversion
=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2789 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2790 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
2791 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2793 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2794 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2795 CFLAGS
="$CFLAGS -fno-strength-reduce"
2800 if test "$cross_compiling" = yes; then
2801 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2802 (cross compiling doesn't work)" >&5
2803 echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2804 (cross compiling doesn't work)" >&2;}
2805 { (exit 1); exit 1; }; }
2808 test "$GCC" = yes && CPP_MM
=M
;
2810 if test -f .
/toolcheck
; then
2811 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2812 echo "$as_me: checking for buggy tools..." >&6;}
2816 OS_EXTRA_SRC
=""; OS_EXTRA_OBJ
=""
2818 echo "$as_me:$LINENO: checking for BeOS" >&5
2819 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
2821 BeOS
) OS_EXTRA_SRC
=os_beos.c
; OS_EXTRA_OBJ
=objects
/os_beos.o
2822 BEOS
=yes; echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6;;
2824 *) BEOS
=no
; echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6;;
2828 echo "$as_me:$LINENO: checking for QNX" >&5
2829 echo $ECHO_N "checking for QNX... $ECHO_C" >&6
2831 QNX
) OS_EXTRA_SRC
=os_qnx.c
; OS_EXTRA_OBJ
=objects
/os_qnx.o
2832 test -z "$with_x" && with_x
=no
2833 QNX
=yes; echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6;;
2835 *) QNX
=no
; echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6;;
2839 echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2840 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
2841 if test "`(uname) 2>/dev/null`" = Darwin
; then
2842 echo "$as_me:$LINENO: result: yes" >&5
2843 echo "${ECHO_T}yes" >&6
2845 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2846 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
2847 # Check whether --enable-darwin or --disable-darwin was given.
2848 if test "${enable_darwin+set}" = set; then
2849 enableval
="$enable_darwin"
2854 if test "$enable_darwin" = "yes"; then
2855 echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2857 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2858 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
2859 if test -f os_macosx.c
; then
2860 echo "$as_me:$LINENO: result: yes" >&5
2861 echo "${ECHO_T}yes" >&6
2863 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2864 echo "${ECHO_T}no, Darwin support disabled" >&6
2868 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2869 echo "${ECHO_T}yes, Darwin support excluded" >&6
2872 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2873 echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2875 # Check whether --with-mac-arch or --without-mac-arch was given.
2876 if test "${with_mac_arch+set}" = set; then
2877 withval
="$with_mac_arch"
2878 MACARCH
="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2879 echo "${ECHO_T}$MACARCH" >&6
2881 MACARCH
="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2882 echo "${ECHO_T}defaulting to $MACARCH" >&6
2885 if test "x$MACARCH" = "xboth"; then
2886 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2887 echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2888 save_cppflags
="$CPPFLAGS"
2889 save_cflags
="$CFLAGS"
2890 save_ldflags
="$LDFLAGS"
2891 CFLAGS
="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
2892 cat >conftest.
$ac_ext <<_ACEOF
2895 cat confdefs.h
>>conftest.
$ac_ext
2896 cat >>conftest.
$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2907 rm -f conftest.
$ac_objext conftest
$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909 (eval $ac_link) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1
>conftest.err
2913 cat conftest.err
>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try
='test -z "$ac_c_werror_flag"
2917 || test ! -s conftest.err'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; } &&
2923 { ac_try
='test -s conftest$ac_exeext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 echo "$as_me:$LINENO: result: found" >&5
2930 echo "${ECHO_T}found" >&6
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.
$ac_ext >&5
2935 echo "$as_me:$LINENO: result: not found" >&5
2936 echo "${ECHO_T}not found" >&6
2937 CFLAGS
="$save_cflags"
2938 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
2939 echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
2940 CPPFLAGS
="$CPPFLAGS -arch i386"
2941 LDFLAGS
="$save_ldflags -arch i386"
2942 cat >conftest.
$ac_ext <<_ACEOF
2945 cat confdefs.h
>>conftest.
$ac_ext
2946 cat >>conftest.
$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2957 rm -f conftest.
$ac_objext conftest
$ac_exeext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959 (eval $ac_link) 2>conftest.er1
2961 grep -v '^ *+' conftest.er1
>conftest.err
2963 cat conftest.err
>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try
='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try
='test -s conftest$ac_exeext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980 echo "${ECHO_T}yes" >&6; MACARCH
="intel"
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2988 CPPFLAGS
="$save_cppflags -arch ppc"
2989 LDFLAGS
="$save_ldflags -arch ppc"
2991 rm -f conftest.err conftest.
$ac_objext \
2992 conftest
$ac_exeext conftest.
$ac_ext
2994 rm -f conftest.err conftest.
$ac_objext \
2995 conftest
$ac_exeext conftest.
$ac_ext
2996 elif test "x$MACARCH" = "xintel"; then
2997 CPPFLAGS
="$CPPFLAGS -arch intel"
2998 LDFLAGS
="$LDFLAGS -arch intel"
2999 elif test "x$MACARCH" = "xppc"; then
3000 CPPFLAGS
="$CPPFLAGS -arch ppc"
3001 LDFLAGS
="$LDFLAGS -arch ppc"
3004 if test "$enable_darwin" = "yes"; then
3006 OS_EXTRA_SCR
="os_macosx.c os_mac_conv.c";
3007 OS_EXTRA_OBJ
="objects/os_macosx.o objects/os_mac_conv.o"
3008 CPPFLAGS
="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3009 if test "x$MACARCH" = "xboth"; then
3010 CPPFLAGS
="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3012 CPPFLAGS
="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3017 if test "${ac_cv_header_stdc+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3039 rm -f conftest.
$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1
>conftest.err
3045 cat conftest.err
>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try
='test -z "$ac_c_werror_flag"
3049 || test ! -s conftest.err'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try
='test -s conftest.$ac_objext'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_header_stdc
=yes
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.
$ac_ext >&5
3066 ac_cv_header_stdc
=no
3068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3070 if test $ac_cv_header_stdc = yes; then
3071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3072 cat >conftest.
$ac_ext <<_ACEOF
3075 cat confdefs.h
>>conftest.
$ac_ext
3076 cat >>conftest.
$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082 $EGREP "memchr" >/dev
/null
2>&1; then
3085 ac_cv_header_stdc
=no
3091 if test $ac_cv_header_stdc = yes; then
3092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3093 cat >conftest.
$ac_ext <<_ACEOF
3096 cat confdefs.h
>>conftest.
$ac_ext
3097 cat >>conftest.
$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3103 $EGREP "free" >/dev
/null
2>&1; then
3106 ac_cv_header_stdc
=no
3112 if test $ac_cv_header_stdc = yes; then
3113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3114 if test "$cross_compiling" = yes; then
3117 cat >conftest.
$ac_ext <<_ACEOF
3120 cat confdefs.h
>>conftest.
$ac_ext
3121 cat >>conftest.
$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3124 #if ((' ' & 0x0FF) == 0x020)
3125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3128 # define ISLOWER(c) \
3129 (('a' <= (c) && (c) <= 'i') \
3130 || ('j' <= (c) && (c) <= 'r') \
3131 || ('s' <= (c) && (c) <= 'z'))
3132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3140 for (i = 0; i < 256; i++)
3141 if (XOR (islower (i), ISLOWER (i))
3142 || toupper (i) != TOUPPER (i))
3147 rm -f conftest
$ac_exeext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149 (eval $ac_link) 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: program exited with status $ac_status" >&5
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.
$ac_ext >&5
3165 ac_cv_header_stdc
=no
3167 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3173 if test $ac_cv_header_stdc = yes; then
3175 cat >>confdefs.h
<<\_ACEOF
3176 #define STDC_HEADERS 1
3181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3191 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3192 inttypes.h stdint.h unistd.h
3194 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3195 echo "$as_me:$LINENO: checking for $ac_header" >&5
3196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 cat >conftest.
$ac_ext <<_ACEOF
3203 cat confdefs.h
>>conftest.
$ac_ext
3204 cat >>conftest.
$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 $ac_includes_default
3208 #include <$ac_header>
3210 rm -f conftest.
$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3214 grep -v '^ *+' conftest.er1
>conftest.err
3216 cat conftest.err
>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try
='test -z "$ac_c_werror_flag"
3220 || test ! -s conftest.err'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; } &&
3226 { ac_try
='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 eval "$as_ac_Header=yes"
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3237 eval "$as_ac_Header=no"
3239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3244 cat >>confdefs.h
<<_ACEOF
3245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3253 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3254 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3255 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3256 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3260 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3262 # Is the header compilable?
3263 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3264 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3265 cat >conftest.
$ac_ext <<_ACEOF
3268 cat confdefs.h
>>conftest.
$ac_ext
3269 cat >>conftest.
$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 $ac_includes_default
3272 #include <Carbon/Carbon.h>
3274 rm -f conftest.
$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3278 grep -v '^ *+' conftest.er1
>conftest.err
3280 cat conftest.err
>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try
='test -z "$ac_c_werror_flag"
3284 || test ! -s conftest.err'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; } &&
3290 { ac_try
='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_header_compiler
=yes
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.
$ac_ext >&5
3301 ac_header_compiler
=no
3303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3305 echo "${ECHO_T}$ac_header_compiler" >&6
3307 # Is the header present?
3308 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3309 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3310 cat >conftest.
$ac_ext <<_ACEOF
3313 cat confdefs.h
>>conftest.
$ac_ext
3314 cat >>conftest.
$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <Carbon/Carbon.h>
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1
>conftest.err
3323 cat conftest.err
>&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev
/null
; then
3326 if test -s conftest.err
; then
3327 ac_cpp_err
=$ac_c_preproc_warn_flag
3328 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 ac_header_preproc
=yes
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.
$ac_ext >&5
3341 ac_header_preproc
=no
3343 rm -f conftest.err conftest.
$ac_ext
3344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3345 echo "${ECHO_T}$ac_header_preproc" >&6
3347 # So? What about this header?
3348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3350 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3351 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3352 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3353 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3354 ac_header_preproc
=yes
3357 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3358 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3360 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3362 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3364 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3365 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3366 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3368 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3371 ## ------------------------------------------ ##
3372 ## Report this to the AC_PACKAGE_NAME lists. ##
3373 ## ------------------------------------------ ##
3376 sed "s/^/$as_me: WARNING: /" >&2
3379 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3380 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
3386 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3387 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3390 if test $ac_cv_header_Carbon_Carbon_h = yes; then
3395 if test "x$CARBON" = "xyes"; then
3396 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
3402 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3403 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3414 have_local_include
=''
3416 if test "$GCC" = yes; then
3417 echo 'void f(){}' > conftest.c
3418 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3419 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3420 rm -f conftest.c conftest.o
3422 if test -z "$have_local_lib" -a -d /usr
/local
/lib
; then
3423 tt
=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3424 if test "$tt" = "$LDFLAGS"; then
3425 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
3428 if test -z "$have_local_include" -a -d /usr
/local
/include
; then
3429 tt
=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3430 if test "$tt" = "$CPPFLAGS"; then
3431 CPPFLAGS
="$CPPFLAGS -I/usr/local/include"
3435 echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3436 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3438 # Check whether --with-vim-name or --without-vim-name was given.
3439 if test "${with_vim_name+set}" = set; then
3440 withval
="$with_vim_name"
3441 VIMNAME
="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3442 echo "${ECHO_T}$VIMNAME" >&6
3444 VIMNAME
="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3445 echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3448 echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3449 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3451 # Check whether --with-ex-name or --without-ex-name was given.
3452 if test "${with_ex_name+set}" = set; then
3453 withval
="$with_ex_name"
3454 EXNAME
="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3455 echo "${ECHO_T}$EXNAME" >&6
3457 EXNAME
="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3458 echo "${ECHO_T}Defaulting to ex" >&6
3461 echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3462 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3464 # Check whether --with-view-name or --without-view-name was given.
3465 if test "${with_view_name+set}" = set; then
3466 withval
="$with_view_name"
3467 VIEWNAME
="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3468 echo "${ECHO_T}$VIEWNAME" >&6
3470 VIEWNAME
="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3471 echo "${ECHO_T}Defaulting to view" >&6
3475 echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3476 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3478 # Check whether --with-global-runtime or --without-global-runtime was given.
3479 if test "${with_global_runtime+set}" = set; then
3480 withval
="$with_global_runtime"
3481 echo "$as_me:$LINENO: result: $withval" >&5
3482 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h
<<_ACEOF
3483 #define RUNTIME_GLOBAL "$withval"
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3491 echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3492 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3494 # Check whether --with-modified-by or --without-modified-by was given.
3495 if test "${with_modified_by+set}" = set; then
3496 withval
="$with_modified_by"
3497 echo "$as_me:$LINENO: result: $withval" >&5
3498 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h
<<_ACEOF
3499 #define MODIFIED_BY "$withval"
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3508 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3509 cat >conftest.
$ac_ext <<_ACEOF
3512 cat confdefs.h
>>conftest.
$ac_ext
3513 cat >>conftest.
$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3519 /* TryCompile function for CharSet.
3520 Treat any failure as ASCII for compatibility with existing art.
3521 Use compile-time rather than run-time tests for cross-compiler
3524 make an error "Character set is not EBCDIC"
3530 rm -f conftest.
$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try
='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try
='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 # TryCompile action if true
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.
$ac_ext >&5
3558 # TryCompile action if false
3561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3562 # end of TryCompile ])
3563 # end of CacheVal CvEbcdic
3564 echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3565 echo "${ECHO_T}$cf_cv_ebcdic" >&6
3566 case "$cf_cv_ebcdic" in #(vi
3567 yes) cat >>confdefs.h
<<\_ACEOF
3573 *) line_break
='"\\012"';;
3577 if test "$cf_cv_ebcdic" = "yes"; then
3578 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3579 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3581 OS
/390) OS390Unix
="yes";
3582 if test "$CC" = "cc"; then
3586 if test "$CC" = "c89"; then
3593 if test "$ccm" != "1"; then
3595 echo "------------------------------------------"
3596 echo " On OS/390 Unix, the environment variable"
3597 echo " __CC_${ccn}MODE must be set to \"1\"!"
3599 echo " export _CC_${ccn}MODE=1"
3600 echo " and then call configure again."
3601 echo "------------------------------------------"
3604 CFLAGS
="$CFLAGS -D_ALL_SOURCE"; LDFLAGS
="$LDFLAGS -Wl,EDIT=NO"
3605 echo "$as_me:$LINENO: result: yes" >&5
3606 echo "${ECHO_T}yes" >&6
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3615 echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
3616 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6
3617 # Check whether --enable-selinux or --disable-selinux was given.
3618 if test "${enable_selinux+set}" = set; then
3619 enableval
="$enable_selinux"
3622 enable_selinux
="yes"
3624 if test "$enable_selinux" = "yes"; then
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
3628 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
3629 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_check_lib_save_LIBS
=$LIBS
3633 LIBS
="-lselinux $LIBS"
3634 cat >conftest.
$ac_ext <<_ACEOF
3637 cat confdefs.h
>>conftest.
$ac_ext
3638 cat >>conftest.
$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3641 /* Override any gcc2 internal prototype to avoid an error. */
3645 /* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3647 char is_selinux_enabled ();
3651 is_selinux_enabled ();
3656 rm -f conftest.
$ac_objext conftest
$ac_exeext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>conftest.er1
3660 grep -v '^ *+' conftest.er1
>conftest.err
3662 cat conftest.err
>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try
='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try
='test -s conftest$ac_exeext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_cv_lib_selinux_is_selinux_enabled
=yes
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.
$ac_ext >&5
3683 ac_cv_lib_selinux_is_selinux_enabled
=no
3685 rm -f conftest.err conftest.
$ac_objext \
3686 conftest
$ac_exeext conftest.
$ac_ext
3687 LIBS
=$ac_check_lib_save_LIBS
3689 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
3690 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
3691 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
3692 LIBS
="$LIBS -lselinux"
3693 cat >>confdefs.h
<<\_ACEOF
3694 #define HAVE_SELINUX 1
3700 echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6
3705 echo "$as_me:$LINENO: checking --with-features argument" >&5
3706 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3708 # Check whether --with-features or --without-features was given.
3709 if test "${with_features+set}" = set; then
3710 withval
="$with_features"
3711 features
="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3712 echo "${ECHO_T}$features" >&6
3714 features
="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3715 echo "${ECHO_T}Defaulting to normal" >&6
3721 tiny
) cat >>confdefs.h
<<\_ACEOF
3725 small
) cat >>confdefs.h
<<\_ACEOF
3726 #define FEAT_SMALL 1
3729 normal
) cat >>confdefs.h
<<\_ACEOF
3730 #define FEAT_NORMAL 1
3732 dovimdiff
="installvimdiff";
3733 dogvimdiff
="installgvimdiff" ;;
3734 big
) cat >>confdefs.h
<<\_ACEOF
3737 dovimdiff
="installvimdiff";
3738 dogvimdiff
="installgvimdiff" ;;
3739 huge
) cat >>confdefs.h
<<\_ACEOF
3742 dovimdiff
="installvimdiff";
3743 dogvimdiff
="installgvimdiff" ;;
3744 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3745 echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3751 echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3752 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3754 # Check whether --with-compiledby or --without-compiledby was given.
3755 if test "${with_compiledby+set}" = set; then
3756 withval
="$with_compiledby"
3757 compiledby
="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3758 echo "${ECHO_T}$withval" >&6
3760 compiledby
=""; echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3766 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3767 # Check whether --enable-xsmp or --disable-xsmp was given.
3768 if test "${enable_xsmp+set}" = set; then
3769 enableval
="$enable_xsmp"
3775 if test "$enable_xsmp" = "yes"; then
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3778 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3779 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3780 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3781 if test "${enable_xsmp_interact+set}" = set; then
3782 enableval
="$enable_xsmp_interact"
3785 enable_xsmp_interact
="yes"
3787 if test "$enable_xsmp_interact" = "yes"; then
3788 echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 cat >>confdefs.h
<<\_ACEOF
3791 #define USE_XSMP_INTERACT 1
3795 echo "$as_me:$LINENO: result: yes" >&5
3796 echo "${ECHO_T}yes" >&6
3799 echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3803 echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3804 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3805 # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3806 if test "${enable_mzschemeinterp+set}" = set; then
3807 enableval
="$enable_mzschemeinterp"
3810 enable_mzschemeinterp
="no"
3812 echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3813 echo "${ECHO_T}$enable_mzschemeinterp" >&6
3815 if test "$enable_mzschemeinterp" = "yes"; then
3818 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3819 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3821 # Check whether --with-plthome or --without-plthome was given.
3822 if test "${with_plthome+set}" = set; then
3823 withval
="$with_plthome"
3824 with_plthome
="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3825 echo "${ECHO_T}$with_plthome" >&6
3827 with_plthome
="";echo "$as_me:$LINENO: result: \"no\"" >&5
3828 echo "${ECHO_T}\"no\"" >&6
3831 if test "X$with_plthome" != "X"; then
3832 vi_cv_path_mzscheme_pfx
="$with_plthome"
3834 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3835 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3836 if test "X$PLTHOME" != "X"; then
3837 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3838 echo "${ECHO_T}\"$PLTHOME\"" >&6
3839 vi_cv_path_mzscheme_pfx
="$PLTHOME"
3841 echo "$as_me:$LINENO: result: \"not set\"" >&5
3842 echo "${ECHO_T}\"not set\"" >&6
3843 # Extract the first word of "mzscheme", so it can be a program name with args.
3844 set dummy mzscheme
; ac_word
=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 case $vi_cv_path_mzscheme in
3852 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir
=.
3860 for ac_exec_ext
in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
3874 if test -n "$vi_cv_path_mzscheme"; then
3875 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3876 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3883 if test "X$vi_cv_path_mzscheme" != "X"; then
3884 lsout
=`ls -l $vi_cv_path_mzscheme`
3885 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
3886 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3890 if test "X$vi_cv_path_mzscheme" != "X"; then
3891 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3892 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3893 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 vi_cv_path_mzscheme_pfx
=`
3897 ${vi_cv_path_mzscheme} -evm \
3898 "(display (simplify-path \
3899 (build-path (call-with-values \
3900 (lambda () (split-path (find-system-path (quote exec-file)))) \
3901 (lambda (base name must-be-dir?) base)) (quote up))))"`
3903 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3904 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3905 vi_cv_path_mzscheme_pfx
=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3911 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3912 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3913 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3914 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
3915 echo "$as_me:$LINENO: result: \"yes\"" >&5
3916 echo "${ECHO_T}\"yes\"" >&6
3918 echo "$as_me:$LINENO: result: \"no\"" >&5
3919 echo "${ECHO_T}\"no\"" >&6
3920 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
3921 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6
3922 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
3923 echo "$as_me:$LINENO: result: \"yes\"" >&5
3924 echo "${ECHO_T}\"yes\"" >&6
3927 echo "$as_me:$LINENO: result: \"no\"" >&5
3928 echo "${ECHO_T}\"no\"" >&6
3929 vi_cv_path_mzscheme_pfx
=
3934 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3935 if test "x$MACOSX" = "xyes"; then
3936 MZSCHEME_LIBS
="-framework PLT_MzScheme"
3937 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3938 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
3940 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
3941 if test "$GCC" = yes; then
3942 MZSCHEME_LIBS
="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3943 elif test "`(uname) 2>/dev/null`" = SunOS
&&
3944 uname
-r |
grep '^5' >/dev
/null
; then
3945 MZSCHEME_LIBS
="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3948 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
3949 SCHEME_COLLECTS
=lib
/plt
/
3951 MZSCHEME_CFLAGS
="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
3952 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
3953 MZSCHEME_SRC
="if_mzsch.c"
3954 MZSCHEME_OBJ
="objects/if_mzsch.o"
3955 MZSCHEME_PRO
="if_mzsch.pro"
3956 cat >>confdefs.h
<<\_ACEOF
3957 #define FEAT_MZSCHEME 1
3969 echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3970 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3971 # Check whether --enable-perlinterp or --disable-perlinterp was given.
3972 if test "${enable_perlinterp+set}" = set; then
3973 enableval
="$enable_perlinterp"
3976 enable_perlinterp
="no"
3978 echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3979 echo "${ECHO_T}$enable_perlinterp" >&6
3980 if test "$enable_perlinterp" = "yes"; then
3982 # Extract the first word of "perl", so it can be a program name with args.
3983 set dummy perl
; ac_word
=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 case $vi_cv_path_perl in
3991 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
3994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir
=.
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4013 if test -n "$vi_cv_path_perl"; then
4014 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4015 echo "${ECHO_T}$vi_cv_path_perl" >&6
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4021 if test "X$vi_cv_path_perl" != "X"; then
4022 echo "$as_me:$LINENO: checking Perl version" >&5
4023 echo $ECHO_N "checking Perl version... $ECHO_C" >&6
4024 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4025 eval `$vi_cv_path_perl -V:usethreads`
4026 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4029 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4030 eval `$vi_cv_path_perl -V:use5005threads`
4031 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4035 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4036 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
4040 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4041 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
4044 if test $badthreads = no
; then
4045 echo "$as_me:$LINENO: result: OK" >&5
4046 echo "${ECHO_T}OK" >&6
4047 eval `$vi_cv_path_perl -V:shrpenv`
4048 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4051 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4053 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4054 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4055 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4056 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4057 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4058 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4059 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4061 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4062 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
4065 ldflags_save
=$LDFLAGS
4066 CFLAGS
="$CFLAGS $perlcppflags"
4067 LIBS
="$LIBS $perllibs"
4068 LDFLAGS
="$perlldflags $LDFLAGS"
4069 cat >conftest.
$ac_ext <<_ACEOF
4072 cat confdefs.h
>>conftest.
$ac_ext
4073 cat >>conftest.
$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4084 rm -f conftest.
$ac_objext conftest
$ac_exeext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086 (eval $ac_link) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1
>conftest.err
4090 cat conftest.err
>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try
='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try
='test -s conftest$ac_exeext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6; perl_ok
=yes
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.
$ac_ext >&5
4112 echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4113 echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok
=no
4115 rm -f conftest.err conftest.
$ac_objext \
4116 conftest
$ac_exeext conftest.
$ac_ext
4119 LDFLAGS
=$ldflags_save
4120 if test $perl_ok = yes; then
4121 if test "X$perlcppflags" != "X"; then
4122 PERL_CFLAGS
=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4124 if test "X$perlldflags" != "X"; then
4125 LDFLAGS
="$perlldflags $LDFLAGS"
4128 PERL_SRC
="auto/if_perl.c if_perlsfio.c"
4129 PERL_OBJ
="objects/if_perl.o objects/if_perlsfio.o"
4130 PERL_PRO
="if_perl.pro if_perlsfio.pro"
4131 cat >>confdefs.h
<<\_ACEOF
4138 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4139 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4143 if test "x$MACOSX" = "xyes"; then
4144 dir
=/System
/Library
/Perl
4145 darwindir
=$dir/darwin
4146 if test -d $darwindir; then
4149 dir
=/System
/Library
/Perl
/5.8.1
4150 darwindir
=$dir/darwin-thread-multi-2level
4151 if test -d $darwindir; then
4155 if test -n "$PERL"; then
4157 PERL_CFLAGS
="-DFEAT_PERL -I$darwindir/CORE"
4158 PERL_OBJ
="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4159 PERL_LIBS
="-L$darwindir/CORE -lperl"
4170 echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4171 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4172 # Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4173 if test "${enable_pythoninterp+set}" = set; then
4174 enableval
="$enable_pythoninterp"
4177 enable_pythoninterp
="no"
4179 echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4180 echo "${ECHO_T}$enable_pythoninterp" >&6
4181 if test "$enable_pythoninterp" = "yes"; then
4182 # Extract the first word of "python", so it can be a program name with args.
4183 set dummy python
; ac_word
=$2
4184 echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 case $vi_cv_path_python in
4191 ac_cv_path_vi_cv_path_python
="$vi_cv_path_python" # Let the user override the test with a path.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_path_vi_cv_path_python
="$as_dir/$ac_word$ac_exec_ext"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 vi_cv_path_python
=$ac_cv_path_vi_cv_path_python
4213 if test -n "$vi_cv_path_python"; then
4214 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4215 echo "${ECHO_T}$vi_cv_path_python" >&6
4217 echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4221 if test "X$vi_cv_path_python" != "X"; then
4223 echo "$as_me:$LINENO: checking Python version" >&5
4224 echo $ECHO_N "checking Python version... $ECHO_C" >&6
4225 if test "${vi_cv_var_python_version+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 vi_cv_var_python_version
=`
4229 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4232 echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4233 echo "${ECHO_T}$vi_cv_var_python_version" >&6
4235 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4236 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4237 if ${vi_cv_path_python} -c \
4238 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4240 echo "$as_me:$LINENO: result: yep" >&5
4241 echo "${ECHO_T}yep" >&6
4243 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4244 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4245 if test "${vi_cv_path_python_pfx+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 vi_cv_path_python_pfx
=`
4249 ${vi_cv_path_python} -c \
4250 "import sys; print sys.prefix"`
4252 echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4253 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4255 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4256 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4257 if test "${vi_cv_path_python_epfx+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 vi_cv_path_python_epfx
=`
4261 ${vi_cv_path_python} -c \
4262 "import sys; print sys.exec_prefix"`
4264 echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4265 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4268 if test "${vi_cv_path_pythonpath+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 vi_cv_path_pythonpath
=`
4273 ${vi_cv_path_python} -c \
4274 "import sys, string; print string.join(sys.path,':')"`
4280 # Check whether --with-python-config-dir or --without-python-config-dir was given.
4281 if test "${with_python_config_dir+set}" = set; then
4282 withval
="$with_python_config_dir"
4283 vi_cv_path_python_conf
="${withval}"
4286 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4287 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4288 if test "${vi_cv_path_python_conf+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 vi_cv_path_python_conf
=
4293 for path
in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4294 for subdir
in lib share
; do
4295 d
="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4296 if test -d "$d" && test -f "$d/config.c"; then
4297 vi_cv_path_python_conf
="$d"
4303 echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4304 echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4306 PYTHON_CONFDIR
="${vi_cv_path_python_conf}"
4308 if test "X$PYTHON_CONFDIR" = "X"; then
4309 echo "$as_me:$LINENO: result: can't find it!" >&5
4310 echo "${ECHO_T}can't find it!" >&6
4313 if test "${vi_cv_path_python_plibs+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 tmp_mkf
="/tmp/Makefile-conf$$"
4318 cat ${PYTHON_CONFDIR}/Makefile
- <<'eof' >${tmp_mkf}
4320 @echo "python_MODLIBS='$(MODLIBS)'"
4321 @echo "python_LIBS='$(LIBS)'"
4322 @echo "python_SYSLIBS='$(SYSLIBS)'"
4323 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4325 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4327 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4328 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4329 vi_cv_path_python_plibs
="-framework Python"
4331 if test "${vi_cv_var_python_version}" = "1.4"; then
4332 vi_cv_path_python_plibs
="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4334 vi_cv_path_python_plibs
="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4336 vi_cv_path_python_plibs
="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4337 vi_cv_path_python_plibs
=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4343 PYTHON_LIBS
="${vi_cv_path_python_plibs}"
4344 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4345 PYTHON_CFLAGS
="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4347 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}"
4349 PYTHON_SRC
="if_python.c"
4350 if test "x$MACOSX" = "xyes"; then
4351 PYTHON_OBJ
="objects/if_python.o"
4353 PYTHON_OBJ
="objects/if_python.o objects/py_config.o"
4355 if test "${vi_cv_var_python_version}" = "1.4"; then
4356 PYTHON_OBJ
="$PYTHON_OBJ objects/py_getpath.o"
4358 PYTHON_GETPATH_CFLAGS
="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4360 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4361 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4364 if test "`(uname) 2>/dev/null`" != Darwin
; then
4365 test "$GCC" = yes && threadsafe_flag
="-pthread"
4366 if test "`(uname) 2>/dev/null`" = FreeBSD
; then
4367 threadsafe_flag
="-D_THREAD_SAFE"
4368 thread_lib
="-pthread"
4372 if test -n "$threadsafe_flag"; then
4374 CFLAGS
="$CFLAGS $threadsafe_flag"
4375 LIBS
="$LIBS $thread_lib"
4376 cat >conftest.
$ac_ext <<_ACEOF
4379 cat confdefs.h
>>conftest.
$ac_ext
4380 cat >>conftest.
$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4391 rm -f conftest.
$ac_objext conftest
$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1
>conftest.err
4397 cat conftest.err
>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try
='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try
='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414 echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.
$ac_ext >&5
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; LIBS
=$libs_save_old
4423 rm -f conftest.err conftest.
$ac_objext \
4424 conftest
$ac_exeext conftest.
$ac_ext
4427 echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4431 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4432 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4435 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
4436 LIBS
="$LIBS $PYTHON_LIBS"
4437 cat >conftest.
$ac_ext <<_ACEOF
4440 cat confdefs.h
>>conftest.
$ac_ext
4441 cat >>conftest.
$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4452 rm -f conftest.
$ac_objext conftest
$ac_exeext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454 (eval $ac_link) 2>conftest.er1
4456 grep -v '^ *+' conftest.er1
>conftest.err
4458 cat conftest.err
>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try
='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try
='test -s conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6; python_ok
=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.
$ac_ext >&5
4480 echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4481 echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok
=no
4483 rm -f conftest.err conftest.
$ac_objext \
4484 conftest
$ac_exeext conftest.
$ac_ext
4487 if test $python_ok = yes; then
4488 cat >>confdefs.h
<<\_ACEOF
4489 #define FEAT_PYTHON 1
4502 echo "$as_me:$LINENO: result: too old" >&5
4503 echo "${ECHO_T}too old" >&6
4514 echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4515 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4516 # Check whether --enable-tclinterp or --disable-tclinterp was given.
4517 if test "${enable_tclinterp+set}" = set; then
4518 enableval
="$enable_tclinterp"
4521 enable_tclinterp
="no"
4523 echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4524 echo "${ECHO_T}$enable_tclinterp" >&6
4526 if test "$enable_tclinterp" = "yes"; then
4528 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4529 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4531 # Check whether --with-tclsh or --without-tclsh was given.
4532 if test "${with_tclsh+set}" = set; then
4533 withval
="$with_tclsh"
4534 tclsh_name
="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4535 echo "${ECHO_T}$tclsh_name" >&6
4537 tclsh_name
="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4540 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4541 set dummy
$tclsh_name; ac_word
=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 case $vi_cv_path_tcl in
4549 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
4552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir
=.
4557 for ac_exec_ext
in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
4571 if test -n "$vi_cv_path_tcl"; then
4572 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4573 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4575 echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6
4581 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
4582 tclsh_name
="tclsh8.4"
4583 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4584 set dummy
$tclsh_name; ac_word
=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 case $vi_cv_path_tcl in
4592 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
4595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir
=.
4600 for ac_exec_ext
in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
4614 if test -n "$vi_cv_path_tcl"; then
4615 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4616 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4623 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4624 tclsh_name
="tclsh8.2"
4625 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4626 set dummy
$tclsh_name; ac_word
=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 case $vi_cv_path_tcl in
4634 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
4637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir
=.
4642 for ac_exec_ext
in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
4656 if test -n "$vi_cv_path_tcl"; then
4657 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4658 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4665 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4666 tclsh_name
="tclsh8.0"
4667 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4668 set dummy
$tclsh_name; ac_word
=$2
4669 echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 case $vi_cv_path_tcl in
4676 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
4679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4683 test -z "$as_dir" && as_dir
=.
4684 for ac_exec_ext
in '' $ac_executable_extensions; do
4685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
4687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
4698 if test -n "$vi_cv_path_tcl"; then
4699 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4700 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4707 if test "X$vi_cv_path_tcl" = "X"; then
4709 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4710 set dummy
$tclsh_name; ac_word
=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 case $vi_cv_path_tcl in
4718 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
4740 if test -n "$vi_cv_path_tcl"; then
4741 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4742 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4744 echo "$as_me:$LINENO: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4749 if test "X$vi_cv_path_tcl" != "X"; then
4750 echo "$as_me:$LINENO: checking Tcl version" >&5
4751 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4752 if echo 'exit [expr [info tclversion] < 8.0]' |
$vi_cv_path_tcl - ; then
4753 tclver
=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4754 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4755 echo "${ECHO_T}$tclver - OK" >&6;
4756 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 -`
4758 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4759 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4760 if test "x$MACOSX" != "xyes"; then
4761 tclinc
="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include /usr/include/tcl$tclver"
4763 tclinc
="/System/Library/Frameworks/Tcl.framework/Headers"
4766 for try
in $tclinc; do
4767 if test -f "$try/tcl.h"; then
4768 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4769 echo "${ECHO_T}$try/tcl.h" >&6
4774 if test -z "$TCL_INC"; then
4775 echo "$as_me:$LINENO: result: <not found>" >&5
4776 echo "${ECHO_T}<not found>" >&6
4779 if test -z "$SKIP_TCL"; then
4780 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4781 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4782 if test "x$MACOSX" != "xyes"; then
4783 tclcnf
=`echo $tclinc | sed s/include/lib/g`
4784 tclcnf
="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
4786 tclcnf
="/System/Library/Frameworks/Tcl.framework"
4788 for try
in $tclcnf; do
4789 if test -f $try/tclConfig.sh
; then
4790 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4791 echo "${ECHO_T}$try/tclConfig.sh" >&6
4793 TCL_LIBS
=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4794 TCL_DEFS
=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
4798 if test -z "$TCL_LIBS"; then
4799 echo "$as_me:$LINENO: result: <not found>" >&5
4800 echo "${ECHO_T}<not found>" >&6
4801 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4802 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4803 tcllib
=`echo $tclinc | sed s/include/lib/g`
4804 tcllib
="$tcllib `echo $tclinc | sed s/include/lib64/g`"
4805 for ext
in .so .a
; do
4806 for ver
in "" $tclver ; do
4807 for try
in $tcllib ; do
4809 if test -f $try/lib
$trylib ; then
4810 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4811 echo "${ECHO_T}$try/lib$trylib" >&6
4812 TCL_LIBS
="-L$try -ltcl$ver -ldl -lm"
4813 if test "`(uname) 2>/dev/null`" = SunOS
&&
4814 uname
-r |
grep '^5' >/dev
/null
; then
4815 TCL_LIBS
="$TCL_LIBS -R $try"
4822 if test -z "$TCL_LIBS"; then
4823 echo "$as_me:$LINENO: result: <not found>" >&5
4824 echo "${ECHO_T}<not found>" >&6
4828 if test -z "$SKIP_TCL"; then
4829 cat >>confdefs.h
<<\_ACEOF
4834 TCL_OBJ
=objects
/if_tcl.o
4836 TCL_CFLAGS
="-I$TCL_INC $TCL_DEFS"
4840 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4841 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4851 echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4852 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4853 # Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4854 if test "${enable_rubyinterp+set}" = set; then
4855 enableval
="$enable_rubyinterp"
4858 enable_rubyinterp
="no"
4860 echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4861 echo "${ECHO_T}$enable_rubyinterp" >&6
4862 if test "$enable_rubyinterp" = "yes"; then
4864 # Extract the first word of "ruby", so it can be a program name with args.
4865 set dummy ruby
; ac_word
=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 case $vi_cv_path_ruby in
4873 ac_cv_path_vi_cv_path_ruby
="$vi_cv_path_ruby" # Let the user override the test with a path.
4876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir
=.
4881 for ac_exec_ext
in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_path_vi_cv_path_ruby
="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 vi_cv_path_ruby
=$ac_cv_path_vi_cv_path_ruby
4895 if test -n "$vi_cv_path_ruby"; then
4896 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4897 echo "${ECHO_T}$vi_cv_path_ruby" >&6
4899 echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4903 if test "X$vi_cv_path_ruby" != "X"; then
4904 echo "$as_me:$LINENO: checking Ruby version" >&5
4905 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4906 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev
/null
2>/dev
/null
; then
4907 echo "$as_me:$LINENO: result: OK" >&5
4908 echo "${ECHO_T}OK" >&6
4909 echo "$as_me:$LINENO: checking Ruby header files" >&5
4910 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4911 rubyhdrdir
=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4912 if test "X$rubyhdrdir" != "X"; then
4913 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4914 echo "${ECHO_T}$rubyhdrdir" >&6
4915 RUBY_CFLAGS
="-I$rubyhdrdir"
4916 rubylibs
=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4917 if test "X$rubylibs" != "X"; then
4918 RUBY_LIBS
="$rubylibs"
4920 librubyarg
=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4921 if test -f "$rubyhdrdir/$librubyarg"; then
4922 librubyarg
="$rubyhdrdir/$librubyarg"
4924 rubylibdir
=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4925 if test -f "$rubylibdir/$librubyarg"; then
4926 librubyarg
="$rubylibdir/$librubyarg"
4927 elif test "$librubyarg" = "libruby.a"; then
4930 librubyarg
=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4934 if test "X$librubyarg" != "X"; then
4935 RUBY_LIBS
="$librubyarg $RUBY_LIBS"
4937 rubyldflags
=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4938 if test "X$rubyldflags" != "X"; then
4939 LDFLAGS
="$rubyldflags $LDFLAGS"
4941 RUBY_SRC
="if_ruby.c"
4942 RUBY_OBJ
="objects/if_ruby.o"
4943 RUBY_PRO
="if_ruby.pro"
4944 cat >>confdefs.h
<<\_ACEOF
4949 echo "$as_me:$LINENO: result: not found" >&5
4950 echo "${ECHO_T}not found" >&6
4953 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4954 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4964 echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4965 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4966 # Check whether --enable-cscope or --disable-cscope was given.
4967 if test "${enable_cscope+set}" = set; then
4968 enableval
="$enable_cscope"
4973 echo "$as_me:$LINENO: result: $enable_cscope" >&5
4974 echo "${ECHO_T}$enable_cscope" >&6
4975 if test "$enable_cscope" = "yes"; then
4976 cat >>confdefs.h
<<\_ACEOF
4977 #define FEAT_CSCOPE 1
4982 echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4983 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4984 # Check whether --enable-workshop or --disable-workshop was given.
4985 if test "${enable_workshop+set}" = set; then
4986 enableval
="$enable_workshop"
4989 enable_workshop
="no"
4991 echo "$as_me:$LINENO: result: $enable_workshop" >&5
4992 echo "${ECHO_T}$enable_workshop" >&6
4993 if test "$enable_workshop" = "yes"; then
4994 cat >>confdefs.h
<<\_ACEOF
4995 #define FEAT_SUN_WORKSHOP 1
4998 WORKSHOP_SRC
="workshop.c integration.c"
5000 WORKSHOP_OBJ
="objects/workshop.o objects/integration.o"
5002 if test "${enable_gui-xxx}" = xxx
; then
5007 echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5008 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
5009 # Check whether --enable-netbeans or --disable-netbeans was given.
5010 if test "${enable_netbeans+set}" = set; then
5011 enableval
="$enable_netbeans"
5014 enable_netbeans
="yes"
5016 if test "$enable_netbeans" = "yes"; then
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5020 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5021 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5022 if test "${ac_cv_lib_socket_socket+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 ac_check_lib_save_LIBS
=$LIBS
5026 LIBS
="-lsocket $LIBS"
5027 cat >conftest.
$ac_ext <<_ACEOF
5030 cat confdefs.h
>>conftest.
$ac_ext
5031 cat >>conftest.
$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5034 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5049 rm -f conftest.
$ac_objext conftest
$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>conftest.er1
5053 grep -v '^ *+' conftest.er1
>conftest.err
5055 cat conftest.err
>&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try
='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try
='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_lib_socket_socket
=yes
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5076 ac_cv_lib_socket_socket
=no
5078 rm -f conftest.err conftest.
$ac_objext \
5079 conftest
$ac_exeext conftest.
$ac_ext
5080 LIBS
=$ac_check_lib_save_LIBS
5082 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5083 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5084 if test $ac_cv_lib_socket_socket = yes; then
5085 cat >>confdefs.h
<<_ACEOF
5086 #define HAVE_LIBSOCKET 1
5089 LIBS
="-lsocket $LIBS"
5094 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5095 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5096 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 ac_check_lib_save_LIBS
=$LIBS
5101 cat >conftest.
$ac_ext <<_ACEOF
5104 cat confdefs.h
>>conftest.
$ac_ext
5105 cat >>conftest.
$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5108 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5114 char gethostbyname ();
5123 rm -f conftest.
$ac_objext conftest
$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1
>conftest.err
5129 cat conftest.err
>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try
='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try
='test -s conftest$ac_exeext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_lib_nsl_gethostbyname
=yes
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.
$ac_ext >&5
5150 ac_cv_lib_nsl_gethostbyname
=no
5152 rm -f conftest.err conftest.
$ac_objext \
5153 conftest
$ac_exeext conftest.
$ac_ext
5154 LIBS
=$ac_check_lib_save_LIBS
5156 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5157 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5158 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5159 cat >>confdefs.h
<<_ACEOF
5160 #define HAVE_LIBNSL 1
5167 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5168 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5169 cat >conftest.
$ac_ext <<_ACEOF
5172 cat confdefs.h
>>conftest.
$ac_ext
5173 cat >>conftest.
$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5181 #include <netinet/in.h>
5183 #include <sys/types.h>
5184 #include <sys/socket.h>
5185 /* Check bitfields */
5187 unsigned int initDone:1;
5195 /* Check creating a socket. */
5196 struct sockaddr_in server;
5197 (void)socket(AF_INET, SOCK_STREAM, 0);
5199 (void)gethostbyname("microsoft.com");
5200 if (errno == ECONNREFUSED)
5201 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5207 rm -f conftest.
$ac_objext conftest
$ac_exeext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>conftest.er1
5211 grep -v '^ *+' conftest.er1
>conftest.err
5213 cat conftest.err
>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try
='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try
='test -s conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.
$ac_ext >&5
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; enable_netbeans
="no"
5238 rm -f conftest.err conftest.
$ac_objext \
5239 conftest
$ac_exeext conftest.
$ac_ext
5241 echo "$as_me:$LINENO: result: yes" >&5
5242 echo "${ECHO_T}yes" >&6
5244 if test "$enable_netbeans" = "yes"; then
5245 cat >>confdefs.h
<<\_ACEOF
5246 #define FEAT_NETBEANS_INTG 1
5249 NETBEANS_SRC
="netbeans.c"
5251 NETBEANS_OBJ
="objects/netbeans.o"
5255 echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5256 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5257 # Check whether --enable-sniff or --disable-sniff was given.
5258 if test "${enable_sniff+set}" = set; then
5259 enableval
="$enable_sniff"
5264 echo "$as_me:$LINENO: result: $enable_sniff" >&5
5265 echo "${ECHO_T}$enable_sniff" >&6
5266 if test "$enable_sniff" = "yes"; then
5267 cat >>confdefs.h
<<\_ACEOF
5268 #define FEAT_SNIFF 1
5271 SNIFF_SRC
="if_sniff.c"
5273 SNIFF_OBJ
="objects/if_sniff.o"
5277 echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5278 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5279 # Check whether --enable-multibyte or --disable-multibyte was given.
5280 if test "${enable_multibyte+set}" = set; then
5281 enableval
="$enable_multibyte"
5284 enable_multibyte
="no"
5286 echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5287 echo "${ECHO_T}$enable_multibyte" >&6
5288 if test "$enable_multibyte" = "yes"; then
5289 cat >>confdefs.h
<<\_ACEOF
5290 #define FEAT_MBYTE 1
5295 echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5296 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5297 # Check whether --enable-hangulinput or --disable-hangulinput was given.
5298 if test "${enable_hangulinput+set}" = set; then
5299 enableval
="$enable_hangulinput"
5302 enable_hangulinput
="no"
5304 echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5305 echo "${ECHO_T}$enable_hangulinput" >&6
5307 echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5308 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5309 # Check whether --enable-xim or --disable-xim was given.
5310 if test "${enable_xim+set}" = set; then
5311 enableval
="$enable_xim"
5312 echo "$as_me:$LINENO: result: $enable_xim" >&5
5313 echo "${ECHO_T}$enable_xim" >&6
5315 enable_xim
="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5316 echo "${ECHO_T}defaulting to auto" >&6
5319 echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5320 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5321 # Check whether --enable-fontset or --disable-fontset was given.
5322 if test "${enable_fontset+set}" = set; then
5323 enableval
="$enable_fontset"
5328 echo "$as_me:$LINENO: result: $enable_fontset" >&5
5329 echo "${ECHO_T}$enable_fontset" >&6
5331 test -z "$with_x" && with_x
=yes
5332 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
5333 if test "$with_x" = no
; then
5334 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5335 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5338 # Extract the first word of "xmkmf", so it can be a program name with args.
5339 set dummy xmkmf
; ac_word
=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_xmkmfpath+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
5350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir
=.
5355 for ac_exec_ext
in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 xmkmfpath
=$ac_cv_path_xmkmfpath
5369 if test -n "$xmkmfpath"; then
5370 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5371 echo "${ECHO_T}$xmkmfpath" >&6
5373 echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5378 echo "$as_me:$LINENO: checking for X" >&5
5379 echo $ECHO_N "checking for X... $ECHO_C" >&6
5382 # Check whether --with-x or --without-x was given.
5383 if test "${with_x+set}" = set; then
5387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5388 if test "x$with_x" = xno
; then
5389 # The user explicitly disabled X.
5392 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5393 # Both variables are already set.
5396 if test "${ac_cv_have_x+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 # One or both of the vars are not set, and there is no cached value.
5400 ac_x_includes
=no ac_x_libraries
=no
5402 if mkdir conftest.dir
; then
5404 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5405 cat >Imakefile
<<'_ACEOF'
5407 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5409 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5411 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension
in a so sl
; do
5414 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5415 test -f $ac_im_libdir/libX11.
$ac_extension; then
5416 ac_im_usrlibdir
=$ac_im_libdir; break
5419 # Screen out bogus values from the imake configuration. They are
5420 # bogus both because they are the default anyway, and because
5421 # using them would break gcc on systems where it needs fixed includes.
5422 case $ac_im_incroot in
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5426 case $ac_im_usrlibdir in
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5435 # Standard set of common directories for X headers.
5436 # Check X11 before X11Rn because it is often a symlink to the current release.
5448 /usr/local/X11/include
5449 /usr/local/X11R6/include
5450 /usr/local/X11R5/include
5451 /usr/local/X11R4/include
5453 /usr/local/include/X11
5454 /usr/local/include/X11R6
5455 /usr/local/include/X11R5
5456 /usr/local/include/X11R4
5460 /usr/XFree86/include/X11
5464 /usr/unsupported/include
5466 /usr/local/x11r5/include
5467 /usr/lpp/Xamples/include
5469 /usr/openwin/include
5470 /usr/openwin/share/include'
5472 if test "$ac_x_includes" = no
; then
5473 # Guess where to find include files, by looking for Intrinsic.h.
5474 # First, try using that file with no special directory specified.
5475 cat >conftest.
$ac_ext <<_ACEOF
5478 cat confdefs.h
>>conftest.
$ac_ext
5479 cat >>conftest.
$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <X11/Intrinsic.h>
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5486 grep -v '^ *+' conftest.er1
>conftest.err
5488 cat conftest.err
>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev
/null
; then
5491 if test -s conftest.err
; then
5492 ac_cpp_err
=$ac_c_preproc_warn_flag
5493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5500 if test -z "$ac_cpp_err"; then
5501 # We can compile using X headers with no special include directory.
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 for ac_dir
in $ac_x_header_dirs; do
5508 if test -r "$ac_dir/X11/Intrinsic.h"; then
5509 ac_x_includes
=$ac_dir
5514 rm -f conftest.err conftest.
$ac_ext
5515 fi # $ac_x_includes = no
5517 if test "$ac_x_libraries" = no
; then
5518 # Check for the libraries.
5519 # See if we find them without any special options.
5520 # Don't add to $LIBS permanently.
5523 cat >conftest.
$ac_ext <<_ACEOF
5526 cat confdefs.h
>>conftest.
$ac_ext
5527 cat >>conftest.
$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 #include <X11/Intrinsic.h>
5538 rm -f conftest.
$ac_objext conftest
$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>conftest.er1
5542 grep -v '^ *+' conftest.er1
>conftest.err
5544 cat conftest.err
>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try
='test -z "$ac_c_werror_flag"
5548 || test ! -s conftest.err'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; } &&
5554 { ac_try
='test -s conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5561 # We can link X programs with no special library path.
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.
$ac_ext >&5
5568 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5570 # Don't even attempt the hair of trying to link an X program!
5571 for ac_extension
in a so sl
; do
5572 if test -r $ac_dir/libXt.
$ac_extension; then
5573 ac_x_libraries
=$ac_dir
5579 rm -f conftest.err conftest.
$ac_objext \
5580 conftest
$ac_exeext conftest.
$ac_ext
5581 fi # $ac_x_libraries = no
5583 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5584 # Didn't find X anywhere. Cache the known absence of X.
5585 ac_cv_have_x
="have_x=no"
5587 # Record where we found X for the cache.
5588 ac_cv_have_x
="have_x=yes \
5589 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5594 eval "$ac_cv_have_x"
5597 if test "$have_x" != yes; then
5598 echo "$as_me:$LINENO: result: $have_x" >&5
5599 echo "${ECHO_T}$have_x" >&6
5602 # If each of the values was on the command line, it overrides each guess.
5603 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5604 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5605 # Update the cache value to reflect the command line values.
5606 ac_cv_have_x
="have_x=yes \
5607 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5608 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5609 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5612 if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it.
5615 cat >>confdefs.h
<<\_ACEOF
5616 #define X_DISPLAY_MISSING 1
5619 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
5621 if test -n "$x_includes"; then
5622 X_CFLAGS
="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then
5627 X_LIBS
="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . .
5630 case `(uname -sr) 2>/dev/null` in
5632 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5633 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5634 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
5635 cat >conftest.
$ac_ext <<_ACEOF
5638 cat confdefs.h
>>conftest.
$ac_ext
5639 cat >>conftest.
$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5650 rm -f conftest.
$ac_objext conftest
$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>conftest.er1
5654 grep -v '^ *+' conftest.er1
>conftest.err
5656 cat conftest.err
>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try
='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try
='test -s conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5679 rm -f conftest.err conftest.
$ac_objext \
5680 conftest
$ac_exeext conftest.
$ac_ext
5681 if test $ac_R_nospace = yes; then
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5684 X_LIBS
="$X_LIBS -R$x_libraries"
5686 LIBS
="$ac_xsave_LIBS -R $x_libraries"
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5702 rm -f conftest.
$ac_objext conftest
$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5706 grep -v '^ *+' conftest.er1
>conftest.err
5708 cat conftest.err
>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try
='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try
='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.
$ac_ext >&5
5731 rm -f conftest.err conftest.
$ac_objext \
5732 conftest
$ac_exeext conftest.
$ac_ext
5733 if test $ac_R_space = yes; then
5734 echo "$as_me:$LINENO: result: yes" >&5
5735 echo "${ECHO_T}yes" >&6
5736 X_LIBS
="$X_LIBS -R $x_libraries"
5738 echo "$as_me:$LINENO: result: neither works" >&5
5739 echo "${ECHO_T}neither works" >&6
5746 # Check for system-dependent libraries X programs must link with.
5747 # Do this before checking for the system-independent R6 libraries
5748 # (-lICE), since we may need -lsocket or whatever for X linking.
5750 if test "$ISC" = yes; then
5751 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
5753 # Martyn Johnson says this is needed for Ultrix, if the X
5754 # libraries were built with DECnet support. And Karl Berry says
5755 # the Alpha needs dnet_stub (dnet does not exist).
5756 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5770 char XOpenDisplay ();
5779 rm -f conftest.
$ac_objext conftest
$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1
>conftest.err
5785 cat conftest.err
>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try
='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try
='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.
$ac_ext >&5
5806 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5807 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5808 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_check_lib_save_LIBS
=$LIBS
5813 cat >conftest.
$ac_ext <<_ACEOF
5816 cat confdefs.h
>>conftest.
$ac_ext
5817 cat >>conftest.
$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5820 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5835 rm -f conftest.
$ac_objext conftest
$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>conftest.er1
5839 grep -v '^ *+' conftest.er1
>conftest.err
5841 cat conftest.err
>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try
='test -z "$ac_c_werror_flag"
5845 || test ! -s conftest.err'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try
='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_lib_dnet_dnet_ntoa
=yes
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5862 ac_cv_lib_dnet_dnet_ntoa
=no
5864 rm -f conftest.err conftest.
$ac_objext \
5865 conftest
$ac_exeext conftest.
$ac_ext
5866 LIBS
=$ac_check_lib_save_LIBS
5868 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5869 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5870 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5871 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
5874 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
5875 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5876 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5877 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 ac_check_lib_save_LIBS
=$LIBS
5881 LIBS
="-ldnet_stub $LIBS"
5882 cat >conftest.
$ac_ext <<_ACEOF
5885 cat confdefs.h
>>conftest.
$ac_ext
5886 cat >>conftest.
$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5889 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5904 rm -f conftest.
$ac_objext conftest
$ac_exeext
5905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906 (eval $ac_link) 2>conftest.er1
5908 grep -v '^ *+' conftest.er1
>conftest.err
5910 cat conftest.err
>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try
='test -z "$ac_c_werror_flag"
5914 || test ! -s conftest.err'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; } &&
5920 { ac_try
='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.
$ac_ext >&5
5931 ac_cv_lib_dnet_stub_dnet_ntoa
=no
5933 rm -f conftest.err conftest.
$ac_objext \
5934 conftest
$ac_exeext conftest.
$ac_ext
5935 LIBS
=$ac_check_lib_save_LIBS
5937 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5938 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5939 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5940 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
5945 rm -f conftest.err conftest.
$ac_objext \
5946 conftest
$ac_exeext conftest.
$ac_ext
5947 LIBS
="$ac_xsave_LIBS"
5949 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5950 # to get the SysV transport functions.
5951 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5953 # The nsl library prevents programs from opening the X display
5954 # on Irix 5.2, according to T.E. Dickey.
5955 # The functions gethostbyname, getservbyname, and inet_addr are
5956 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5957 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5958 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5959 if test "${ac_cv_func_gethostbyname+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5970 #define gethostbyname innocuous_gethostbyname
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char gethostbyname (); below.
5974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 <limits.h> exists even on freestanding compilers. */
5978 # include <limits.h>
5980 # include <assert.h>
5983 #undef gethostbyname
5985 /* Override any gcc2 internal prototype to avoid an error. */
5990 /* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5992 char gethostbyname ();
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5999 char (*f) () = gethostbyname;
6008 return f != gethostbyname;
6013 rm -f conftest.
$ac_objext conftest
$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try
='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try
='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_func_gethostbyname
=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6040 ac_cv_func_gethostbyname
=no
6042 rm -f conftest.err conftest.
$ac_objext \
6043 conftest
$ac_exeext conftest.
$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6046 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6048 if test $ac_cv_func_gethostbyname = no
; then
6049 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6050 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6051 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_check_lib_save_LIBS
=$LIBS
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6069 char gethostbyname ();
6078 rm -f conftest.
$ac_objext conftest
$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try
='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_lib_nsl_gethostbyname
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6105 ac_cv_lib_nsl_gethostbyname
=no
6107 rm -f conftest.err conftest.
$ac_objext \
6108 conftest
$ac_exeext conftest.
$ac_ext
6109 LIBS
=$ac_check_lib_save_LIBS
6111 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6112 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6113 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6114 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
6117 if test $ac_cv_lib_nsl_gethostbyname = no
; then
6118 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6119 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6120 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 ac_check_lib_save_LIBS
=$LIBS
6125 cat >conftest.
$ac_ext <<_ACEOF
6128 cat confdefs.h
>>conftest.
$ac_ext
6129 cat >>conftest.
$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6138 char gethostbyname ();
6147 rm -f conftest.
$ac_objext conftest
$ac_exeext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1
>conftest.err
6153 cat conftest.err
>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try
='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try
='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_lib_bsd_gethostbyname
=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.
$ac_ext >&5
6174 ac_cv_lib_bsd_gethostbyname
=no
6176 rm -f conftest.err conftest.
$ac_objext \
6177 conftest
$ac_exeext conftest.
$ac_ext
6178 LIBS
=$ac_check_lib_save_LIBS
6180 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6181 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6182 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6183 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
6189 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6190 # socket/setsockopt and other routines are undefined under SCO ODT
6191 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6192 # on later versions), says Simon Leinen: it contains gethostby*
6193 # variants that don't use the name server (or something). -lsocket
6194 # must be given before -lnsl if both are needed. We assume that
6195 # if connect needs -lnsl, so does gethostbyname.
6196 echo "$as_me:$LINENO: checking for connect" >&5
6197 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6198 if test "${ac_cv_func_connect+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 cat >conftest.
$ac_ext <<_ACEOF
6204 cat confdefs.h
>>conftest.
$ac_ext
6205 cat >>conftest.
$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6209 #define connect innocuous_connect
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char connect (); below.
6213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214 <limits.h> exists even on freestanding compilers. */
6217 # include <limits.h>
6219 # include <assert.h>
6224 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined (__stub_connect) || defined (__stub___connect)
6238 char (*f) () = connect;
6247 return f != connect;
6252 rm -f conftest.
$ac_objext conftest
$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254 (eval $ac_link) 2>conftest.er1
6256 grep -v '^ *+' conftest.er1
>conftest.err
6258 cat conftest.err
>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try
='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try
='test -s conftest$ac_exeext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_func_connect
=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 ac_cv_func_connect
=no
6281 rm -f conftest.err conftest.
$ac_objext \
6282 conftest
$ac_exeext conftest.
$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6285 echo "${ECHO_T}$ac_cv_func_connect" >&6
6287 if test $ac_cv_func_connect = no
; then
6288 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6289 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6290 if test "${ac_cv_lib_socket_connect+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_check_lib_save_LIBS
=$LIBS
6294 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6302 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6317 rm -f conftest.
$ac_objext conftest
$ac_exeext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6319 (eval $ac_link) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1
>conftest.err
6323 cat conftest.err
>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try
='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try
='test -s conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_lib_socket_connect
=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.
$ac_ext >&5
6344 ac_cv_lib_socket_connect
=no
6346 rm -f conftest.err conftest.
$ac_objext \
6347 conftest
$ac_exeext conftest.
$ac_ext
6348 LIBS
=$ac_check_lib_save_LIBS
6350 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6351 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6352 if test $ac_cv_lib_socket_connect = yes; then
6353 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
6358 # Guillermo Gomez says -lposix is necessary on A/UX.
6359 echo "$as_me:$LINENO: checking for remove" >&5
6360 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6361 if test "${ac_cv_func_remove+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6372 #define remove innocuous_remove
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char remove (); below.
6376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 <limits.h> exists even on freestanding compilers. */
6380 # include <limits.h>
6382 # include <assert.h>
6387 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_remove) || defined (__stub___remove)
6401 char (*f) () = remove;
6415 rm -f conftest.
$ac_objext conftest
$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1
>conftest.err
6421 cat conftest.err
>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try
='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try
='test -s conftest$ac_exeext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_cv_func_remove
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 ac_cv_func_remove
=no
6444 rm -f conftest.err conftest.
$ac_objext \
6445 conftest
$ac_exeext conftest.
$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6448 echo "${ECHO_T}$ac_cv_func_remove" >&6
6450 if test $ac_cv_func_remove = no
; then
6451 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6452 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6453 if test "${ac_cv_lib_posix_remove+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 ac_check_lib_save_LIBS
=$LIBS
6457 LIBS
="-lposix $LIBS"
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6480 rm -f conftest.
$ac_objext conftest
$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1
>conftest.err
6486 cat conftest.err
>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try
='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try
='test -s conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_lib_posix_remove
=yes
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.
$ac_ext >&5
6507 ac_cv_lib_posix_remove
=no
6509 rm -f conftest.err conftest.
$ac_objext \
6510 conftest
$ac_exeext conftest.
$ac_ext
6511 LIBS
=$ac_check_lib_save_LIBS
6513 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6514 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6515 if test $ac_cv_lib_posix_remove = yes; then
6516 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
6521 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6522 echo "$as_me:$LINENO: checking for shmat" >&5
6523 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6524 if test "${ac_cv_func_shmat+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 cat >conftest.
$ac_ext <<_ACEOF
6530 cat confdefs.h
>>conftest.
$ac_ext
6531 cat >>conftest.
$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6535 #define shmat innocuous_shmat
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char shmat (); below.
6539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6540 <limits.h> exists even on freestanding compilers. */
6543 # include <limits.h>
6545 # include <assert.h>
6550 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6558 /* The GNU C library defines this for functions which it implements
6559 to always fail with ENOSYS. Some functions are actually named
6560 something starting with __ and the normal name is an alias. */
6561 #if defined (__stub_shmat) || defined (__stub___shmat)
6564 char (*f) () = shmat;
6578 rm -f conftest.
$ac_objext conftest
$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>conftest.er1
6582 grep -v '^ *+' conftest.er1
>conftest.err
6584 cat conftest.err
>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try
='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try
='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_func_shmat
=yes
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.
$ac_ext >&5
6607 rm -f conftest.err conftest.
$ac_objext \
6608 conftest
$ac_exeext conftest.
$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6611 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6613 if test $ac_cv_func_shmat = no
; then
6614 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6615 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6616 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 ac_check_lib_save_LIBS
=$LIBS
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6628 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6643 rm -f conftest.
$ac_objext conftest
$ac_exeext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645 (eval $ac_link) 2>conftest.er1
6647 grep -v '^ *+' conftest.er1
>conftest.err
6649 cat conftest.err
>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try
='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try
='test -s conftest$ac_exeext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_lib_ipc_shmat
=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.
$ac_ext >&5
6670 ac_cv_lib_ipc_shmat
=no
6672 rm -f conftest.err conftest.
$ac_objext \
6673 conftest
$ac_exeext conftest.
$ac_ext
6674 LIBS
=$ac_check_lib_save_LIBS
6676 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6677 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6678 if test $ac_cv_lib_ipc_shmat = yes; then
6679 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
6685 # Check for libraries that X11R6 Xt/Xaw programs need.
6686 ac_save_LDFLAGS
=$LDFLAGS
6687 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
6688 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6689 # check for ICE first), but we must link in the order -lSM -lICE or
6690 # we get undefined symbols. So assume we have SM if we have ICE.
6691 # These have to be linked with before -lX11, unlike the other
6692 # libraries we check for below, so use a different variable.
6693 # John Interrante, Karl Berry
6694 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6695 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6696 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_check_lib_save_LIBS
=$LIBS
6700 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
6701 cat >conftest.
$ac_ext <<_ACEOF
6704 cat confdefs.h
>>conftest.
$ac_ext
6705 cat >>conftest.
$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6708 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6714 char IceConnectionNumber ();
6718 IceConnectionNumber ();
6723 rm -f conftest.
$ac_objext conftest
$ac_exeext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>conftest.er1
6727 grep -v '^ *+' conftest.er1
>conftest.err
6729 cat conftest.err
>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try
='test -z "$ac_c_werror_flag"
6733 || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try
='test -s conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_cv_lib_ICE_IceConnectionNumber
=yes
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.
$ac_ext >&5
6750 ac_cv_lib_ICE_IceConnectionNumber
=no
6752 rm -f conftest.err conftest.
$ac_objext \
6753 conftest
$ac_exeext conftest.
$ac_ext
6754 LIBS
=$ac_check_lib_save_LIBS
6756 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6757 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6758 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6759 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
6762 LDFLAGS
=$ac_save_LDFLAGS
6767 if test "$OS390Unix" = "yes"; then
6768 CFLAGS
="$CFLAGS -W c,dll"
6769 LDFLAGS
="$LDFLAGS -W l,dll"
6770 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6774 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6775 x_libraries
=`echo "$x_includes" | sed s/include/lib/`
6776 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6777 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6778 X_LIBS
="$X_LIBS -L$x_libraries"
6779 if test "`(uname) 2>/dev/null`" = SunOS
&&
6780 uname
-r |
grep '^5' >/dev
/null
; then
6781 X_LIBS
="$X_LIBS -R $x_libraries"
6785 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6786 x_includes
=`echo "$x_libraries" | sed s/lib/include/`
6787 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6788 echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6789 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6792 X_CFLAGS
="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6793 X_LIBS
="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6794 X_LIBS
="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6797 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6798 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6800 CFLAGS
="$CFLAGS $X_CFLAGS"
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <X11/Xlib.h>
6816 rm -f conftest.
$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6820 grep -v '^ *+' conftest.er1
>conftest.err
6822 cat conftest.err
>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try
='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try
='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 echo "$as_me:$LINENO: result: yes" >&5
6839 echo "${ECHO_T}yes" >&6
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.
$ac_ext >&5
6844 echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; no_x
=yes
6847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 if test "${no_x-no}" = yes; then
6853 cat >>confdefs.h
<<\_ACEOF
6860 ac_save_LDFLAGS
="$LDFLAGS"
6861 LDFLAGS
="-L$x_libraries $LDFLAGS"
6863 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6864 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6865 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_check_lib_save_LIBS
=$LIBS
6869 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6870 cat >conftest.
$ac_ext <<_ACEOF
6873 cat confdefs.h
>>conftest.
$ac_ext
6874 cat >>conftest.
$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char _XdmcpAuthDoIt ();
6892 rm -f conftest.
$ac_objext conftest
$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>conftest.er1
6896 grep -v '^ *+' conftest.er1
>conftest.err
6898 cat conftest.err
>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try
='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try
='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_lib_Xdmcp__XdmcpAuthDoIt
=yes
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.
$ac_ext >&5
6919 ac_cv_lib_Xdmcp__XdmcpAuthDoIt
=no
6921 rm -f conftest.err conftest.
$ac_objext \
6922 conftest
$ac_exeext conftest.
$ac_ext
6923 LIBS
=$ac_check_lib_save_LIBS
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6926 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6927 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6928 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lXdmcp"
6932 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6933 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6934 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 ac_check_lib_save_LIBS
=$LIBS
6938 LIBS
="-lICE $X_EXTRA_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 gcc2 internal prototype to avoid an error. */
6950 /* We use char because int might match the return type of a gcc2
6951 builtin and then its argument prototype would still apply. */
6952 char IceOpenConnection ();
6956 IceOpenConnection ();
6961 rm -f conftest.
$ac_objext conftest
$ac_exeext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963 (eval $ac_link) 2>conftest.er1
6965 grep -v '^ *+' conftest.er1
>conftest.err
6967 cat conftest.err
>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try
='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try
='test -s conftest$ac_exeext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_cv_lib_ICE_IceOpenConnection
=yes
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.
$ac_ext >&5
6988 ac_cv_lib_ICE_IceOpenConnection
=no
6990 rm -f conftest.err conftest.
$ac_objext \
6991 conftest
$ac_exeext conftest.
$ac_ext
6992 LIBS
=$ac_check_lib_save_LIBS
6994 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6995 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6996 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6997 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7001 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7002 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7003 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
7004 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_check_lib_save_LIBS
=$LIBS
7008 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7009 cat >conftest.
$ac_ext <<_ACEOF
7012 cat confdefs.h
>>conftest.
$ac_ext
7013 cat >>conftest.
$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7016 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7022 char XpmCreatePixmapFromData ();
7026 XpmCreatePixmapFromData ();
7031 rm -f conftest.
$ac_objext conftest
$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>conftest.er1
7035 grep -v '^ *+' conftest.er1
>conftest.err
7037 cat conftest.err
>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try
='test -z "$ac_c_werror_flag"
7041 || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try
='test -s conftest$ac_exeext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.
$ac_ext >&5
7058 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=no
7060 rm -f conftest.err conftest.
$ac_objext \
7061 conftest
$ac_exeext conftest.
$ac_ext
7062 LIBS
=$ac_check_lib_save_LIBS
7064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7065 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
7066 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7067 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
7071 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7072 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
7074 CFLAGS
="$CFLAGS $X_CFLAGS -Werror"
7075 cat >conftest.
$ac_ext <<_ACEOF
7078 cat confdefs.h
>>conftest.
$ac_ext
7079 cat >>conftest.
$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 #include <X11/Xlib.h>
7090 rm -f conftest.
$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1
>conftest.err
7096 cat conftest.err
>&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try
='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try
='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.
$ac_ext >&5
7118 CFLAGS
="$CFLAGS -Wno-implicit-int"
7119 cat >conftest.
$ac_ext <<_ACEOF
7122 cat confdefs.h
>>conftest.
$ac_ext
7123 cat >>conftest.
$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 #include <X11/Xlib.h>
7134 rm -f conftest.
$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>conftest.er1
7138 grep -v '^ *+' conftest.er1
>conftest.err
7140 cat conftest.err
>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try
='test -z "$ac_c_werror_flag"
7144 || test ! -s conftest.err'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; } &&
7150 { ac_try
='test -s conftest.$ac_objext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6; cflags_save
="$cflags_save -Wno-implicit-int"
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.
$ac_ext >&5
7162 echo "$as_me:$LINENO: result: test failed" >&5
7163 echo "${ECHO_T}test failed" >&6
7166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 LDFLAGS
="$ac_save_LDFLAGS"
7177 test "x$with_x" = xno
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui
=no
7179 echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7180 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7181 # Check whether --enable-gui or --disable-gui was given.
7182 if test "${enable_gui+set}" = set; then
7183 enableval
="$enable_gui"
7189 enable_gui_canon
=`echo "_$enable_gui" | \
7190 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7202 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7204 case "$enable_gui_canon" in
7205 no
) echo "$as_me:$LINENO: result: no GUI support" >&5
7206 echo "${ECHO_T}no GUI support" >&6
7208 yes|
"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7209 echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7210 auto
) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7211 echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7212 photon
) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7213 echo "${ECHO_T}Photon GUI support" >&6 ;;
7214 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7215 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7219 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7221 case "$enable_gui_canon" in
7222 no
) echo "$as_me:$LINENO: result: no GUI support" >&5
7223 echo "${ECHO_T}no GUI support" >&6
7225 yes|
"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7226 echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7227 auto
) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7228 echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7229 carbon
) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7230 echo "${ECHO_T}Carbon GUI support" >&6 ;;
7231 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7232 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7238 case "$enable_gui_canon" in
7239 no|none
) echo "$as_me:$LINENO: result: no GUI support" >&5
7240 echo "${ECHO_T}no GUI support" >&6 ;;
7241 yes|
""|auto
) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7242 echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7250 gtk
) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7251 echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7253 gtk2
) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7254 echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7257 gnome
) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7258 echo "${ECHO_T}GNOME 1.x GUI support" >&6
7261 gnome2
) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7262 echo "${ECHO_T}GNOME 2.x GUI support" >&6
7266 motif
) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7267 echo "${ECHO_T}Motif GUI support" >&6
7269 athena
) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7270 echo "${ECHO_T}Athena GUI support" >&6
7272 nextaw
) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7273 echo "${ECHO_T}neXtaw GUI support" >&6
7275 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7276 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7281 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7282 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7283 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7284 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7285 if test "${enable_gtk_check+set}" = set; then
7286 enableval
="$enable_gtk_check"
7289 enable_gtk_check
="yes"
7291 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7292 echo "${ECHO_T}$enable_gtk_check" >&6
7293 if test "x$enable_gtk_check" = "xno"; then
7299 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7300 -a "$enable_gui_canon" != "gnome2"; then
7301 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7302 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7303 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7304 if test "${enable_gtk2_check+set}" = set; then
7305 enableval
="$enable_gtk2_check"
7308 enable_gtk2_check
="yes"
7310 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7311 echo "${ECHO_T}$enable_gtk2_check" >&6
7312 if test "x$enable_gtk2_check" = "xno"; then
7317 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7318 -a "$enable_gui_canon" != "gnome2"; then
7319 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7320 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7321 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7322 if test "${enable_gnome_check+set}" = set; then
7323 enableval
="$enable_gnome_check"
7326 enable_gnome_check
="no"
7328 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7329 echo "${ECHO_T}$enable_gnome_check" >&6
7330 if test "x$enable_gnome_check" = "xno"; then
7335 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7336 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7337 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7338 # Check whether --enable-motif-check or --disable-motif-check was given.
7339 if test "${enable_motif_check+set}" = set; then
7340 enableval
="$enable_motif_check"
7343 enable_motif_check
="yes"
7345 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7346 echo "${ECHO_T}$enable_motif_check" >&6
7347 if test "x$enable_motif_check" = "xno"; then
7352 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7353 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7354 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7355 # Check whether --enable-athena-check or --disable-athena-check was given.
7356 if test "${enable_athena_check+set}" = set; then
7357 enableval
="$enable_athena_check"
7360 enable_athena_check
="yes"
7362 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7363 echo "${ECHO_T}$enable_athena_check" >&6
7364 if test "x$enable_athena_check" = "xno"; then
7369 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7370 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7371 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7372 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7373 if test "${enable_nextaw_check+set}" = set; then
7374 enableval
="$enable_nextaw_check"
7377 enable_nextaw_check
="yes"
7379 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7380 echo "${ECHO_T}$enable_nextaw_check" >&6;
7381 if test "x$enable_nextaw_check" = "xno"; then
7386 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7387 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7388 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7389 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7390 if test "${enable_carbon_check+set}" = set; then
7391 enableval
="$enable_carbon_check"
7394 enable_carbon_check
="yes"
7396 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7397 echo "${ECHO_T}$enable_carbon_check" >&6;
7398 if test "x$enable_carbon_check" = "xno"; then
7404 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7405 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7406 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7407 echo "$as_me:$LINENO: result: yes" >&5
7408 echo "${ECHO_T}yes" >&6;
7410 if test "$VIMNAME" = "vim"; then
7414 if test x
$prefix = xNONE
; then
7415 prefix
=/Applications
7418 datadir
='${prefix}/Vim.app/Contents/Resources'
7438 if test -z "$SKIP_GTK"; then
7440 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7441 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7443 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7444 if test "${with_gtk_prefix+set}" = set; then
7445 withval
="$with_gtk_prefix"
7446 gtk_config_prefix
="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7447 echo "${ECHO_T}$gtk_config_prefix" >&6
7449 gtk_config_prefix
=""; echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7453 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7454 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7456 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7457 if test "${with_gtk_exec_prefix+set}" = set; then
7458 withval
="$with_gtk_exec_prefix"
7459 gtk_config_exec_prefix
="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7460 echo "${ECHO_T}$gtk_config_prefix" >&6
7462 gtk_config_exec_prefix
=""; echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6
7466 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7467 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7468 # Check whether --enable-gtktest or --disable-gtktest was given.
7469 if test "${enable_gtktest+set}" = set; then
7470 enableval
="$enable_gtktest"
7475 if test "x$enable_gtktest" = "xyes" ; then
7476 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7477 echo "${ECHO_T}gtk test enabled" >&6
7479 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7480 echo "${ECHO_T}gtk test disabled" >&6
7483 if test "x$gtk_config_prefix" != "x" ; then
7484 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
7485 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk-config
7487 if test "x$gtk_config_exec_prefix" != "x" ; then
7488 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7489 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk-config
7491 if test "X$GTK_CONFIG" = "X"; then
7492 # Extract the first word of "gtk-config", so it can be a program name with args.
7493 set dummy gtk-config
; ac_word
=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir
=.
7509 for ac_exec_ext
in '' $ac_executable_extensions; do
7510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_path_GTK_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7522 GTK_CONFIG
=$ac_cv_path_GTK_CONFIG
7524 if test -n "$GTK_CONFIG"; then
7525 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7526 echo "${ECHO_T}$GTK_CONFIG" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7532 if test "X$GTK_CONFIG" = "Xno"; then
7533 # Extract the first word of "gtk12-config", so it can be a program name with args.
7534 set dummy gtk12-config
; ac_word
=$2
7535 echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7537 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 case $GTK12_CONFIG in
7542 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a path.
7545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir
=.
7550 for ac_exec_ext
in '' $ac_executable_extensions; do
7551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_path_GTK12_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG
="no"
7563 GTK12_CONFIG
=$ac_cv_path_GTK12_CONFIG
7565 if test -n "$GTK12_CONFIG"; then
7566 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7567 echo "${ECHO_T}$GTK12_CONFIG" >&6
7569 echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7573 GTK_CONFIG
="$GTK12_CONFIG"
7576 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7577 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7579 if test "X$PKG_CONFIG" = "X"; then
7580 # Extract the first word of "pkg-config", so it can be a program name with args.
7581 set dummy pkg-config
; ac_word
=$2
7582 echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7584 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir
=.
7597 for ac_exec_ext
in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7610 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7612 if test -n "$PKG_CONFIG"; then
7613 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7614 echo "${ECHO_T}$PKG_CONFIG" >&6
7616 echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7622 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7623 if test "X$SKIP_GTK2" != "XYES"; then
7625 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7627 min_gtk_version
=2.2.0
7628 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7629 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7631 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7632 && $PKG_CONFIG --exists gtk
+-2.0
; then
7634 GTK_CFLAGS
=`$PKG_CONFIG --cflags gtk+-2.0`
7635 GTK_LIBDIR
=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7636 GTK_LIBS
=`$PKG_CONFIG --libs gtk+-2.0`
7637 gtk_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7638 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7639 gtk_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7640 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7641 gtk_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7642 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7644 elif test "X$GTK_CONFIG" != "Xno"; then
7646 GTK_CFLAGS
=`$GTK_CONFIG $gtk_config_args --cflags`
7648 GTK_LIBS
=`$GTK_CONFIG $gtk_config_args --libs`
7649 gtk_major_version
=`$GTK_CONFIG $gtk_config_args --version | \
7650 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7651 gtk_minor_version
=`$GTK_CONFIG $gtk_config_args --version | \
7652 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7653 gtk_micro_version
=`$GTK_CONFIG $gtk_config_args --version | \
7654 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7660 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7662 ac_save_CFLAGS
="$CFLAGS"
7663 ac_save_LIBS
="$LIBS"
7664 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7665 LIBS
="$LIBS $GTK_LIBS"
7668 if test "$cross_compiling" = yes; then
7669 echo $ac_n "cross compiling; assumed OK... $ac_c"
7671 cat >conftest.
$ac_ext <<_ACEOF
7674 cat confdefs.h
>>conftest.
$ac_ext
7675 cat >>conftest.
$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 #include <gtk/gtk.h>
7684 int major, minor, micro;
7687 system ("touch conf.gtktest");
7689 /* HP/UX 9 (%@#!) writes to sscanf strings */
7690 tmp_version = g_strdup("$min_gtk_version");
7691 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7692 printf("%s, bad version string\n", "$min_gtk_version");
7696 if ((gtk_major_version > major) ||
7697 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7698 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7699 (gtk_micro_version >= micro)))
7707 rm -f conftest
$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7720 echo "$as_me: program exited with status $ac_status" >&5
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.
$ac_ext >&5
7727 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7729 CFLAGS
="$ac_save_CFLAGS"
7730 LIBS
="$ac_save_LIBS"
7733 if test "x$no_gtk" = x
; then
7734 if test "x$enable_gtktest" = "xyes"; then
7735 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7736 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7738 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7739 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7741 GUI_LIB_LOC
="$GTK_LIBDIR"
7742 GTK_LIBNAME
="$GTK_LIBS"
7743 GUI_INC_LOC
="$GTK_CFLAGS"
7746 echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6
7763 if test "x$GTK_CFLAGS" != "x"; then
7772 if test "x$GUITYPE" != "xGTK"; then
7775 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7777 min_gtk_version
=1.1.16
7778 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7779 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7781 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7782 && $PKG_CONFIG --exists gtk
+-2.0
; then
7784 GTK_CFLAGS
=`$PKG_CONFIG --cflags gtk+-2.0`
7785 GTK_LIBDIR
=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7786 GTK_LIBS
=`$PKG_CONFIG --libs gtk+-2.0`
7787 gtk_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7788 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7789 gtk_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7790 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7791 gtk_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7792 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7794 elif test "X$GTK_CONFIG" != "Xno"; then
7796 GTK_CFLAGS
=`$GTK_CONFIG $gtk_config_args --cflags`
7798 GTK_LIBS
=`$GTK_CONFIG $gtk_config_args --libs`
7799 gtk_major_version
=`$GTK_CONFIG $gtk_config_args --version | \
7800 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7801 gtk_minor_version
=`$GTK_CONFIG $gtk_config_args --version | \
7802 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7803 gtk_micro_version
=`$GTK_CONFIG $gtk_config_args --version | \
7804 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7810 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7812 ac_save_CFLAGS
="$CFLAGS"
7813 ac_save_LIBS
="$LIBS"
7814 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7815 LIBS
="$LIBS $GTK_LIBS"
7818 if test "$cross_compiling" = yes; then
7819 echo $ac_n "cross compiling; assumed OK... $ac_c"
7821 cat >conftest.
$ac_ext <<_ACEOF
7824 cat confdefs.h
>>conftest.
$ac_ext
7825 cat >>conftest.
$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 #include <gtk/gtk.h>
7834 int major, minor, micro;
7837 system ("touch conf.gtktest");
7839 /* HP/UX 9 (%@#!) writes to sscanf strings */
7840 tmp_version = g_strdup("$min_gtk_version");
7841 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7842 printf("%s, bad version string\n", "$min_gtk_version");
7846 if ((gtk_major_version > major) ||
7847 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7848 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7849 (gtk_micro_version >= micro)))
7857 rm -f conftest
$ac_exeext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7870 echo "$as_me: program exited with status $ac_status" >&5
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.
$ac_ext >&5
7877 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7879 CFLAGS
="$ac_save_CFLAGS"
7880 LIBS
="$ac_save_LIBS"
7883 if test "x$no_gtk" = x
; then
7884 if test "x$enable_gtktest" = "xyes"; then
7885 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7886 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7888 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7889 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7891 GTK_LIBNAME
="$GTK_LIBS"
7892 GUI_INC_LOC
="$GTK_CFLAGS"
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7912 if test "x$GTK_CFLAGS" != "x"; then
7921 if test "x$GUITYPE" = "xGTK"; then
7922 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7923 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7924 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7925 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7928 if test "0$gtk_major_version" -ge 2; then
7929 cat >>confdefs.h
<<\_ACEOF
7933 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7934 ||
test "0$gtk_minor_version" -ge 2 \
7935 ||
test "0$gtk_major_version" -gt 2; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define HAVE_GTK_MULTIHEAD 1
7942 if test -z "$SKIP_GNOME"; then
7950 # Check whether --with-gnome-includes or --without-gnome-includes was given.
7951 if test "${with_gnome_includes+set}" = set; then
7952 withval
="$with_gnome_includes"
7953 CFLAGS
="$CFLAGS -I$withval"
7958 # Check whether --with-gnome-libs or --without-gnome-libs was given.
7959 if test "${with_gnome_libs+set}" = set; then
7960 withval
="$with_gnome_libs"
7961 LDFLAGS
="$LDFLAGS -L$withval" gnome_prefix
=$withval
7966 # Check whether --with-gnome or --without-gnome was given.
7967 if test "${with_gnome+set}" = set; then
7968 withval
="$with_gnome"
7969 if test x
$withval = xyes
; then
7973 if test "x$withval" = xno
; then
7977 LDFLAGS
="$LDFLAGS -L$withval/lib"
7978 CFLAGS
="$CFLAGS -I$withval/include"
7979 gnome_prefix
=$withval/lib
7986 if test "x$want_gnome" = xyes
-a "0$gtk_major_version" -ge 2; then
7988 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7989 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7990 if $PKG_CONFIG --exists libgnomeui-2.0
; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7993 GNOME_LIBS
=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7994 GNOME_LIBDIR
=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7995 GNOME_INCLUDEDIR
=`$PKG_CONFIG --cflags libgnomeui-2.0`
7997 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7998 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7999 if test "`(uname) 2>/dev/null`" = FreeBSD
; then
8000 echo "$as_me:$LINENO: result: yes" >&5
8001 echo "${ECHO_T}yes" >&6
8002 GNOME_INCLUDEDIR
="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8003 GNOME_LIBS
="$GNOME_LIBS -pthread"
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8010 echo "$as_me:$LINENO: result: not found" >&5
8011 echo "${ECHO_T}not found" >&6
8012 if test "x" = xfail
; then
8013 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8014 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8015 { (exit 1); exit 1; }; }
8019 elif test "x$want_gnome" = xyes
; then
8021 # Extract the first word of "gnome-config", so it can be a program name with args.
8022 set dummy gnome-config
; ac_word
=$2
8023 echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8025 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 case $GNOME_CONFIG in
8030 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a path.
8033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir
=.
8038 for ac_exec_ext
in '' $ac_executable_extensions; do
8039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040 ac_cv_path_GNOME_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG
="no"
8051 GNOME_CONFIG
=$ac_cv_path_GNOME_CONFIG
8053 if test -n "$GNOME_CONFIG"; then
8054 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8055 echo "${ECHO_T}$GNOME_CONFIG" >&6
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8061 if test "$GNOME_CONFIG" = "no"; then
8062 no_gnome_config
="yes"
8064 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8065 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
8066 if $GNOME_CONFIG --libs-only-l gnome
>/dev
/null
2>&1; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068 echo "${ECHO_T}yes" >&6
8069 GNOME_LIBS
="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8070 GNOME_LIBDIR
="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8071 GNOME_INCLUDEDIR
="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8074 echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6
8076 no_gnome_config
="yes"
8080 if test x
$exec_prefix = xNONE
; then
8081 if test x
$prefix = xNONE
; then
8082 gnome_prefix
=$ac_default_prefix/lib
8084 gnome_prefix
=$prefix/lib
8087 gnome_prefix
=`eval echo \`echo $libdir\
``
8090 if test "$no_gnome_config" = "yes"; then
8091 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8092 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
8093 if test -f $gnome_prefix/gnomeConf.sh
; then
8094 echo "$as_me:$LINENO: result: found" >&5
8095 echo "${ECHO_T}found" >&6
8096 echo "loading gnome configuration from" \
8097 "$gnome_prefix/gnomeConf.sh"
8098 .
$gnome_prefix/gnomeConf.sh
8101 echo "$as_me:$LINENO: result: not found" >&5
8102 echo "${ECHO_T}not found" >&6
8103 if test x
= xfail
; then
8104 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8105 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8106 { (exit 1); exit 1; }; }
8113 if test x
$have_gnome = xyes
; then
8114 cat >>confdefs.h
<<\_ACEOF
8115 #define FEAT_GUI_GNOME 1
8118 GUI_INC_LOC
="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8119 GTK_LIBNAME
="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8129 if test -z "$SKIP_MOTIF"; then
8130 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"
8131 GUI_INC_LOC
="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8133 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8134 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
8135 gui_includes
="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8137 for try
in $gui_includes; do
8138 if test -f "$try/Xm/Xm.h"; then
8142 if test -n "$GUI_INC_LOC"; then
8143 if test "$GUI_INC_LOC" = /usr
/include
; then
8145 echo "$as_me:$LINENO: result: in default path" >&5
8146 echo "${ECHO_T}in default path" >&6
8148 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8149 echo "${ECHO_T}$GUI_INC_LOC" >&6
8152 echo "$as_me:$LINENO: result: <not found>" >&5
8153 echo "${ECHO_T}<not found>" >&6
8159 if test -z "$SKIP_MOTIF"; then
8160 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8161 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8163 # Check whether --with-motif-lib or --without-motif-lib was given.
8164 if test "${with_motif_lib+set}" = set; then
8165 withval
="$with_motif_lib"
8166 MOTIF_LIBNAME
="${withval}"
8169 if test -n "$MOTIF_LIBNAME"; then
8170 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8171 echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8177 GUI_LIB_LOC
="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8179 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8180 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8181 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"
8183 for try
in $gui_libs; do
8184 for libtry
in "$try"/libXm.a
"$try"/libXm.so
* "$try"/libXm.sl
"$try"/libXm.dylib
; do
8185 if test -f "$libtry"; then
8190 if test -n "$GUI_LIB_LOC"; then
8191 if test "$GUI_LIB_LOC" = /usr
/lib
; then
8193 echo "$as_me:$LINENO: result: in default path" >&5
8194 echo "${ECHO_T}in default path" >&6
8196 if test -n "$GUI_LIB_LOC"; then
8197 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8198 echo "${ECHO_T}$GUI_LIB_LOC" >&6
8199 if test "`(uname) 2>/dev/null`" = SunOS
&&
8200 uname
-r |
grep '^5' >/dev
/null
; then
8201 GUI_LIB_LOC
="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8207 echo "$as_me:$LINENO: result: <not found>" >&5
8208 echo "${ECHO_T}<not found>" >&6
8214 if test -z "$SKIP_MOTIF"; then
8224 if test -z "$SKIP_ATHENA"; then
8225 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8226 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8228 CFLAGS
="$CFLAGS $X_CFLAGS"
8229 cat >conftest.
$ac_ext <<_ACEOF
8232 cat confdefs.h
>>conftest.
$ac_ext
8233 cat >>conftest.
$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8236 #include <X11/Intrinsic.h>
8237 #include <X11/Xaw/Paned.h>
8246 rm -f conftest.
$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1
>conftest.err
8252 cat conftest.err
>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try
='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try
='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 echo "$as_me:$LINENO: result: yes" >&5
8269 echo "${ECHO_T}yes" >&6
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.
$ac_ext >&5
8274 echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; SKIP_ATHENA
=YES
8277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8281 if test -z "$SKIP_ATHENA"; then
8285 if test -z "$SKIP_NEXTAW"; then
8286 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8287 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8289 CFLAGS
="$CFLAGS $X_CFLAGS"
8290 cat >conftest.
$ac_ext <<_ACEOF
8293 cat confdefs.h
>>conftest.
$ac_ext
8294 cat >>conftest.
$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8297 #include <X11/Intrinsic.h>
8298 #include <X11/neXtaw/Paned.h>
8307 rm -f conftest.
$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1
>conftest.err
8313 cat conftest.err
>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try
='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try
='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.
$ac_ext >&5
8335 echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6; SKIP_NEXTAW
=YES
8338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8342 if test -z "$SKIP_NEXTAW"; then
8346 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8347 if test -n "$GUI_INC_LOC"; then
8348 GUI_INC_LOC
=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8350 if test -n "$GUI_LIB_LOC"; then
8351 GUI_LIB_LOC
=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8354 ldflags_save
=$LDFLAGS
8355 LDFLAGS
="$X_LIBS $LDFLAGS"
8356 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8357 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8358 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 ac_check_lib_save_LIBS
=$LIBS
8362 LIBS
="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8363 cat >conftest.
$ac_ext <<_ACEOF
8366 cat confdefs.h
>>conftest.
$ac_ext
8367 cat >>conftest.
$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8376 char XShapeQueryExtension ();
8380 XShapeQueryExtension ();
8385 rm -f conftest.
$ac_objext conftest
$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>conftest.er1
8389 grep -v '^ *+' conftest.er1
>conftest.err
8391 cat conftest.err
>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try
='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try
='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.
$ac_ext >&5
8412 ac_cv_lib_Xext_XShapeQueryExtension
=no
8414 rm -f conftest.err conftest.
$ac_objext \
8415 conftest
$ac_exeext conftest.
$ac_ext
8416 LIBS
=$ac_check_lib_save_LIBS
8418 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8419 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8420 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8424 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8425 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8426 if test "${ac_cv_lib_w_wslen+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 ac_check_lib_save_LIBS
=$LIBS
8430 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8431 cat >conftest.
$ac_ext <<_ACEOF
8434 cat confdefs.h
>>conftest.
$ac_ext
8435 cat >>conftest.
$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any gcc2 internal prototype to avoid an error. */
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8453 rm -f conftest.
$ac_objext conftest
$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1
>conftest.err
8459 cat conftest.err
>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try
='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try
='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_lib_w_wslen
=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 ac_cv_lib_w_wslen
=no
8482 rm -f conftest.err conftest.
$ac_objext \
8483 conftest
$ac_exeext conftest.
$ac_ext
8484 LIBS
=$ac_check_lib_save_LIBS
8486 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8487 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8488 if test $ac_cv_lib_w_wslen = yes; then
8489 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lw"
8492 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8493 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8494 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_check_lib_save_LIBS
=$LIBS
8498 LIBS
="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8499 cat >conftest.
$ac_ext <<_ACEOF
8502 cat confdefs.h
>>conftest.
$ac_ext
8503 cat >>conftest.
$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8521 rm -f conftest.
$ac_objext conftest
$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523 (eval $ac_link) 2>conftest.er1
8525 grep -v '^ *+' conftest.er1
>conftest.err
8527 cat conftest.err
>&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try
='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try
='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_lib_dl_dlsym
=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.
$ac_ext >&5
8548 ac_cv_lib_dl_dlsym
=no
8550 rm -f conftest.err conftest.
$ac_objext \
8551 conftest
$ac_exeext conftest.
$ac_ext
8552 LIBS
=$ac_check_lib_save_LIBS
8554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8555 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8556 if test $ac_cv_lib_dl_dlsym = yes; then
8557 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
8560 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8561 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8562 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 ac_check_lib_save_LIBS
=$LIBS
8566 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8567 cat >conftest.
$ac_ext <<_ACEOF
8570 cat confdefs.h
>>conftest.
$ac_ext
8571 cat >>conftest.
$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8574 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8580 char XmuCreateStippledPixmap ();
8584 XmuCreateStippledPixmap ();
8589 rm -f conftest.
$ac_objext conftest
$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 (eval $ac_link) 2>conftest.er1
8593 grep -v '^ *+' conftest.er1
>conftest.err
8595 cat conftest.err
>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try
='test -z "$ac_c_werror_flag"
8599 || test ! -s conftest.err'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try
='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_lib_Xmu_XmuCreateStippledPixmap
=yes
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.
$ac_ext >&5
8616 ac_cv_lib_Xmu_XmuCreateStippledPixmap
=no
8618 rm -f conftest.err conftest.
$ac_objext \
8619 conftest
$ac_exeext conftest.
$ac_ext
8620 LIBS
=$ac_check_lib_save_LIBS
8622 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8623 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8624 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8625 GUI_X_LIBS
="-lXmu $GUI_X_LIBS"
8628 if test -z "$SKIP_MOTIF"; then
8629 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8630 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8631 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 ac_check_lib_save_LIBS
=$LIBS
8635 LIBS
="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8658 rm -f conftest.
$ac_objext conftest
$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>conftest.er1
8662 grep -v '^ *+' conftest.er1
>conftest.err
8664 cat conftest.err
>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try
='test -z "$ac_c_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try
='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_Xp_XpEndJob
=yes
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.
$ac_ext >&5
8685 ac_cv_lib_Xp_XpEndJob
=no
8687 rm -f conftest.err conftest.
$ac_objext \
8688 conftest
$ac_exeext conftest.
$ac_ext
8689 LIBS
=$ac_check_lib_save_LIBS
8691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8692 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8693 if test $ac_cv_lib_Xp_XpEndJob = yes; then
8694 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
8698 LDFLAGS
=$ldflags_save
8700 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8701 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8704 if mkdir conftestdir
; then
8706 cat > Imakefile
<<'EOF'
8708 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8710 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8711 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8716 if test -z "$NARROW_PROTO"; then
8717 echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6
8720 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8721 echo "${ECHO_T}$NARROW_PROTO" >&6
8726 if test "$enable_xsmp" = "yes"; then
8727 cppflags_save
=$CPPFLAGS
8728 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
8730 for ac_header
in X11
/SM
/SMlib.h
8732 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8734 echo "$as_me:$LINENO: checking for $ac_header" >&5
8735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8742 # Is the header compilable?
8743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #include <$ac_header>
8754 rm -f conftest.
$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756 (eval $ac_compile) 2>conftest.er1
8758 grep -v '^ *+' conftest.er1
>conftest.err
8760 cat conftest.err
>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try
='test -z "$ac_c_werror_flag"
8764 || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try
='test -s conftest.$ac_objext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_header_compiler
=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.
$ac_ext >&5
8781 ac_header_compiler
=no
8783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8785 echo "${ECHO_T}$ac_header_compiler" >&6
8787 # Is the header present?
8788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8790 cat >conftest.
$ac_ext <<_ACEOF
8793 cat confdefs.h
>>conftest.
$ac_ext
8794 cat >>conftest.
$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 #include <$ac_header>
8798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8799 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1
>conftest.err
8803 cat conftest.err
>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } >/dev
/null
; then
8806 if test -s conftest.err
; then
8807 ac_cpp_err
=$ac_c_preproc_warn_flag
8808 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8815 if test -z "$ac_cpp_err"; then
8816 ac_header_preproc
=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.
$ac_ext >&5
8821 ac_header_preproc
=no
8823 rm -f conftest.err conftest.
$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8825 echo "${ECHO_T}$ac_header_preproc" >&6
8827 # So? What about this header?
8828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8834 ac_header_preproc
=yes
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8851 ## ------------------------------------------ ##
8852 ## Report this to the AC_PACKAGE_NAME lists. ##
8853 ## ------------------------------------------ ##
8856 sed "s/^/$as_me: WARNING: /" >&2
8859 echo "$as_me:$LINENO: checking for $ac_header" >&5
8860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 eval "$as_ac_Header=\$ac_header_preproc"
8866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8871 cat >>confdefs.h
<<_ACEOF
8872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8879 CPPFLAGS
=$cppflags_save
8883 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8884 cppflags_save
=$CPPFLAGS
8885 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
8888 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
8890 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900 # Is the header compilable?
8901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903 cat >conftest.
$ac_ext <<_ACEOF
8906 cat confdefs.h
>>conftest.
$ac_ext
8907 cat >>conftest.
$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 #include <$ac_header>
8912 rm -f conftest.
$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8916 grep -v '^ *+' conftest.er1
>conftest.err
8918 cat conftest.err
>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try
='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try
='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_header_compiler
=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.
$ac_ext >&5
8939 ac_header_compiler
=no
8941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948 cat >conftest.
$ac_ext <<_ACEOF
8951 cat confdefs.h
>>conftest.
$ac_ext
8952 cat >>conftest.
$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <$ac_header>
8956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8959 grep -v '^ *+' conftest.er1
>conftest.err
8961 cat conftest.err
>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } >/dev
/null
; then
8964 if test -s conftest.err
; then
8965 ac_cpp_err
=$ac_c_preproc_warn_flag
8966 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8973 if test -z "$ac_cpp_err"; then
8974 ac_header_preproc
=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.
$ac_ext >&5
8979 ac_header_preproc
=no
8981 rm -f conftest.err conftest.
$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8985 # So? What about this header?
8986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992 ac_header_preproc
=yes
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9009 ## ------------------------------------------ ##
9010 ## Report this to the AC_PACKAGE_NAME lists. ##
9011 ## ------------------------------------------ ##
9014 sed "s/^/$as_me: WARNING: /" >&2
9017 echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 eval "$as_ac_Header=\$ac_header_preproc"
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029 cat >>confdefs.h
<<_ACEOF
9030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9038 if test ! "$enable_xim" = "no"; then
9039 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9040 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
9041 cat >conftest.
$ac_ext <<_ACEOF
9044 cat confdefs.h
>>conftest.
$ac_ext
9045 cat >>conftest.
$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <X11/Xlib.h>
9049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9050 $EGREP "XIMText" >/dev
/null
2>&1; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6
9054 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9055 echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim
= "no"
9060 CPPFLAGS
=$cppflags_save
9062 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9063 -a "x$GUITYPE" != "xNONE" ; then
9064 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9065 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
9070 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9071 cppflags_save
=$CPPFLAGS
9072 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9073 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9074 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
9075 cat >conftest.
$ac_ext <<_ACEOF
9078 cat confdefs.h
>>conftest.
$ac_ext
9079 cat >>conftest.
$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 #include <X11/Intrinsic.h>
9083 #include <X11/Xmu/Editres.h>
9092 rm -f conftest.
$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094 (eval $ac_compile) 2>conftest.er1
9096 grep -v '^ *+' conftest.er1
>conftest.err
9098 cat conftest.err
>&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try
='test -z "$ac_c_werror_flag"
9102 || test ! -s conftest.err'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; } &&
9108 { ac_try
='test -s conftest.$ac_objext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9114 echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6
9116 cat >>confdefs.h
<<\_ACEOF
9117 #define HAVE_X11_XMU_EDITRES_H 1
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.
$ac_ext >&5
9124 echo "$as_me:$LINENO: result: no" >&5
9125 echo "${ECHO_T}no" >&6
9127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9128 CPPFLAGS
=$cppflags_save
9131 if test -z "$SKIP_MOTIF"; then
9132 cppflags_save
=$CPPFLAGS
9133 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9141 for ac_header
in Xm
/Xm.h Xm
/XpmP.h Xm
/JoinSideT.h Xm
/TraitP.h Xm
/Manager.h \
9142 Xm
/UnhighlightT.h Xm
/Notebook.h
9144 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9146 echo "$as_me:$LINENO: checking for $ac_header" >&5
9147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9154 # Is the header compilable?
9155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9157 cat >conftest.
$ac_ext <<_ACEOF
9160 cat confdefs.h
>>conftest.
$ac_ext
9161 cat >>conftest.
$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9164 #include <$ac_header>
9166 rm -f conftest.
$ac_objext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
9170 grep -v '^ *+' conftest.er1
>conftest.err
9172 cat conftest.err
>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try
='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try
='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_header_compiler
=yes
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.
$ac_ext >&5
9193 ac_header_compiler
=no
9195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9197 echo "${ECHO_T}$ac_header_compiler" >&6
9199 # Is the header present?
9200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <$ac_header>
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1
>conftest.err
9215 cat conftest.err
>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev
/null
; then
9218 if test -s conftest.err
; then
9219 ac_cpp_err
=$ac_c_preproc_warn_flag
9220 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9227 if test -z "$ac_cpp_err"; then
9228 ac_header_preproc
=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.
$ac_ext >&5
9233 ac_header_preproc
=no
9235 rm -f conftest.err conftest.
$ac_ext
9236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9237 echo "${ECHO_T}$ac_header_preproc" >&6
9239 # So? What about this header?
9240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9246 ac_header_preproc
=yes
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9263 ## ------------------------------------------ ##
9264 ## Report this to the AC_PACKAGE_NAME lists. ##
9265 ## ------------------------------------------ ##
9268 sed "s/^/$as_me: WARNING: /" >&2
9271 echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 eval "$as_ac_Header=\$ac_header_preproc"
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283 cat >>confdefs.h
<<_ACEOF
9284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9292 if test $ac_cv_header_Xm_XpmP_h = yes; then
9293 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9294 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9295 cat >conftest.
$ac_ext <<_ACEOF
9298 cat confdefs.h
>>conftest.
$ac_ext
9299 cat >>conftest.
$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301 #include <Xm/XpmP.h>
9305 XpmAttributes_21 attr;
9310 rm -f conftest.
$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>conftest.er1
9314 grep -v '^ *+' conftest.er1
>conftest.err
9316 cat conftest.err
>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try
='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try
='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 echo "$as_me:$LINENO: result: yes" >&5
9333 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
9334 #define XPMATTRIBUTES_TYPE XpmAttributes_21
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.
$ac_ext >&5
9341 echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; cat >>confdefs.h
<<\_ACEOF
9343 #define XPMATTRIBUTES_TYPE XpmAttributes
9348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9350 cat >>confdefs.h
<<\_ACEOF
9351 #define XPMATTRIBUTES_TYPE XpmAttributes
9355 CPPFLAGS
=$cppflags_save
9358 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9359 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9360 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9363 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9364 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9365 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9368 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9369 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9370 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9374 if test -z "$SKIP_PHOTON"; then
9383 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9384 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9385 echo "$as_me: error: cannot use workshop without Motif" >&2;}
9386 { (exit 1); exit 1; }; }
9389 if test "$enable_xim" = "yes"; then
9390 cat >>confdefs.h
<<\_ACEOF
9395 if test "$enable_fontset" = "yes"; then
9396 cat >>confdefs.h
<<\_ACEOF
9397 #define FEAT_XFONTSET 1
9405 if test "$enable_hangulinput" = "yes"; then
9406 if test "x$GUITYPE" = "xNONE"; then
9407 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9408 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9409 enable_hangulinput
=no
9411 cat >>confdefs.h
<<\_ACEOF
9412 #define FEAT_HANGULIN 1
9415 HANGULIN_SRC
=hangulin.c
9417 HANGULIN_OBJ
=objects
/hangulin.o
9423 echo "$as_me:$LINENO: checking quality of toupper" >&5
9424 echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9425 if test "$cross_compiling" = yes; then
9426 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9427 echo "$as_me: error: failed to compile test program" >&2;}
9428 { (exit 1); exit 1; }; }
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9439 rm -f conftest
$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 cat >>confdefs.h
<<\_ACEOF
9451 #define BROKEN_TOUPPER 1
9453 echo "$as_me:$LINENO: result: bad" >&5
9454 echo "${ECHO_T}bad" >&6
9456 echo "$as_me: program exited with status $ac_status" >&5
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.
$ac_ext >&5
9461 echo "$as_me:$LINENO: result: good" >&5
9462 echo "${ECHO_T}good" >&6
9464 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9467 echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9468 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9469 cat >conftest.
$ac_ext <<_ACEOF
9472 cat confdefs.h
>>conftest.
$ac_ext
9473 cat >>conftest.
$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9479 printf("(" __DATE__ " " __TIME__ ")");
9484 rm -f conftest.
$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try
='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try
='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
9508 #define HAVE_DATE_TIME 1
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9515 echo "$as_me:$LINENO: result: no" >&5
9516 echo "${ECHO_T}no" >&6
9518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9520 if test "${ac_cv_header_elf_h+set}" = set; then
9521 echo "$as_me:$LINENO: checking for elf.h" >&5
9522 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9523 if test "${ac_cv_header_elf_h+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9527 echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9529 # Is the header compilable?
9530 echo "$as_me:$LINENO: checking elf.h usability" >&5
9531 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9532 cat >conftest.
$ac_ext <<_ACEOF
9535 cat confdefs.h
>>conftest.
$ac_ext
9536 cat >>conftest.
$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9541 rm -f conftest.
$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543 (eval $ac_compile) 2>conftest.er1
9545 grep -v '^ *+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try
='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try
='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_header_compiler
=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.
$ac_ext >&5
9568 ac_header_compiler
=no
9570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking elf.h presence" >&5
9576 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9577 cat >conftest.
$ac_ext <<_ACEOF
9580 cat confdefs.h
>>conftest.
$ac_ext
9581 cat >>conftest.
$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1
>conftest.err
9590 cat conftest.err
>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev
/null
; then
9593 if test -s conftest.err
; then
9594 ac_cpp_err
=$ac_c_preproc_warn_flag
9595 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9602 if test -z "$ac_cpp_err"; then
9603 ac_header_preproc
=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.
$ac_ext >&5
9608 ac_header_preproc
=no
9610 rm -f conftest.err conftest.
$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9614 # So? What about this header?
9615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9617 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9620 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9621 ac_header_preproc
=yes
9624 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9625 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9627 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9629 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9631 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9635 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9638 ## ------------------------------------------ ##
9639 ## Report this to the AC_PACKAGE_NAME lists. ##
9640 ## ------------------------------------------ ##
9643 sed "s/^/$as_me: WARNING: /" >&2
9646 echo "$as_me:$LINENO: checking for elf.h" >&5
9647 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9648 if test "${ac_cv_header_elf_h+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 ac_cv_header_elf_h
=$ac_header_preproc
9653 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9654 echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9657 if test $ac_cv_header_elf_h = yes; then
9662 if test "$HAS_ELF" = 1; then
9664 echo "$as_me:$LINENO: checking for main in -lelf" >&5
9665 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9666 if test "${ac_cv_lib_elf_main+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 ac_check_lib_save_LIBS
=$LIBS
9671 cat >conftest.
$ac_ext <<_ACEOF
9674 cat confdefs.h
>>conftest.
$ac_ext
9675 cat >>conftest.
$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9687 rm -f conftest.
$ac_objext conftest
$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>conftest.er1
9691 grep -v '^ *+' conftest.er1
>conftest.err
9693 cat conftest.err
>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try
='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try
='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_lib_elf_main
=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.
$ac_ext >&5
9714 ac_cv_lib_elf_main
=no
9716 rm -f conftest.err conftest.
$ac_objext \
9717 conftest
$ac_exeext conftest.
$ac_ext
9718 LIBS
=$ac_check_lib_save_LIBS
9720 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9721 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9722 if test $ac_cv_lib_elf_main = yes; then
9723 cat >>confdefs.h
<<_ACEOF
9724 #define HAVE_LIBELF 1
9739 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9740 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9741 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9742 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 cat >conftest.
$ac_ext <<_ACEOF
9749 cat confdefs.h
>>conftest.
$ac_ext
9750 cat >>conftest.
$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 #include <sys/types.h>
9764 rm -f conftest.
$ac_objext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9768 grep -v '^ *+' conftest.er1
>conftest.err
9770 cat conftest.err
>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try
='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try
='test -s conftest.$ac_objext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 eval "$as_ac_Header=yes"
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 eval "$as_ac_Header=no"
9793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798 cat >>confdefs.h
<<_ACEOF
9799 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9802 ac_header_dirent
=$ac_hdr; break
9806 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9807 if test $ac_header_dirent = dirent.h
; then
9808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9810 if test "${ac_cv_search_opendir+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 ac_func_search_save_LIBS
=$LIBS
9814 ac_cv_search_opendir
=no
9815 cat >conftest.
$ac_ext <<_ACEOF
9818 cat confdefs.h
>>conftest.
$ac_ext
9819 cat >>conftest.
$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9837 rm -f conftest.
$ac_objext conftest
$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try
='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try
='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_search_opendir
="none required"
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.
$ac_ext >&5
9865 rm -f conftest.err conftest.
$ac_objext \
9866 conftest
$ac_exeext conftest.
$ac_ext
9867 if test "$ac_cv_search_opendir" = no
; then
9868 for ac_lib
in dir
; do
9869 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9870 cat >conftest.
$ac_ext <<_ACEOF
9873 cat confdefs.h
>>conftest.
$ac_ext
9874 cat >>conftest.
$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9892 rm -f conftest.
$ac_objext conftest
$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>conftest.er1
9896 grep -v '^ *+' conftest.er1
>conftest.err
9898 cat conftest.err
>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try
='test -z "$ac_c_werror_flag"
9902 || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try
='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_search_opendir
="-l$ac_lib"
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.
$ac_ext >&5
9921 rm -f conftest.err conftest.
$ac_objext \
9922 conftest
$ac_exeext conftest.
$ac_ext
9925 LIBS
=$ac_func_search_save_LIBS
9927 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9928 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9929 if test "$ac_cv_search_opendir" != no
; then
9930 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9935 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9936 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9937 if test "${ac_cv_search_opendir+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_func_search_save_LIBS
=$LIBS
9941 ac_cv_search_opendir
=no
9942 cat >conftest.
$ac_ext <<_ACEOF
9945 cat confdefs.h
>>conftest.
$ac_ext
9946 cat >>conftest.
$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.
$ac_objext conftest
$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1
>conftest.err
9970 cat conftest.err
>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try
='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try
='test -s conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_search_opendir
="none required"
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9992 rm -f conftest.err conftest.
$ac_objext \
9993 conftest
$ac_exeext conftest.
$ac_ext
9994 if test "$ac_cv_search_opendir" = no
; then
9996 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9997 cat >conftest.
$ac_ext <<_ACEOF
10000 cat confdefs.h
>>conftest.
$ac_ext
10001 cat >>conftest.
$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10004 /* Override any gcc2 internal prototype to avoid an error. */
10008 /* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10019 rm -f conftest.
$ac_objext conftest
$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>conftest.er1
10023 grep -v '^ *+' conftest.er1
>conftest.err
10025 cat conftest.err
>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try
='test -z "$ac_c_werror_flag"
10029 || test ! -s conftest.err'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try
='test -s conftest$ac_exeext'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_search_opendir
="-l$ac_lib"
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.
$ac_ext >&5
10048 rm -f conftest.err conftest.
$ac_objext \
10049 conftest
$ac_exeext conftest.
$ac_ext
10052 LIBS
=$ac_func_search_save_LIBS
10054 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10055 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10056 if test "$ac_cv_search_opendir" != no
; then
10057 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
10064 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10066 if test "${ac_cv_header_stdc+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10072 cat confdefs.h
>>conftest.
$ac_ext
10073 cat >>conftest.
$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <stdlib.h>
10076 #include <stdarg.h>
10077 #include <string.h>
10088 rm -f conftest.
$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10092 grep -v '^ *+' conftest.er1
>conftest.err
10094 cat conftest.err
>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try
='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try
='test -s conftest.$ac_objext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 ac_cv_header_stdc
=yes
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.
$ac_ext >&5
10115 ac_cv_header_stdc
=no
10117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10119 if test $ac_cv_header_stdc = yes; then
10120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10121 cat >conftest.
$ac_ext <<_ACEOF
10124 cat confdefs.h
>>conftest.
$ac_ext
10125 cat >>conftest.
$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <string.h>
10130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10131 $EGREP "memchr" >/dev
/null
2>&1; then
10134 ac_cv_header_stdc
=no
10140 if test $ac_cv_header_stdc = yes; then
10141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10142 cat >conftest.
$ac_ext <<_ACEOF
10145 cat confdefs.h
>>conftest.
$ac_ext
10146 cat >>conftest.
$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10152 $EGREP "free" >/dev
/null
2>&1; then
10155 ac_cv_header_stdc
=no
10161 if test $ac_cv_header_stdc = yes; then
10162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10163 if test "$cross_compiling" = yes; then
10166 cat >conftest.
$ac_ext <<_ACEOF
10169 cat confdefs.h
>>conftest.
$ac_ext
10170 cat >>conftest.
$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10173 #if ((' ' & 0x0FF) == 0x020)
10174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10177 # define ISLOWER(c) \
10178 (('a' <= (c) && (c) <= 'i') \
10179 || ('j' <= (c) && (c) <= 'r') \
10180 || ('s' <= (c) && (c) <= 'z'))
10181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10189 for (i = 0; i < 256; i++)
10190 if (XOR (islower (i), ISLOWER (i))
10191 || toupper (i) != TOUPPER (i))
10196 rm -f conftest
$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10209 echo "$as_me: program exited with status $ac_status" >&5
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.
$ac_ext >&5
10213 ( exit $ac_status )
10214 ac_cv_header_stdc
=no
10216 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10221 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10222 if test $ac_cv_header_stdc = yes; then
10224 cat >>confdefs.h
<<\_ACEOF
10225 #define STDC_HEADERS 1
10230 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10231 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10232 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.
$ac_ext <<_ACEOF
10238 cat confdefs.h
>>conftest.
$ac_ext
10239 cat >>conftest.
$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <sys/types.h>
10242 #include <sys/wait.h>
10243 #ifndef WEXITSTATUS
10244 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10247 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10255 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10260 rm -f conftest.
$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10264 grep -v '^ *+' conftest.er1
>conftest.err
10266 cat conftest.err
>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try
='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try
='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_header_sys_wait_h
=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_cv_header_sys_wait_h
=no
10289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10292 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10293 if test $ac_cv_header_sys_wait_h = yes; then
10295 cat >>confdefs.h
<<\_ACEOF
10296 #define HAVE_SYS_WAIT_H 1
10302 if test $ac_cv_header_sys_wait_h = no
; then
10303 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10304 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10305 cat >conftest.
$ac_ext <<_ACEOF
10308 cat confdefs.h
>>conftest.
$ac_ext
10309 cat >>conftest.
$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <sys/wait.h>
10315 union wait xx, yy; xx = yy
10320 rm -f conftest.
$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>conftest.er1
10324 grep -v '^ *+' conftest.er1
>conftest.err
10326 cat conftest.err
>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try
='test -z "$ac_c_werror_flag"
10330 || test ! -s conftest.err'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try
='test -s conftest.$ac_objext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 echo "$as_me:$LINENO: result: yes" >&5
10343 echo "${ECHO_T}yes" >&6
10344 cat >>confdefs.h
<<\_ACEOF
10345 #define HAVE_SYS_WAIT_H 1
10348 cat >>confdefs.h
<<\_ACEOF
10349 #define HAVE_UNION_WAIT 1
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.
$ac_ext >&5
10356 echo "$as_me:$LINENO: result: no" >&5
10357 echo "${ECHO_T}no" >&6
10359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10403 for ac_header
in stdarg.h stdlib.h string.h sys
/select.h sys
/utsname.h \
10404 termcap.h fcntl.h sgtty.h sys
/ioctl.h sys
/time.h sys
/types.h termio.h \
10405 iconv.h langinfo.h unistd.h stropts.h errno.h \
10406 sys
/resource.h sys
/systeminfo.h locale.h \
10407 sys
/stream.h sys
/ptem.h termios.h libc.h sys
/statfs.h \
10408 poll.h sys
/poll.h
pwd.h utime.h sys
/param.h libintl.h \
10409 libgen.h util
/debug.h util
/msg18n.h frame.h \
10410 sys
/acl.h sys
/access.h sys
/sysctl.h sys
/sysinfo.h wchar.h wctype.h
10412 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10414 echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10422 # Is the header compilable?
10423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10425 cat >conftest.
$ac_ext <<_ACEOF
10428 cat confdefs.h
>>conftest.
$ac_ext
10429 cat >>conftest.
$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 $ac_includes_default
10432 #include <$ac_header>
10434 rm -f conftest.
$ac_objext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>conftest.er1
10438 grep -v '^ *+' conftest.er1
>conftest.err
10440 cat conftest.err
>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try
='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try
='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_header_compiler
=yes
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.
$ac_ext >&5
10461 ac_header_compiler
=no
10463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10465 echo "${ECHO_T}$ac_header_compiler" >&6
10467 # Is the header present?
10468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10470 cat >conftest.
$ac_ext <<_ACEOF
10473 cat confdefs.h
>>conftest.
$ac_ext
10474 cat >>conftest.
$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <$ac_header>
10478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10481 grep -v '^ *+' conftest.er1
>conftest.err
10483 cat conftest.err
>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev
/null
; then
10486 if test -s conftest.err
; then
10487 ac_cpp_err
=$ac_c_preproc_warn_flag
10488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10495 if test -z "$ac_cpp_err"; then
10496 ac_header_preproc
=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.
$ac_ext >&5
10501 ac_header_preproc
=no
10503 rm -f conftest.err conftest.
$ac_ext
10504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10505 echo "${ECHO_T}$ac_header_preproc" >&6
10507 # So? What about this header?
10508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10514 ac_header_preproc
=yes
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10531 ## ------------------------------------------ ##
10532 ## Report this to the AC_PACKAGE_NAME lists. ##
10533 ## ------------------------------------------ ##
10536 sed "s/^/$as_me: WARNING: /" >&2
10539 echo "$as_me:$LINENO: checking for $ac_header" >&5
10540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 eval "$as_ac_Header=\$ac_header_preproc"
10546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10551 cat >>confdefs.h
<<_ACEOF
10552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10560 echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10561 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10562 cat >conftest.
$ac_ext <<_ACEOF
10565 cat confdefs.h
>>conftest.
$ac_ext
10566 cat >>conftest.
$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10569 #include <pthread.h>
10570 #include <pthread_np.h>
10579 rm -f conftest.
$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>conftest.er1
10583 grep -v '^ *+' conftest.er1
>conftest.err
10585 cat conftest.err
>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try
='test -z "$ac_c_werror_flag"
10589 || test ! -s conftest.err'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try
='test -s conftest.$ac_objext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6
10603 cat >>confdefs.h
<<\_ACEOF
10604 #define HAVE_PTHREAD_NP_H 1
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.
$ac_ext >&5
10611 echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10617 for ac_header
in strings.h
10619 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10621 echo "$as_me:$LINENO: checking for $ac_header" >&5
10622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10629 # Is the header compilable?
10630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&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 $ac_includes_default
10639 #include <$ac_header>
10641 rm -f conftest.
$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>conftest.er1
10645 grep -v '^ *+' conftest.er1
>conftest.err
10647 cat conftest.err
>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try
='test -z "$ac_c_werror_flag"
10651 || test ! -s conftest.err'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try
='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_header_compiler
=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.
$ac_ext >&5
10668 ac_header_compiler
=no
10670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672 echo "${ECHO_T}$ac_header_compiler" >&6
10674 # Is the header present?
10675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <$ac_header>
10685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10688 grep -v '^ *+' conftest.er1
>conftest.err
10690 cat conftest.err
>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev
/null
; then
10693 if test -s conftest.err
; then
10694 ac_cpp_err
=$ac_c_preproc_warn_flag
10695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10702 if test -z "$ac_cpp_err"; then
10703 ac_header_preproc
=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.
$ac_ext >&5
10708 ac_header_preproc
=no
10710 rm -f conftest.err conftest.
$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10712 echo "${ECHO_T}$ac_header_preproc" >&6
10714 # So? What about this header?
10715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10721 ac_header_preproc
=yes
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10738 ## ------------------------------------------ ##
10739 ## Report this to the AC_PACKAGE_NAME lists. ##
10740 ## ------------------------------------------ ##
10743 sed "s/^/$as_me: WARNING: /" >&2
10746 echo "$as_me:$LINENO: checking for $ac_header" >&5
10747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 eval "$as_ac_Header=\$ac_header_preproc"
10753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10758 cat >>confdefs.h
<<_ACEOF
10759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10766 if test "x$MACOSX" = "xyes"; then
10767 cat >>confdefs.h
<<\_ACEOF
10768 #define NO_STRINGS_WITH_STRING_H 1
10773 echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10774 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10775 cppflags_save
=$CPPFLAGS
10776 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10777 cat >conftest.
$ac_ext <<_ACEOF
10780 cat confdefs.h
>>conftest.
$ac_ext
10781 cat >>conftest.
$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10784 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10785 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10786 /* but don't do it on AIX 5.1 (Uribarri) */
10788 #ifdef HAVE_XM_XM_H
10789 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10791 #ifdef HAVE_STRING_H
10792 # include <string.h>
10794 #if defined(HAVE_STRINGS_H)
10795 # include <strings.h>
10806 rm -f conftest.
$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1
>conftest.err
10812 cat conftest.err
>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try
='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try
='test -s conftest.$ac_objext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 echo "$as_me:$LINENO: result: yes" >&5
10829 echo "${ECHO_T}yes" >&6
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.
$ac_ext >&5
10834 cat >>confdefs.h
<<\_ACEOF
10835 #define NO_STRINGS_WITH_STRING_H 1
10838 echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6
10841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10842 CPPFLAGS
=$cppflags_save
10845 if test $ac_cv_c_compiler_gnu = yes; then
10846 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10847 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10848 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 ac_pattern
="Autoconf.*'x'"
10852 cat >conftest.
$ac_ext <<_ACEOF
10855 cat confdefs.h
>>conftest.
$ac_ext
10856 cat >>conftest.
$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10862 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10863 ac_cv_prog_gcc_traditional
=yes
10865 ac_cv_prog_gcc_traditional
=no
10870 if test $ac_cv_prog_gcc_traditional = no
; then
10871 cat >conftest.
$ac_ext <<_ACEOF
10874 cat confdefs.h
>>conftest.
$ac_ext
10875 cat >>conftest.
$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <termio.h>
10880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10882 ac_cv_prog_gcc_traditional
=yes
10888 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10889 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10890 if test $ac_cv_prog_gcc_traditional = yes; then
10891 CC
="$CC -traditional"
10895 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10896 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10897 if test "${ac_cv_c_const+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 cat >conftest.
$ac_ext <<_ACEOF
10903 cat confdefs.h
>>conftest.
$ac_ext
10904 cat >>conftest.
$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10910 /* FIXME: Include the comments suggested by Paul. */
10911 #ifndef __cplusplus
10912 /* Ultrix mips cc rejects this. */
10913 typedef int charset[2];
10915 /* SunOS 4.1.1 cc rejects this. */
10916 char const *const *ccp;
10918 /* NEC SVR4.0.2 mips cc rejects this. */
10919 struct point {int x, y;};
10920 static struct point const zero = {0,0};
10921 /* AIX XL C 1.02.0.0 rejects this.
10922 It does not let you subtract one const X* pointer from another in
10923 an arm of an if-expression whose if-part is not a constant
10925 const char *g = "string";
10926 ccp = &g + (g ? g-g : 0);
10927 /* HPUX 7.0 cc rejects these. */
10930 ccp = (char const *const *) p;
10931 { /* SCO 3.2v4 cc rejects this. */
10933 char const *s = 0 ? (char *) 0 : (char const *) 0;
10937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10938 int x[] = {25, 17};
10939 const int *foo = &x[0];
10942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10943 typedef const int *iptr;
10947 { /* AIX XL C 1.02.0.0 rejects this saying
10948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10949 struct s { int j; const int *ap[3]; };
10950 struct s *b; b->j = 5;
10952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10953 const int foo = 10;
10961 rm -f conftest.
$ac_objext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963 (eval $ac_compile) 2>conftest.er1
10965 grep -v '^ *+' conftest.er1
>conftest.err
10967 cat conftest.err
>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try
='test -z "$ac_c_werror_flag"
10971 || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try
='test -s conftest.$ac_objext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.
$ac_ext >&5
10990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10992 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10993 echo "${ECHO_T}$ac_cv_c_const" >&6
10994 if test $ac_cv_c_const = no
; then
10996 cat >>confdefs.h
<<\_ACEOF
11002 echo "$as_me:$LINENO: checking for mode_t" >&5
11003 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11004 if test "${ac_cv_type_mode_t+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.
$ac_ext <<_ACEOF
11010 cat confdefs.h
>>conftest.
$ac_ext
11011 cat >>conftest.
$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_includes_default
11019 if (sizeof (mode_t))
11025 rm -f conftest.
$ac_objext
11026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027 (eval $ac_compile) 2>conftest.er1
11029 grep -v '^ *+' conftest.er1
>conftest.err
11031 cat conftest.err
>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try
='test -z "$ac_c_werror_flag"
11035 || test ! -s conftest.err'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try
='test -s conftest.$ac_objext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_type_mode_t
=yes
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.
$ac_ext >&5
11052 ac_cv_type_mode_t
=no
11054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11056 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11057 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11058 if test $ac_cv_type_mode_t = yes; then
11062 cat >>confdefs.h
<<_ACEOF
11068 echo "$as_me:$LINENO: checking for off_t" >&5
11069 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11070 if test "${ac_cv_type_off_t+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 cat >conftest.
$ac_ext <<_ACEOF
11076 cat confdefs.h
>>conftest.
$ac_ext
11077 cat >>conftest.
$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 $ac_includes_default
11085 if (sizeof (off_t))
11091 rm -f conftest.
$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>conftest.er1
11095 grep -v '^ *+' conftest.er1
>conftest.err
11097 cat conftest.err
>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try
='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try
='test -s conftest.$ac_objext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_cv_type_off_t
=yes
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.
$ac_ext >&5
11118 ac_cv_type_off_t
=no
11120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11122 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11123 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11124 if test $ac_cv_type_off_t = yes; then
11128 cat >>confdefs.h
<<_ACEOF
11134 echo "$as_me:$LINENO: checking for pid_t" >&5
11135 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11136 if test "${ac_cv_type_pid_t+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.
$ac_ext <<_ACEOF
11142 cat confdefs.h
>>conftest.
$ac_ext
11143 cat >>conftest.
$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 $ac_includes_default
11151 if (sizeof (pid_t))
11157 rm -f conftest.
$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11161 grep -v '^ *+' conftest.er1
>conftest.err
11163 cat conftest.err
>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try
='test -z "$ac_c_werror_flag"
11167 || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try
='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_cv_type_pid_t
=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.
$ac_ext >&5
11184 ac_cv_type_pid_t
=no
11186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11188 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11189 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11190 if test $ac_cv_type_pid_t = yes; then
11194 cat >>confdefs.h
<<_ACEOF
11200 echo "$as_me:$LINENO: checking for size_t" >&5
11201 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11202 if test "${ac_cv_type_size_t+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 cat >conftest.
$ac_ext <<_ACEOF
11208 cat confdefs.h
>>conftest.
$ac_ext
11209 cat >>conftest.
$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 $ac_includes_default
11217 if (sizeof (size_t))
11223 rm -f conftest.
$ac_objext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1
>conftest.err
11229 cat conftest.err
>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try
='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try
='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_type_size_t
=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.
$ac_ext >&5
11250 ac_cv_type_size_t
=no
11252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11254 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11255 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11256 if test $ac_cv_type_size_t = yes; then
11260 cat >>confdefs.h
<<_ACEOF
11261 #define size_t unsigned
11266 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11267 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11268 if test "${ac_cv_type_uid_t+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.
$ac_ext <<_ACEOF
11274 cat confdefs.h
>>conftest.
$ac_ext
11275 cat >>conftest.
$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <sys/types.h>
11280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11281 $EGREP "uid_t" >/dev
/null
2>&1; then
11282 ac_cv_type_uid_t
=yes
11284 ac_cv_type_uid_t
=no
11289 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11290 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11291 if test $ac_cv_type_uid_t = no
; then
11293 cat >>confdefs.h
<<\_ACEOF
11298 cat >>confdefs.h
<<\_ACEOF
11304 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11305 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11306 if test "${ac_cv_header_time+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.
$ac_ext <<_ACEOF
11312 cat confdefs.h
>>conftest.
$ac_ext
11313 cat >>conftest.
$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11316 #include <sys/time.h>
11322 if ((struct tm *) 0)
11328 rm -f conftest.
$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11332 grep -v '^ *+' conftest.er1
>conftest.err
11334 cat conftest.err
>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try
='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try
='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 ac_cv_header_time
=yes
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 ac_cv_header_time
=no
11357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11359 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11360 echo "${ECHO_T}$ac_cv_header_time" >&6
11361 if test $ac_cv_header_time = yes; then
11363 cat >>confdefs.h
<<\_ACEOF
11364 #define TIME_WITH_SYS_TIME 1
11369 echo "$as_me:$LINENO: checking for ino_t" >&5
11370 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11371 if test "${ac_cv_type_ino_t+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.
$ac_ext <<_ACEOF
11377 cat confdefs.h
>>conftest.
$ac_ext
11378 cat >>conftest.
$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 $ac_includes_default
11386 if (sizeof (ino_t))
11392 rm -f conftest.
$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>conftest.er1
11396 grep -v '^ *+' conftest.er1
>conftest.err
11398 cat conftest.err
>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try
='test -z "$ac_c_werror_flag"
11402 || test ! -s conftest.err'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try
='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_type_ino_t
=yes
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.
$ac_ext >&5
11419 ac_cv_type_ino_t
=no
11421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11425 if test $ac_cv_type_ino_t = yes; then
11429 cat >>confdefs.h
<<_ACEOF
11435 echo "$as_me:$LINENO: checking for dev_t" >&5
11436 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11437 if test "${ac_cv_type_dev_t+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 cat >conftest.
$ac_ext <<_ACEOF
11443 cat confdefs.h
>>conftest.
$ac_ext
11444 cat >>conftest.
$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 $ac_includes_default
11452 if (sizeof (dev_t))
11458 rm -f conftest.
$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>conftest.er1
11462 grep -v '^ *+' conftest.er1
>conftest.err
11464 cat conftest.err
>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try
='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try
='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_type_dev_t
=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.
$ac_ext >&5
11485 ac_cv_type_dev_t
=no
11487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11489 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11490 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11491 if test $ac_cv_type_dev_t = yes; then
11495 cat >>confdefs.h
<<_ACEOF
11496 #define dev_t unsigned
11502 echo "$as_me:$LINENO: checking for rlim_t" >&5
11503 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11504 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11505 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11506 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11508 cat >conftest.
$ac_ext <<_ACEOF
11511 cat confdefs.h
>>conftest.
$ac_ext
11512 cat >>conftest.
$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11515 #include <sys/types.h>
11517 #include <stdlib.h>
11518 #include <stddef.h>
11520 #ifdef HAVE_SYS_RESOURCE_H
11521 #include <sys/resource.h>
11525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11526 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11527 ac_cv_type_rlim_t
=yes
11529 ac_cv_type_rlim_t
=no
11533 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11534 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11536 if test $ac_cv_type_rlim_t = no
; then
11537 cat >> confdefs.h
<<\EOF
11538 #define rlim_t unsigned long
11542 echo "$as_me:$LINENO: checking for stack_t" >&5
11543 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11544 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11545 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11546 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11548 cat >conftest.
$ac_ext <<_ACEOF
11551 cat confdefs.h
>>conftest.
$ac_ext
11552 cat >>conftest.
$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11555 #include <sys/types.h>
11557 #include <stdlib.h>
11558 #include <stddef.h>
11560 #include <signal.h>
11563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11564 $EGREP "stack_t" >/dev
/null
2>&1; then
11565 ac_cv_type_stack_t
=yes
11567 ac_cv_type_stack_t
=no
11571 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11572 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11574 if test $ac_cv_type_stack_t = no
; then
11575 cat >> confdefs.h
<<\EOF
11576 #define stack_t struct sigaltstack
11580 echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11581 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11582 cat >conftest.
$ac_ext <<_ACEOF
11585 cat confdefs.h
>>conftest.
$ac_ext
11586 cat >>conftest.
$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11589 #include <sys/types.h>
11591 #include <stdlib.h>
11592 #include <stddef.h>
11594 #include <signal.h>
11595 #include "confdefs.h"
11600 stack_t sigstk; sigstk.ss_base = 0;
11605 rm -f conftest.
$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>conftest.er1
11609 grep -v '^ *+' conftest.er1
>conftest.err
11611 cat conftest.err
>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try
='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try
='test -s conftest.$ac_objext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 echo "$as_me:$LINENO: result: yes" >&5
11628 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
11629 #define HAVE_SS_BASE 1
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.
$ac_ext >&5
11636 echo "$as_me:$LINENO: result: no" >&5
11637 echo "${ECHO_T}no" >&6
11639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11642 echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11643 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11645 # Check whether --with-tlib or --without-tlib was given.
11646 if test "${with_tlib+set}" = set; then
11647 withval
="$with_tlib"
11650 if test -n "$with_tlib"; then
11651 echo "$as_me:$LINENO: result: $with_tlib" >&5
11652 echo "${ECHO_T}$with_tlib" >&6
11653 LIBS
="$LIBS -l$with_tlib"
11654 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11655 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11656 cat >conftest.
$ac_ext <<_ACEOF
11659 cat confdefs.h
>>conftest.
$ac_ext
11660 cat >>conftest.
$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11671 rm -f conftest.
$ac_objext conftest
$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>conftest.er1
11675 grep -v '^ *+' conftest.er1
>conftest.err
11677 cat conftest.err
>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try
='test -z "$ac_c_werror_flag"
11681 || test ! -s conftest.err'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try
='test -s conftest$ac_exeext'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 echo "$as_me:$LINENO: result: OK" >&5
11694 echo "${ECHO_T}OK" >&6
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.
$ac_ext >&5
11699 { { echo "$as_me:$LINENO: error: FAILED" >&5
11700 echo "$as_me: error: FAILED" >&2;}
11701 { (exit 1); exit 1; }; }
11703 rm -f conftest.err conftest.
$ac_objext \
11704 conftest
$ac_exeext conftest.
$ac_ext
11707 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11708 echo "${ECHO_T}empty: automatic terminal library selection" >&6
11709 case "`uname -s 2>/dev/null`" in
11710 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
11711 *) tlibs
="ncurses termlib termcap curses";;
11713 for libname
in $tlibs; do
11715 as_ac_Lib
=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11716 echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11717 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 ac_check_lib_save_LIBS
=$LIBS
11722 LIBS
="-l${libname} $LIBS"
11723 cat >conftest.
$ac_ext <<_ACEOF
11726 cat confdefs.h
>>conftest.
$ac_ext
11727 cat >>conftest.
$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11730 /* Override any gcc2 internal prototype to avoid an error. */
11734 /* We use char because int might match the return type of a gcc2
11735 builtin and then its argument prototype would still apply. */
11745 rm -f conftest.
$ac_objext conftest
$ac_exeext
11746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11747 (eval $ac_link) 2>conftest.er1
11749 grep -v '^ *+' conftest.er1
>conftest.err
11751 cat conftest.err
>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try
='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try
='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 eval "$as_ac_Lib=yes"
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.
$ac_ext >&5
11772 eval "$as_ac_Lib=no"
11774 rm -f conftest.err conftest.
$ac_objext \
11775 conftest
$ac_exeext conftest.
$ac_ext
11776 LIBS
=$ac_check_lib_save_LIBS
11778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11779 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11780 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11781 cat >>confdefs.h
<<_ACEOF
11782 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11785 LIBS
="-l${libname} $LIBS"
11789 if test "x$olibs" != "x$LIBS"; then
11790 if test "$cross_compiling" = yes; then
11793 cat >conftest.
$ac_ext <<_ACEOF
11796 cat confdefs.h
>>conftest.
$ac_ext
11797 cat >>conftest.
$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11800 #ifdef HAVE_TERMCAP_H
11801 # include <termcap.h>
11803 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11805 rm -f conftest
$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11818 echo "$as_me: program exited with status $ac_status" >&5
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.
$ac_ext >&5
11822 ( exit $ac_status )
11825 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11827 if test "$res" = "OK"; then
11830 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11831 echo "${ECHO_T}$libname library is not usable" >&6
11835 if test "x$olibs" = "x$LIBS"; then
11836 echo "$as_me:$LINENO: result: no terminal library found" >&5
11837 echo "${ECHO_T}no terminal library found" >&6
11841 if test "x$olibs" = "x$LIBS"; then
11842 echo "$as_me:$LINENO: checking for tgetent()" >&5
11843 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11844 cat >conftest.
$ac_ext <<_ACEOF
11847 cat confdefs.h
>>conftest.
$ac_ext
11848 cat >>conftest.
$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11854 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11859 rm -f conftest.
$ac_objext conftest
$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>conftest.er1
11863 grep -v '^ *+' conftest.er1
>conftest.err
11865 cat conftest.err
>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try
='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try
='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.
$ac_ext >&5
11887 { { echo "$as_me:$LINENO: error: NOT FOUND!
11888 You need to install a terminal library; for example ncurses.
11889 Or specify the name of the library with --with-tlib." >&5
11890 echo "$as_me: error: NOT FOUND!
11891 You need to install a terminal library; for example ncurses.
11892 Or specify the name of the library with --with-tlib." >&2;}
11893 { (exit 1); exit 1; }; }
11895 rm -f conftest.err conftest.
$ac_objext \
11896 conftest
$ac_exeext conftest.
$ac_ext
11899 echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11900 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11901 if test "$cross_compiling" = yes; then
11902 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11903 echo "$as_me: error: failed to compile test program." >&2;}
11904 { (exit 1); exit 1; }; }
11906 cat >conftest.
$ac_ext <<_ACEOF
11909 cat confdefs.h
>>conftest.
$ac_ext
11910 cat >>conftest.
$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11913 #ifdef HAVE_TERMCAP_H
11914 # include <termcap.h>
11917 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11919 rm -f conftest
$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11931 echo "${ECHO_T}no -- we are in termcap land" >&6
11933 echo "$as_me: program exited with status $ac_status" >&5
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.
$ac_ext >&5
11937 ( exit $ac_status )
11938 echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11939 echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h
<<\_ACEOF
11944 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11947 if test "x$olibs" != "x$LIBS"; then
11948 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11949 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11950 if test "$cross_compiling" = yes; then
11951 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11952 echo "$as_me: error: failed to compile test program." >&2;}
11953 { (exit 1); exit 1; }; }
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 #ifdef HAVE_TERMCAP_H
11963 # include <termcap.h>
11966 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11968 rm -f conftest
$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 echo "$as_me:$LINENO: result: zero" >&5
11980 echo "${ECHO_T}zero" >&6; cat >>confdefs.h
<<\_ACEOF
11981 #define TGETENT_ZERO_ERR 0
11985 echo "$as_me: program exited with status $ac_status" >&5
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.
$ac_ext >&5
11989 ( exit $ac_status )
11990 echo "$as_me:$LINENO: result: non-zero" >&5
11991 echo "${ECHO_T}non-zero" >&6
11993 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11997 echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11998 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #ifdef HAVE_TERMCAP_H
12007 # include <termcap.h>
12018 rm -f conftest.
$ac_objext conftest
$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>conftest.er1
12022 grep -v '^ *+' conftest.er1
>conftest.err
12024 cat conftest.err
>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try
='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try
='test -s conftest$ac_exeext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 echo "$as_me:$LINENO: result: yes" >&5
12041 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12042 #define HAVE_OSPEED 1
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.
$ac_ext >&5
12049 echo "$as_me:$LINENO: result: no" >&5
12050 echo "${ECHO_T}no" >&6
12051 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12052 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
12053 cat >conftest.
$ac_ext <<_ACEOF
12056 cat confdefs.h
>>conftest.
$ac_ext
12057 cat >>conftest.
$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12060 #ifdef HAVE_TERMCAP_H
12061 # include <termcap.h>
12063 extern short ospeed;
12073 rm -f conftest.
$ac_objext conftest
$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12077 grep -v '^ *+' conftest.er1
>conftest.err
12079 cat conftest.err
>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try
='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try
='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 echo "$as_me:$LINENO: result: yes" >&5
12096 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12097 #define OSPEED_EXTERN 1
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.
$ac_ext >&5
12104 echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6
12107 rm -f conftest.err conftest.
$ac_objext \
12108 conftest
$ac_exeext conftest.
$ac_ext
12111 rm -f conftest.err conftest.
$ac_objext \
12112 conftest
$ac_exeext conftest.
$ac_ext
12114 echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12115 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12116 cat >conftest.
$ac_ext <<_ACEOF
12119 cat confdefs.h
>>conftest.
$ac_ext
12120 cat >>conftest.
$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12123 #ifdef HAVE_TERMCAP_H
12124 # include <termcap.h>
12130 if (UP == 0 && BC == 0) PC = 1
12135 rm -f conftest.
$ac_objext conftest
$ac_exeext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137 (eval $ac_link) 2>conftest.er1
12139 grep -v '^ *+' conftest.er1
>conftest.err
12141 cat conftest.err
>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try
='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try
='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 echo "$as_me:$LINENO: result: yes" >&5
12158 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12159 #define HAVE_UP_BC_PC 1
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.
$ac_ext >&5
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12168 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12169 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12170 cat >conftest.
$ac_ext <<_ACEOF
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 #ifdef HAVE_TERMCAP_H
12178 # include <termcap.h>
12180 extern char *UP, *BC, PC;
12185 if (UP == 0 && BC == 0) PC = 1
12190 rm -f conftest.
$ac_objext conftest
$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>conftest.er1
12194 grep -v '^ *+' conftest.er1
>conftest.err
12196 cat conftest.err
>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try
='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try
='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 echo "$as_me:$LINENO: result: yes" >&5
12213 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12214 #define UP_BC_PC_EXTERN 1
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.
$ac_ext >&5
12221 echo "$as_me:$LINENO: result: no" >&5
12222 echo "${ECHO_T}no" >&6
12224 rm -f conftest.err conftest.
$ac_objext \
12225 conftest
$ac_exeext conftest.
$ac_ext
12228 rm -f conftest.err conftest.
$ac_objext \
12229 conftest
$ac_exeext conftest.
$ac_ext
12231 echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12232 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12233 cat >conftest.
$ac_ext <<_ACEOF
12236 cat confdefs.h
>>conftest.
$ac_ext
12237 cat >>conftest.
$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12240 #ifdef HAVE_TERMCAP_H
12241 # include <termcap.h>
12247 extern int xx(); tputs("test", 1, (outfuntype)xx)
12252 rm -f conftest.
$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12256 grep -v '^ *+' conftest.er1
>conftest.err
12258 cat conftest.err
>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try
='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try
='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 echo "$as_me:$LINENO: result: yes" >&5
12275 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12276 #define HAVE_OUTFUNTYPE 1
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.
$ac_ext >&5
12283 echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6
12286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12288 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12289 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12290 cat >conftest.
$ac_ext <<_ACEOF
12293 cat confdefs.h
>>conftest.
$ac_ext
12294 cat >>conftest.
$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12297 #include <sys/types.h>
12298 #include <sys/time.h>
12299 #include <sys/select.h>
12308 rm -f conftest.
$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12312 grep -v '^ *+' conftest.er1
>conftest.err
12314 cat conftest.err
>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try
='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try
='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 echo "$as_me:$LINENO: result: yes" >&5
12331 echo "${ECHO_T}yes" >&6
12332 cat >>confdefs.h
<<\_ACEOF
12333 #define SYS_SELECT_WITH_SYS_TIME 1
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.
$ac_ext >&5
12340 echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6
12343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12346 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12347 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12348 if test -r /dev
/ptc
; then
12349 cat >>confdefs.h
<<\_ACEOF
12350 #define HAVE_DEV_PTC 1
12353 echo "$as_me:$LINENO: result: yes" >&5
12354 echo "${ECHO_T}yes" >&6
12356 echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12360 echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12361 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12362 if test -c /dev
/ptmx
; then
12363 cat >conftest.
$ac_ext <<_ACEOF
12366 cat confdefs.h
>>conftest.
$ac_ext
12367 cat >>conftest.
$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12373 ptsname(0);grantpt(0);unlockpt(0);
12378 rm -f conftest.
$ac_objext conftest
$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1
>conftest.err
12384 cat conftest.err
>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try
='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try
='test -s conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 echo "$as_me:$LINENO: result: yes" >&5
12401 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12402 #define HAVE_SVR4_PTYS 1
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.
$ac_ext >&5
12409 echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6
12412 rm -f conftest.err conftest.
$ac_objext \
12413 conftest
$ac_exeext conftest.
$ac_ext
12415 echo "$as_me:$LINENO: result: no" >&5
12416 echo "${ECHO_T}no" >&6
12419 echo "$as_me:$LINENO: checking for ptyranges" >&5
12420 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12421 if test -d /dev
/ptym
; then
12426 cat >conftest.
$ac_ext <<_ACEOF
12429 cat confdefs.h
>>conftest.
$ac_ext
12430 cat >>conftest.
$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12438 $EGREP "yes" >/dev
/null
2>&1; then
12439 ptys
=`echo /dev/ptyp??`
12441 ptys
=`echo $pdir/pty??`
12445 if test "$ptys" != "$pdir/pty??" ; then
12446 p0
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12447 p1
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12448 cat >>confdefs.h
<<_ACEOF
12449 #define PTYRANGE0 "$p0"
12452 cat >>confdefs.h
<<_ACEOF
12453 #define PTYRANGE1 "$p1"
12456 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12457 echo "${ECHO_T}$p0 / $p1" >&6
12459 echo "$as_me:$LINENO: result: don't know" >&5
12460 echo "${ECHO_T}don't know" >&6
12463 echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12464 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12466 if test "$cross_compiling" = yes; then
12467 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12468 echo "$as_me: error: failed to compile test program" >&2;}
12469 { (exit 1); exit 1; }; }
12471 cat >conftest.
$ac_ext <<_ACEOF
12474 cat confdefs.h
>>conftest.
$ac_ext
12475 cat >>conftest.
$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12478 #include <sys/types.h>
12479 #include <sys/stat.h>
12484 char *x,*ttyname();
12488 if (!(x = ttyname(0))) exit(1);
12489 if (stat(x, &sb)) exit(1);
12491 if (om & 002) exit(0);
12492 m = system("mesg y");
12493 if (m == -1 || m == 127) exit(1);
12494 if (stat(x, &sb)) exit(1);
12496 if (chmod(x, om)) exit(1);
12497 if (m & 002) exit(0);
12498 if (sb.st_gid == getgid()) exit(1);
12499 if (!(fp=fopen("conftest_grp", "w")))
12501 fprintf(fp, "%d\n", sb.st_gid);
12507 rm -f conftest
$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12519 if test -f conftest_grp
; then
12520 ptygrp
=`cat conftest_grp`
12521 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12522 echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12523 cat >>confdefs.h
<<\_ACEOF
12524 #define PTYMODE 0620
12527 cat >>confdefs.h
<<_ACEOF
12528 #define PTYGROUP $ptygrp
12532 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12533 echo "${ECHO_T}ptys are world accessable" >&6
12537 echo "$as_me: program exited with status $ac_status" >&5
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.
$ac_ext >&5
12541 ( exit $ac_status )
12542 echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12543 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12545 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12550 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12551 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12552 if test "${ac_cv_type_signal+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 cat >conftest.
$ac_ext <<_ACEOF
12558 cat confdefs.h
>>conftest.
$ac_ext
12559 cat >>conftest.
$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 #include <sys/types.h>
12562 #include <signal.h>
12567 extern "C" void (*signal (int, void (*)(int)))(int);
12569 void (*signal ()) ();
12580 rm -f conftest.
$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582 (eval $ac_compile) 2>conftest.er1
12584 grep -v '^ *+' conftest.er1
>conftest.err
12586 cat conftest.err
>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try
='test -z "$ac_c_werror_flag"
12590 || test ! -s conftest.err'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try
='test -s conftest.$ac_objext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_type_signal
=void
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.
$ac_ext >&5
12607 ac_cv_type_signal
=int
12609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12612 echo "${ECHO_T}$ac_cv_type_signal" >&6
12614 cat >>confdefs.h
<<_ACEOF
12615 #define RETSIGTYPE $ac_cv_type_signal
12620 if test $ac_cv_type_signal = void
; then
12621 cat >>confdefs.h
<<\_ACEOF
12622 #define SIGRETURN return
12626 cat >>confdefs.h
<<\_ACEOF
12627 #define SIGRETURN return 0
12632 echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12633 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12634 cat >conftest.
$ac_ext <<_ACEOF
12637 cat confdefs.h
>>conftest.
$ac_ext
12638 cat >>conftest.
$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 #include <signal.h>
12644 struct sigcontext *scont;
12645 scont = (struct sigcontext *)0;
12656 rm -f conftest.
$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12660 grep -v '^ *+' conftest.er1
>conftest.err
12662 cat conftest.err
>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try
='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try
='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6
12680 cat >>confdefs.h
<<\_ACEOF
12681 #define HAVE_SIGCONTEXT 1
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.
$ac_ext >&5
12688 echo "$as_me:$LINENO: result: no" >&5
12689 echo "${ECHO_T}no" >&6
12691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12693 echo "$as_me:$LINENO: checking getcwd implementation" >&5
12694 echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12695 if test "$cross_compiling" = yes; then
12696 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12697 echo "$as_me: error: failed to compile test program" >&2;}
12698 { (exit 1); exit 1; }; }
12700 cat >conftest.
$ac_ext <<_ACEOF
12703 cat confdefs.h
>>conftest.
$ac_ext
12704 cat >>conftest.
$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 char *dagger[] = { "IFS=pwd", 0 };
12711 extern char **environ;
12713 return getcwd(buffer, 500) ? 0 : 1;
12716 rm -f conftest
$ac_exeext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718 (eval $ac_link) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 echo "$as_me:$LINENO: result: it is usable" >&5
12728 echo "${ECHO_T}it is usable" >&6
12730 echo "$as_me: program exited with status $ac_status" >&5
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.
$ac_ext >&5
12734 ( exit $ac_status )
12735 echo "$as_me:$LINENO: result: it stinks" >&5
12736 echo "${ECHO_T}it stinks" >&6
12737 cat >>confdefs.h
<<\_ACEOF
12738 #define BAD_GETCWD 1
12742 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12791 for ac_func
in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12792 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12793 memset nanosleep opendir putenv qsort readlink
select setenv \
12794 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12795 sigvec strcasecmp strerror strftime stricmp strncasecmp \
12796 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12797 usleep utime utimes
12799 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_var+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.
$ac_ext <<_ACEOF
12808 cat confdefs.h
>>conftest.
$ac_ext
12809 cat >>conftest.
$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813 #define $ac_func innocuous_$ac_func
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12821 # include <limits.h>
12823 # include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error. */
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12836 /* The GNU C library defines this for functions which it implements
12837 to always fail with ENOSYS. Some functions are actually named
12838 something starting with __ and the normal name is an alias. */
12839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12842 char (*f) () = $ac_func;
12851 return f != $ac_func;
12856 rm -f conftest.
$ac_objext conftest
$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>conftest.er1
12860 grep -v '^ *+' conftest.er1
>conftest.err
12862 cat conftest.err
>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try
='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try
='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 eval "$as_ac_var=yes"
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.
$ac_ext >&5
12883 eval "$as_ac_var=no"
12885 rm -f conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12890 if test `eval echo '${'$as_ac_var'}'` = yes; then
12891 cat >>confdefs.h
<<_ACEOF
12892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12899 echo "$as_me:$LINENO: checking for st_blksize" >&5
12900 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12901 cat >conftest.
$ac_ext <<_ACEOF
12904 cat confdefs.h
>>conftest.
$ac_ext
12905 cat >>conftest.
$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12907 #include <sys/types.h>
12908 #include <sys/stat.h>
12916 n = (int)st.st_blksize;
12921 rm -f conftest.
$ac_objext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12925 grep -v '^ *+' conftest.er1
>conftest.err
12927 cat conftest.err
>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try
='test -z "$ac_c_werror_flag"
12931 || test ! -s conftest.err'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try
='test -s conftest.$ac_objext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 echo "$as_me:$LINENO: result: yes" >&5
12944 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12945 #define HAVE_ST_BLKSIZE 1
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.
$ac_ext >&5
12952 echo "$as_me:$LINENO: result: no" >&5
12953 echo "${ECHO_T}no" >&6
12955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12957 echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12958 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12959 if test "$cross_compiling" = yes; then
12960 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12961 echo "$as_me: error: failed to compile test program" >&2;}
12962 { (exit 1); exit 1; }; }
12964 cat >conftest.
$ac_ext <<_ACEOF
12967 cat confdefs.h
>>conftest.
$ac_ext
12968 cat >>conftest.
$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <sys/types.h>
12971 #include <sys/stat.h>
12972 main() {struct stat st; exit(stat("configure/", &st) != 0); }
12974 rm -f conftest
$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 echo "$as_me:$LINENO: result: yes" >&5
12986 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
12987 #define STAT_IGNORES_SLASH 1
12991 echo "$as_me: program exited with status $ac_status" >&5
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.
$ac_ext >&5
12995 ( exit $ac_status )
12996 echo "$as_me:$LINENO: result: no" >&5
12997 echo "${ECHO_T}no" >&6
12999 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13002 echo "$as_me:$LINENO: checking for iconv_open()" >&5
13003 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
13005 LIBS
="$LIBS -liconv"
13006 cat >conftest.
$ac_ext <<_ACEOF
13009 cat confdefs.h
>>conftest.
$ac_ext
13010 cat >>conftest.
$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13013 #ifdef HAVE_ICONV_H
13014 # include <iconv.h>
13020 iconv_open("fr", "to");
13025 rm -f conftest.
$ac_objext conftest
$ac_exeext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13027 (eval $ac_link) 2>conftest.er1
13029 grep -v '^ *+' conftest.er1
>conftest.err
13031 cat conftest.err
>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try
='test -z "$ac_c_werror_flag"
13035 || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try
='test -s conftest$ac_exeext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13048 echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h
<<\_ACEOF
13049 #define HAVE_ICONV 1
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.
$ac_ext >&5
13057 cat >conftest.
$ac_ext <<_ACEOF
13060 cat confdefs.h
>>conftest.
$ac_ext
13061 cat >>conftest.
$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13064 #ifdef HAVE_ICONV_H
13065 # include <iconv.h>
13071 iconv_open("fr", "to");
13076 rm -f conftest.
$ac_objext conftest
$ac_exeext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13078 (eval $ac_link) 2>conftest.er1
13080 grep -v '^ *+' conftest.er1
>conftest.err
13082 cat conftest.err
>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try
='test -z "$ac_c_werror_flag"
13086 || test ! -s conftest.err'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try
='test -s conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 echo "$as_me:$LINENO: result: yes" >&5
13099 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13100 #define HAVE_ICONV 1
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.
$ac_ext >&5
13107 echo "$as_me:$LINENO: result: no" >&5
13108 echo "${ECHO_T}no" >&6
13110 rm -f conftest.err conftest.
$ac_objext \
13111 conftest
$ac_exeext conftest.
$ac_ext
13113 rm -f conftest.err conftest.
$ac_objext \
13114 conftest
$ac_exeext conftest.
$ac_ext
13117 echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13118 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13119 cat >conftest.
$ac_ext <<_ACEOF
13122 cat confdefs.h
>>conftest.
$ac_ext
13123 cat >>conftest.
$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 #ifdef HAVE_LANGINFO_H
13127 # include <langinfo.h>
13133 char *cs = nl_langinfo(CODESET);
13138 rm -f conftest.
$ac_objext conftest
$ac_exeext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13140 (eval $ac_link) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1
>conftest.err
13144 cat conftest.err
>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try
='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try
='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 echo "$as_me:$LINENO: result: yes" >&5
13161 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13162 #define HAVE_NL_LANGINFO_CODESET 1
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.
$ac_ext >&5
13169 echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6
13172 rm -f conftest.err conftest.
$ac_objext \
13173 conftest
$ac_exeext conftest.
$ac_ext
13175 echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13176 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13177 # Check whether --enable-acl or --disable-acl was given.
13178 if test "${enable_acl+set}" = set; then
13179 enableval
="$enable_acl"
13184 if test "$enable_acl" = "yes"; then
13185 echo "$as_me:$LINENO: result: no" >&5
13186 echo "${ECHO_T}no" >&6
13187 echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13188 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13189 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 ac_check_lib_save_LIBS
=$LIBS
13193 LIBS
="-lposix1e $LIBS"
13194 cat >conftest.
$ac_ext <<_ACEOF
13197 cat confdefs.h
>>conftest.
$ac_ext
13198 cat >>conftest.
$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any gcc2 internal prototype to avoid an error. */
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char acl_get_file ();
13216 rm -f conftest.
$ac_objext conftest
$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1
>conftest.err
13222 cat conftest.err
>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try
='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try
='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_posix1e_acl_get_file
=yes
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.
$ac_ext >&5
13243 ac_cv_lib_posix1e_acl_get_file
=no
13245 rm -f conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13247 LIBS
=$ac_check_lib_save_LIBS
13249 echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13250 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13251 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13252 LIBS
="$LIBS -lposix1e"
13254 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13255 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13256 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 ac_check_lib_save_LIBS
=$LIBS
13261 cat >conftest.
$ac_ext <<_ACEOF
13264 cat confdefs.h
>>conftest.
$ac_ext
13265 cat >>conftest.
$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 /* Override any gcc2 internal prototype to avoid an error. */
13272 /* We use char because int might match the return type of a gcc2
13273 builtin and then its argument prototype would still apply. */
13274 char acl_get_file ();
13283 rm -f conftest.
$ac_objext conftest
$ac_exeext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13285 (eval $ac_link) 2>conftest.er1
13287 grep -v '^ *+' conftest.er1
>conftest.err
13289 cat conftest.err
>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try
='test -z "$ac_c_werror_flag"
13293 || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try
='test -s conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_lib_acl_acl_get_file
=yes
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.
$ac_ext >&5
13310 ac_cv_lib_acl_acl_get_file
=no
13312 rm -f conftest.err conftest.
$ac_objext \
13313 conftest
$ac_exeext conftest.
$ac_ext
13314 LIBS
=$ac_check_lib_save_LIBS
13316 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13317 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13318 if test $ac_cv_lib_acl_acl_get_file = yes; then
13320 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13321 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13322 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 ac_check_lib_save_LIBS
=$LIBS
13326 LIBS
="-lattr $LIBS"
13327 cat >conftest.
$ac_ext <<_ACEOF
13330 cat confdefs.h
>>conftest.
$ac_ext
13331 cat >>conftest.
$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 /* Override any gcc2 internal prototype to avoid an error. */
13338 /* We use char because int might match the return type of a gcc2
13339 builtin and then its argument prototype would still apply. */
13349 rm -f conftest.
$ac_objext conftest
$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>conftest.er1
13353 grep -v '^ *+' conftest.er1
>conftest.err
13355 cat conftest.err
>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try
='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try
='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_lib_attr_fgetxattr
=yes
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.
$ac_ext >&5
13376 ac_cv_lib_attr_fgetxattr
=no
13378 rm -f conftest.err conftest.
$ac_objext \
13379 conftest
$ac_exeext conftest.
$ac_ext
13380 LIBS
=$ac_check_lib_save_LIBS
13382 echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13383 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13384 if test $ac_cv_lib_attr_fgetxattr = yes; then
13385 LIBS
="$LIBS -lattr"
13393 echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13394 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13395 cat >conftest.
$ac_ext <<_ACEOF
13398 cat confdefs.h
>>conftest.
$ac_ext
13399 cat >>conftest.
$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 #include <sys/types.h>
13403 #ifdef HAVE_SYS_ACL_H
13404 # include <sys/acl.h>
13410 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13411 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13417 rm -f conftest.
$ac_objext conftest
$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>conftest.er1
13421 grep -v '^ *+' conftest.er1
>conftest.err
13423 cat conftest.err
>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try
='test -z "$ac_c_werror_flag"
13427 || test ! -s conftest.err'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } &&
13433 { ac_try
='test -s conftest$ac_exeext'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 echo "$as_me:$LINENO: result: yes" >&5
13440 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13441 #define HAVE_POSIX_ACL 1
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.
$ac_ext >&5
13448 echo "$as_me:$LINENO: result: no" >&5
13449 echo "${ECHO_T}no" >&6
13451 rm -f conftest.err conftest.
$ac_objext \
13452 conftest
$ac_exeext conftest.
$ac_ext
13454 echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13455 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13456 cat >conftest.
$ac_ext <<_ACEOF
13459 cat confdefs.h
>>conftest.
$ac_ext
13460 cat >>conftest.
$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13463 #ifdef HAVE_SYS_ACL_H
13464 # include <sys/acl.h>
13469 acl("foo", GETACLCNT, 0, NULL);
13475 rm -f conftest.
$ac_objext conftest
$ac_exeext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477 (eval $ac_link) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1
>conftest.err
13481 cat conftest.err
>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try
='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try
='test -s conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13499 #define HAVE_SOLARIS_ACL 1
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.
$ac_ext >&5
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13509 rm -f conftest.err conftest.
$ac_objext \
13510 conftest
$ac_exeext conftest.
$ac_ext
13512 echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13513 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13514 cat >conftest.
$ac_ext <<_ACEOF
13517 cat confdefs.h
>>conftest.
$ac_ext
13518 cat >>conftest.
$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13521 #ifdef HAVE_SYS_ACL_H
13522 # include <sys/acl.h>
13524 #ifdef HAVE_SYS_ACCESS_H
13525 # include <sys/access.h>
13527 #define _ALL_SOURCE
13529 #include <sys/stat.h>
13532 struct acl *aclent;
13536 aclsize = sizeof(struct acl);
13537 aclent = (void *)malloc(aclsize);
13538 statacl("foo", STX_NORMAL, aclent, aclsize);
13544 rm -f conftest.
$ac_objext conftest
$ac_exeext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546 (eval $ac_link) 2>conftest.er1
13548 grep -v '^ *+' conftest.er1
>conftest.err
13550 cat conftest.err
>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try
='test -z "$ac_c_werror_flag"
13554 || test ! -s conftest.err'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try
='test -s conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 echo "$as_me:$LINENO: result: yes" >&5
13567 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13568 #define HAVE_AIX_ACL 1
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.
$ac_ext >&5
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13578 rm -f conftest.err conftest.
$ac_objext \
13579 conftest
$ac_exeext conftest.
$ac_ext
13581 echo "$as_me:$LINENO: result: yes" >&5
13582 echo "${ECHO_T}yes" >&6
13585 echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13586 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13587 # Check whether --enable-gpm or --disable-gpm was given.
13588 if test "${enable_gpm+set}" = set; then
13589 enableval
="$enable_gpm"
13595 if test "$enable_gpm" = "yes"; then
13596 echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6
13598 echo "$as_me:$LINENO: checking for gpm" >&5
13599 echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13600 if test "${vi_cv_have_gpm+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 olibs
="$LIBS" ; LIBS
="-lgpm"
13604 cat >conftest.
$ac_ext <<_ACEOF
13607 cat confdefs.h
>>conftest.
$ac_ext
13608 cat >>conftest.
$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13611 #include <linux/keyboard.h>
13615 Gpm_GetLibVersion(NULL);
13620 rm -f conftest.
$ac_objext conftest
$ac_exeext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13622 (eval $ac_link) 2>conftest.er1
13624 grep -v '^ *+' conftest.er1
>conftest.err
13626 cat conftest.err
>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try
='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try
='test -s conftest$ac_exeext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.
$ac_ext >&5
13649 rm -f conftest.err conftest.
$ac_objext \
13650 conftest
$ac_exeext conftest.
$ac_ext
13654 echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13655 echo "${ECHO_T}$vi_cv_have_gpm" >&6
13656 if test $vi_cv_have_gpm = yes; then
13658 cat >>confdefs.h
<<\_ACEOF
13664 echo "$as_me:$LINENO: result: yes" >&5
13665 echo "${ECHO_T}yes" >&6
13668 echo "$as_me:$LINENO: checking for rename" >&5
13669 echo $ECHO_N "checking for rename... $ECHO_C" >&6
13670 cat >conftest.
$ac_ext <<_ACEOF
13673 cat confdefs.h
>>conftest.
$ac_ext
13674 cat >>conftest.
$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13680 rename("this", "that")
13685 rm -f conftest.
$ac_objext conftest
$ac_exeext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687 (eval $ac_link) 2>conftest.er1
13689 grep -v '^ *+' conftest.er1
>conftest.err
13691 cat conftest.err
>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try
='test -z "$ac_c_werror_flag"
13695 || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try
='test -s conftest$ac_exeext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 echo "$as_me:$LINENO: result: yes" >&5
13708 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13709 #define HAVE_RENAME 1
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.
$ac_ext >&5
13716 echo "$as_me:$LINENO: result: no" >&5
13717 echo "${ECHO_T}no" >&6
13719 rm -f conftest.err conftest.
$ac_objext \
13720 conftest
$ac_exeext conftest.
$ac_ext
13722 echo "$as_me:$LINENO: checking for sysctl" >&5
13723 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13724 cat >conftest.
$ac_ext <<_ACEOF
13727 cat confdefs.h
>>conftest.
$ac_ext
13728 cat >>conftest.
$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13731 #include <sys/sysctl.h>
13739 mib[1] = HW_USERMEM;
13741 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13747 rm -f conftest.
$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1
>conftest.err
13753 cat conftest.err
>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try
='test -z "$ac_c_werror_flag"
13757 || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try
='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 echo "$as_me:$LINENO: result: yes" >&5
13770 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13771 #define HAVE_SYSCTL 1
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.
$ac_ext >&5
13778 echo "$as_me:$LINENO: result: not usable" >&5
13779 echo "${ECHO_T}not usable" >&6
13781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13783 echo "$as_me:$LINENO: checking for sysinfo" >&5
13784 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13785 cat >conftest.
$ac_ext <<_ACEOF
13788 cat confdefs.h
>>conftest.
$ac_ext
13789 cat >>conftest.
$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 #include <sys/types.h>
13792 #include <sys/sysinfo.h>
13796 struct sysinfo sinfo;
13799 (void)sysinfo(&sinfo);
13800 t = sinfo.totalram;
13806 rm -f conftest.
$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try
='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try
='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 echo "$as_me:$LINENO: result: yes" >&5
13829 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13830 #define HAVE_SYSINFO 1
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.
$ac_ext >&5
13837 echo "$as_me:$LINENO: result: not usable" >&5
13838 echo "${ECHO_T}not usable" >&6
13840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13842 echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13843 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13844 cat >conftest.
$ac_ext <<_ACEOF
13847 cat confdefs.h
>>conftest.
$ac_ext
13848 cat >>conftest.
$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 #include <sys/types.h>
13851 #include <sys/sysinfo.h>
13855 struct sysinfo sinfo;
13856 sinfo.mem_unit = 1;
13862 rm -f conftest.
$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864 (eval $ac_compile) 2>conftest.er1
13866 grep -v '^ *+' conftest.er1
>conftest.err
13868 cat conftest.err
>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try
='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try
='test -s conftest.$ac_objext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 echo "$as_me:$LINENO: result: yes" >&5
13885 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13886 #define HAVE_SYSINFO_MEM_UNIT 1
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.
$ac_ext >&5
13893 echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6
13896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13898 echo "$as_me:$LINENO: checking for sysconf" >&5
13899 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13900 cat >conftest.
$ac_ext <<_ACEOF
13903 cat confdefs.h
>>conftest.
$ac_ext
13904 cat >>conftest.
$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 #include <unistd.h>
13910 (void)sysconf(_SC_PAGESIZE);
13911 (void)sysconf(_SC_PHYS_PAGES);
13917 rm -f conftest.
$ac_objext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>conftest.er1
13921 grep -v '^ *+' conftest.er1
>conftest.err
13923 cat conftest.err
>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try
='test -z "$ac_c_werror_flag"
13927 || test ! -s conftest.err'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try
='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 echo "$as_me:$LINENO: result: yes" >&5
13940 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
13941 #define HAVE_SYSCONF 1
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.
$ac_ext >&5
13948 echo "$as_me:$LINENO: result: not usable" >&5
13949 echo "${ECHO_T}not usable" >&6
13951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13954 echo "$as_me:$LINENO: checking size of int" >&5
13955 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13956 if test "${ac_cv_sizeof_int+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 if test "$cross_compiling" = yes; then
13960 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13961 echo "$as_me: error: failed to compile test program" >&2;}
13962 { (exit 1); exit 1; }; }
13964 cat >conftest.
$ac_ext <<_ACEOF
13967 cat confdefs.h
>>conftest.
$ac_ext
13968 cat >>conftest.
$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13973 FILE *f=fopen("conftestval", "w");
13975 fprintf(f, "%d\n", (int)sizeof(int));
13979 rm -f conftest
$ac_exeext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_sizeof_int
=`cat conftestval`
13992 echo "$as_me: program exited with status $ac_status" >&5
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.
$ac_ext >&5
13996 ( exit $ac_status )
13999 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14004 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14005 cat >>confdefs.h
<<_ACEOF
14006 #define SIZEOF_INT $ac_cv_sizeof_int
14010 echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
14011 echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
14015 strcpy(buf, "abcdefghi");
14016 mch_memmove(buf, buf + 2, 3);
14017 if (strncmp(buf, "ababcf", 6))
14019 strcpy(buf, "abcdefghi");
14020 mch_memmove(buf + 2, buf, 3);
14021 if (strncmp(buf, "cdedef", 6))
14023 exit(0); /* libc version works properly. */
14027 if test "$cross_compiling" = yes; then
14028 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14029 echo "$as_me: error: failed to compile test program" >&2;}
14030 { (exit 1); exit 1; }; }
14032 cat >conftest.
$ac_ext <<_ACEOF
14035 cat confdefs.h
>>conftest.
$ac_ext
14036 cat >>conftest.
$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14040 rm -f conftest
$ac_exeext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14042 (eval $ac_link) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 cat >>confdefs.h
<<\_ACEOF
14052 #define USEMEMMOVE 1
14054 echo "$as_me:$LINENO: result: memmove does" >&5
14055 echo "${ECHO_T}memmove does" >&6
14057 echo "$as_me: program exited with status $ac_status" >&5
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.
$ac_ext >&5
14061 ( exit $ac_status )
14062 if test "$cross_compiling" = yes; then
14063 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14064 echo "$as_me: error: failed to compile test program" >&2;}
14065 { (exit 1); exit 1; }; }
14067 cat >conftest.
$ac_ext <<_ACEOF
14070 cat confdefs.h
>>conftest.
$ac_ext
14071 cat >>conftest.
$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14075 rm -f conftest
$ac_exeext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 cat >>confdefs.h
<<\_ACEOF
14089 echo "$as_me:$LINENO: result: bcopy does" >&5
14090 echo "${ECHO_T}bcopy does" >&6
14092 echo "$as_me: program exited with status $ac_status" >&5
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.
$ac_ext >&5
14096 ( exit $ac_status )
14097 if test "$cross_compiling" = yes; then
14098 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14099 echo "$as_me: error: failed to compile test program" >&2;}
14100 { (exit 1); exit 1; }; }
14102 cat >conftest.
$ac_ext <<_ACEOF
14105 cat confdefs.h
>>conftest.
$ac_ext
14106 cat >>conftest.
$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14110 rm -f conftest
$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 cat >>confdefs.h
<<\_ACEOF
14122 #define USEMEMCPY 1
14124 echo "$as_me:$LINENO: result: memcpy does" >&5
14125 echo "${ECHO_T}memcpy does" >&6
14127 echo "$as_me: program exited with status $ac_status" >&5
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.
$ac_ext >&5
14131 ( exit $ac_status )
14132 echo "$as_me:$LINENO: result: no" >&5
14133 echo "${ECHO_T}no" >&6
14135 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14138 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14141 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14145 if test "$enable_multibyte" = "yes"; then
14146 cflags_save
=$CFLAGS
14147 ldflags_save
=$LDFLAGS
14148 if test -n "$x_includes" ; then
14149 CFLAGS
="$CFLAGS -I$x_includes"
14150 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
14151 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14152 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14153 cat >conftest.
$ac_ext <<_ACEOF
14156 cat confdefs.h
>>conftest.
$ac_ext
14157 cat >>conftest.
$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <X11/Xlocale.h>
14168 rm -f conftest.
$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1
>conftest.err
14174 cat conftest.err
>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try
='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try
='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 cat >conftest.
$ac_ext <<_ACEOF
14193 cat confdefs.h
>>conftest.
$ac_ext
14194 cat >>conftest.
$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14197 /* Override any gcc2 internal prototype to avoid an error. */
14201 /* We use char because int might match the return type of a gcc2
14202 builtin and then its argument prototype would still apply. */
14203 char _Xsetlocale ();
14212 rm -f conftest.
$ac_objext conftest
$ac_exeext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>conftest.er1
14216 grep -v '^ *+' conftest.er1
>conftest.err
14218 cat conftest.err
>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try
='test -z "$ac_c_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try
='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 echo "$as_me:$LINENO: result: yes" >&5
14235 echo "${ECHO_T}yes" >&6
14236 cat >>confdefs.h
<<\_ACEOF
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.
$ac_ext >&5
14244 echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6
14247 rm -f conftest.err conftest.
$ac_objext \
14248 conftest
$ac_exeext conftest.
$ac_ext
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.
$ac_ext >&5
14253 echo "$as_me:$LINENO: result: no" >&5
14254 echo "${ECHO_T}no" >&6
14256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14258 CFLAGS
=$cflags_save
14259 LDFLAGS
=$ldflags_save
14262 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14263 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14264 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 ac_check_lib_save_LIBS
=$LIBS
14268 LIBS
="-lxpg4 $LIBS"
14269 cat >conftest.
$ac_ext <<_ACEOF
14272 cat confdefs.h
>>conftest.
$ac_ext
14273 cat >>conftest.
$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14276 /* Override any gcc2 internal prototype to avoid an error. */
14280 /* We use char because int might match the return type of a gcc2
14281 builtin and then its argument prototype would still apply. */
14282 char _xpg4_setrunelocale ();
14286 _xpg4_setrunelocale ();
14291 rm -f conftest.
$ac_objext conftest
$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>conftest.er1
14295 grep -v '^ *+' conftest.er1
>conftest.err
14297 cat conftest.err
>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try
='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try
='test -s conftest$ac_exeext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_cv_lib_xpg4__xpg4_setrunelocale
=yes
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.
$ac_ext >&5
14318 ac_cv_lib_xpg4__xpg4_setrunelocale
=no
14320 rm -f conftest.err conftest.
$ac_objext \
14321 conftest
$ac_exeext conftest.
$ac_ext
14322 LIBS
=$ac_check_lib_save_LIBS
14324 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14325 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14326 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14327 LIBS
="$LIBS -lxpg4"
14331 echo "$as_me:$LINENO: checking how to create tags" >&5
14332 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14333 test -f tags
&& mv tags tags.save
14334 if (eval ctags
--version /dev
/null |
grep Exuberant
) < /dev
/null
1>&5 2>&1; then
14335 TAGPRG
="ctags -I INIT+ --fields=+S"
14337 (eval etags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags"
14338 (eval etags
-c /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags -c"
14339 (eval ctags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags"
14340 (eval ctags
-t /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -t"
14341 (eval ctags
-ts /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -ts"
14342 (eval ctags
-tvs /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -tvs"
14343 (eval ctags
-i+m
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -i+m"
14345 test -f tags.save
&& mv tags.save tags
14346 echo "$as_me:$LINENO: result: $TAGPRG" >&5
14347 echo "${ECHO_T}$TAGPRG" >&6
14349 echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14350 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14352 (eval MANPAGER
=cat PAGER
=cat man
-s 2 read) < /dev
/null
> /dev
/null
2>&5 && MANDEF
="man -s"
14353 echo "$as_me:$LINENO: result: $MANDEF" >&5
14354 echo "${ECHO_T}$MANDEF" >&6
14355 if test "$MANDEF" = "man -s"; then
14356 cat >>confdefs.h
<<\_ACEOF
14362 echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14363 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14364 # Check whether --enable-nls or --disable-nls was given.
14365 if test "${enable_nls+set}" = set; then
14366 enableval
="$enable_nls"
14372 if test "$enable_nls" = "yes"; then
14373 echo "$as_me:$LINENO: result: no" >&5
14374 echo "${ECHO_T}no" >&6
14376 INSTALL_LANGS
=install-languages
14378 INSTALL_TOOL_LANGS
=install-tool-languages
14381 # Extract the first word of "msgfmt", so it can be a program name with args.
14382 set dummy msgfmt
; ac_word
=$2
14383 echo "$as_me:$LINENO: checking for $ac_word" >&5
14384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14385 if test "${ac_cv_prog_MSGFMT+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 if test -n "$MSGFMT"; then
14389 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
14391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14392 for as_dir
in $PATH
14395 test -z "$as_dir" && as_dir
=.
14396 for ac_exec_ext
in '' $ac_executable_extensions; do
14397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_MSGFMT
="msgfmt"
14399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14407 MSGFMT
=$ac_cv_prog_MSGFMT
14408 if test -n "$MSGFMT"; then
14409 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14410 echo "${ECHO_T}$MSGFMT" >&6
14412 echo "$as_me:$LINENO: result: no" >&5
14413 echo "${ECHO_T}no" >&6
14416 echo "$as_me:$LINENO: checking for NLS" >&5
14417 echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14418 if test -f po
/Makefile
; then
14420 if test -n "$MSGFMT"; then
14421 cat >conftest.
$ac_ext <<_ACEOF
14424 cat confdefs.h
>>conftest.
$ac_ext
14425 cat >>conftest.
$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <libintl.h>
14436 rm -f conftest.
$ac_objext conftest
$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1
>conftest.err
14442 cat conftest.err
>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try
='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try
='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 echo "$as_me:$LINENO: result: gettext() works" >&5
14459 echo "${ECHO_T}gettext() works" >&6; have_gettext
="yes"
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.
$ac_ext >&5
14465 LIBS
="$LIBS -lintl"
14466 cat >conftest.
$ac_ext <<_ACEOF
14469 cat confdefs.h
>>conftest.
$ac_ext
14470 cat >>conftest.
$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <libintl.h>
14481 rm -f conftest.
$ac_objext conftest
$ac_exeext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483 (eval $ac_link) 2>conftest.er1
14485 grep -v '^ *+' conftest.er1
>conftest.err
14487 cat conftest.err
>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try
='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try
='test -s conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14504 echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext
="yes"
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.
$ac_ext >&5
14509 echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14510 echo "${ECHO_T}gettext() doesn't work" >&6;
14513 rm -f conftest.err conftest.
$ac_objext \
14514 conftest
$ac_exeext conftest.
$ac_ext
14516 rm -f conftest.err conftest.
$ac_objext \
14517 conftest
$ac_exeext conftest.
$ac_ext
14519 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14520 echo "${ECHO_T}msgfmt not found - disabled" >&6;
14522 if test $have_gettext = "yes"; then
14523 cat >>confdefs.h
<<\_ACEOF
14524 #define HAVE_GETTEXT 1
14530 for ac_func
in bind_textdomain_codeset
14532 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14533 echo "$as_me:$LINENO: checking for $ac_func" >&5
14534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14535 if eval "test \"\${$as_ac_var+set}\" = set"; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 cat >conftest.
$ac_ext <<_ACEOF
14541 cat confdefs.h
>>conftest.
$ac_ext
14542 cat >>conftest.
$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14546 #define $ac_func innocuous_$ac_func
14548 /* System header to define __stub macros and hopefully few prototypes,
14549 which can conflict with char $ac_func (); below.
14550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14551 <limits.h> exists even on freestanding compilers. */
14554 # include <limits.h>
14556 # include <assert.h>
14561 /* Override any gcc2 internal prototype to avoid an error. */
14566 /* We use char because int might match the return type of a gcc2
14567 builtin and then its argument prototype would still apply. */
14569 /* The GNU C library defines this for functions which it implements
14570 to always fail with ENOSYS. Some functions are actually named
14571 something starting with __ and the normal name is an alias. */
14572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 char (*f) () = $ac_func;
14584 return f != $ac_func;
14589 rm -f conftest.
$ac_objext conftest
$ac_exeext
14590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14591 (eval $ac_link) 2>conftest.er1
14593 grep -v '^ *+' conftest.er1
>conftest.err
14595 cat conftest.err
>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try
='test -z "$ac_c_werror_flag"
14599 || test ! -s conftest.err'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try
='test -s conftest$ac_exeext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 eval "$as_ac_var=yes"
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.
$ac_ext >&5
14616 eval "$as_ac_var=no"
14618 rm -f conftest.err conftest.
$ac_objext \
14619 conftest
$ac_exeext conftest.
$ac_ext
14621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14623 if test `eval echo '${'$as_ac_var'}'` = yes; then
14624 cat >>confdefs.h
<<_ACEOF
14625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14632 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14633 cat >conftest.
$ac_ext <<_ACEOF
14636 cat confdefs.h
>>conftest.
$ac_ext
14637 cat >>conftest.
$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 #include <libintl.h>
14640 extern int _nl_msg_cat_cntr;
14644 ++_nl_msg_cat_cntr;
14649 rm -f conftest.
$ac_objext conftest
$ac_exeext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>conftest.er1
14653 grep -v '^ *+' conftest.er1
>conftest.err
14655 cat conftest.err
>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try
='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try
='test -s conftest$ac_exeext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 echo "$as_me:$LINENO: result: yes" >&5
14672 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
14673 #define HAVE_NL_MSG_CAT_CNTR 1
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.
$ac_ext >&5
14680 echo "$as_me:$LINENO: result: no" >&5
14681 echo "${ECHO_T}no" >&6
14683 rm -f conftest.err conftest.
$ac_objext \
14684 conftest
$ac_exeext conftest.
$ac_ext
14687 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14688 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14691 echo "$as_me:$LINENO: result: yes" >&5
14692 echo "${ECHO_T}yes" >&6
14695 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14696 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14697 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14698 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14702 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14704 # Is the header compilable?
14705 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14706 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14707 cat >conftest.
$ac_ext <<_ACEOF
14710 cat confdefs.h
>>conftest.
$ac_ext
14711 cat >>conftest.
$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 $ac_includes_default
14716 rm -f conftest.
$ac_objext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718 (eval $ac_compile) 2>conftest.er1
14720 grep -v '^ *+' conftest.er1
>conftest.err
14722 cat conftest.err
>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try
='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try
='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_header_compiler
=yes
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.
$ac_ext >&5
14743 ac_header_compiler
=no
14745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14747 echo "${ECHO_T}$ac_header_compiler" >&6
14749 # Is the header present?
14750 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14751 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14763 grep -v '^ *+' conftest.er1
>conftest.err
14765 cat conftest.err
>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } >/dev
/null
; then
14768 if test -s conftest.err
; then
14769 ac_cpp_err
=$ac_c_preproc_warn_flag
14770 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14777 if test -z "$ac_cpp_err"; then
14778 ac_header_preproc
=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.
$ac_ext >&5
14783 ac_header_preproc
=no
14785 rm -f conftest.err conftest.
$ac_ext
14786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14787 echo "${ECHO_T}$ac_header_preproc" >&6
14789 # So? What about this header?
14790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14792 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14793 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14795 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14796 ac_header_preproc
=yes
14799 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14800 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14802 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14804 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14806 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14808 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14810 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14813 ## ------------------------------------------ ##
14814 ## Report this to the AC_PACKAGE_NAME lists. ##
14815 ## ------------------------------------------ ##
14818 sed "s/^/$as_me: WARNING: /" >&2
14821 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14822 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14823 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_cv_header_dlfcn_h
=$ac_header_preproc
14828 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14829 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14832 if test $ac_cv_header_dlfcn_h = yes; then
14835 if test "${ac_cv_header_dl_h+set}" = set; then
14836 echo "$as_me:$LINENO: checking for dl.h" >&5
14837 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14838 if test "${ac_cv_header_dl_h+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14842 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14844 # Is the header compilable?
14845 echo "$as_me:$LINENO: checking dl.h usability" >&5
14846 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14847 cat >conftest.
$ac_ext <<_ACEOF
14850 cat confdefs.h
>>conftest.
$ac_ext
14851 cat >>conftest.
$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 $ac_includes_default
14856 rm -f conftest.
$ac_objext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>conftest.er1
14860 grep -v '^ *+' conftest.er1
>conftest.err
14862 cat conftest.err
>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try
='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try
='test -s conftest.$ac_objext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_header_compiler
=yes
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.
$ac_ext >&5
14883 ac_header_compiler
=no
14885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887 echo "${ECHO_T}$ac_header_compiler" >&6
14889 # Is the header present?
14890 echo "$as_me:$LINENO: checking dl.h presence" >&5
14891 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14892 cat >conftest.
$ac_ext <<_ACEOF
14895 cat confdefs.h
>>conftest.
$ac_ext
14896 cat >>conftest.
$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14903 grep -v '^ *+' conftest.er1
>conftest.err
14905 cat conftest.err
>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } >/dev
/null
; then
14908 if test -s conftest.err
; then
14909 ac_cpp_err
=$ac_c_preproc_warn_flag
14910 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14917 if test -z "$ac_cpp_err"; then
14918 ac_header_preproc
=yes
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 ac_header_preproc
=no
14925 rm -f conftest.err conftest.
$ac_ext
14926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14927 echo "${ECHO_T}$ac_header_preproc" >&6
14929 # So? What about this header?
14930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14932 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14933 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14935 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14936 ac_header_preproc
=yes
14939 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14940 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14942 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14944 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14946 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14948 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14950 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14953 ## ------------------------------------------ ##
14954 ## Report this to the AC_PACKAGE_NAME lists. ##
14955 ## ------------------------------------------ ##
14958 sed "s/^/$as_me: WARNING: /" >&2
14961 echo "$as_me:$LINENO: checking for dl.h" >&5
14962 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14963 if test "${ac_cv_header_dl_h+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 ac_cv_header_dl_h
=$ac_header_preproc
14968 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14969 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14972 if test $ac_cv_header_dl_h = yes; then
14980 if test x
${DLL} = xdlfcn.h
; then
14982 cat >>confdefs.h
<<\_ACEOF
14983 #define HAVE_DLFCN_H 1
14986 echo "$as_me:$LINENO: checking for dlopen()" >&5
14987 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14999 extern void* dlopen();
15006 rm -f conftest.
$ac_objext conftest
$ac_exeext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15008 (eval $ac_link) 2>conftest.er1
15010 grep -v '^ *+' conftest.er1
>conftest.err
15012 cat conftest.err
>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } &&
15015 { ac_try
='test -z "$ac_c_werror_flag"
15016 || test ! -s conftest.err'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
15022 { ac_try
='test -s conftest$ac_exeext'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 echo "$as_me:$LINENO: result: yes" >&5
15029 echo "${ECHO_T}yes" >&6;
15031 cat >>confdefs.h
<<\_ACEOF
15032 #define HAVE_DLOPEN 1
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.
$ac_ext >&5
15039 echo "$as_me:$LINENO: result: no" >&5
15040 echo "${ECHO_T}no" >&6;
15041 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
15042 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
15045 cat >conftest.
$ac_ext <<_ACEOF
15048 cat confdefs.h
>>conftest.
$ac_ext
15049 cat >>conftest.
$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15056 extern void* dlopen();
15063 rm -f conftest.
$ac_objext conftest
$ac_exeext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065 (eval $ac_link) 2>conftest.er1
15067 grep -v '^ *+' conftest.er1
>conftest.err
15069 cat conftest.err
>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try
='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try
='test -s conftest$ac_exeext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 echo "$as_me:$LINENO: result: yes" >&5
15086 echo "${ECHO_T}yes" >&6;
15088 cat >>confdefs.h
<<\_ACEOF
15089 #define HAVE_DLOPEN 1
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.
$ac_ext >&5
15096 echo "$as_me:$LINENO: result: no" >&5
15097 echo "${ECHO_T}no" >&6;
15100 rm -f conftest.err conftest.
$ac_objext \
15101 conftest
$ac_exeext conftest.
$ac_ext
15103 rm -f conftest.err conftest.
$ac_objext \
15104 conftest
$ac_exeext conftest.
$ac_ext
15105 echo "$as_me:$LINENO: checking for dlsym()" >&5
15106 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15107 cat >conftest.
$ac_ext <<_ACEOF
15110 cat confdefs.h
>>conftest.
$ac_ext
15111 cat >>conftest.
$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15118 extern void* dlsym();
15125 rm -f conftest.
$ac_objext conftest
$ac_exeext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15127 (eval $ac_link) 2>conftest.er1
15129 grep -v '^ *+' conftest.er1
>conftest.err
15131 cat conftest.err
>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try
='test -z "$ac_c_werror_flag"
15135 || test ! -s conftest.err'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try
='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 echo "$as_me:$LINENO: result: yes" >&5
15148 echo "${ECHO_T}yes" >&6;
15150 cat >>confdefs.h
<<\_ACEOF
15151 #define HAVE_DLSYM 1
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.
$ac_ext >&5
15158 echo "$as_me:$LINENO: result: no" >&5
15159 echo "${ECHO_T}no" >&6;
15160 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15161 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
15164 cat >conftest.
$ac_ext <<_ACEOF
15167 cat confdefs.h
>>conftest.
$ac_ext
15168 cat >>conftest.
$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15175 extern void* dlsym();
15182 rm -f conftest.
$ac_objext conftest
$ac_exeext
15183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15184 (eval $ac_link) 2>conftest.er1
15186 grep -v '^ *+' conftest.er1
>conftest.err
15188 cat conftest.err
>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } &&
15191 { ac_try
='test -z "$ac_c_werror_flag"
15192 || test ! -s conftest.err'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try
='test -s conftest$ac_exeext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 echo "$as_me:$LINENO: result: yes" >&5
15205 echo "${ECHO_T}yes" >&6;
15207 cat >>confdefs.h
<<\_ACEOF
15208 #define HAVE_DLSYM 1
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.
$ac_ext >&5
15215 echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6;
15219 rm -f conftest.err conftest.
$ac_objext \
15220 conftest
$ac_exeext conftest.
$ac_ext
15222 rm -f conftest.err conftest.
$ac_objext \
15223 conftest
$ac_exeext conftest.
$ac_ext
15224 elif test x
${DLL} = xdl.h
; then
15226 cat >>confdefs.h
<<\_ACEOF
15227 #define HAVE_DL_H 1
15230 echo "$as_me:$LINENO: checking for shl_load()" >&5
15231 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15232 cat >conftest.
$ac_ext <<_ACEOF
15235 cat confdefs.h
>>conftest.
$ac_ext
15236 cat >>conftest.
$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15243 extern void* shl_load();
15250 rm -f conftest.
$ac_objext conftest
$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>conftest.er1
15254 grep -v '^ *+' conftest.er1
>conftest.err
15256 cat conftest.err
>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try
='test -z "$ac_c_werror_flag"
15260 || test ! -s conftest.err'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try
='test -s conftest$ac_exeext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 echo "$as_me:$LINENO: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6;
15275 cat >>confdefs.h
<<\_ACEOF
15276 #define HAVE_SHL_LOAD 1
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.
$ac_ext >&5
15283 echo "$as_me:$LINENO: result: no" >&5
15284 echo "${ECHO_T}no" >&6;
15285 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15286 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15289 cat >conftest.
$ac_ext <<_ACEOF
15292 cat confdefs.h
>>conftest.
$ac_ext
15293 cat >>conftest.
$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15300 extern void* shl_load();
15307 rm -f conftest.
$ac_objext conftest
$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>conftest.er1
15311 grep -v '^ *+' conftest.er1
>conftest.err
15313 cat conftest.err
>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try
='test -z "$ac_c_werror_flag"
15317 || test ! -s conftest.err'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try
='test -s conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 echo "$as_me:$LINENO: result: yes" >&5
15330 echo "${ECHO_T}yes" >&6;
15332 cat >>confdefs.h
<<\_ACEOF
15333 #define HAVE_SHL_LOAD 1
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.
$ac_ext >&5
15340 echo "$as_me:$LINENO: result: no" >&5
15341 echo "${ECHO_T}no" >&6;
15344 rm -f conftest.err conftest.
$ac_objext \
15345 conftest
$ac_exeext conftest.
$ac_ext
15347 rm -f conftest.err conftest.
$ac_objext \
15348 conftest
$ac_exeext conftest.
$ac_ext
15351 for ac_header
in setjmp.h
15353 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355 echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15363 # Is the header compilable?
15364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15366 cat >conftest.
$ac_ext <<_ACEOF
15369 cat confdefs.h
>>conftest.
$ac_ext
15370 cat >>conftest.
$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15373 #include <$ac_header>
15375 rm -f conftest.
$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15379 grep -v '^ *+' conftest.er1
>conftest.err
15381 cat conftest.err
>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try
='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try
='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_header_compiler
=yes
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.
$ac_ext >&5
15402 ac_header_compiler
=no
15404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406 echo "${ECHO_T}$ac_header_compiler" >&6
15408 # Is the header present?
15409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15411 cat >conftest.
$ac_ext <<_ACEOF
15414 cat confdefs.h
>>conftest.
$ac_ext
15415 cat >>conftest.
$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <$ac_header>
15419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15422 grep -v '^ *+' conftest.er1
>conftest.err
15424 cat conftest.err
>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev
/null
; then
15427 if test -s conftest.err
; then
15428 ac_cpp_err
=$ac_c_preproc_warn_flag
15429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15436 if test -z "$ac_cpp_err"; then
15437 ac_header_preproc
=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.
$ac_ext >&5
15442 ac_header_preproc
=no
15444 rm -f conftest.err conftest.
$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 echo "${ECHO_T}$ac_header_preproc" >&6
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc
=yes
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15472 ## ------------------------------------------ ##
15473 ## Report this to the AC_PACKAGE_NAME lists. ##
15474 ## ------------------------------------------ ##
15477 sed "s/^/$as_me: WARNING: /" >&2
15480 echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 eval "$as_ac_Header=\$ac_header_preproc"
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h
<<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15502 if echo $LIBS |
grep -e '-ldl' >/dev
/null
; then
15503 LIBS
=`echo $LIBS | sed s/-ldl//`
15504 PERL_LIBS
="$PERL_LIBS -ldl"
15508 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15509 && test "x$GUITYPE" != "xCARBONGUI"; then
15510 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15511 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15512 if test "x$enable_multibyte" = "xyes" ||
test "x$features" = "xbig" \
15513 ||
test "x$features" = "xhuge"; then
15514 LIBS
="$LIBS -framework Carbon"
15515 echo "$as_me:$LINENO: result: yes" >&5
15516 echo "${ECHO_T}yes" >&6
15518 echo "$as_me:$LINENO: result: no" >&5
15519 echo "${ECHO_T}no" >&6
15522 if test "x$MACARCH" = "xboth"; then
15523 LDFLAGS
="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15526 echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15527 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15528 DEPEND_CFLAGS_FILTER
=
15529 if test "$GCC" = yes; then
15530 gccmajor
=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15531 if test "$gccmajor" -gt "2"; then
15532 DEPEND_CFLAGS_FILTER
="| sed 's+-I */+-isystem /+g'"
15535 if test "$DEPEND_CFLAGS_FILTER" = ""; then
15536 echo "$as_me:$LINENO: result: no" >&5
15537 echo "${ECHO_T}no" >&6
15539 echo "$as_me:$LINENO: result: yes" >&5
15540 echo "${ECHO_T}yes" >&6
15544 ac_config_files
="$ac_config_files auto/config.mk:config.mk.in"
15545 cat >confcache
<<\_ACEOF
15546 # This file is a shell script that caches the results of configure
15547 # tests run on this system so they can be shared between configure
15548 # scripts and configure runs, see configure's option --config-cache.
15549 # It is not useful on other systems. If it contains results you don't
15550 # want to keep, you may remove or edit it.
15552 # config.status only pays attention to the cache file if you give it
15553 # the --recheck option to rerun configure.
15555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15557 # following values.
15561 # The following way of writing the cache mishandles newlines in values,
15562 # but we know of no workaround that is simple, portable, and efficient.
15563 # So, don't put newlines in cache variables' values.
15564 # Ultrix sh set writes to stderr and can't be redirected directly,
15565 # and sets the high bit in the cache file unless we assign to the vars.
15568 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15570 # `set' does not quote correctly, so add quotes (double-quote
15571 # substitution turns \\\\ into \\, and sed turns \\ into \).
15574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15577 # `set' quotes correctly as required by POSIX, so do not add quotes.
15579 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15588 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15590 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15591 if test -w $cache_file; then
15592 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15593 cat confcache
>$cache_file
15595 echo "not updating unwritable cache $cache_file"
15600 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15601 # Let make expand exec_prefix.
15602 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15606 # trailing colons and then remove the whole line if VPATH becomes empty
15607 # (actually we leave an empty line to preserve line numbers).
15608 if test "x$srcdir" = x.
; then
15609 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15610 s/:*\$(srcdir):*/:/;
15611 s/:*\${srcdir}:*/:/;
15613 s/^\([^=]*=[ ]*\):*/\1/;
15619 DEFS
=-DHAVE_CONFIG_H
15623 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15624 # 1. Remove the extension, and $U if already installed.
15625 ac_i
=`echo "$ac_i" |
15626 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15628 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15629 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15631 LIBOBJS
=$ac_libobjs
15633 LTLIBOBJS
=$ac_ltlibobjs
15637 : ${CONFIG_STATUS=./config.status}
15638 ac_clean_files_save
=$ac_clean_files
15639 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15640 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15641 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15642 cat >$CONFIG_STATUS <<_ACEOF
15644 # Generated by $as_me.
15645 # Run this file to recreate the current configuration.
15646 # Compiler output produced by configure, useful for debugging
15647 # configure, is in config.log if it exists.
15650 ac_cs_recheck=false
15652 SHELL=\${CONFIG_SHELL-$SHELL}
15655 cat >>$CONFIG_STATUS <<\_ACEOF
15656 ## --------------------- ##
15657 ## M4sh Initialization. ##
15658 ## --------------------- ##
15660 # Be Bourne compatible
15661 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15665 # is contrary to our usage. Disable this feature.
15666 alias -g '${1+"$@"}'='"$@"'
15667 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15670 DUALCASE
=1; export DUALCASE
# for MKS sh
15672 # Support unset when possible.
15673 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15680 # Work around bugs in pre-3.0 UWIN ksh.
15681 $as_unset ENV MAIL MAILPATH
15688 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15689 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15690 LC_TELEPHONE LC_TIME
15692 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15693 eval $as_var=C
; export $as_var
15699 # Required to use basename.
15700 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15706 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15707 as_basename
=basename
15713 # Name of the executable.
15714 as_me
=`$as_basename "$0" ||
15715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15716 X"$0" : 'X\(//\)$' \| \
15717 X"$0" : 'X\(/\)$' \| \
15718 . : '\(.\)' 2>/dev/null ||
15720 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15721 /^X\/\(\/\/\)$/{ s//\1/; q; }
15722 /^X\/\(\/\).*/{ s//\1/; q; }
15726 # PATH needs CR, and LINENO needs CR and PATH.
15727 # Avoid depending upon Character Ranges.
15728 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15729 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15730 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15731 as_cr_digits
='0123456789'
15732 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15734 # The user is always right.
15735 if test "${PATH_SEPARATOR+set}" != set; then
15736 echo "#! /bin/sh" >conf$$.sh
15737 echo "exit 0" >>conf$$.sh
15739 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15748 as_lineno_1
=$LINENO
15749 as_lineno_2
=$LINENO
15750 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15751 test "x$as_lineno_1" != "x$as_lineno_2" &&
15752 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15753 # Find who we are. Look in the path if we contain no path at all
15756 *[\\/]* ) as_myself
=$0 ;;
15757 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15758 for as_dir
in $PATH
15761 test -z "$as_dir" && as_dir
=.
15762 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15767 # We did not find ourselves, most probably we were run as `sh COMMAND'
15768 # in which case we are not to be found in the path.
15769 if test "x$as_myself" = x
; then
15772 if test ! -f "$as_myself"; then
15773 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15774 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15775 { (exit 1); exit 1; }; }
15777 case $CONFIG_SHELL in
15779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15780 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15783 test -z "$as_dir" && as_dir
=.
15784 for as_base
in sh bash ksh sh5
; do
15787 if ("$as_dir/$as_base" -c '
15788 as_lineno_1=$LINENO
15789 as_lineno_2=$LINENO
15790 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15791 test "x$as_lineno_1" != "x$as_lineno_2" &&
15792 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15793 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15794 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15795 CONFIG_SHELL
=$as_dir/$as_base
15796 export CONFIG_SHELL
15797 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15806 # uniformly replaced by the line number. The first 'sed' inserts a
15807 # line-number line before each line; the second 'sed' does the real
15808 # work. The second script uses 'N' to pair each line-number line
15809 # with the numbered line, and appends trailing '-' during
15810 # substitution so that $LINENO is not a special case at line end.
15811 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15812 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15813 sed '=' <$as_myself |
15818 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15821 s,^['$as_cr_digits']*\n,,
15822 ' >$as_me.lineno
&&
15823 chmod +x
$as_me.lineno ||
15824 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15825 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15826 { (exit 1); exit 1; }; }
15828 # Don't try to exec as it changes $[0], causing all sort of problems
15829 # (the dirname of $[0] is not the place where we might find the
15830 # original and so on. Autoconf is especially sensible to this).
15832 # Exit status is that of the last command.
15837 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15838 *c
*,-n*) ECHO_N
= ECHO_C
='
15840 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15841 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15844 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15850 rm -f conf$$ conf$$.exe conf$$.
file
15852 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15853 # We could just check for DJGPP; but this test a) works b) is more generic
15854 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15855 if test -f conf$$.exe
; then
15856 # Don't use ln at all; we don't have any links
15861 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15866 rm -f conf$$ conf$$.exe conf$$.
file
15868 if mkdir
-p .
2>/dev
/null
; then
15871 test -d .
/-p && rmdir .
/-p
15875 as_executable_p
="test -f"
15877 # Sed expression to map a string onto a valid CPP name.
15878 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15880 # Sed expression to map a string onto a valid variable name.
15881 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15885 # We need space, tab and new line, in precisely that order.
15895 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15896 # report actual input values of CONFIG_FILES etc. instead of their
15897 # values after options handling. Logging --version etc. is OK.
15898 exec 5>>auto
/config.log
15901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15902 ## Running $as_me. ##
15907 This file was extended by $as_me, which was
15908 generated by GNU Autoconf 2.59. Invocation command line was
15910 CONFIG_FILES = $CONFIG_FILES
15911 CONFIG_HEADERS = $CONFIG_HEADERS
15912 CONFIG_LINKS = $CONFIG_LINKS
15913 CONFIG_COMMANDS = $CONFIG_COMMANDS
15917 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15921 # Files that config.status was made for.
15922 if test -n "$ac_config_files"; then
15923 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15926 if test -n "$ac_config_headers"; then
15927 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15930 if test -n "$ac_config_links"; then
15931 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15934 if test -n "$ac_config_commands"; then
15935 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15938 cat >>$CONFIG_STATUS <<\_ACEOF
15941 \`$as_me' instantiates files from templates according to the
15942 current configuration.
15944 Usage: $0 [OPTIONS] [FILE]...
15946 -h, --help print this help, then exit
15947 -V, --version print version number, then exit
15948 -q, --quiet do not print progress messages
15949 -d, --debug don't remove temporary files
15950 --recheck update $as_me by reconfiguring in the same conditions
15951 --file=FILE[:TEMPLATE]
15952 instantiate the configuration file FILE
15953 --header=FILE[:TEMPLATE]
15954 instantiate the configuration header FILE
15956 Configuration files:
15959 Configuration headers:
15962 Report bugs to <bug-autoconf@gnu.org>."
15965 cat >>$CONFIG_STATUS <<_ACEOF
15968 configured by $0, generated by GNU Autoconf 2.59,
15969 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15971 Copyright (C) 2003 Free Software Foundation, Inc.
15972 This config.status script is free software; the Free Software Foundation
15973 gives unlimited permission to copy, distribute and modify it."
15977 cat >>$CONFIG_STATUS <<\_ACEOF
15978 # If no file are specified by the user, then we need to provide default
15979 # value. By we need to know if files were specified by the user.
15985 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15986 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15994 *) # This is not an option, so the user has probably given explicit
15997 ac_need_defaults
=false
;;
16001 # Handling of the options.
16003 cat >>$CONFIG_STATUS <<\_ACEOF
16004 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16006 --version |
--vers* |
-V )
16007 echo "$ac_cs_version"; exit 0 ;;
16009 # Conflict between --help and --header
16010 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16011 Try \`$0 --help' for more information." >&5
16012 echo "$as_me: error: ambiguous option: $1
16013 Try \`$0 --help' for more information." >&2;}
16014 { (exit 1); exit 1; }; };;
16015 --help |
--hel |
-h )
16016 echo "$ac_cs_usage"; exit 0 ;;
16017 --debug |
--d* |
-d )
16019 --file |
--fil |
--fi |
--f )
16021 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16022 ac_need_defaults
=false
;;
16023 --header |
--heade |
--head |
--hea )
16025 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16026 ac_need_defaults
=false
;;
16027 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16028 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16031 # This is an error.
16032 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16033 Try \`$0 --help' for more information." >&5
16034 echo "$as_me: error: unrecognized option: $1
16035 Try \`$0 --help' for more information." >&2;}
16036 { (exit 1); exit 1; }; } ;;
16038 *) ac_config_targets
="$ac_config_targets $1" ;;
16044 ac_configure_extra_args
=
16046 if $ac_cs_silent; then
16048 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16052 cat >>$CONFIG_STATUS <<_ACEOF
16053 if \$ac_cs_recheck; then
16054 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16055 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16064 cat >>$CONFIG_STATUS <<\_ACEOF
16065 for ac_config_target
in $ac_config_targets
16067 case "$ac_config_target" in
16068 # Handling of arguments.
16069 "auto/config.mk" ) CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
16070 "auto/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
16071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16072 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16073 { (exit 1); exit 1; }; };;
16077 # If the user did not use the arguments to specify the items to instantiate,
16078 # then the envvar interface is used. Set only those that are not.
16079 # We use the long form for the default assignment because of an extremely
16080 # bizarre bug on SunOS 4.1.3.
16081 if $ac_need_defaults; then
16082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16086 # Have a temporary directory for convenience. Make it in the build tree
16087 # simply because there is no reason to put it here, and in addition,
16088 # creating and moving files from /tmp can sometimes cause problems.
16089 # Create a temporary directory, and hook for its removal unless debugging.
16092 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16093 trap '{ (exit 1); exit 1; }' 1 2 13 15
16096 # Create a (secure) tmp directory for tmp files.
16099 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16100 test -n "$tmp" && test -d "$tmp"
16103 tmp
=.
/confstat$$
-$RANDOM
16104 (umask 077 && mkdir
$tmp)
16107 echo "$me: cannot create a temporary directory in ." >&2
16108 { (exit 1); exit 1; }
16113 cat >>$CONFIG_STATUS <<_ACEOF
16116 # CONFIG_FILES section.
16119 # No need to generate the scripts if there are no CONFIG_FILES.
16120 # This happens for instance when ./config.status config.h
16121 if test -n "\$CONFIG_FILES"; then
16122 # Protect against being on the right side of a sed subst in config.status.
16123 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16124 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16125 s,@SHELL@,$SHELL,;t t
16126 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16127 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16128 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16129 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16130 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16131 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16132 s,@exec_prefix@,$exec_prefix,;t t
16133 s,@prefix@,$prefix,;t t
16134 s,@program_transform_name@,$program_transform_name,;t t
16135 s,@bindir@,$bindir,;t t
16136 s,@sbindir@,$sbindir,;t t
16137 s,@libexecdir@,$libexecdir,;t t
16138 s,@datadir@,$datadir,;t t
16139 s,@sysconfdir@,$sysconfdir,;t t
16140 s,@sharedstatedir@,$sharedstatedir,;t t
16141 s,@localstatedir@,$localstatedir,;t t
16142 s,@libdir@,$libdir,;t t
16143 s,@includedir@,$includedir,;t t
16144 s,@oldincludedir@,$oldincludedir,;t t
16145 s,@infodir@,$infodir,;t t
16146 s,@mandir@,$mandir,;t t
16147 s,@build_alias@,$build_alias,;t t
16148 s,@host_alias@,$host_alias,;t t
16149 s,@target_alias@,$target_alias,;t t
16150 s,@DEFS@,$DEFS,;t t
16151 s,@ECHO_C@,$ECHO_C,;t t
16152 s,@ECHO_N@,$ECHO_N,;t t
16153 s,@ECHO_T@,$ECHO_T,;t t
16154 s,@LIBS@,$LIBS,;t t
16155 s,@SET_MAKE@,$SET_MAKE,;t t
16157 s,@CFLAGS@,$CFLAGS,;t t
16158 s,@LDFLAGS@,$LDFLAGS,;t t
16159 s,@CPPFLAGS@,$CPPFLAGS,;t t
16160 s,@ac_ct_CC@,$ac_ct_CC,;t t
16161 s,@EXEEXT@,$EXEEXT,;t t
16162 s,@OBJEXT@,$OBJEXT,;t t
16164 s,@EGREP@,$EGREP,;t t
16166 s,@STRIP@,$STRIP,;t t
16167 s,@CPP_MM@,$CPP_MM,;t t
16168 s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16169 s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16170 s,@VIMNAME@,$VIMNAME,;t t
16171 s,@EXNAME@,$EXNAME,;t t
16172 s,@VIEWNAME@,$VIEWNAME,;t t
16173 s,@line_break@,$line_break,;t t
16174 s,@dovimdiff@,$dovimdiff,;t t
16175 s,@dogvimdiff@,$dogvimdiff,;t t
16176 s,@compiledby@,$compiledby,;t t
16177 s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16178 s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16179 s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16180 s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16181 s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16182 s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16183 s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16184 s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16185 s,@shrpenv@,$shrpenv,;t t
16186 s,@PERL_SRC@,$PERL_SRC,;t t
16187 s,@PERL_OBJ@,$PERL_OBJ,;t t
16188 s,@PERL_PRO@,$PERL_PRO,;t t
16189 s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16190 s,@PERL_LIBS@,$PERL_LIBS,;t t
16191 s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16192 s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16193 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16194 s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16195 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16196 s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16197 s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16198 s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16199 s,@TCL_SRC@,$TCL_SRC,;t t
16200 s,@TCL_OBJ@,$TCL_OBJ,;t t
16201 s,@TCL_PRO@,$TCL_PRO,;t t
16202 s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16203 s,@TCL_LIBS@,$TCL_LIBS,;t t
16204 s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16205 s,@RUBY_SRC@,$RUBY_SRC,;t t
16206 s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16207 s,@RUBY_PRO@,$RUBY_PRO,;t t
16208 s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16209 s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16210 s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16211 s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16212 s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16213 s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16214 s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16215 s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16216 s,@xmkmfpath@,$xmkmfpath,;t t
16217 s,@X_CFLAGS@,$X_CFLAGS,;t t
16218 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16219 s,@X_LIBS@,$X_LIBS,;t t
16220 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16221 s,@X_LIB@,$X_LIB,;t t
16222 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16223 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16224 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16225 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16226 s,@GTK_LIBS@,$GTK_LIBS,;t t
16227 s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16228 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16229 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16230 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16231 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16232 s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16233 s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16234 s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16235 s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16236 s,@GUITYPE@,$GUITYPE,;t t
16237 s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16238 s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16239 s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16240 s,@TAGPRG@,$TAGPRG,;t t
16241 s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16242 s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16243 s,@MSGFMT@,$MSGFMT,;t t
16244 s,@MAKEMO@,$MAKEMO,;t t
16245 s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16246 s,@LIBOBJS@,$LIBOBJS,;t t
16247 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16252 cat >>$CONFIG_STATUS <<\_ACEOF
16253 # Split the substitutions into bite-sized pieces for seds with
16254 # small command number limits, like on Digital OSF/1 and HP-UX.
16255 ac_max_sed_lines
=48
16256 ac_sed_frag
=1 # Number of current file.
16257 ac_beg
=1 # First line for current file.
16258 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16261 while $ac_more_lines; do
16262 if test $ac_beg -gt 1; then
16263 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16265 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16267 if test ! -s $tmp/subs.frag
; then
16268 ac_more_lines
=false
16270 # The purpose of the label and of the branching condition is to
16271 # speed up the sed processing (if there are no `@' at all, there
16272 # is no need to browse any of the substitutions).
16273 # These are the two extra sed commands mentioned above.
16275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16276 if test -z "$ac_sed_cmds"; then
16277 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16279 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16281 ac_sed_frag
=`expr $ac_sed_frag + 1`
16283 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16286 if test -z "$ac_sed_cmds"; then
16289 fi # test -n "$CONFIG_FILES"
16292 cat >>$CONFIG_STATUS <<\_ACEOF
16293 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16296 - |
*:- |
*:-:* ) # input from stdin
16298 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16299 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16300 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16301 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16302 * ) ac_file_in
=$ac_file.
in ;;
16305 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16306 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308 X"$ac_file" : 'X\(//\)[^/]' \| \
16309 X"$ac_file" : 'X\(//\)$' \| \
16310 X"$ac_file" : 'X\(/\)' \| \
16311 . : '\(.\)' 2>/dev/null ||
16313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16315 /^X\(\/\/\)$/{ s//\1/; q; }
16316 /^X\(\/\).*/{ s//\1/; q; }
16318 { if $as_mkdir_p; then
16323 while test ! -d "$as_dir"; do
16324 as_dirs
="$as_dir $as_dirs"
16325 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16327 X"$as_dir" : 'X\(//\)[^/]' \| \
16328 X"$as_dir" : 'X\(//\)$' \| \
16329 X"$as_dir" : 'X\(/\)' \| \
16330 . : '\(.\)' 2>/dev/null ||
16332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16334 /^X\(\/\/\)$/{ s//\1/; q; }
16335 /^X\(\/\).*/{ s//\1/; q; }
16338 test ! -n "$as_dirs" || mkdir
$as_dirs
16339 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16341 { (exit 1); exit 1; }; }; }
16345 if test "$ac_dir" != .
; then
16346 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16347 # A "../" for each directory in $ac_dir_suffix.
16348 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16350 ac_dir_suffix
= ac_top_builddir
=
16354 .
) # No --srcdir option. We are building in place.
16356 if test -z "$ac_top_builddir"; then
16359 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16361 [\\/]* | ?
:[\\/]* ) # Absolute path.
16362 ac_srcdir
=$srcdir$ac_dir_suffix;
16363 ac_top_srcdir
=$srcdir ;;
16364 *) # Relative path.
16365 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16366 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16369 # Do not use `cd foo && pwd` to compute absolute paths, because
16370 # the directories may not exist.
16372 .
) ac_abs_builddir
="$ac_dir";;
16375 .
) ac_abs_builddir
=`pwd`;;
16376 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16377 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16380 case $ac_abs_builddir in
16381 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16383 case ${ac_top_builddir}.
in
16384 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16385 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16386 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16389 case $ac_abs_builddir in
16390 .
) ac_abs_srcdir
=$ac_srcdir;;
16393 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16394 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16395 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16398 case $ac_abs_builddir in
16399 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16401 case $ac_top_srcdir in
16402 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16403 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16404 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16410 if test x
"$ac_file" != x-
; then
16411 { echo "$as_me:$LINENO: creating $ac_file" >&5
16412 echo "$as_me: creating $ac_file" >&6;}
16415 # Let's still pretend it is `configure' which instantiates (i.e., don't
16416 # use $as_me), people would be surprised to read:
16417 # /* config.h. Generated by config.status. */
16418 if test x
"$ac_file" = x-
; then
16421 configure_input
="$ac_file. "
16423 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16424 sed 's,.*/,,'` by configure."
16426 # First look for the input files in the build tree, otherwise in the
16428 ac_file_inputs
=`IFS=:
16429 for f in $ac_file_in; do
16431 -) echo $tmp/stdin ;;
16433 # Absolute (can't be DOS-style, as IFS=:)
16434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16435 echo "$as_me: error: cannot find input file: $f" >&2;}
16436 { (exit 1); exit 1; }; }
16439 if test -f "$f"; then
16442 elif test -f "$srcdir/$f"; then
16447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16448 echo "$as_me: error: cannot find input file: $f" >&2;}
16449 { (exit 1); exit 1; }; }
16452 done` ||
{ (exit 1); exit 1; }
16454 cat >>$CONFIG_STATUS <<_ACEOF
16458 cat >>$CONFIG_STATUS <<\_ACEOF
16460 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16461 s
,@configure_input@
,$configure_input,;t t
16462 s
,@srcdir@
,$ac_srcdir,;t t
16463 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16464 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16465 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16466 s
,@builddir@
,$ac_builddir,;t t
16467 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16468 s
,@top_builddir@
,$ac_top_builddir,;t t
16469 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16472 if test x"$ac_file" != x-; then
16473 mv $tmp/out $ac_file
16481 cat >>$CONFIG_STATUS <<\_ACEOF
16484 # CONFIG_HEADER section.
16487 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16488 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16490 # ac_d sets the value in "#define NAME VALUE" lines.
16491 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16492 ac_dB
='[ ].*$,\1#\2'
16495 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16496 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16497 ac_uB
='$,\1#\2define\3'
16501 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16504 - |
*:- |
*:-:* ) # input from stdin
16506 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16507 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16508 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16509 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16510 * ) ac_file_in
=$ac_file.
in ;;
16513 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16514 echo "$as_me: creating $ac_file" >&6;}
16516 # First look for the input files in the build tree, otherwise in the
16518 ac_file_inputs
=`IFS=:
16519 for f in $ac_file_in; do
16521 -) echo $tmp/stdin ;;
16523 # Absolute (can't be DOS-style, as IFS=:)
16524 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16525 echo "$as_me: error: cannot find input file: $f" >&2;}
16526 { (exit 1); exit 1; }; }
16527 # Do quote $f, to prevent DOS paths from being IFS'd.
16530 if test -f "$f"; then
16533 elif test -f "$srcdir/$f"; then
16538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16539 echo "$as_me: error: cannot find input file: $f" >&2;}
16540 { (exit 1); exit 1; }; }
16543 done` ||
{ (exit 1); exit 1; }
16544 # Remove the trailing spaces.
16545 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16550 # `conftest.undefs', that substitutes the proper values into
16551 # config.h.in to produce config.h. The first handles `#define'
16552 # templates, and the second `#undef' templates.
16553 # And first: Protect against being on the right side of a sed subst in
16554 # config.status. Protect against being in an unquoted here document
16555 # in config.status.
16556 rm -f conftest.defines conftest.undefs
16557 # Using a here document instead of a string reduces the quoting nightmare.
16558 # Putting comments in sed scripts is not portable.
16560 # `end' is used to avoid that the second main sed command (meant for
16561 # 0-ary CPP macros) applies to n-ary macro definitions.
16562 # See the Autoconf documentation for `clear'.
16563 cat >confdef2sed.
sed <<\_ACEOF
16568 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16570 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16573 # If some macros were called several times there might be several times
16574 # the same #defines, which is useless. Nevertheless, we may not want to
16575 # sort them, since we want the *last* AC-DEFINE to be honored.
16576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16578 rm -f confdef2sed.sed
16580 # This sed command replaces #undef with comments. This is necessary, for
16581 # example, in the case of _POSIX_SOURCE, which is predefined and required
16582 # on some systems where configure will not decide to define it.
16583 cat >>conftest.undefs <<\_ACEOF
16584 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16587 # Break up conftest.defines because some shells have a limit on the size
16588 # of here documents, and old seds have small limits too (100 cmds).
16589 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16590 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16592 echo ' :' >>$CONFIG_STATUS
16593 rm -f conftest.tail
16594 while grep . conftest.defines >/dev/null
16596 # Write a limited-size here document to $tmp/defines.sed.
16597 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16598 # Speed up: don't consider the non `#define' lines.
16599 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16600 # Work around the forget-to-reset-the-flag bug.
16601 echo 't clr' >>$CONFIG_STATUS
16602 echo ': clr' >>$CONFIG_STATUS
16603 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16605 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16607 mv $tmp/out $tmp/in
16609 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16610 rm -f conftest.defines
16611 mv conftest.
tail conftest.defines
16613 rm -f conftest.defines
16614 echo ' fi # grep' >>$CONFIG_STATUS
16615 echo >>$CONFIG_STATUS
16617 # Break up conftest.undefs because some shells have a limit on the size
16618 # of here documents, and old seds have small limits too (100 cmds).
16619 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16620 rm -f conftest.
tail
16621 while grep . conftest.undefs
>/dev
/null
16623 # Write a limited-size here document to $tmp/undefs.sed.
16624 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16625 # Speed up: don't consider the non
`#undef'
16626 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16627 # Work around the forget-to-reset-the-flag bug.
16628 echo 't clr' >>$CONFIG_STATUS
16629 echo ': clr' >>$CONFIG_STATUS
16630 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16632 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16634 mv $tmp/out $tmp/in
16636 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16637 rm -f conftest.undefs
16638 mv conftest.tail conftest.undefs
16640 rm -f conftest.undefs
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16644 # use $as_me), people would be surprised to read:
16645 # /* config.h. Generated by config.status. */
16646 if test x
"$ac_file" = x-
; then
16647 echo "/* Generated by configure. */" >$tmp/config.h
16649 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16651 cat $tmp/in >>$tmp/config.h
16653 if test x
"$ac_file" != x-
; then
16654 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16656 echo "$as_me: $ac_file is unchanged" >&6;}
16658 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$ac_file" : 'X\(//\)[^/]' \| \
16661 X"$ac_file" : 'X\(//\)$' \| \
16662 X"$ac_file" : 'X\(/\)' \| \
16663 . : '\(.\)' 2>/dev/null ||
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667 /^X\(\/\/\)$/{ s//\1/; q; }
16668 /^X\(\/\).*/{ s//\1/; q; }
16670 { if $as_mkdir_p; then
16675 while test ! -d "$as_dir"; do
16676 as_dirs
="$as_dir $as_dirs"
16677 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679 X"$as_dir" : 'X\(//\)[^/]' \| \
16680 X"$as_dir" : 'X\(//\)$' \| \
16681 X"$as_dir" : 'X\(/\)' \| \
16682 . : '\(.\)' 2>/dev/null ||
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686 /^X\(\/\/\)$/{ s//\1/; q; }
16687 /^X\(\/\).*/{ s//\1/; q; }
16690 test ! -n "$as_dirs" || mkdir
$as_dirs
16691 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16693 { (exit 1); exit 1; }; }; }
16696 mv $tmp/config.h
$ac_file
16700 rm -f $tmp/config.h
16705 cat >>$CONFIG_STATUS <<\_ACEOF
16707 { (exit 0); exit 0; }
16709 chmod +x
$CONFIG_STATUS
16710 ac_clean_files
=$ac_clean_files_save
16713 # configure is writing to config.log, and then calls config.status.
16714 # config.status does its own redirection, appending to config.log.
16715 # Unfortunately, on DOS this fails, as config.log is still kept open
16716 # by configure, so config.status won't be able to write to it; its
16717 # output is simply discarded. So we exec the FD to /dev/null,
16718 # effectively closing config.log, so it can be properly (re)opened and
16719 # appended to by config.status. When coming back to configure, we
16720 # need to make the FD available again.
16721 if test "$no_create" != yes; then
16723 ac_config_status_args
=
16724 test "$silent" = yes &&
16725 ac_config_status_args
="$ac_config_status_args --quiet"
16727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16728 exec 5>>auto
/config.log
16729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16730 # would make configure fail if this is the last instruction.
16731 $ac_cs_success ||
{ (exit 1); exit 1; }