Set 'backspace' in the system vimrc
[MacVim.git] / src / configure
blob89ed9bc068b4cebee6a887faac48b69c3014c685
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
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`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="vim.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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}
754 ac_env_CC_value=$CC
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.
780 cat <<_ACEOF
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.
790 Configuration:
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 \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
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]
830 _ACEOF
832 cat <<\_ACEOF
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Optional Features:
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-xsmp Disable XSMP session management
849 --disable-xsmp-interact Disable XSMP interaction
850 --enable-mzschemeinterp Include MzScheme interpreter.
851 --enable-perlinterp Include Perl interpreter.
852 --enable-pythoninterp Include Python interpreter.
853 --enable-tclinterp Include Tcl interpreter.
854 --enable-rubyinterp Include Ruby interpreter.
855 --enable-cscope Include cscope interface.
856 --enable-workshop Include Sun Visual Workshop support.
857 --disable-netbeans Disable NetBeans integration support.
858 --enable-sniff Include Sniff interface.
859 --enable-multibyte Include multibyte editing support.
860 --enable-hangulinput Include Hangul input support.
861 --enable-xim Include XIM input support.
862 --enable-fontset Include X fontset output support.
863 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
864 --enable-gtk-check If auto-select GUI, check for GTK default=yes
865 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
866 --enable-gnome-check If GTK GUI, check for GNOME default=no
867 --enable-motif-check If auto-select GUI, check for Motif default=yes
868 --enable-athena-check If auto-select GUI, check for Athena default=yes
869 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
870 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
871 --enable-macvim-check If auto-select GUI, check for MacVim 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()).
877 Optional Packages:
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>
907 CPP C preprocessor
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.
912 _ACEOF
915 if test "$ac_init_help" = "recursive"; then
916 # If there are subdirs, report their specific --help.
917 ac_popdir=`pwd`
918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919 test -d $ac_dir || continue
920 ac_builddir=.
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'`
926 else
927 ac_dir_suffix= ac_top_builddir=
930 case $srcdir in
931 .) # No --srcdir option. We are building in place.
932 ac_srcdir=.
933 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=.
935 else
936 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937 fi ;;
938 [\\/]* | ?:[\\/]* ) # Absolute path.
939 ac_srcdir=$srcdir$ac_dir_suffix;
940 ac_top_srcdir=$srcdir ;;
941 *) # Relative path.
942 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943 ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 esac
946 # Do not use `cd foo && pwd` to compute absolute paths, because
947 # the directories may not exist.
948 case `pwd` in
949 .) ac_abs_builddir="$ac_dir";;
951 case "$ac_dir" in
952 .) ac_abs_builddir=`pwd`;;
953 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954 *) ac_abs_builddir=`pwd`/"$ac_dir";;
955 esac;;
956 esac
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}.;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_srcdir=$ac_srcdir;;
969 case $ac_srcdir in
970 .) ac_abs_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973 esac;;
974 esac
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;;
982 esac;;
983 esac
985 cd $ac_dir
986 # Check for guested configure; otherwise get Cygnus style configure.
987 if test -f $ac_srcdir/configure.gnu; then
988 echo
989 $SHELL $ac_srcdir/configure.gnu --help=recursive
990 elif test -f $ac_srcdir/configure; then
991 echo
992 $SHELL $ac_srcdir/configure --help=recursive
993 elif test -f $ac_srcdir/configure.ac ||
994 test -f $ac_srcdir/configure.in; then
995 echo
996 $ac_configure --help
997 else
998 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 cd $ac_popdir
1001 done
1004 test -n "$ac_init_help" && exit 0
1005 if $ac_init_version; then
1006 cat <<\_ACEOF
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.
1011 _ACEOF
1012 exit 0
1014 exec 5>config.log
1015 cat >&5 <<_ACEOF
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
1022 $ $0 $@
1024 _ACEOF
1026 cat <<_ASUNAME
1027 ## --------- ##
1028 ## Platform. ##
1029 ## --------- ##
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`
1048 _ASUNAME
1050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051 for as_dir in $PATH
1053 IFS=$as_save_IFS
1054 test -z "$as_dir" && as_dir=.
1055 echo "PATH: $as_dir"
1056 done
1058 } >&5
1060 cat >&5 <<_ACEOF
1063 ## ----------- ##
1064 ## Core tests. ##
1065 ## ----------- ##
1067 _ACEOF
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.
1075 ac_configure_args=
1076 ac_configure_args0=
1077 ac_configure_args1=
1078 ac_sep=
1079 ac_must_keep_next=false
1080 for ac_pass in 1 2
1082 for ac_arg
1084 case $ac_arg in
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)
1088 continue ;;
1089 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1090 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1091 esac
1092 case $ac_pass in
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.
1098 else
1099 case $ac_arg in
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 ;;
1106 esac
1108 -* ) ac_must_keep_next=true ;;
1109 esac
1111 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1112 # Get rid of the leading space.
1113 ac_sep=" "
1115 esac
1116 done
1117 done
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.
1129 echo
1131 cat <<\_ASBOX
1132 ## ---------------- ##
1133 ## Cache variables. ##
1134 ## ---------------- ##
1135 _ASBOX
1136 echo
1137 # The following way of writing the cache mishandles newlines in values,
1139 (set) 2>&1 |
1140 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141 *ac_space=\ *)
1142 sed -n \
1143 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 sed -n \
1148 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 esac;
1152 echo
1154 cat <<\_ASBOX
1155 ## ----------------- ##
1156 ## Output variables. ##
1157 ## ----------------- ##
1158 _ASBOX
1159 echo
1160 for ac_var in $ac_subst_vars
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1164 done | sort
1165 echo
1167 if test -n "$ac_subst_files"; then
1168 cat <<\_ASBOX
1169 ## ------------- ##
1170 ## Output files. ##
1171 ## ------------- ##
1172 _ASBOX
1173 echo
1174 for ac_var in $ac_subst_files
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1178 done | sort
1179 echo
1182 if test -s confdefs.h; then
1183 cat <<\_ASBOX
1184 ## ----------- ##
1185 ## confdefs.h. ##
1186 ## ----------- ##
1187 _ASBOX
1188 echo
1189 sed "/^$/d" confdefs.h | sort
1190 echo
1192 test "$ac_signal" != 0 &&
1193 echo "$as_me: caught signal $ac_signal"
1194 echo "$as_me: exit $exit_status"
1195 } >&5
1196 rm -f core *.core &&
1197 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1198 exit $exit_status
1200 for ac_signal in 1 2 13 15; do
1201 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1202 done
1203 ac_signal=0
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.
1208 echo >confdefs.h
1210 # Predefined preprocessor variables.
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_NAME "$PACKAGE_NAME"
1214 _ACEOF
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219 _ACEOF
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_STRING "$PACKAGE_STRING"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234 _ACEOF
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"
1242 else
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
1251 . "$ac_site_file"
1253 done
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;}
1261 case $cache_file in
1262 [\\/]* | ?:[\\/]* ) . $cache_file;;
1263 *) . ./$cache_file;;
1264 esac
1266 else
1267 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1268 echo "$as_me: creating cache $cache_file" >&6;}
1269 >$cache_file
1272 # Check that the precious variables saved in the cache have kept the same
1273 # value.
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
1282 set,)
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=: ;;
1286 ,set)
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=: ;;
1290 ,);;
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=:
1300 fi;;
1301 esac
1302 # Pass precious variables to config.status.
1303 if test "$ac_new_set" = set; then
1304 case $ac_new_val in
1305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 *) ac_arg=$ac_var=$ac_new_val ;;
1308 esac
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'" ;;
1312 esac
1314 done
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; }; }
1323 ac_ext=c
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
1351 #define UNIX 1
1352 _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
1359 else
1360 cat >conftest.make <<\_ACEOF
1361 all:
1362 @echo 'ac_maketemp="$(MAKE)"'
1363 _ACEOF
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
1368 else
1369 eval ac_cv_prog_make_${ac_make}_set=no
1371 rm -f conftest.make
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
1376 SET_MAKE=
1377 else
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1380 SET_MAKE="MAKE=${MAKE-make}"
1384 ac_ext=c
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
1396 else
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 else
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1403 IFS=$as_save_IFS
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
1409 break 2
1411 done
1412 done
1416 CC=$ac_cv_prog_CC
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1420 else
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1427 ac_ct_CC=$CC
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
1434 else
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1441 IFS=$as_save_IFS
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
1447 break 2
1449 done
1450 done
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
1458 else
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1463 CC=$ac_ct_CC
1464 else
1465 CC="$ac_cv_prog_CC"
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
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
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
1489 break 2
1491 done
1492 done
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1507 ac_ct_CC=$CC
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
1514 else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1521 IFS=$as_save_IFS
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
1527 break 2
1529 done
1530 done
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
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1543 CC=$ac_ct_CC
1544 else
1545 CC="$ac_cv_prog_CC"
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
1556 else
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 ac_prog_rejected=no
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1564 IFS=$as_save_IFS
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
1570 continue
1572 ac_cv_prog_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 break 2
1576 done
1577 done
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
1582 shift
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.
1587 shift
1588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
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
1605 for ac_prog in cl
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
1613 else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1620 IFS=$as_save_IFS
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
1626 break 2
1628 done
1629 done
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1643 done
1645 if test -z "$CC"; then
1646 ac_ct_CC=$CC
1647 for ac_prog in cl
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
1655 else
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1662 IFS=$as_save_IFS
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
1668 break 2
1670 done
1671 done
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
1679 else
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$ac_ct_CC" && break
1685 done
1687 CC=$ac_ct_CC
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
1705 ac_status=$?
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
1710 ac_status=$?
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
1715 ac_status=$?
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1719 cat >conftest.$ac_ext <<_ACEOF
1720 /* confdefs.h. */
1721 _ACEOF
1722 cat confdefs.h >>conftest.$ac_ext
1723 cat >>conftest.$ac_ext <<_ACEOF
1724 /* end confdefs.h. */
1727 main ()
1731 return 0;
1733 _ACEOF
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
1738 # of exeext.
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
1744 ac_status=$?
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
1749 # resort.
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.
1753 ac_cv_exeext=
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
1758 case $ac_file in
1759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1761 conftest.$ac_ext )
1762 # This is the source file.
1764 [ab].out )
1765 # We found the default executable, but exeext='' is most
1766 # certainly right.
1767 break;;
1768 *.* )
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.
1773 export ac_cv_exeext
1774 break;;
1776 break;;
1777 esac
1778 done
1779 else
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
1803 (eval $ac_try) 2>&5
1804 ac_status=$?
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 cross_compiling=no
1808 else
1809 if test "$cross_compiling" = maybe; then
1810 cross_compiling=yes
1811 else
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
1838 ac_status=$?
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
1844 # `rm'.
1845 for ac_file in conftest.exe conftest conftest.*; do
1846 test -f "$ac_file" || continue
1847 case $ac_file in
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850 export ac_cv_exeext
1851 break;;
1852 * ) break;;
1853 esac
1854 done
1855 else
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
1869 ac_exeext=$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
1874 else
1875 cat >conftest.$ac_ext <<_ACEOF
1876 /* confdefs.h. */
1877 _ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h. */
1883 main ()
1887 return 0;
1889 _ACEOF
1890 rm -f conftest.o conftest.obj
1891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>&5
1893 ac_status=$?
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
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1900 break;;
1901 esac
1902 done
1903 else
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
1919 ac_objext=$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
1924 else
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1933 main ()
1935 #ifndef __GNUC__
1936 choke me
1937 #endif
1940 return 0;
1942 _ACEOF
1943 rm -f conftest.$ac_objext
1944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1945 (eval $ac_compile) 2>conftest.er1
1946 ac_status=$?
1947 grep -v '^ *+' conftest.er1 >conftest.err
1948 rm -f conftest.er1
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
1955 (eval $ac_try) 2>&5
1956 ac_status=$?
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
1961 (eval $ac_try) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1965 ac_compiler_gnu=yes
1966 else
1967 echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_compiler_gnu=no
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
1981 CFLAGS="-g"
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
1986 else
1987 cat >conftest.$ac_ext <<_ACEOF
1988 /* confdefs.h. */
1989 _ACEOF
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h. */
1995 main ()
1999 return 0;
2001 _ACEOF
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>conftest.er1
2005 ac_status=$?
2006 grep -v '^ *+' conftest.er1 >conftest.err
2007 rm -f conftest.er1
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
2014 (eval $ac_try) 2>&5
2015 ac_status=$?
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
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2024 ac_cv_prog_cc_g=yes
2025 else
2026 echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 ac_cv_prog_cc_g=no
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
2039 CFLAGS="-g -O2"
2040 else
2041 CFLAGS="-g"
2043 else
2044 if test "$GCC" = yes; then
2045 CFLAGS="-O2"
2046 else
2047 CFLAGS=
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
2054 else
2055 ac_cv_prog_cc_stdc=no
2056 ac_save_CC=$CC
2057 cat >conftest.$ac_ext <<_ACEOF
2058 /* confdefs.h. */
2059 _ACEOF
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2063 #include <stdarg.h>
2064 #include <stdio.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)
2071 char **p;
2072 int i;
2074 return p[i];
2076 static char *f (char * (*g) (char **, int), char **p, ...)
2078 char *s;
2079 va_list v;
2080 va_start (v,p);
2081 s = g (p, va_arg (v,int));
2082 va_end (v);
2083 return s;
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);
2099 int argc;
2100 char **argv;
2102 main ()
2104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2106 return 0;
2108 _ACEOF
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
2122 ac_status=$?
2123 grep -v '^ *+' conftest.er1 >conftest.err
2124 rm -f conftest.er1
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
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
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
2137 (eval $ac_try) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2141 ac_cv_prog_cc_stdc=$ac_arg
2142 break
2143 else
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2148 rm -f conftest.err conftest.$ac_objext
2149 done
2150 rm -f conftest.$ac_ext conftest.$ac_objext
2151 CC=$ac_save_CC
2155 case "x$ac_cv_prog_cc_stdc" in
2156 x|xno)
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" ;;
2163 esac
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
2170 #ifndef __cplusplus
2171 choke me
2172 #endif
2173 _ACEOF
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>conftest.er1
2177 ac_status=$?
2178 grep -v '^ *+' conftest.er1 >conftest.err
2179 rm -f conftest.er1
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
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
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
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 for ac_declaration in \
2197 '' \
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);' \
2202 'void exit (int);'
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2210 $ac_declaration
2211 #include <stdlib.h>
2213 main ()
2215 exit (42);
2217 return 0;
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
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
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
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
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 continue
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2258 main ()
2260 exit (42);
2262 return 0;
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
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
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
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
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 break
2288 else
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
2294 done
2295 rm -f conftest*
2296 if test -n "$ac_declaration"; then
2297 echo '#ifdef __cplusplus' >>confdefs.h
2298 echo $ac_declaration >>confdefs.h
2299 echo '#endif' >>confdefs.h
2302 else
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
2308 ac_ext=c
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
2313 ac_ext=c
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
2322 CPP=
2324 if test -z "$CPP"; then
2325 if test "${ac_cv_prog_CPP+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 # Double quotes because CPP needs to be expanded
2329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2331 ac_preproc_ok=false
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
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2346 #ifdef __STDC__
2347 # include <limits.h>
2348 #else
2349 # include <assert.h>
2350 #endif
2351 Syntax error
2352 _ACEOF
2353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
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
2364 else
2365 ac_cpp_err=
2367 else
2368 ac_cpp_err=yes
2370 if test -z "$ac_cpp_err"; then
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 # Broken: fails on valid input.
2377 continue
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
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2389 #include <ac_nonexistent.h>
2390 _ACEOF
2391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
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
2402 else
2403 ac_cpp_err=
2405 else
2406 ac_cpp_err=yes
2408 if test -z "$ac_cpp_err"; then
2409 # Broken: success on invalid input.
2410 continue
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2415 # Passes both tests.
2416 ac_preproc_ok=:
2417 break
2419 rm -f conftest.err conftest.$ac_ext
2421 done
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
2425 break
2428 done
2429 ac_cv_prog_CPP=$CPP
2432 CPP=$ac_cv_prog_CPP
2433 else
2434 ac_cv_prog_CPP=$CPP
2436 echo "$as_me:$LINENO: result: $CPP" >&5
2437 echo "${ECHO_T}$CPP" >&6
2438 ac_preproc_ok=false
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
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453 #ifdef __STDC__
2454 # include <limits.h>
2455 #else
2456 # include <assert.h>
2457 #endif
2458 Syntax error
2459 _ACEOF
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
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
2471 else
2472 ac_cpp_err=
2474 else
2475 ac_cpp_err=yes
2477 if test -z "$ac_cpp_err"; then
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 # Broken: fails on valid input.
2484 continue
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
2491 /* confdefs.h. */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2496 #include <ac_nonexistent.h>
2497 _ACEOF
2498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
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
2509 else
2510 ac_cpp_err=
2512 else
2513 ac_cpp_err=yes
2515 if test -z "$ac_cpp_err"; then
2516 # Broken: success on invalid input.
2517 continue
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2522 # Passes both tests.
2523 ac_preproc_ok=:
2524 break
2526 rm -f conftest.err conftest.$ac_ext
2528 done
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
2533 else
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; }; }
2541 ac_ext=c
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
2552 else
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
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2570 _ACEOF
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 $EGREP "" >/dev/null 2>&1; then
2575 rm -f conftest*
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
2580 else
2581 ac_func_search_save_LIBS=$LIBS
2582 ac_cv_search_strerror=no
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h. */
2585 _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. */
2591 #ifdef __cplusplus
2592 extern "C"
2593 #endif
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2596 char strerror ();
2598 main ()
2600 strerror ();
2602 return 0;
2604 _ACEOF
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
2608 ac_status=$?
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
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
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
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
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_search_strerror="none required"
2628 else
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
2639 /* confdefs.h. */
2640 _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. */
2646 #ifdef __cplusplus
2647 extern "C"
2648 #endif
2649 /* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2651 char strerror ();
2653 main ()
2655 strerror ();
2657 return 0;
2659 _ACEOF
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
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
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
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
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
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_cv_search_strerror="-l$ac_lib"
2683 break
2684 else
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
2691 done
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
2709 else
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2716 IFS=$as_save_IFS
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
2722 break 2
2724 done
2725 done
2729 AWK=$ac_cv_prog_AWK
2730 if test -n "$AWK"; then
2731 echo "$as_me:$LINENO: result: $AWK" >&5
2732 echo "${ECHO_T}$AWK" >&6
2733 else
2734 echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2738 test -n "$AWK" && break
2739 done
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
2747 else
2748 if test -n "$STRIP"; then
2749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2754 IFS=$as_save_IFS
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
2760 break 2
2762 done
2763 done
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
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2780 if test -z "$CFLAGS"; then
2781 CFLAGS="-O"
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/'`
2792 else
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;}
2813 sh ./toolcheck 1>&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
2820 case `uname` in
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;;
2826 esac
2828 echo "$as_me:$LINENO: checking for QNX" >&5
2829 echo $ECHO_N "checking for QNX... $ECHO_C" >&6
2830 case `uname` in
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;;
2837 esac
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"
2851 else
2852 enable_darwin="yes"
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
2862 else
2863 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2864 echo "${ECHO_T}no, Darwin support disabled" >&6
2865 enable_darwin=no
2867 else
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
2880 else
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
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2900 main ()
2904 return 0;
2906 _ACEOF
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
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
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
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
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
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
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
2931 else
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
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2950 main ()
2954 return 0;
2956 _ACEOF
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
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
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
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
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
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
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"
2981 else
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
2987 MACARCH="ppc"
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
3005 MACOSX=yes
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"
3011 else
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
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #include <stdlib.h>
3027 #include <stdarg.h>
3028 #include <string.h>
3029 #include <float.h>
3032 main ()
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
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
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
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
3057 (eval $ac_try) 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_header_stdc=yes
3062 else
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
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 #include <string.h>
3080 _ACEOF
3081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082 $EGREP "memchr" >/dev/null 2>&1; then
3084 else
3085 ac_cv_header_stdc=no
3087 rm -f conftest*
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
3094 /* confdefs.h. */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 #include <stdlib.h>
3101 _ACEOF
3102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3103 $EGREP "free" >/dev/null 2>&1; then
3105 else
3106 ac_cv_header_stdc=no
3108 rm -f conftest*
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
3116 else
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 #include <ctype.h>
3124 #if ((' ' & 0x0FF) == 0x020)
3125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3127 #else
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))
3133 #endif
3135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3137 main ()
3139 int i;
3140 for (i = 0; i < 256; i++)
3141 if (XOR (islower (i), ISLOWER (i))
3142 || toupper (i) != TOUPPER (i))
3143 exit(2);
3144 exit (0);
3146 _ACEOF
3147 rm -f conftest$ac_exeext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149 (eval $ac_link) 2>&5
3150 ac_status=$?
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
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3159 else
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
3164 ( exit $ac_status )
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
3177 _ACEOF
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
3199 else
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _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>
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
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
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
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
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 eval "$as_ac_Header=yes"
3233 else
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
3246 _ACEOF
3250 done
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
3261 else
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
3266 /* confdefs.h. */
3267 _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>
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
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
3286 (eval $ac_try) 2>&5
3287 ac_status=$?
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
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_header_compiler=yes
3297 else
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
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <Carbon/Carbon.h>
3317 _ACEOF
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
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
3329 else
3330 ac_cpp_err=
3332 else
3333 ac_cpp_err=yes
3335 if test -z "$ac_cpp_err"; then
3336 ac_header_preproc=yes
3337 else
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
3349 yes:no: )
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
3356 no: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;}
3370 cat <<\_ASBOX
3371 ## ------------------------------------------ ##
3372 ## Report this to the AC_PACKAGE_NAME lists. ##
3373 ## ------------------------------------------ ##
3374 _ASBOX
3376 sed "s/^/$as_me: WARNING: /" >&2
3378 esac
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
3383 else
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
3391 CARBON=yes
3396 SAVE_CPPFLAGS=$CPPFLAGS
3397 SAVE_CFLAGS=$CFLAGS
3398 CPPFLAGS="$CPPFLAGS -ObjC"
3399 CFLAGS="$CFLAGS -ObjC"
3400 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
3401 echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
3402 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6
3403 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
3407 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6
3408 else
3409 # Is the header compilable?
3410 echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
3411 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 $ac_includes_default
3419 #include <Cocoa/Cocoa.h>
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_header_compiler=yes
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_header_compiler=no
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3452 echo "${ECHO_T}$ac_header_compiler" >&6
3454 # Is the header present?
3455 echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
3456 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <Cocoa/Cocoa.h>
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 else
3477 ac_cpp_err=
3479 else
3480 ac_cpp_err=yes
3482 if test -z "$ac_cpp_err"; then
3483 ac_header_preproc=yes
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_header_preproc=no
3490 rm -f conftest.err conftest.$ac_ext
3491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3492 echo "${ECHO_T}$ac_header_preproc" >&6
3494 # So? What about this header?
3495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3496 yes:no: )
3497 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
3498 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3499 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
3500 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
3501 ac_header_preproc=yes
3503 no:yes:* )
3504 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
3505 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
3506 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
3507 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
3508 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
3509 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
3510 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
3511 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
3512 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
3513 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
3514 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
3515 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
3517 cat <<\_ASBOX
3518 ## ------------------------------------------ ##
3519 ## Report this to the AC_PACKAGE_NAME lists. ##
3520 ## ------------------------------------------ ##
3521 _ASBOX
3523 sed "s/^/$as_me: WARNING: /" >&2
3525 esac
3526 echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
3527 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6
3528 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
3533 echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
3534 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6
3537 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
3538 COCOA=yes
3542 CPPFLAGS=$SAVE_CPPFLAGS
3543 CFLAGS=$SAVE_CFLAGS
3545 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
3546 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
3547 with_x=no
3552 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3553 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3556 else
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3564 have_local_include=''
3565 have_local_lib=''
3566 if test "$GCC" = yes; then
3567 echo 'void f(){}' > conftest.c
3568 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3569 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3570 rm -f conftest.c conftest.o
3572 if test -z "$have_local_lib" -a -d /usr/local/lib; then
3573 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3574 if test "$tt" = "$LDFLAGS"; then
3575 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3578 if test -z "$have_local_include" -a -d /usr/local/include; then
3579 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3580 if test "$tt" = "$CPPFLAGS"; then
3581 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3585 echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3586 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3588 # Check whether --with-vim-name or --without-vim-name was given.
3589 if test "${with_vim_name+set}" = set; then
3590 withval="$with_vim_name"
3591 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3592 echo "${ECHO_T}$VIMNAME" >&6
3593 else
3594 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3595 echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3598 echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3599 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3601 # Check whether --with-ex-name or --without-ex-name was given.
3602 if test "${with_ex_name+set}" = set; then
3603 withval="$with_ex_name"
3604 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3605 echo "${ECHO_T}$EXNAME" >&6
3606 else
3607 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3608 echo "${ECHO_T}Defaulting to ex" >&6
3611 echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3612 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3614 # Check whether --with-view-name or --without-view-name was given.
3615 if test "${with_view_name+set}" = set; then
3616 withval="$with_view_name"
3617 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3618 echo "${ECHO_T}$VIEWNAME" >&6
3619 else
3620 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3621 echo "${ECHO_T}Defaulting to view" >&6
3625 echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3626 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3628 # Check whether --with-global-runtime or --without-global-runtime was given.
3629 if test "${with_global_runtime+set}" = set; then
3630 withval="$with_global_runtime"
3631 echo "$as_me:$LINENO: result: $withval" >&5
3632 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3633 #define RUNTIME_GLOBAL "$withval"
3634 _ACEOF
3636 else
3637 echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3641 echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3642 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3644 # Check whether --with-modified-by or --without-modified-by was given.
3645 if test "${with_modified_by+set}" = set; then
3646 withval="$with_modified_by"
3647 echo "$as_me:$LINENO: result: $withval" >&5
3648 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3649 #define MODIFIED_BY "$withval"
3650 _ACEOF
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3657 echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3658 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3667 main ()
3669 /* TryCompile function for CharSet.
3670 Treat any failure as ASCII for compatibility with existing art.
3671 Use compile-time rather than run-time tests for cross-compiler
3672 tolerance. */
3673 #if '0'!=240
3674 make an error "Character set is not EBCDIC"
3675 #endif
3677 return 0;
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3682 (eval $ac_compile) 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag"
3690 || test ! -s conftest.err'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 (eval $ac_try) 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; } &&
3696 { ac_try='test -s conftest.$ac_objext'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 # TryCompile action if true
3703 cf_cv_ebcdic=yes
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # TryCompile action if false
3709 cf_cv_ebcdic=no
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 # end of TryCompile ])
3713 # end of CacheVal CvEbcdic
3714 echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3715 echo "${ECHO_T}$cf_cv_ebcdic" >&6
3716 case "$cf_cv_ebcdic" in #(vi
3717 yes) cat >>confdefs.h <<\_ACEOF
3718 #define EBCDIC 1
3719 _ACEOF
3721 line_break='"\\n"'
3723 *) line_break='"\\012"';;
3724 esac
3727 if test "$cf_cv_ebcdic" = "yes"; then
3728 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3729 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3730 case `uname` in
3731 OS/390) OS390Unix="yes";
3732 if test "$CC" = "cc"; then
3733 ccm="$_CC_CCMODE"
3734 ccn="CC"
3735 else
3736 if test "$CC" = "c89"; then
3737 ccm="$_CC_C89MODE"
3738 ccn="C89"
3739 else
3740 ccm=1
3743 if test "$ccm" != "1"; then
3744 echo ""
3745 echo "------------------------------------------"
3746 echo " On OS/390 Unix, the environment variable"
3747 echo " __CC_${ccn}MODE must be set to \"1\"!"
3748 echo " Do:"
3749 echo " export _CC_${ccn}MODE=1"
3750 echo " and then call configure again."
3751 echo "------------------------------------------"
3752 exit 1
3754 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3755 echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3758 *) OS390Unix="no";
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3762 esac
3767 echo "$as_me:$LINENO: checking --with-features argument" >&5
3768 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3770 # Check whether --with-features or --without-features was given.
3771 if test "${with_features+set}" = set; then
3772 withval="$with_features"
3773 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3774 echo "${ECHO_T}$features" >&6
3775 else
3776 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3777 echo "${ECHO_T}Defaulting to normal" >&6
3780 dovimdiff=""
3781 dogvimdiff=""
3782 case "$features" in
3783 tiny) cat >>confdefs.h <<\_ACEOF
3784 #define FEAT_TINY 1
3785 _ACEOF
3787 small) cat >>confdefs.h <<\_ACEOF
3788 #define FEAT_SMALL 1
3789 _ACEOF
3791 normal) cat >>confdefs.h <<\_ACEOF
3792 #define FEAT_NORMAL 1
3793 _ACEOF
3794 dovimdiff="installvimdiff";
3795 dogvimdiff="installgvimdiff" ;;
3796 big) cat >>confdefs.h <<\_ACEOF
3797 #define FEAT_BIG 1
3798 _ACEOF
3799 dovimdiff="installvimdiff";
3800 dogvimdiff="installgvimdiff" ;;
3801 huge) cat >>confdefs.h <<\_ACEOF
3802 #define FEAT_HUGE 1
3803 _ACEOF
3804 dovimdiff="installvimdiff";
3805 dogvimdiff="installgvimdiff" ;;
3806 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3807 echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3808 esac
3813 echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3814 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3816 # Check whether --with-compiledby or --without-compiledby was given.
3817 if test "${with_compiledby+set}" = set; then
3818 withval="$with_compiledby"
3819 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3820 echo "${ECHO_T}$withval" >&6
3821 else
3822 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3827 echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3828 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3829 # Check whether --enable-xsmp or --disable-xsmp was given.
3830 if test "${enable_xsmp+set}" = set; then
3831 enableval="$enable_xsmp"
3833 else
3834 enable_xsmp="yes"
3837 if test "$enable_xsmp" = "yes"; then
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3841 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3842 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3843 if test "${enable_xsmp_interact+set}" = set; then
3844 enableval="$enable_xsmp_interact"
3846 else
3847 enable_xsmp_interact="yes"
3849 if test "$enable_xsmp_interact" = "yes"; then
3850 echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3852 cat >>confdefs.h <<\_ACEOF
3853 #define USE_XSMP_INTERACT 1
3854 _ACEOF
3856 else
3857 echo "$as_me:$LINENO: result: yes" >&5
3858 echo "${ECHO_T}yes" >&6
3860 else
3861 echo "$as_me:$LINENO: result: yes" >&5
3862 echo "${ECHO_T}yes" >&6
3865 echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3866 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3867 # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3868 if test "${enable_mzschemeinterp+set}" = set; then
3869 enableval="$enable_mzschemeinterp"
3871 else
3872 enable_mzschemeinterp="no"
3874 echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3875 echo "${ECHO_T}$enable_mzschemeinterp" >&6
3877 if test "$enable_mzschemeinterp" = "yes"; then
3880 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3881 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3883 # Check whether --with-plthome or --without-plthome was given.
3884 if test "${with_plthome+set}" = set; then
3885 withval="$with_plthome"
3886 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3887 echo "${ECHO_T}$with_plthome" >&6
3888 else
3889 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3890 echo "${ECHO_T}\"no\"" >&6
3893 if test "X$with_plthome" != "X"; then
3894 vi_cv_path_mzscheme_pfx="$with_plthome"
3895 else
3896 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3897 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3898 if test "X$PLTHOME" != "X"; then
3899 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3900 echo "${ECHO_T}\"$PLTHOME\"" >&6
3901 vi_cv_path_mzscheme_pfx="$PLTHOME"
3902 else
3903 echo "$as_me:$LINENO: result: \"not set\"" >&5
3904 echo "${ECHO_T}\"not set\"" >&6
3905 # Extract the first word of "mzscheme", so it can be a program name with args.
3906 set dummy mzscheme; ac_word=$2
3907 echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3909 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 case $vi_cv_path_mzscheme in
3913 [\\/]* | ?:[\\/]*)
3914 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3928 done
3929 done
3932 esac
3934 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3936 if test -n "$vi_cv_path_mzscheme"; then
3937 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3938 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3945 if test "X$vi_cv_path_mzscheme" != "X"; then
3946 lsout=`ls -l $vi_cv_path_mzscheme`
3947 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3948 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3952 if test "X$vi_cv_path_mzscheme" != "X"; then
3953 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3954 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3955 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 vi_cv_path_mzscheme_pfx=`
3959 ${vi_cv_path_mzscheme} -evm \
3960 "(display (simplify-path \
3961 (build-path (call-with-values \
3962 (lambda () (split-path (find-system-path (quote exec-file)))) \
3963 (lambda (base name must-be-dir?) base)) (quote up))))"`
3965 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3966 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3967 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3972 SCHEME_INC=
3973 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3974 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3975 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3976 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3977 echo "$as_me:$LINENO: result: \"yes\"" >&5
3978 echo "${ECHO_T}\"yes\"" >&6
3979 else
3980 echo "$as_me:$LINENO: result: \"no\"" >&5
3981 echo "${ECHO_T}\"no\"" >&6
3982 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
3983 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6
3984 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
3985 echo "$as_me:$LINENO: result: \"yes\"" >&5
3986 echo "${ECHO_T}\"yes\"" >&6
3987 SCHEME_INC=/plt
3988 else
3989 echo "$as_me:$LINENO: result: \"no\"" >&5
3990 echo "${ECHO_T}\"no\"" >&6
3991 vi_cv_path_mzscheme_pfx=
3996 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3997 if test "x$MACOSX" = "xyes"; then
3998 MZSCHEME_LIBS="-framework PLT_MzScheme"
3999 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4000 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4001 else
4002 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4003 if test "$GCC" = yes; then
4004 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4005 elif test "`(uname) 2>/dev/null`" = SunOS &&
4006 uname -r | grep '^5' >/dev/null; then
4007 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4010 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4011 SCHEME_COLLECTS=lib/plt/
4013 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4014 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4015 MZSCHEME_SRC="if_mzsch.c"
4016 MZSCHEME_OBJ="objects/if_mzsch.o"
4017 MZSCHEME_PRO="if_mzsch.pro"
4018 cat >>confdefs.h <<\_ACEOF
4019 #define FEAT_MZSCHEME 1
4020 _ACEOF
4031 echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4032 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
4033 # Check whether --enable-perlinterp or --disable-perlinterp was given.
4034 if test "${enable_perlinterp+set}" = set; then
4035 enableval="$enable_perlinterp"
4037 else
4038 enable_perlinterp="no"
4040 echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4041 echo "${ECHO_T}$enable_perlinterp" >&6
4042 if test "$enable_perlinterp" = "yes"; then
4044 # Extract the first word of "perl", so it can be a program name with args.
4045 set dummy perl; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 case $vi_cv_path_perl in
4052 [\\/]* | ?:[\\/]*)
4053 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4067 done
4068 done
4071 esac
4073 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4075 if test -n "$vi_cv_path_perl"; then
4076 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4077 echo "${ECHO_T}$vi_cv_path_perl" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4083 if test "X$vi_cv_path_perl" != "X"; then
4084 echo "$as_me:$LINENO: checking Perl version" >&5
4085 echo $ECHO_N "checking Perl version... $ECHO_C" >&6
4086 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4087 eval `$vi_cv_path_perl -V:usethreads`
4088 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4089 badthreads=no
4090 else
4091 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4092 eval `$vi_cv_path_perl -V:use5005threads`
4093 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4094 badthreads=no
4095 else
4096 badthreads=yes
4097 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4098 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
4100 else
4101 badthreads=yes
4102 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4103 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
4106 if test $badthreads = no; then
4107 echo "$as_me:$LINENO: result: OK" >&5
4108 echo "${ECHO_T}OK" >&6
4109 eval `$vi_cv_path_perl -V:shrpenv`
4110 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4111 shrpenv=""
4113 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4115 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4116 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4117 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4118 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4119 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4120 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4121 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4123 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4124 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
4125 cflags_save=$CFLAGS
4126 libs_save=$LIBS
4127 ldflags_save=$LDFLAGS
4128 CFLAGS="$CFLAGS $perlcppflags"
4129 LIBS="$LIBS $perllibs"
4130 LDFLAGS="$perlldflags $LDFLAGS"
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4139 main ()
4143 return 0;
4145 _ACEOF
4146 rm -f conftest.$ac_objext conftest$ac_exeext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148 (eval $ac_link) 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag"
4156 || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6; perl_ok=yes
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4175 echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4177 rm -f conftest.err conftest.$ac_objext \
4178 conftest$ac_exeext conftest.$ac_ext
4179 CFLAGS=$cflags_save
4180 LIBS=$libs_save
4181 LDFLAGS=$ldflags_save
4182 if test $perl_ok = yes; then
4183 if test "X$perlcppflags" != "X"; then
4184 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4186 if test "X$perlldflags" != "X"; then
4187 LDFLAGS="$perlldflags $LDFLAGS"
4189 PERL_LIBS=$perllibs
4190 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4191 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4192 PERL_PRO="if_perl.pro if_perlsfio.pro"
4193 cat >>confdefs.h <<\_ACEOF
4194 #define FEAT_PERL 1
4195 _ACEOF
4199 else
4200 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4201 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4205 if test "x$MACOSX" = "xyes"; then
4206 dir=/System/Library/Perl
4207 darwindir=$dir/darwin
4208 if test -d $darwindir; then
4209 PERL=/usr/bin/perl
4210 else
4211 dir=/System/Library/Perl/5.8.1
4212 darwindir=$dir/darwin-thread-multi-2level
4213 if test -d $darwindir; then
4214 PERL=/usr/bin/perl
4217 if test -n "$PERL"; then
4218 PERL_DIR="$dir"
4219 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4220 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4221 PERL_LIBS="-L$darwindir/CORE -lperl"
4232 echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4233 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4234 # Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4235 if test "${enable_pythoninterp+set}" = set; then
4236 enableval="$enable_pythoninterp"
4238 else
4239 enable_pythoninterp="no"
4241 echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4242 echo "${ECHO_T}$enable_pythoninterp" >&6
4243 if test "$enable_pythoninterp" = "yes"; then
4244 # Extract the first word of "python", so it can be a program name with args.
4245 set dummy python; ac_word=$2
4246 echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 case $vi_cv_path_python in
4252 [\\/]* | ?:[\\/]*)
4253 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4271 esac
4273 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4275 if test -n "$vi_cv_path_python"; then
4276 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4277 echo "${ECHO_T}$vi_cv_path_python" >&6
4278 else
4279 echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4283 if test "X$vi_cv_path_python" != "X"; then
4285 echo "$as_me:$LINENO: checking Python version" >&5
4286 echo $ECHO_N "checking Python version... $ECHO_C" >&6
4287 if test "${vi_cv_var_python_version+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 vi_cv_var_python_version=`
4291 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4294 echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4295 echo "${ECHO_T}$vi_cv_var_python_version" >&6
4297 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4298 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4299 if ${vi_cv_path_python} -c \
4300 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4301 then
4302 echo "$as_me:$LINENO: result: yep" >&5
4303 echo "${ECHO_T}yep" >&6
4305 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4306 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4307 if test "${vi_cv_path_python_pfx+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 vi_cv_path_python_pfx=`
4311 ${vi_cv_path_python} -c \
4312 "import sys; print sys.prefix"`
4314 echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4315 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4317 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4318 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4319 if test "${vi_cv_path_python_epfx+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 vi_cv_path_python_epfx=`
4323 ${vi_cv_path_python} -c \
4324 "import sys; print sys.exec_prefix"`
4326 echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4327 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4330 if test "${vi_cv_path_pythonpath+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333 vi_cv_path_pythonpath=`
4334 unset PYTHONPATH;
4335 ${vi_cv_path_python} -c \
4336 "import sys, string; print string.join(sys.path,':')"`
4342 # Check whether --with-python-config-dir or --without-python-config-dir was given.
4343 if test "${with_python_config_dir+set}" = set; then
4344 withval="$with_python_config_dir"
4345 vi_cv_path_python_conf="${withval}"
4348 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4349 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4350 if test "${vi_cv_path_python_conf+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4354 vi_cv_path_python_conf=
4355 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4356 for subdir in lib share; do
4357 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4358 if test -d "$d" && test -f "$d/config.c"; then
4359 vi_cv_path_python_conf="$d"
4361 done
4362 done
4365 echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4366 echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4368 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4370 if test "X$PYTHON_CONFDIR" = "X"; then
4371 echo "$as_me:$LINENO: result: can't find it!" >&5
4372 echo "${ECHO_T}can't find it!" >&6
4373 else
4375 if test "${vi_cv_path_python_plibs+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4379 tmp_mkf="/tmp/Makefile-conf$$"
4380 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4382 @echo "python_MODLIBS='$(MODLIBS)'"
4383 @echo "python_LIBS='$(LIBS)'"
4384 @echo "python_SYSLIBS='$(SYSLIBS)'"
4385 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4387 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4388 rm -f ${tmp_mkf}
4389 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4390 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4391 vi_cv_path_python_plibs="-framework Python"
4392 else
4393 if test "${vi_cv_var_python_version}" = "1.4"; then
4394 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4395 else
4396 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4398 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4399 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4405 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4406 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4407 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4408 else
4409 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}"
4411 PYTHON_SRC="if_python.c"
4412 if test "x$MACOSX" = "xyes"; then
4413 PYTHON_OBJ="objects/if_python.o"
4414 else
4415 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4417 if test "${vi_cv_var_python_version}" = "1.4"; then
4418 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4420 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4422 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4423 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4424 threadsafe_flag=
4425 thread_lib=
4426 if test "`(uname) 2>/dev/null`" != Darwin; then
4427 test "$GCC" = yes && threadsafe_flag="-pthread"
4428 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4429 threadsafe_flag="-D_THREAD_SAFE"
4430 thread_lib="-pthread"
4433 libs_save_old=$LIBS
4434 if test -n "$threadsafe_flag"; then
4435 cflags_save=$CFLAGS
4436 CFLAGS="$CFLAGS $threadsafe_flag"
4437 LIBS="$LIBS $thread_lib"
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4446 main ()
4450 return 0;
4452 _ACEOF
4453 rm -f conftest.$ac_objext conftest$ac_exeext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455 (eval $ac_link) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 echo "$as_me:$LINENO: result: yes" >&5
4476 echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4485 rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
4487 CFLAGS=$cflags_save
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4493 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4494 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4495 cflags_save=$CFLAGS
4496 libs_save=$LIBS
4497 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4498 LIBS="$LIBS $PYTHON_LIBS"
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4507 main ()
4511 return 0;
4513 _ACEOF
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest$ac_exeext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; python_ok=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4543 echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4545 rm -f conftest.err conftest.$ac_objext \
4546 conftest$ac_exeext conftest.$ac_ext
4547 CFLAGS=$cflags_save
4548 LIBS=$libs_save
4549 if test $python_ok = yes; then
4550 cat >>confdefs.h <<\_ACEOF
4551 #define FEAT_PYTHON 1
4552 _ACEOF
4554 else
4555 LIBS=$libs_save_old
4556 PYTHON_SRC=
4557 PYTHON_OBJ=
4558 PYTHON_LIBS=
4559 PYTHON_CFLAGS=
4563 else
4564 echo "$as_me:$LINENO: result: too old" >&5
4565 echo "${ECHO_T}too old" >&6
4576 echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4577 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4578 # Check whether --enable-tclinterp or --disable-tclinterp was given.
4579 if test "${enable_tclinterp+set}" = set; then
4580 enableval="$enable_tclinterp"
4582 else
4583 enable_tclinterp="no"
4585 echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4586 echo "${ECHO_T}$enable_tclinterp" >&6
4588 if test "$enable_tclinterp" = "yes"; then
4590 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4591 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4593 # Check whether --with-tclsh or --without-tclsh was given.
4594 if test "${with_tclsh+set}" = set; then
4595 withval="$with_tclsh"
4596 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4597 echo "${ECHO_T}$tclsh_name" >&6
4598 else
4599 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4602 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4603 set dummy $tclsh_name; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 case $vi_cv_path_tcl in
4610 [\\/]* | ?:[\\/]*)
4611 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4629 esac
4631 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4633 if test -n "$vi_cv_path_tcl"; then
4634 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4635 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4643 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4644 tclsh_name="tclsh8.2"
4645 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4646 set dummy $tclsh_name; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 case $vi_cv_path_tcl in
4653 [\\/]* | ?:[\\/]*)
4654 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4672 esac
4674 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4676 if test -n "$vi_cv_path_tcl"; then
4677 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4678 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4679 else
4680 echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4685 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4686 tclsh_name="tclsh8.0"
4687 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4688 set dummy $tclsh_name; ac_word=$2
4689 echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 case $vi_cv_path_tcl in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4714 esac
4716 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4718 if test -n "$vi_cv_path_tcl"; then
4719 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4720 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4721 else
4722 echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4727 if test "X$vi_cv_path_tcl" = "X"; then
4728 tclsh_name="tclsh"
4729 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4730 set dummy $tclsh_name; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 case $vi_cv_path_tcl in
4737 [\\/]* | ?:[\\/]*)
4738 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4756 esac
4758 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4760 if test -n "$vi_cv_path_tcl"; then
4761 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4762 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4763 else
4764 echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4769 if test "X$vi_cv_path_tcl" != "X"; then
4770 echo "$as_me:$LINENO: checking Tcl version" >&5
4771 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4772 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4773 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4774 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4775 echo "${ECHO_T}$tclver - OK" >&6;
4776 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 -`
4778 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4779 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4780 if test "x$MACOSX" != "xyes"; then
4781 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
4782 else
4783 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4785 for try in $tclinc; do
4786 if test -f "$try/tcl.h"; then
4787 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4788 echo "${ECHO_T}$try/tcl.h" >&6
4789 TCL_INC=$try
4790 break
4792 done
4793 if test -z "$TCL_INC"; then
4794 echo "$as_me:$LINENO: result: <not found>" >&5
4795 echo "${ECHO_T}<not found>" >&6
4796 SKIP_TCL=YES
4798 if test -z "$SKIP_TCL"; then
4799 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4800 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4801 if test "x$MACOSX" != "xyes"; then
4802 tclcnf=`echo $tclinc | sed s/include/lib/g`
4803 else
4804 tclcnf="/System/Library/Frameworks/Tcl.framework"
4806 for try in $tclcnf; do
4807 if test -f $try/tclConfig.sh; then
4808 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4809 echo "${ECHO_T}$try/tclConfig.sh" >&6
4810 . $try/tclConfig.sh
4811 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4812 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'`
4813 break
4815 done
4816 if test -z "$TCL_LIBS"; then
4817 echo "$as_me:$LINENO: result: <not found>" >&5
4818 echo "${ECHO_T}<not found>" >&6
4819 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4820 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4821 tcllib=`echo $tclinc | sed s/include/lib/g`
4822 for ext in .so .a ; do
4823 for ver in "" $tclver ; do
4824 for try in $tcllib ; do
4825 trylib=tcl$ver$ext
4826 if test -f $try/lib$trylib ; then
4827 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4828 echo "${ECHO_T}$try/lib$trylib" >&6
4829 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4830 if test "`(uname) 2>/dev/null`" = SunOS &&
4831 uname -r | grep '^5' >/dev/null; then
4832 TCL_LIBS="$TCL_LIBS -R $try"
4834 break 3
4836 done
4837 done
4838 done
4839 if test -z "$TCL_LIBS"; then
4840 echo "$as_me:$LINENO: result: <not found>" >&5
4841 echo "${ECHO_T}<not found>" >&6
4842 SKIP_TCL=YES
4845 if test -z "$SKIP_TCL"; then
4846 cat >>confdefs.h <<\_ACEOF
4847 #define FEAT_TCL 1
4848 _ACEOF
4850 TCL_SRC=if_tcl.c
4851 TCL_OBJ=objects/if_tcl.o
4852 TCL_PRO=if_tcl.pro
4853 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4856 else
4857 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4858 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4868 echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4869 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4870 # Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4871 if test "${enable_rubyinterp+set}" = set; then
4872 enableval="$enable_rubyinterp"
4874 else
4875 enable_rubyinterp="no"
4877 echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4878 echo "${ECHO_T}$enable_rubyinterp" >&6
4879 if test "$enable_rubyinterp" = "yes"; then
4881 # Extract the first word of "ruby", so it can be a program name with args.
4882 set dummy ruby; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 case $vi_cv_path_ruby in
4889 [\\/]* | ?:[\\/]*)
4890 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4904 done
4905 done
4908 esac
4910 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4912 if test -n "$vi_cv_path_ruby"; then
4913 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4914 echo "${ECHO_T}$vi_cv_path_ruby" >&6
4915 else
4916 echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4920 if test "X$vi_cv_path_ruby" != "X"; then
4921 echo "$as_me:$LINENO: checking Ruby version" >&5
4922 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4923 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4924 echo "$as_me:$LINENO: result: OK" >&5
4925 echo "${ECHO_T}OK" >&6
4926 echo "$as_me:$LINENO: checking Ruby header files" >&5
4927 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4928 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4929 if test "X$rubyhdrdir" != "X"; then
4930 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4931 echo "${ECHO_T}$rubyhdrdir" >&6
4932 RUBY_CFLAGS="-I$rubyhdrdir"
4933 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4934 if test "X$rubylibs" != "X"; then
4935 RUBY_LIBS="$rubylibs"
4937 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4938 if test -f "$rubyhdrdir/$librubyarg"; then
4939 librubyarg="$rubyhdrdir/$librubyarg"
4940 else
4941 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4942 if test -f "$rubylibdir/$librubyarg"; then
4943 librubyarg="$rubylibdir/$librubyarg"
4944 elif test "$librubyarg" = "libruby.a"; then
4945 librubyarg="-lruby"
4946 else
4947 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4951 if test "X$librubyarg" != "X"; then
4952 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4954 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4955 if test "X$rubyldflags" != "X"; then
4956 LDFLAGS="$rubyldflags $LDFLAGS"
4958 RUBY_SRC="if_ruby.c"
4959 RUBY_OBJ="objects/if_ruby.o"
4960 RUBY_PRO="if_ruby.pro"
4961 cat >>confdefs.h <<\_ACEOF
4962 #define FEAT_RUBY 1
4963 _ACEOF
4965 else
4966 echo "$as_me:$LINENO: result: not found" >&5
4967 echo "${ECHO_T}not found" >&6
4969 else
4970 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4971 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4981 echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4982 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4983 # Check whether --enable-cscope or --disable-cscope was given.
4984 if test "${enable_cscope+set}" = set; then
4985 enableval="$enable_cscope"
4987 else
4988 enable_cscope="no"
4990 echo "$as_me:$LINENO: result: $enable_cscope" >&5
4991 echo "${ECHO_T}$enable_cscope" >&6
4992 if test "$enable_cscope" = "yes"; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define FEAT_CSCOPE 1
4995 _ACEOF
4999 echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5000 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
5001 # Check whether --enable-workshop or --disable-workshop was given.
5002 if test "${enable_workshop+set}" = set; then
5003 enableval="$enable_workshop"
5005 else
5006 enable_workshop="no"
5008 echo "$as_me:$LINENO: result: $enable_workshop" >&5
5009 echo "${ECHO_T}$enable_workshop" >&6
5010 if test "$enable_workshop" = "yes"; then
5011 cat >>confdefs.h <<\_ACEOF
5012 #define FEAT_SUN_WORKSHOP 1
5013 _ACEOF
5015 WORKSHOP_SRC="workshop.c integration.c"
5017 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5019 if test "${enable_gui-xxx}" = xxx; then
5020 enable_gui=motif
5024 echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5025 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
5026 # Check whether --enable-netbeans or --disable-netbeans was given.
5027 if test "${enable_netbeans+set}" = set; then
5028 enableval="$enable_netbeans"
5030 else
5031 enable_netbeans="yes"
5033 if test "$enable_netbeans" = "yes"; then
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5037 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5038 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5039 if test "${ac_cv_lib_socket_socket+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lsocket $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 #ifdef __cplusplus
5053 extern "C"
5054 #endif
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057 char socket ();
5059 main ()
5061 socket ();
5063 return 0;
5065 _ACEOF
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest$ac_exeext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_cv_lib_socket_socket=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_cv_lib_socket_socket=no
5095 rm -f conftest.err conftest.$ac_objext \
5096 conftest$ac_exeext conftest.$ac_ext
5097 LIBS=$ac_check_lib_save_LIBS
5099 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5100 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5101 if test $ac_cv_lib_socket_socket = yes; then
5102 cat >>confdefs.h <<_ACEOF
5103 #define HAVE_LIBSOCKET 1
5104 _ACEOF
5106 LIBS="-lsocket $LIBS"
5111 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5112 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5113 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lnsl $LIBS"
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 /* Override any gcc2 internal prototype to avoid an error. */
5126 #ifdef __cplusplus
5127 extern "C"
5128 #endif
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5131 char gethostbyname ();
5133 main ()
5135 gethostbyname ();
5137 return 0;
5139 _ACEOF
5140 rm -f conftest.$ac_objext conftest$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -z "$ac_c_werror_flag"
5150 || test ! -s conftest.err'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 (eval $ac_try) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; } &&
5156 { ac_try='test -s conftest$ac_exeext'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_cv_lib_nsl_gethostbyname=yes
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 ac_cv_lib_nsl_gethostbyname=no
5169 rm -f conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 LIBS=$ac_check_lib_save_LIBS
5173 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5174 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5175 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5176 cat >>confdefs.h <<_ACEOF
5177 #define HAVE_LIBNSL 1
5178 _ACEOF
5180 LIBS="-lnsl $LIBS"
5184 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5185 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5186 cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5193 #include <stdio.h>
5194 #include <stdlib.h>
5195 #include <stdarg.h>
5196 #include <fcntl.h>
5197 #include <netdb.h>
5198 #include <netinet/in.h>
5199 #include <errno.h>
5200 #include <sys/types.h>
5201 #include <sys/socket.h>
5202 /* Check bitfields */
5203 struct nbbuf {
5204 unsigned int initDone:1;
5205 ushort signmaplen;
5209 main ()
5212 /* Check creating a socket. */
5213 struct sockaddr_in server;
5214 (void)socket(AF_INET, SOCK_STREAM, 0);
5215 (void)htons(100);
5216 (void)gethostbyname("microsoft.com");
5217 if (errno == ECONNREFUSED)
5218 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5221 return 0;
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_c_werror_flag"
5234 || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try='test -s conftest$ac_exeext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 echo "$as_me:$LINENO: result: yes" >&5
5247 echo "${ECHO_T}yes" >&6
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; enable_netbeans="no"
5255 rm -f conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
5257 else
5258 echo "$as_me:$LINENO: result: yes" >&5
5259 echo "${ECHO_T}yes" >&6
5261 if test "$enable_netbeans" = "yes"; then
5262 cat >>confdefs.h <<\_ACEOF
5263 #define FEAT_NETBEANS_INTG 1
5264 _ACEOF
5266 NETBEANS_SRC="netbeans.c"
5268 NETBEANS_OBJ="objects/netbeans.o"
5272 echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5273 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5274 # Check whether --enable-sniff or --disable-sniff was given.
5275 if test "${enable_sniff+set}" = set; then
5276 enableval="$enable_sniff"
5278 else
5279 enable_sniff="no"
5281 echo "$as_me:$LINENO: result: $enable_sniff" >&5
5282 echo "${ECHO_T}$enable_sniff" >&6
5283 if test "$enable_sniff" = "yes"; then
5284 cat >>confdefs.h <<\_ACEOF
5285 #define FEAT_SNIFF 1
5286 _ACEOF
5288 SNIFF_SRC="if_sniff.c"
5290 SNIFF_OBJ="objects/if_sniff.o"
5294 echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5295 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5296 # Check whether --enable-multibyte or --disable-multibyte was given.
5297 if test "${enable_multibyte+set}" = set; then
5298 enableval="$enable_multibyte"
5300 else
5301 enable_multibyte="no"
5303 echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5304 echo "${ECHO_T}$enable_multibyte" >&6
5305 if test "$enable_multibyte" = "yes"; then
5306 cat >>confdefs.h <<\_ACEOF
5307 #define FEAT_MBYTE 1
5308 _ACEOF
5312 echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5313 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5314 # Check whether --enable-hangulinput or --disable-hangulinput was given.
5315 if test "${enable_hangulinput+set}" = set; then
5316 enableval="$enable_hangulinput"
5318 else
5319 enable_hangulinput="no"
5321 echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5322 echo "${ECHO_T}$enable_hangulinput" >&6
5324 echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5325 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5326 # Check whether --enable-xim or --disable-xim was given.
5327 if test "${enable_xim+set}" = set; then
5328 enableval="$enable_xim"
5329 echo "$as_me:$LINENO: result: $enable_xim" >&5
5330 echo "${ECHO_T}$enable_xim" >&6
5331 else
5332 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5333 echo "${ECHO_T}defaulting to auto" >&6
5336 echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5337 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5338 # Check whether --enable-fontset or --disable-fontset was given.
5339 if test "${enable_fontset+set}" = set; then
5340 enableval="$enable_fontset"
5342 else
5343 enable_fontset="no"
5345 echo "$as_me:$LINENO: result: $enable_fontset" >&5
5346 echo "${ECHO_T}$enable_fontset" >&6
5348 test -z "$with_x" && with_x=yes
5349 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5350 if test "$with_x" = no; then
5351 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5352 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5353 else
5355 # Extract the first word of "xmkmf", so it can be a program name with args.
5356 set dummy xmkmf; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_path_xmkmfpath+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 case $xmkmfpath in
5363 [\\/]* | ?:[\\/]*)
5364 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5382 esac
5384 xmkmfpath=$ac_cv_path_xmkmfpath
5386 if test -n "$xmkmfpath"; then
5387 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5388 echo "${ECHO_T}$xmkmfpath" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5395 echo "$as_me:$LINENO: checking for X" >&5
5396 echo $ECHO_N "checking for X... $ECHO_C" >&6
5399 # Check whether --with-x or --without-x was given.
5400 if test "${with_x+set}" = set; then
5401 withval="$with_x"
5404 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5405 if test "x$with_x" = xno; then
5406 # The user explicitly disabled X.
5407 have_x=disabled
5408 else
5409 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5410 # Both variables are already set.
5411 have_x=yes
5412 else
5413 if test "${ac_cv_have_x+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 # One or both of the vars are not set, and there is no cached value.
5417 ac_x_includes=no ac_x_libraries=no
5418 rm -fr conftest.dir
5419 if mkdir conftest.dir; then
5420 cd conftest.dir
5421 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5422 cat >Imakefile <<'_ACEOF'
5423 acfindx:
5424 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5425 _ACEOF
5426 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5428 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5430 for ac_extension in a so sl; do
5431 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5432 test -f $ac_im_libdir/libX11.$ac_extension; then
5433 ac_im_usrlibdir=$ac_im_libdir; break
5435 done
5436 # Screen out bogus values from the imake configuration. They are
5437 # bogus both because they are the default anyway, and because
5438 # using them would break gcc on systems where it needs fixed includes.
5439 case $ac_im_incroot in
5440 /usr/include) ;;
5441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5442 esac
5443 case $ac_im_usrlibdir in
5444 /usr/lib | /lib) ;;
5445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5446 esac
5448 cd ..
5449 rm -fr conftest.dir
5452 # Standard set of common directories for X headers.
5453 # Check X11 before X11Rn because it is often a symlink to the current release.
5454 ac_x_header_dirs='
5455 /usr/X11/include
5456 /usr/X11R6/include
5457 /usr/X11R5/include
5458 /usr/X11R4/include
5460 /usr/include/X11
5461 /usr/include/X11R6
5462 /usr/include/X11R5
5463 /usr/include/X11R4
5465 /usr/local/X11/include
5466 /usr/local/X11R6/include
5467 /usr/local/X11R5/include
5468 /usr/local/X11R4/include
5470 /usr/local/include/X11
5471 /usr/local/include/X11R6
5472 /usr/local/include/X11R5
5473 /usr/local/include/X11R4
5475 /usr/X386/include
5476 /usr/x386/include
5477 /usr/XFree86/include/X11
5479 /usr/include
5480 /usr/local/include
5481 /usr/unsupported/include
5482 /usr/athena/include
5483 /usr/local/x11r5/include
5484 /usr/lpp/Xamples/include
5486 /usr/openwin/include
5487 /usr/openwin/share/include'
5489 if test "$ac_x_includes" = no; then
5490 # Guess where to find include files, by looking for Intrinsic.h.
5491 # First, try using that file with no special directory specified.
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <X11/Intrinsic.h>
5499 _ACEOF
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511 else
5512 ac_cpp_err=
5514 else
5515 ac_cpp_err=yes
5517 if test -z "$ac_cpp_err"; then
5518 # We can compile using X headers with no special include directory.
5519 ac_x_includes=
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 for ac_dir in $ac_x_header_dirs; do
5525 if test -r "$ac_dir/X11/Intrinsic.h"; then
5526 ac_x_includes=$ac_dir
5527 break
5529 done
5531 rm -f conftest.err conftest.$ac_ext
5532 fi # $ac_x_includes = no
5534 if test "$ac_x_libraries" = no; then
5535 # Check for the libraries.
5536 # See if we find them without any special options.
5537 # Don't add to $LIBS permanently.
5538 ac_save_LIBS=$LIBS
5539 LIBS="-lXt $LIBS"
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <X11/Intrinsic.h>
5548 main ()
5550 XtMalloc (0)
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 LIBS=$ac_save_LIBS
5578 # We can link X programs with no special library path.
5579 ac_x_libraries=
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 LIBS=$ac_save_LIBS
5585 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5587 # Don't even attempt the hair of trying to link an X program!
5588 for ac_extension in a so sl; do
5589 if test -r $ac_dir/libXt.$ac_extension; then
5590 ac_x_libraries=$ac_dir
5591 break 2
5593 done
5594 done
5596 rm -f conftest.err conftest.$ac_objext \
5597 conftest$ac_exeext conftest.$ac_ext
5598 fi # $ac_x_libraries = no
5600 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5601 # Didn't find X anywhere. Cache the known absence of X.
5602 ac_cv_have_x="have_x=no"
5603 else
5604 # Record where we found X for the cache.
5605 ac_cv_have_x="have_x=yes \
5606 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5611 eval "$ac_cv_have_x"
5612 fi # $with_x != no
5614 if test "$have_x" != yes; then
5615 echo "$as_me:$LINENO: result: $have_x" >&5
5616 echo "${ECHO_T}$have_x" >&6
5617 no_x=yes
5618 else
5619 # If each of the values was on the command line, it overrides each guess.
5620 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5621 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5622 # Update the cache value to reflect the command line values.
5623 ac_cv_have_x="have_x=yes \
5624 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5625 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5626 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5629 if test "$no_x" = yes; then
5630 # Not all programs may use this symbol, but it does not hurt to define it.
5632 cat >>confdefs.h <<\_ACEOF
5633 #define X_DISPLAY_MISSING 1
5634 _ACEOF
5636 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5637 else
5638 if test -n "$x_includes"; then
5639 X_CFLAGS="$X_CFLAGS -I$x_includes"
5642 # It would also be nice to do this for all -L options, not just this one.
5643 if test -n "$x_libraries"; then
5644 X_LIBS="$X_LIBS -L$x_libraries"
5645 # For Solaris; some versions of Sun CC require a space after -R and
5646 # others require no space. Words are not sufficient . . . .
5647 case `(uname -sr) 2>/dev/null` in
5648 "SunOS 5"*)
5649 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5650 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5651 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5660 main ()
5664 return 0;
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest$ac_exeext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_R_nospace=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 ac_R_nospace=no
5696 rm -f conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
5698 if test $ac_R_nospace = yes; then
5699 echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5701 X_LIBS="$X_LIBS -R$x_libraries"
5702 else
5703 LIBS="$ac_xsave_LIBS -R $x_libraries"
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5712 main ()
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext conftest$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 (eval $ac_link) 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_c_werror_flag"
5729 || test ! -s conftest.err'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 (eval $ac_try) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; } &&
5735 { ac_try='test -s conftest$ac_exeext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 ac_R_space=yes
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 ac_R_space=no
5748 rm -f conftest.err conftest.$ac_objext \
5749 conftest$ac_exeext conftest.$ac_ext
5750 if test $ac_R_space = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6
5753 X_LIBS="$X_LIBS -R $x_libraries"
5754 else
5755 echo "$as_me:$LINENO: result: neither works" >&5
5756 echo "${ECHO_T}neither works" >&6
5759 LIBS=$ac_xsave_LIBS
5760 esac
5763 # Check for system-dependent libraries X programs must link with.
5764 # Do this before checking for the system-independent R6 libraries
5765 # (-lICE), since we may need -lsocket or whatever for X linking.
5767 if test "$ISC" = yes; then
5768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5769 else
5770 # Martyn Johnson says this is needed for Ultrix, if the X
5771 # libraries were built with DECnet support. And Karl Berry says
5772 # the Alpha needs dnet_stub (dnet does not exist).
5773 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 /* Override any gcc2 internal prototype to avoid an error. */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787 char XOpenDisplay ();
5789 main ()
5791 XOpenDisplay ();
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5798 (eval $ac_link) 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag"
5806 || test ! -s conftest.err'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest$ac_exeext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5824 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5825 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 ac_check_lib_save_LIBS=$LIBS
5829 LIBS="-ldnet $LIBS"
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 #ifdef __cplusplus
5839 extern "C"
5840 #endif
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char dnet_ntoa ();
5845 main ()
5847 dnet_ntoa ();
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest$ac_exeext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_lib_dnet_dnet_ntoa=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_lib_dnet_dnet_ntoa=no
5881 rm -f conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883 LIBS=$ac_check_lib_save_LIBS
5885 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5886 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5887 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5888 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5892 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5893 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5894 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 ac_check_lib_save_LIBS=$LIBS
5898 LIBS="-ldnet_stub $LIBS"
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 #ifdef __cplusplus
5908 extern "C"
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5912 char dnet_ntoa ();
5914 main ()
5916 dnet_ntoa ();
5918 return 0;
5920 _ACEOF
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_cv_lib_dnet_stub_dnet_ntoa=no
5950 rm -f conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5954 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5955 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5956 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5957 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5962 rm -f conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS="$ac_xsave_LIBS"
5966 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5967 # to get the SysV transport functions.
5968 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5969 # needs -lnsl.
5970 # The nsl library prevents programs from opening the X display
5971 # on Irix 5.2, according to T.E. Dickey.
5972 # The functions gethostbyname, getservbyname, and inet_addr are
5973 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5974 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5975 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5976 if test "${ac_cv_func_gethostbyname+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5987 #define gethostbyname innocuous_gethostbyname
5989 /* System header to define __stub macros and hopefully few prototypes,
5990 which can conflict with char gethostbyname (); below.
5991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992 <limits.h> exists even on freestanding compilers. */
5994 #ifdef __STDC__
5995 # include <limits.h>
5996 #else
5997 # include <assert.h>
5998 #endif
6000 #undef gethostbyname
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 #ifdef __cplusplus
6004 extern "C"
6006 #endif
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6009 char gethostbyname ();
6010 /* The GNU C library defines this for functions which it implements
6011 to always fail with ENOSYS. Some functions are actually named
6012 something starting with __ and the normal name is an alias. */
6013 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6014 choke me
6015 #else
6016 char (*f) () = gethostbyname;
6017 #endif
6018 #ifdef __cplusplus
6020 #endif
6023 main ()
6025 return f != gethostbyname;
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext conftest$ac_exeext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6032 (eval $ac_link) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_func_gethostbyname=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_cv_func_gethostbyname=no
6059 rm -f conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6062 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6063 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6065 if test $ac_cv_func_gethostbyname = no; then
6066 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6067 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6068 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 ac_check_lib_save_LIBS=$LIBS
6072 LIBS="-lnsl $LIBS"
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 #ifdef __cplusplus
6082 extern "C"
6083 #endif
6084 /* We use char because int might match the return type of a gcc2
6085 builtin and then its argument prototype would still apply. */
6086 char gethostbyname ();
6088 main ()
6090 gethostbyname ();
6092 return 0;
6094 _ACEOF
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_c_werror_flag"
6105 || test ! -s conftest.err'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_cv_lib_nsl_gethostbyname=yes
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 ac_cv_lib_nsl_gethostbyname=no
6124 rm -f conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 LIBS=$ac_check_lib_save_LIBS
6128 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6129 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6130 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6134 if test $ac_cv_lib_nsl_gethostbyname = no; then
6135 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6136 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6137 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 ac_check_lib_save_LIBS=$LIBS
6141 LIBS="-lbsd $LIBS"
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6149 /* Override any gcc2 internal prototype to avoid an error. */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155 char gethostbyname ();
6157 main ()
6159 gethostbyname ();
6161 return 0;
6163 _ACEOF
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag"
6174 || test ! -s conftest.err'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; } &&
6180 { ac_try='test -s conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_lib_bsd_gethostbyname=yes
6187 else
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6191 ac_cv_lib_bsd_gethostbyname=no
6193 rm -f conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 LIBS=$ac_check_lib_save_LIBS
6197 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6198 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6199 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6206 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6207 # socket/setsockopt and other routines are undefined under SCO ODT
6208 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6209 # on later versions), says Simon Leinen: it contains gethostby*
6210 # variants that don't use the name server (or something). -lsocket
6211 # must be given before -lnsl if both are needed. We assume that
6212 # if connect needs -lnsl, so does gethostbyname.
6213 echo "$as_me:$LINENO: checking for connect" >&5
6214 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6215 if test "${ac_cv_func_connect+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6226 #define connect innocuous_connect
6228 /* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char connect (); below.
6230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6231 <limits.h> exists even on freestanding compilers. */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6239 #undef connect
6241 /* Override any gcc2 internal prototype to avoid an error. */
6242 #ifdef __cplusplus
6243 extern "C"
6245 #endif
6246 /* We use char because int might match the return type of a gcc2
6247 builtin and then its argument prototype would still apply. */
6248 char connect ();
6249 /* The GNU C library defines this for functions which it implements
6250 to always fail with ENOSYS. Some functions are actually named
6251 something starting with __ and the normal name is an alias. */
6252 #if defined (__stub_connect) || defined (__stub___connect)
6253 choke me
6254 #else
6255 char (*f) () = connect;
6256 #endif
6257 #ifdef __cplusplus
6259 #endif
6262 main ()
6264 return f != connect;
6266 return 0;
6268 _ACEOF
6269 rm -f conftest.$ac_objext conftest$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_c_werror_flag"
6279 || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_func_connect=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 ac_cv_func_connect=no
6298 rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6301 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6302 echo "${ECHO_T}$ac_cv_func_connect" >&6
6304 if test $ac_cv_func_connect = no; then
6305 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6306 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6307 if test "${ac_cv_lib_socket_connect+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6325 char connect ();
6327 main ()
6329 connect ();
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_socket_connect=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_lib_socket_connect=no
6363 rm -f conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6365 LIBS=$ac_check_lib_save_LIBS
6367 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6368 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6369 if test $ac_cv_lib_socket_connect = yes; then
6370 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6375 # Guillermo Gomez says -lposix is necessary on A/UX.
6376 echo "$as_me:$LINENO: checking for remove" >&5
6377 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6378 if test "${ac_cv_func_remove+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6389 #define remove innocuous_remove
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char remove (); below.
6393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6394 <limits.h> exists even on freestanding compilers. */
6396 #ifdef __STDC__
6397 # include <limits.h>
6398 #else
6399 # include <assert.h>
6400 #endif
6402 #undef remove
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 #ifdef __cplusplus
6406 extern "C"
6408 #endif
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char remove ();
6412 /* The GNU C library defines this for functions which it implements
6413 to always fail with ENOSYS. Some functions are actually named
6414 something starting with __ and the normal name is an alias. */
6415 #if defined (__stub_remove) || defined (__stub___remove)
6416 choke me
6417 #else
6418 char (*f) () = remove;
6419 #endif
6420 #ifdef __cplusplus
6422 #endif
6425 main ()
6427 return f != remove;
6429 return 0;
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_func_remove=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_cv_func_remove=no
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6465 echo "${ECHO_T}$ac_cv_func_remove" >&6
6467 if test $ac_cv_func_remove = no; then
6468 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6469 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6470 if test "${ac_cv_lib_posix_remove+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 ac_check_lib_save_LIBS=$LIBS
6474 LIBS="-lposix $LIBS"
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 #ifdef __cplusplus
6484 extern "C"
6485 #endif
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char remove ();
6490 main ()
6492 remove ();
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -z "$ac_c_werror_flag"
6507 || test ! -s conftest.err'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; } &&
6513 { ac_try='test -s conftest$ac_exeext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_cv_lib_posix_remove=yes
6520 else
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_cv_lib_posix_remove=no
6526 rm -f conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6528 LIBS=$ac_check_lib_save_LIBS
6530 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6531 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6532 if test $ac_cv_lib_posix_remove = yes; then
6533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6538 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6539 echo "$as_me:$LINENO: checking for shmat" >&5
6540 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6541 if test "${ac_cv_func_shmat+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6552 #define shmat innocuous_shmat
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char shmat (); below.
6556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6557 <limits.h> exists even on freestanding compilers. */
6559 #ifdef __STDC__
6560 # include <limits.h>
6561 #else
6562 # include <assert.h>
6563 #endif
6565 #undef shmat
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 #ifdef __cplusplus
6569 extern "C"
6571 #endif
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6574 char shmat ();
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_shmat) || defined (__stub___shmat)
6579 choke me
6580 #else
6581 char (*f) () = shmat;
6582 #endif
6583 #ifdef __cplusplus
6585 #endif
6588 main ()
6590 return f != shmat;
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_func_shmat=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_func_shmat=no
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6627 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6628 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6630 if test $ac_cv_func_shmat = no; then
6631 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6632 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6633 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 ac_check_lib_save_LIBS=$LIBS
6637 LIBS="-lipc $LIBS"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 #ifdef __cplusplus
6647 extern "C"
6648 #endif
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char shmat ();
6653 main ()
6655 shmat ();
6657 return 0;
6659 _ACEOF
6660 rm -f conftest.$ac_objext conftest$ac_exeext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6662 (eval $ac_link) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag"
6670 || test ! -s conftest.err'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; } &&
6676 { ac_try='test -s conftest$ac_exeext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_lib_ipc_shmat=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 ac_cv_lib_ipc_shmat=no
6689 rm -f conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
6691 LIBS=$ac_check_lib_save_LIBS
6693 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6694 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6695 if test $ac_cv_lib_ipc_shmat = yes; then
6696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6702 # Check for libraries that X11R6 Xt/Xaw programs need.
6703 ac_save_LDFLAGS=$LDFLAGS
6704 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6705 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6706 # check for ICE first), but we must link in the order -lSM -lICE or
6707 # we get undefined symbols. So assume we have SM if we have ICE.
6708 # These have to be linked with before -lX11, unlike the other
6709 # libraries we check for below, so use a different variable.
6710 # John Interrante, Karl Berry
6711 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6712 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6713 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 ac_check_lib_save_LIBS=$LIBS
6717 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 #ifdef __cplusplus
6727 extern "C"
6728 #endif
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char IceConnectionNumber ();
6733 main ()
6735 IceConnectionNumber ();
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_lib_ICE_IceConnectionNumber=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_lib_ICE_IceConnectionNumber=no
6769 rm -f conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 LIBS=$ac_check_lib_save_LIBS
6773 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6774 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6775 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6776 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6779 LDFLAGS=$ac_save_LDFLAGS
6784 if test "$OS390Unix" = "yes"; then
6785 CFLAGS="$CFLAGS -W c,dll"
6786 LDFLAGS="$LDFLAGS -W l,dll"
6787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6791 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6792 x_libraries=`echo "$x_includes" | sed s/include/lib/`
6793 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6794 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6795 X_LIBS="$X_LIBS -L$x_libraries"
6796 if test "`(uname) 2>/dev/null`" = SunOS &&
6797 uname -r | grep '^5' >/dev/null; then
6798 X_LIBS="$X_LIBS -R $x_libraries"
6802 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6803 x_includes=`echo "$x_libraries" | sed s/lib/include/`
6804 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6805 echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6806 X_CFLAGS="$X_CFLAGS -I$x_includes"
6809 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6810 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6811 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6814 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6815 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6816 cflags_save=$CFLAGS
6817 CFLAGS="$CFLAGS $X_CFLAGS"
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 #include <X11/Xlib.h>
6826 main ()
6830 return 0;
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest.$ac_objext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 echo "$as_me:$LINENO: result: yes" >&5
6856 echo "${ECHO_T}yes" >&6
6857 else
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; no_x=yes
6864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6865 CFLAGS=$cflags_save
6867 if test "${no_x-no}" = yes; then
6868 with_x=no
6869 else
6870 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_X11 1
6872 _ACEOF
6874 X_LIB="-lXt -lX11";
6877 ac_save_LDFLAGS="$LDFLAGS"
6878 LDFLAGS="-L$x_libraries $LDFLAGS"
6880 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6881 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6882 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 ac_check_lib_save_LIBS=$LIBS
6886 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6894 /* Override any gcc2 internal prototype to avoid an error. */
6895 #ifdef __cplusplus
6896 extern "C"
6897 #endif
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6900 char _XdmcpAuthDoIt ();
6902 main ()
6904 _XdmcpAuthDoIt ();
6906 return 0;
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911 (eval $ac_link) 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -z "$ac_c_werror_flag"
6919 || test ! -s conftest.err'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 (eval $ac_try) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; } &&
6925 { ac_try='test -s conftest$ac_exeext'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 (eval $ac_try) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6938 rm -f conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6940 LIBS=$ac_check_lib_save_LIBS
6942 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6943 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6944 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6949 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6950 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6951 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 #ifdef __cplusplus
6965 extern "C"
6966 #endif
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6969 char IceOpenConnection ();
6971 main ()
6973 IceOpenConnection ();
6975 return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_c_werror_flag"
6988 || test ! -s conftest.err'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_lib_ICE_IceOpenConnection=yes
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_lib_ICE_IceOpenConnection=no
7007 rm -f conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7011 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7012 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
7013 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7018 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7019 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7020 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
7021 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 ac_check_lib_save_LIBS=$LIBS
7025 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 #ifdef __cplusplus
7035 extern "C"
7036 #endif
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7039 char XpmCreatePixmapFromData ();
7041 main ()
7043 XpmCreatePixmapFromData ();
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext conftest$ac_exeext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -z "$ac_c_werror_flag"
7058 || test ! -s conftest.err'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; } &&
7064 { ac_try='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7077 rm -f conftest.err conftest.$ac_objext \
7078 conftest$ac_exeext conftest.$ac_ext
7079 LIBS=$ac_check_lib_save_LIBS
7081 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7082 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
7083 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7084 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7088 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7089 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
7090 cflags_save=$CFLAGS
7091 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <X11/Xlib.h>
7100 main ()
7104 return 0;
7106 _ACEOF
7107 rm -f conftest.$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 CFLAGS="$CFLAGS -Wno-implicit-int"
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <X11/Xlib.h>
7144 main ()
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 echo "$as_me:$LINENO: result: yes" >&5
7174 echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 echo "$as_me:$LINENO: result: test failed" >&5
7180 echo "${ECHO_T}test failed" >&6
7183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 CFLAGS=$cflags_save
7189 LDFLAGS="$ac_save_LDFLAGS"
7194 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7196 echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7197 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7198 # Check whether --enable-gui or --disable-gui was given.
7199 if test "${enable_gui+set}" = set; then
7200 enableval="$enable_gui"
7202 else
7203 enable_gui="auto"
7206 enable_gui_canon=`echo "_$enable_gui" | \
7207 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7209 SKIP_GTK=YES
7210 SKIP_GTK2=YES
7211 SKIP_GNOME=YES
7212 SKIP_MOTIF=YES
7213 SKIP_ATHENA=YES
7214 SKIP_NEXTAW=YES
7215 SKIP_PHOTON=YES
7216 SKIP_CARBON=YES
7217 SKIP_MACVIM=YES
7218 GUITYPE=NONE
7220 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7221 SKIP_PHOTON=
7222 case "$enable_gui_canon" in
7223 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7224 echo "${ECHO_T}no GUI support" >&6
7225 SKIP_PHOTON=YES ;;
7226 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7227 echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7228 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7229 echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7230 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7231 echo "${ECHO_T}Photon GUI support" >&6 ;;
7232 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7233 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7234 SKIP_PHOTON=YES ;;
7235 esac
7237 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7238 SKIP_CARBON=
7239 SKIP_MACVIM=
7240 case "$enable_gui_canon" in
7241 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7242 echo "${ECHO_T}no GUI support" >&6
7243 SKIP_CARBON=YES
7244 SKIP_MACVIM=YES ;;
7245 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7246 echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7247 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7248 echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7249 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7250 echo "${ECHO_T}Carbon GUI support" >&6
7251 SKIP_MACVIM=YES ;;
7252 macvim) echo "$as_me:$LINENO: result: MacVim GUI support" >&5
7253 echo "${ECHO_T}MacVim GUI support" >&6
7254 SKIP_CARBON=YES ;;
7255 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7256 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7257 SKIP_CARBON=YES
7258 SKIP_MACVIM=YES ;;
7259 esac
7261 else
7263 case "$enable_gui_canon" in
7264 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7265 echo "${ECHO_T}no GUI support" >&6 ;;
7266 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7267 echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7268 SKIP_GTK=
7269 SKIP_GTK2=
7270 SKIP_GNOME=
7271 SKIP_MOTIF=
7272 SKIP_ATHENA=
7273 SKIP_NEXTAW=
7274 SKIP_MACVIM=
7275 SKIP_CARBON=;;
7276 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7277 echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7278 SKIP_GTK=;;
7279 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7280 echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7281 SKIP_GTK=
7282 SKIP_GTK2=;;
7283 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7284 echo "${ECHO_T}GNOME 1.x GUI support" >&6
7285 SKIP_GNOME=
7286 SKIP_GTK=;;
7287 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7288 echo "${ECHO_T}GNOME 2.x GUI support" >&6
7289 SKIP_GNOME=
7290 SKIP_GTK=
7291 SKIP_GTK2=;;
7292 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7293 echo "${ECHO_T}Motif GUI support" >&6
7294 SKIP_MOTIF=;;
7295 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7296 echo "${ECHO_T}Athena GUI support" >&6
7297 SKIP_ATHENA=;;
7298 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7299 echo "${ECHO_T}neXtaw GUI support" >&6
7300 SKIP_NEXTAW=;;
7301 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7302 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7303 esac
7307 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7308 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7309 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7310 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7311 if test "${enable_gtk_check+set}" = set; then
7312 enableval="$enable_gtk_check"
7314 else
7315 enable_gtk_check="yes"
7317 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7318 echo "${ECHO_T}$enable_gtk_check" >&6
7319 if test "x$enable_gtk_check" = "xno"; then
7320 SKIP_GTK=YES
7321 SKIP_GNOME=YES
7325 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7326 -a "$enable_gui_canon" != "gnome2"; then
7327 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7328 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7329 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7330 if test "${enable_gtk2_check+set}" = set; then
7331 enableval="$enable_gtk2_check"
7333 else
7334 enable_gtk2_check="yes"
7336 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7337 echo "${ECHO_T}$enable_gtk2_check" >&6
7338 if test "x$enable_gtk2_check" = "xno"; then
7339 SKIP_GTK2=YES
7343 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7344 -a "$enable_gui_canon" != "gnome2"; then
7345 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7346 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7347 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7348 if test "${enable_gnome_check+set}" = set; then
7349 enableval="$enable_gnome_check"
7351 else
7352 enable_gnome_check="no"
7354 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7355 echo "${ECHO_T}$enable_gnome_check" >&6
7356 if test "x$enable_gnome_check" = "xno"; then
7357 SKIP_GNOME=YES
7361 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7362 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7363 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7364 # Check whether --enable-motif-check or --disable-motif-check was given.
7365 if test "${enable_motif_check+set}" = set; then
7366 enableval="$enable_motif_check"
7368 else
7369 enable_motif_check="yes"
7371 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7372 echo "${ECHO_T}$enable_motif_check" >&6
7373 if test "x$enable_motif_check" = "xno"; then
7374 SKIP_MOTIF=YES
7378 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7379 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7380 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7381 # Check whether --enable-athena-check or --disable-athena-check was given.
7382 if test "${enable_athena_check+set}" = set; then
7383 enableval="$enable_athena_check"
7385 else
7386 enable_athena_check="yes"
7388 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7389 echo "${ECHO_T}$enable_athena_check" >&6
7390 if test "x$enable_athena_check" = "xno"; then
7391 SKIP_ATHENA=YES
7395 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7396 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7397 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7398 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7399 if test "${enable_nextaw_check+set}" = set; then
7400 enableval="$enable_nextaw_check"
7402 else
7403 enable_nextaw_check="yes"
7405 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7406 echo "${ECHO_T}$enable_nextaw_check" >&6;
7407 if test "x$enable_nextaw_check" = "xno"; then
7408 SKIP_NEXTAW=YES
7412 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7413 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7414 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7415 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7416 if test "${enable_carbon_check+set}" = set; then
7417 enableval="$enable_carbon_check"
7419 else
7420 enable_carbon_check="yes"
7422 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7423 echo "${ECHO_T}$enable_carbon_check" >&6;
7424 if test "x$enable_carbon_check" = "xno"; then
7425 SKIP_CARBON=YES
7429 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
7430 echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
7431 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6
7432 # Check whether --enable-macvim-check or --disable-macvim-check was given.
7433 if test "${enable_macvim_check+set}" = set; then
7434 enableval="$enable_macvim_check"
7436 else
7437 enable_macvim_check="yes"
7439 echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
7440 echo "${ECHO_T}$enable_macvim_check" >&6;
7441 if test "x$enable_macvim_check" = "xno"; then
7442 SKIP_MACVIM=YES
7446 if test "x$MACOSX" = "xyes"; then
7447 if test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7448 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7449 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7450 echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6;
7452 GUITYPE=CARBONGUI
7453 elif test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
7454 echo "$as_me:$LINENO: checking for MacVim GUI" >&5
7455 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6
7456 echo "$as_me:$LINENO: result: yes" >&5
7457 echo "${ECHO_T}yes" >&6;
7458 GUITYPE=MACVIMGUI
7461 if test "$VIMNAME" = "vim"; then
7462 VIMNAME=Vim
7465 if test x$prefix = xNONE; then
7466 prefix=/Applications
7469 datadir='${prefix}/Vim.app/Contents/Resources'
7471 SKIP_GTK=YES;
7472 SKIP_GTK2=YES;
7473 SKIP_GNOME=YES;
7474 SKIP_MOTIF=YES;
7475 SKIP_ATHENA=YES;
7476 SKIP_NEXTAW=YES;
7477 SKIP_PHOTON=YES;
7478 SKIP_MACVIM=YES;
7479 SKIP_CARBON=YES
7490 if test -z "$SKIP_GTK"; then
7492 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7493 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7495 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7496 if test "${with_gtk_prefix+set}" = set; then
7497 withval="$with_gtk_prefix"
7498 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7499 echo "${ECHO_T}$gtk_config_prefix" >&6
7500 else
7501 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7505 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7506 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7508 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7509 if test "${with_gtk_exec_prefix+set}" = set; then
7510 withval="$with_gtk_exec_prefix"
7511 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7512 echo "${ECHO_T}$gtk_config_prefix" >&6
7513 else
7514 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7518 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7519 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7520 # Check whether --enable-gtktest or --disable-gtktest was given.
7521 if test "${enable_gtktest+set}" = set; then
7522 enableval="$enable_gtktest"
7524 else
7525 enable_gtktest=yes
7527 if test "x$enable_gtktest" = "xyes" ; then
7528 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7529 echo "${ECHO_T}gtk test enabled" >&6
7530 else
7531 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7532 echo "${ECHO_T}gtk test disabled" >&6
7535 if test "x$gtk_config_prefix" != "x" ; then
7536 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7537 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7539 if test "x$gtk_config_exec_prefix" != "x" ; then
7540 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7541 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7543 if test "X$GTK_CONFIG" = "X"; then
7544 # Extract the first word of "gtk-config", so it can be a program name with args.
7545 set dummy gtk-config; ac_word=$2
7546 echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 case $GTK_CONFIG in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7570 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7572 esac
7574 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7576 if test -n "$GTK_CONFIG"; then
7577 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7578 echo "${ECHO_T}$GTK_CONFIG" >&6
7579 else
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7584 if test "X$GTK_CONFIG" = "Xno"; then
7585 # Extract the first word of "gtk12-config", so it can be a program name with args.
7586 set dummy gtk12-config; ac_word=$2
7587 echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7589 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 case $GTK12_CONFIG in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7608 done
7609 done
7611 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7613 esac
7615 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7617 if test -n "$GTK12_CONFIG"; then
7618 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7619 echo "${ECHO_T}$GTK12_CONFIG" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7625 GTK_CONFIG="$GTK12_CONFIG"
7627 else
7628 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7629 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7631 if test "X$PKG_CONFIG" = "X"; then
7632 # Extract the first word of "pkg-config", so it can be a program name with args.
7633 set dummy pkg-config; ac_word=$2
7634 echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 case $PKG_CONFIG in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7655 done
7656 done
7658 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7660 esac
7662 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7664 if test -n "$PKG_CONFIG"; then
7665 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7666 echo "${ECHO_T}$PKG_CONFIG" >&6
7667 else
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7674 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7675 if test "X$SKIP_GTK2" != "XYES"; then
7677 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7679 min_gtk_version=2.2.0
7680 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7681 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7682 no_gtk=""
7683 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7684 && $PKG_CONFIG --exists gtk+-2.0; then
7686 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7687 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7688 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7689 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7690 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7691 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7692 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7693 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7694 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7696 elif test "X$GTK_CONFIG" != "Xno"; then
7698 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7699 GTK_LIBDIR=
7700 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7701 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7703 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7704 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7705 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7706 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7708 else
7709 no_gtk=yes
7712 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7714 ac_save_CFLAGS="$CFLAGS"
7715 ac_save_LIBS="$LIBS"
7716 CFLAGS="$CFLAGS $GTK_CFLAGS"
7717 LIBS="$LIBS $GTK_LIBS"
7719 rm -f conf.gtktest
7720 if test "$cross_compiling" = yes; then
7721 echo $ac_n "cross compiling; assumed OK... $ac_c"
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7730 #include <gtk/gtk.h>
7731 #include <stdio.h>
7734 main ()
7736 int major, minor, micro;
7737 char *tmp_version;
7739 system ("touch conf.gtktest");
7741 /* HP/UX 9 (%@#!) writes to sscanf strings */
7742 tmp_version = g_strdup("$min_gtk_version");
7743 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7744 printf("%s, bad version string\n", "$min_gtk_version");
7745 exit(1);
7748 if ((gtk_major_version > major) ||
7749 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7750 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7751 (gtk_micro_version >= micro)))
7753 return 0;
7755 return 1;
7758 _ACEOF
7759 rm -f conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7771 else
7772 echo "$as_me: program exited with status $ac_status" >&5
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ( exit $ac_status )
7777 no_gtk=yes
7779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7781 CFLAGS="$ac_save_CFLAGS"
7782 LIBS="$ac_save_LIBS"
7785 if test "x$no_gtk" = x ; then
7786 if test "x$enable_gtktest" = "xyes"; then
7787 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7788 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7789 else
7790 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7791 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7793 GUI_LIB_LOC="$GTK_LIBDIR"
7794 GTK_LIBNAME="$GTK_LIBS"
7795 GUI_INC_LOC="$GTK_CFLAGS"
7796 else
7798 echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6
7800 GTK_CFLAGS=""
7801 GTK_LIBS=""
7806 else
7807 GTK_CFLAGS=""
7808 GTK_LIBS=""
7813 rm -f conf.gtktest
7815 if test "x$GTK_CFLAGS" != "x"; then
7816 SKIP_ATHENA=YES
7817 SKIP_NEXTAW=YES
7818 SKIP_MOTIF=YES
7819 GUITYPE=GTK
7824 if test "x$GUITYPE" != "xGTK"; then
7825 SKIP_GTK2=YES
7827 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7829 min_gtk_version=1.1.16
7830 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7831 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7832 no_gtk=""
7833 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7834 && $PKG_CONFIG --exists gtk+-2.0; then
7836 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7837 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7838 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7839 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7840 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7841 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7842 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7843 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7844 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7846 elif test "X$GTK_CONFIG" != "Xno"; then
7848 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7849 GTK_LIBDIR=
7850 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7851 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7852 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7853 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7854 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7855 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7856 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7858 else
7859 no_gtk=yes
7862 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7864 ac_save_CFLAGS="$CFLAGS"
7865 ac_save_LIBS="$LIBS"
7866 CFLAGS="$CFLAGS $GTK_CFLAGS"
7867 LIBS="$LIBS $GTK_LIBS"
7869 rm -f conf.gtktest
7870 if test "$cross_compiling" = yes; then
7871 echo $ac_n "cross compiling; assumed OK... $ac_c"
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7880 #include <gtk/gtk.h>
7881 #include <stdio.h>
7884 main ()
7886 int major, minor, micro;
7887 char *tmp_version;
7889 system ("touch conf.gtktest");
7891 /* HP/UX 9 (%@#!) writes to sscanf strings */
7892 tmp_version = g_strdup("$min_gtk_version");
7893 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7894 printf("%s, bad version string\n", "$min_gtk_version");
7895 exit(1);
7898 if ((gtk_major_version > major) ||
7899 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7900 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7901 (gtk_micro_version >= micro)))
7903 return 0;
7905 return 1;
7908 _ACEOF
7909 rm -f conftest$ac_exeext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7921 else
7922 echo "$as_me: program exited with status $ac_status" >&5
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 ( exit $ac_status )
7927 no_gtk=yes
7929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7931 CFLAGS="$ac_save_CFLAGS"
7932 LIBS="$ac_save_LIBS"
7935 if test "x$no_gtk" = x ; then
7936 if test "x$enable_gtktest" = "xyes"; then
7937 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7938 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7939 else
7940 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7941 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7943 GTK_LIBNAME="$GTK_LIBS"
7944 GUI_INC_LOC="$GTK_CFLAGS"
7945 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948 echo "${ECHO_T}no" >&6
7949 GTK_CFLAGS=""
7950 GTK_LIBS=""
7955 else
7956 GTK_CFLAGS=""
7957 GTK_LIBS=""
7962 rm -f conf.gtktest
7964 if test "x$GTK_CFLAGS" != "x"; then
7965 SKIP_ATHENA=YES
7966 SKIP_NEXTAW=YES
7967 SKIP_MOTIF=YES
7968 GUITYPE=GTK
7973 if test "x$GUITYPE" = "xGTK"; then
7974 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7975 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7976 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7977 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7978 else
7980 if test "0$gtk_major_version" -ge 2; then
7981 cat >>confdefs.h <<\_ACEOF
7982 #define HAVE_GTK2 1
7983 _ACEOF
7985 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7986 || test "0$gtk_minor_version" -ge 2 \
7987 || test "0$gtk_major_version" -gt 2; then
7988 cat >>confdefs.h <<\_ACEOF
7989 #define HAVE_GTK_MULTIHEAD 1
7990 _ACEOF
7994 if test -z "$SKIP_GNOME"; then
8002 # Check whether --with-gnome-includes or --without-gnome-includes was given.
8003 if test "${with_gnome_includes+set}" = set; then
8004 withval="$with_gnome_includes"
8005 CFLAGS="$CFLAGS -I$withval"
8010 # Check whether --with-gnome-libs or --without-gnome-libs was given.
8011 if test "${with_gnome_libs+set}" = set; then
8012 withval="$with_gnome_libs"
8013 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8018 # Check whether --with-gnome or --without-gnome was given.
8019 if test "${with_gnome+set}" = set; then
8020 withval="$with_gnome"
8021 if test x$withval = xyes; then
8022 want_gnome=yes
8023 have_gnome=yes
8024 else
8025 if test "x$withval" = xno; then
8026 want_gnome=no
8027 else
8028 want_gnome=yes
8029 LDFLAGS="$LDFLAGS -L$withval/lib"
8030 CFLAGS="$CFLAGS -I$withval/include"
8031 gnome_prefix=$withval/lib
8034 else
8035 want_gnome=yes
8038 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8040 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8041 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
8042 if $PKG_CONFIG --exists libgnomeui-2.0; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044 echo "${ECHO_T}yes" >&6
8045 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8046 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8047 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8049 echo "$as_me:$LINENO: checking for FreeBSD" >&5
8050 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
8051 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8052 echo "$as_me:$LINENO: result: yes" >&5
8053 echo "${ECHO_T}yes" >&6
8054 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8055 GNOME_LIBS="$GNOME_LIBS -pthread"
8056 else
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8060 have_gnome=yes
8061 else
8062 echo "$as_me:$LINENO: result: not found" >&5
8063 echo "${ECHO_T}not found" >&6
8064 if test "x" = xfail; then
8065 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8066 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8067 { (exit 1); exit 1; }; }
8071 elif test "x$want_gnome" = xyes; then
8073 # Extract the first word of "gnome-config", so it can be a program name with args.
8074 set dummy gnome-config; ac_word=$2
8075 echo "$as_me:$LINENO: checking for $ac_word" >&5
8076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8077 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 case $GNOME_CONFIG in
8081 [\\/]* | ?:[\\/]*)
8082 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8096 done
8097 done
8099 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8101 esac
8103 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8105 if test -n "$GNOME_CONFIG"; then
8106 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8107 echo "${ECHO_T}$GNOME_CONFIG" >&6
8108 else
8109 echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8113 if test "$GNOME_CONFIG" = "no"; then
8114 no_gnome_config="yes"
8115 else
8116 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8117 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
8118 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8119 echo "$as_me:$LINENO: result: yes" >&5
8120 echo "${ECHO_T}yes" >&6
8121 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8122 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8123 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8124 have_gnome=yes
8125 else
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128 no_gnome_config="yes"
8132 if test x$exec_prefix = xNONE; then
8133 if test x$prefix = xNONE; then
8134 gnome_prefix=$ac_default_prefix/lib
8135 else
8136 gnome_prefix=$prefix/lib
8138 else
8139 gnome_prefix=`eval echo \`echo $libdir\``
8142 if test "$no_gnome_config" = "yes"; then
8143 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8144 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
8145 if test -f $gnome_prefix/gnomeConf.sh; then
8146 echo "$as_me:$LINENO: result: found" >&5
8147 echo "${ECHO_T}found" >&6
8148 echo "loading gnome configuration from" \
8149 "$gnome_prefix/gnomeConf.sh"
8150 . $gnome_prefix/gnomeConf.sh
8151 have_gnome=yes
8152 else
8153 echo "$as_me:$LINENO: result: not found" >&5
8154 echo "${ECHO_T}not found" >&6
8155 if test x = xfail; then
8156 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8157 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8158 { (exit 1); exit 1; }; }
8165 if test x$have_gnome = xyes ; then
8166 cat >>confdefs.h <<\_ACEOF
8167 #define FEAT_GUI_GNOME 1
8168 _ACEOF
8170 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8171 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8181 if test -z "$SKIP_MOTIF"; then
8182 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"
8183 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8185 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8186 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
8187 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8188 GUI_INC_LOC=
8189 for try in $gui_includes; do
8190 if test -f "$try/Xm/Xm.h"; then
8191 GUI_INC_LOC=$try
8193 done
8194 if test -n "$GUI_INC_LOC"; then
8195 if test "$GUI_INC_LOC" = /usr/include; then
8196 GUI_INC_LOC=
8197 echo "$as_me:$LINENO: result: in default path" >&5
8198 echo "${ECHO_T}in default path" >&6
8199 else
8200 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8201 echo "${ECHO_T}$GUI_INC_LOC" >&6
8203 else
8204 echo "$as_me:$LINENO: result: <not found>" >&5
8205 echo "${ECHO_T}<not found>" >&6
8206 SKIP_MOTIF=YES
8211 if test -z "$SKIP_MOTIF"; then
8212 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8213 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8215 # Check whether --with-motif-lib or --without-motif-lib was given.
8216 if test "${with_motif_lib+set}" = set; then
8217 withval="$with_motif_lib"
8218 MOTIF_LIBNAME="${withval}"
8221 if test -n "$MOTIF_LIBNAME"; then
8222 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8223 echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8224 GUI_LIB_LOC=
8225 else
8226 echo "$as_me:$LINENO: result: no" >&5
8227 echo "${ECHO_T}no" >&6
8229 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8231 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8232 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8233 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"
8234 GUI_LIB_LOC=
8235 for try in $gui_libs; do
8236 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8237 if test -f "$libtry"; then
8238 GUI_LIB_LOC=$try
8240 done
8241 done
8242 if test -n "$GUI_LIB_LOC"; then
8243 if test "$GUI_LIB_LOC" = /usr/lib; then
8244 GUI_LIB_LOC=
8245 echo "$as_me:$LINENO: result: in default path" >&5
8246 echo "${ECHO_T}in default path" >&6
8247 else
8248 if test -n "$GUI_LIB_LOC"; then
8249 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8250 echo "${ECHO_T}$GUI_LIB_LOC" >&6
8251 if test "`(uname) 2>/dev/null`" = SunOS &&
8252 uname -r | grep '^5' >/dev/null; then
8253 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8257 MOTIF_LIBNAME=-lXm
8258 else
8259 echo "$as_me:$LINENO: result: <not found>" >&5
8260 echo "${ECHO_T}<not found>" >&6
8261 SKIP_MOTIF=YES
8266 if test -z "$SKIP_MOTIF"; then
8267 SKIP_ATHENA=YES
8268 SKIP_NEXTAW=YES
8269 GUITYPE=MOTIF
8274 GUI_X_LIBS=
8276 if test -z "$SKIP_ATHENA"; then
8277 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8278 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8279 cflags_save=$CFLAGS
8280 CFLAGS="$CFLAGS $X_CFLAGS"
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h. */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 #include <X11/Intrinsic.h>
8289 #include <X11/Xaw/Paned.h>
8291 main ()
8295 return 0;
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 echo "$as_me:$LINENO: result: yes" >&5
8321 echo "${ECHO_T}yes" >&6
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8330 CFLAGS=$cflags_save
8333 if test -z "$SKIP_ATHENA"; then
8334 GUITYPE=ATHENA
8337 if test -z "$SKIP_NEXTAW"; then
8338 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8339 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8340 cflags_save=$CFLAGS
8341 CFLAGS="$CFLAGS $X_CFLAGS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8349 #include <X11/Intrinsic.h>
8350 #include <X11/neXtaw/Paned.h>
8352 main ()
8356 return 0;
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 echo "$as_me:$LINENO: result: yes" >&5
8382 echo "${ECHO_T}yes" >&6
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8391 CFLAGS=$cflags_save
8394 if test -z "$SKIP_NEXTAW"; then
8395 GUITYPE=NEXTAW
8398 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8399 if test -n "$GUI_INC_LOC"; then
8400 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8402 if test -n "$GUI_LIB_LOC"; then
8403 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8406 ldflags_save=$LDFLAGS
8407 LDFLAGS="$X_LIBS $LDFLAGS"
8408 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8409 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8410 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char XShapeQueryExtension ();
8430 main ()
8432 XShapeQueryExtension ();
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_Xext_XShapeQueryExtension=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_Xext_XShapeQueryExtension=no
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8471 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8472 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8473 GUI_X_LIBS="-lXext"
8476 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8477 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8478 if test "${ac_cv_lib_w_wslen+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 ac_check_lib_save_LIBS=$LIBS
8482 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h. */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* Override any gcc2 internal prototype to avoid an error. */
8491 #ifdef __cplusplus
8492 extern "C"
8493 #endif
8494 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */
8496 char wslen ();
8498 main ()
8500 wslen ();
8502 return 0;
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag"
8515 || test ! -s conftest.err'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; } &&
8521 { ac_try='test -s conftest$ac_exeext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 (eval $ac_try) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 ac_cv_lib_w_wslen=yes
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_lib_w_wslen=no
8534 rm -f conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8538 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8539 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8540 if test $ac_cv_lib_w_wslen = yes; then
8541 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8544 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8545 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8546 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 ac_check_lib_save_LIBS=$LIBS
8550 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8558 /* Override any gcc2 internal prototype to avoid an error. */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8564 char dlsym ();
8566 main ()
8568 dlsym ();
8570 return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8575 (eval $ac_link) 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag"
8583 || test ! -s conftest.err'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 (eval $ac_try) 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; } &&
8589 { ac_try='test -s conftest$ac_exeext'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 ac_cv_lib_dl_dlsym=yes
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 ac_cv_lib_dl_dlsym=no
8602 rm -f conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8604 LIBS=$ac_check_lib_save_LIBS
8606 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8607 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8608 if test $ac_cv_lib_dl_dlsym = yes; then
8609 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8612 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8613 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8614 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8626 /* Override any gcc2 internal prototype to avoid an error. */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 /* We use char because int might match the return type of a gcc2
8631 builtin and then its argument prototype would still apply. */
8632 char XmuCreateStippledPixmap ();
8634 main ()
8636 XmuCreateStippledPixmap ();
8638 return 0;
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643 (eval $ac_link) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -z "$ac_c_werror_flag"
8651 || test ! -s conftest.err'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; } &&
8657 { ac_try='test -s conftest$ac_exeext'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8664 else
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8670 rm -f conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 LIBS=$ac_check_lib_save_LIBS
8674 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8675 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8676 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8677 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8680 if test -z "$SKIP_MOTIF"; then
8681 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8682 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8683 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 ac_check_lib_save_LIBS=$LIBS
8687 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 /* Override any gcc2 internal prototype to avoid an error. */
8696 #ifdef __cplusplus
8697 extern "C"
8698 #endif
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8701 char XpEndJob ();
8703 main ()
8705 XpEndJob ();
8707 return 0;
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_lib_Xp_XpEndJob=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_cv_lib_Xp_XpEndJob=no
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8743 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8744 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8745 if test $ac_cv_lib_Xp_XpEndJob = yes; then
8746 GUI_X_LIBS="-lXp $GUI_X_LIBS"
8750 LDFLAGS=$ldflags_save
8752 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8753 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8754 NARROW_PROTO=
8755 rm -fr conftestdir
8756 if mkdir conftestdir; then
8757 cd conftestdir
8758 cat > Imakefile <<'EOF'
8759 acfindx:
8760 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8762 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8763 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8765 cd ..
8766 rm -fr conftestdir
8768 if test -z "$NARROW_PROTO"; then
8769 echo "$as_me:$LINENO: result: no" >&5
8770 echo "${ECHO_T}no" >&6
8771 else
8772 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8773 echo "${ECHO_T}$NARROW_PROTO" >&6
8778 if test "$enable_xsmp" = "yes"; then
8779 cppflags_save=$CPPFLAGS
8780 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8782 for ac_header in X11/SM/SMlib.h
8784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793 else
8794 # Is the header compilable?
8795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #include <$ac_header>
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_header_compiler=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_header_compiler=no
8835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8837 echo "${ECHO_T}$ac_header_compiler" >&6
8839 # Is the header present?
8840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h. */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 #include <$ac_header>
8849 _ACEOF
8850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } >/dev/null; then
8858 if test -s conftest.err; then
8859 ac_cpp_err=$ac_c_preproc_warn_flag
8860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8861 else
8862 ac_cpp_err=
8864 else
8865 ac_cpp_err=yes
8867 if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8869 else
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 ac_header_preproc=no
8875 rm -f conftest.err conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8877 echo "${ECHO_T}$ac_header_preproc" >&6
8879 # So? What about this header?
8880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8881 yes:no: )
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8886 ac_header_preproc=yes
8888 no:yes:* )
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8902 cat <<\_ASBOX
8903 ## ------------------------------------------ ##
8904 ## Report this to the AC_PACKAGE_NAME lists. ##
8905 ## ------------------------------------------ ##
8906 _ASBOX
8908 sed "s/^/$as_me: WARNING: /" >&2
8910 esac
8911 echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 eval "$as_ac_Header=\$ac_header_preproc"
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8923 cat >>confdefs.h <<_ACEOF
8924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8925 _ACEOF
8929 done
8931 CPPFLAGS=$cppflags_save
8935 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8936 cppflags_save=$CPPFLAGS
8937 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8940 for ac_header in X11/xpm.h X11/Sunkeysym.h
8942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo "$as_me:$LINENO: checking for $ac_header" >&5
8945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8951 else
8952 # Is the header compilable?
8953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8962 #include <$ac_header>
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_header_compiler=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_header_compiler=no
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995 echo "${ECHO_T}$ac_header_compiler" >&6
8997 # Is the header present?
8998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 #include <$ac_header>
9007 _ACEOF
9008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } >/dev/null; then
9016 if test -s conftest.err; then
9017 ac_cpp_err=$ac_c_preproc_warn_flag
9018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019 else
9020 ac_cpp_err=
9022 else
9023 ac_cpp_err=yes
9025 if test -z "$ac_cpp_err"; then
9026 ac_header_preproc=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_header_preproc=no
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9037 # So? What about this header?
9038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9039 yes:no: )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044 ac_header_preproc=yes
9046 no:yes:* )
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9060 cat <<\_ASBOX
9061 ## ------------------------------------------ ##
9062 ## Report this to the AC_PACKAGE_NAME lists. ##
9063 ## ------------------------------------------ ##
9064 _ASBOX
9066 sed "s/^/$as_me: WARNING: /" >&2
9068 esac
9069 echo "$as_me:$LINENO: checking for $ac_header" >&5
9070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 eval "$as_ac_Header=\$ac_header_preproc"
9076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083 _ACEOF
9087 done
9090 if test ! "$enable_xim" = "no"; then
9091 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9092 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <X11/Xlib.h>
9100 _ACEOF
9101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9102 $EGREP "XIMText" >/dev/null 2>&1; then
9103 echo "$as_me:$LINENO: result: yes" >&5
9104 echo "${ECHO_T}yes" >&6
9105 else
9106 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9107 echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
9109 rm -f conftest*
9112 CPPFLAGS=$cppflags_save
9114 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9115 -a "x$GUITYPE" != "xNONE" ; then
9116 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9117 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
9118 enable_xim="yes"
9122 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9123 cppflags_save=$CPPFLAGS
9124 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9125 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9126 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h. */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9134 #include <X11/Intrinsic.h>
9135 #include <X11/Xmu/Editres.h>
9137 main ()
9139 int i; i = 0;
9141 return 0;
9143 _ACEOF
9144 rm -f conftest.$ac_objext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146 (eval $ac_compile) 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest.$ac_objext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 echo "$as_me:$LINENO: result: yes" >&5
9167 echo "${ECHO_T}yes" >&6
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_X11_XMU_EDITRES_H 1
9170 _ACEOF
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 echo "$as_me:$LINENO: result: no" >&5
9177 echo "${ECHO_T}no" >&6
9179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9180 CPPFLAGS=$cppflags_save
9183 if test -z "$SKIP_MOTIF"; then
9184 cppflags_save=$CPPFLAGS
9185 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9193 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9194 Xm/UnhighlightT.h Xm/Notebook.h
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9205 else
9206 # Is the header compilable?
9207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9216 #include <$ac_header>
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220 (eval $ac_compile) 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_header_compiler=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_header_compiler=no
9247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9249 echo "${ECHO_T}$ac_header_compiler" >&6
9251 # Is the header present?
9252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h. */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 #include <$ac_header>
9261 _ACEOF
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } >/dev/null; then
9270 if test -s conftest.err; then
9271 ac_cpp_err=$ac_c_preproc_warn_flag
9272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9273 else
9274 ac_cpp_err=
9276 else
9277 ac_cpp_err=yes
9279 if test -z "$ac_cpp_err"; then
9280 ac_header_preproc=yes
9281 else
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 ac_header_preproc=no
9287 rm -f conftest.err conftest.$ac_ext
9288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9289 echo "${ECHO_T}$ac_header_preproc" >&6
9291 # So? What about this header?
9292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9293 yes:no: )
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9298 ac_header_preproc=yes
9300 no:yes:* )
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9314 cat <<\_ASBOX
9315 ## ------------------------------------------ ##
9316 ## Report this to the AC_PACKAGE_NAME lists. ##
9317 ## ------------------------------------------ ##
9318 _ASBOX
9320 sed "s/^/$as_me: WARNING: /" >&2
9322 esac
9323 echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 eval "$as_ac_Header=\$ac_header_preproc"
9330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9335 cat >>confdefs.h <<_ACEOF
9336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9337 _ACEOF
9341 done
9344 if test $ac_cv_header_Xm_XpmP_h = yes; then
9345 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9346 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 #include <Xm/XpmP.h>
9355 main ()
9357 XpmAttributes_21 attr;
9359 return 0;
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9386 #define XPMATTRIBUTES_TYPE XpmAttributes_21
9387 _ACEOF
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 echo "$as_me:$LINENO: result: no" >&5
9394 echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9395 #define XPMATTRIBUTES_TYPE XpmAttributes
9396 _ACEOF
9400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9401 else
9402 cat >>confdefs.h <<\_ACEOF
9403 #define XPMATTRIBUTES_TYPE XpmAttributes
9404 _ACEOF
9407 CPPFLAGS=$cppflags_save
9410 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9411 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9412 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9413 enable_xim="no"
9415 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9416 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9417 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9418 enable_fontset="no"
9420 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9421 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9422 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9423 enable_fontset="no"
9426 if test -z "$SKIP_PHOTON"; then
9427 GUITYPE=PHOTONGUI
9435 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9436 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9437 echo "$as_me: error: cannot use workshop without Motif" >&2;}
9438 { (exit 1); exit 1; }; }
9441 if test "$enable_xim" = "yes"; then
9442 cat >>confdefs.h <<\_ACEOF
9443 #define FEAT_XIM 1
9444 _ACEOF
9447 if test "$enable_fontset" = "yes"; then
9448 cat >>confdefs.h <<\_ACEOF
9449 #define FEAT_XFONTSET 1
9450 _ACEOF
9457 if test "$enable_hangulinput" = "yes"; then
9458 if test "x$GUITYPE" = "xNONE"; then
9459 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9460 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9461 enable_hangulinput=no
9462 else
9463 cat >>confdefs.h <<\_ACEOF
9464 #define FEAT_HANGULIN 1
9465 _ACEOF
9467 HANGULIN_SRC=hangulin.c
9469 HANGULIN_OBJ=objects/hangulin.o
9475 echo "$as_me:$LINENO: checking quality of toupper" >&5
9476 echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9477 if test "$cross_compiling" = yes; then
9478 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9479 echo "$as_me: error: failed to compile test program" >&2;}
9480 { (exit 1); exit 1; }; }
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 #include <ctype.h>
9489 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9490 _ACEOF
9491 rm -f conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 cat >>confdefs.h <<\_ACEOF
9503 #define BROKEN_TOUPPER 1
9504 _ACEOF
9505 echo "$as_me:$LINENO: result: bad" >&5
9506 echo "${ECHO_T}bad" >&6
9507 else
9508 echo "$as_me: program exited with status $ac_status" >&5
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ( exit $ac_status )
9513 echo "$as_me:$LINENO: result: good" >&5
9514 echo "${ECHO_T}good" >&6
9516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9519 echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9520 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9529 main ()
9531 printf("(" __DATE__ " " __TIME__ ")");
9533 return 0;
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 echo "$as_me:$LINENO: result: yes" >&5
9559 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9560 #define HAVE_DATE_TIME 1
9561 _ACEOF
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 echo "$as_me:$LINENO: result: no" >&5
9568 echo "${ECHO_T}no" >&6
9570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9572 if test "${ac_cv_header_elf_h+set}" = set; then
9573 echo "$as_me:$LINENO: checking for elf.h" >&5
9574 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9575 if test "${ac_cv_header_elf_h+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9579 echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9580 else
9581 # Is the header compilable?
9582 echo "$as_me:$LINENO: checking elf.h usability" >&5
9583 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 $ac_includes_default
9591 #include <elf.h>
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_header_compiler=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_header_compiler=no
9622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624 echo "${ECHO_T}$ac_header_compiler" >&6
9626 # Is the header present?
9627 echo "$as_me:$LINENO: checking elf.h presence" >&5
9628 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <elf.h>
9636 _ACEOF
9637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } >/dev/null; then
9645 if test -s conftest.err; then
9646 ac_cpp_err=$ac_c_preproc_warn_flag
9647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9648 else
9649 ac_cpp_err=
9651 else
9652 ac_cpp_err=yes
9654 if test -z "$ac_cpp_err"; then
9655 ac_header_preproc=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_header_preproc=no
9662 rm -f conftest.err conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6
9666 # So? What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
9669 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9675 no:yes:* )
9676 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9689 cat <<\_ASBOX
9690 ## ------------------------------------------ ##
9691 ## Report this to the AC_PACKAGE_NAME lists. ##
9692 ## ------------------------------------------ ##
9693 _ASBOX
9695 sed "s/^/$as_me: WARNING: /" >&2
9697 esac
9698 echo "$as_me:$LINENO: checking for elf.h" >&5
9699 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9700 if test "${ac_cv_header_elf_h+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 ac_cv_header_elf_h=$ac_header_preproc
9705 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9706 echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9709 if test $ac_cv_header_elf_h = yes; then
9710 HAS_ELF=1
9714 if test "$HAS_ELF" = 1; then
9716 echo "$as_me:$LINENO: checking for main in -lelf" >&5
9717 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9718 if test "${ac_cv_lib_elf_main+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721 ac_check_lib_save_LIBS=$LIBS
9722 LIBS="-lelf $LIBS"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9732 main ()
9734 main ();
9736 return 0;
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest$ac_exeext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_lib_elf_main=yes
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_lib_elf_main=no
9768 rm -f conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 LIBS=$ac_check_lib_save_LIBS
9772 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9773 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9774 if test $ac_cv_lib_elf_main = yes; then
9775 cat >>confdefs.h <<_ACEOF
9776 #define HAVE_LIBELF 1
9777 _ACEOF
9779 LIBS="-lelf $LIBS"
9790 ac_header_dirent=no
9791 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9792 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9793 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9794 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include <sys/types.h>
9805 #include <$ac_hdr>
9808 main ()
9810 if ((DIR *) 0)
9811 return 0;
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 eval "$as_ac_Header=yes"
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 eval "$as_ac_Header=no"
9845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9850 cat >>confdefs.h <<_ACEOF
9851 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9852 _ACEOF
9854 ac_header_dirent=$ac_hdr; break
9857 done
9858 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9859 if test $ac_header_dirent = dirent.h; then
9860 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9861 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9862 if test "${ac_cv_search_opendir+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 ac_func_search_save_LIBS=$LIBS
9866 ac_cv_search_opendir=no
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any gcc2 internal prototype to avoid an error. */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880 char opendir ();
9882 main ()
9884 opendir ();
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_search_opendir="none required"
9912 else
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9917 rm -f conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919 if test "$ac_cv_search_opendir" = no; then
9920 for ac_lib in dir; do
9921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h. */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9929 /* Override any gcc2 internal prototype to avoid an error. */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9935 char opendir ();
9937 main ()
9939 opendir ();
9941 return 0;
9943 _ACEOF
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946 (eval $ac_link) 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -z "$ac_c_werror_flag"
9954 || test ! -s conftest.err'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest$ac_exeext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_search_opendir="-l$ac_lib"
9967 break
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 done
9977 LIBS=$ac_func_search_save_LIBS
9979 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9980 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9981 if test "$ac_cv_search_opendir" != no; then
9982 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9986 else
9987 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9988 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9989 if test "${ac_cv_search_opendir+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992 ac_func_search_save_LIBS=$LIBS
9993 ac_cv_search_opendir=no
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 /* Override any gcc2 internal prototype to avoid an error. */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char opendir ();
10009 main ()
10011 opendir ();
10013 return 0;
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag"
10026 || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_search_opendir="none required"
10039 else
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 if test "$ac_cv_search_opendir" = no; then
10047 for ac_lib in x; do
10048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10056 /* Override any gcc2 internal prototype to avoid an error. */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10062 char opendir ();
10064 main ()
10066 opendir ();
10068 return 0;
10070 _ACEOF
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_search_opendir="-l$ac_lib"
10094 break
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10100 rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 done
10104 LIBS=$ac_func_search_save_LIBS
10106 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10107 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10108 if test "$ac_cv_search_opendir" != no; then
10109 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10118 if test "${ac_cv_header_stdc+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <stdlib.h>
10128 #include <stdarg.h>
10129 #include <string.h>
10130 #include <float.h>
10133 main ()
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142 (eval $ac_compile) 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest.$ac_objext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_header_stdc=yes
10163 else
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_header_stdc=no
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10171 if test $ac_cv_header_stdc = yes; then
10172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h. */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 #include <string.h>
10181 _ACEOF
10182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10183 $EGREP "memchr" >/dev/null 2>&1; then
10185 else
10186 ac_cv_header_stdc=no
10188 rm -f conftest*
10192 if test $ac_cv_header_stdc = yes; then
10193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <stdlib.h>
10202 _ACEOF
10203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10204 $EGREP "free" >/dev/null 2>&1; then
10206 else
10207 ac_cv_header_stdc=no
10209 rm -f conftest*
10213 if test $ac_cv_header_stdc = yes; then
10214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10215 if test "$cross_compiling" = yes; then
10217 else
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 #include <ctype.h>
10225 #if ((' ' & 0x0FF) == 0x020)
10226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10228 #else
10229 # define ISLOWER(c) \
10230 (('a' <= (c) && (c) <= 'i') \
10231 || ('j' <= (c) && (c) <= 'r') \
10232 || ('s' <= (c) && (c) <= 'z'))
10233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10234 #endif
10236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10238 main ()
10240 int i;
10241 for (i = 0; i < 256; i++)
10242 if (XOR (islower (i), ISLOWER (i))
10243 || toupper (i) != TOUPPER (i))
10244 exit(2);
10245 exit (0);
10247 _ACEOF
10248 rm -f conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10260 else
10261 echo "$as_me: program exited with status $ac_status" >&5
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ( exit $ac_status )
10266 ac_cv_header_stdc=no
10268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10274 if test $ac_cv_header_stdc = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define STDC_HEADERS 1
10278 _ACEOF
10282 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10283 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10284 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <sys/types.h>
10294 #include <sys/wait.h>
10295 #ifndef WEXITSTATUS
10296 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10297 #endif
10298 #ifndef WIFEXITED
10299 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10300 #endif
10303 main ()
10305 int s;
10306 wait (&s);
10307 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10309 return 0;
10311 _ACEOF
10312 rm -f conftest.$ac_objext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314 (eval $ac_compile) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_c_werror_flag"
10322 || test ! -s conftest.err'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest.$ac_objext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_header_sys_wait_h=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_header_sys_wait_h=no
10341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10344 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10345 if test $ac_cv_header_sys_wait_h = yes; then
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_SYS_WAIT_H 1
10349 _ACEOF
10354 if test $ac_cv_header_sys_wait_h = no; then
10355 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10356 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <sys/wait.h>
10365 main ()
10367 union wait xx, yy; xx = yy
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 echo "$as_me:$LINENO: result: yes" >&5
10395 echo "${ECHO_T}yes" >&6
10396 cat >>confdefs.h <<\_ACEOF
10397 #define HAVE_SYS_WAIT_H 1
10398 _ACEOF
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_UNION_WAIT 1
10402 _ACEOF
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 echo "$as_me:$LINENO: result: no" >&5
10409 echo "${ECHO_T}no" >&6
10411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10455 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10456 iconv.h langinfo.h unistd.h stropts.h errno.h \
10457 sys/resource.h sys/systeminfo.h locale.h \
10458 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10459 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10460 libgen.h util/debug.h util/msg18n.h frame.h \
10461 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo "$as_me:$LINENO: checking for $ac_header" >&5
10466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10472 else
10473 # Is the header compilable?
10474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 $ac_includes_default
10483 #include <$ac_header>
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487 (eval $ac_compile) 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -z "$ac_c_werror_flag"
10495 || test ! -s conftest.err'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_header_compiler=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ac_header_compiler=no
10514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10516 echo "${ECHO_T}$ac_header_compiler" >&6
10518 # Is the header present?
10519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 #include <$ac_header>
10528 _ACEOF
10529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } >/dev/null; then
10537 if test -s conftest.err; then
10538 ac_cpp_err=$ac_c_preproc_warn_flag
10539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10540 else
10541 ac_cpp_err=
10543 else
10544 ac_cpp_err=yes
10546 if test -z "$ac_cpp_err"; then
10547 ac_header_preproc=yes
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_header_preproc=no
10554 rm -f conftest.err conftest.$ac_ext
10555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10556 echo "${ECHO_T}$ac_header_preproc" >&6
10558 # So? What about this header?
10559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10560 yes:no: )
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10565 ac_header_preproc=yes
10567 no:yes:* )
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10581 cat <<\_ASBOX
10582 ## ------------------------------------------ ##
10583 ## Report this to the AC_PACKAGE_NAME lists. ##
10584 ## ------------------------------------------ ##
10585 _ASBOX
10587 sed "s/^/$as_me: WARNING: /" >&2
10589 esac
10590 echo "$as_me:$LINENO: checking for $ac_header" >&5
10591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 eval "$as_ac_Header=\$ac_header_preproc"
10597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10602 cat >>confdefs.h <<_ACEOF
10603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10604 _ACEOF
10608 done
10611 echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10612 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 #include <pthread.h>
10621 #include <pthread_np.h>
10623 main ()
10625 int i; i = 0;
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest.$ac_objext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 echo "$as_me:$LINENO: result: yes" >&5
10653 echo "${ECHO_T}yes" >&6
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_PTHREAD_NP_H 1
10656 _ACEOF
10658 else
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 echo "$as_me:$LINENO: result: no" >&5
10663 echo "${ECHO_T}no" >&6
10665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10668 for ac_header in strings.h
10670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10672 echo "$as_me:$LINENO: checking for $ac_header" >&5
10673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10679 else
10680 # Is the header compilable?
10681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 $ac_includes_default
10690 #include <$ac_header>
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_header_compiler=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_header_compiler=no
10721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6
10725 # Is the header present?
10726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 #include <$ac_header>
10735 _ACEOF
10736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } >/dev/null; then
10744 if test -s conftest.err; then
10745 ac_cpp_err=$ac_c_preproc_warn_flag
10746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10747 else
10748 ac_cpp_err=
10750 else
10751 ac_cpp_err=yes
10753 if test -z "$ac_cpp_err"; then
10754 ac_header_preproc=yes
10755 else
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_header_preproc=no
10761 rm -f conftest.err conftest.$ac_ext
10762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10763 echo "${ECHO_T}$ac_header_preproc" >&6
10765 # So? What about this header?
10766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10767 yes:no: )
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10772 ac_header_preproc=yes
10774 no:yes:* )
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10788 cat <<\_ASBOX
10789 ## ------------------------------------------ ##
10790 ## Report this to the AC_PACKAGE_NAME lists. ##
10791 ## ------------------------------------------ ##
10792 _ASBOX
10794 sed "s/^/$as_me: WARNING: /" >&2
10796 esac
10797 echo "$as_me:$LINENO: checking for $ac_header" >&5
10798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802 eval "$as_ac_Header=\$ac_header_preproc"
10804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10809 cat >>confdefs.h <<_ACEOF
10810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10811 _ACEOF
10815 done
10817 if test "x$MACOSX" = "xyes"; then
10818 cat >>confdefs.h <<\_ACEOF
10819 #define NO_STRINGS_WITH_STRING_H 1
10820 _ACEOF
10822 else
10824 echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10825 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10826 cppflags_save=$CPPFLAGS
10827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h. */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10835 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10836 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10837 /* but don't do it on AIX 5.1 (Uribarri) */
10838 #endif
10839 #ifdef HAVE_XM_XM_H
10840 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10841 #endif
10842 #ifdef HAVE_STRING_H
10843 # include <string.h>
10844 #endif
10845 #if defined(HAVE_STRINGS_H)
10846 # include <strings.h>
10847 #endif
10850 main ()
10852 int i; i = 0;
10854 return 0;
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_c_werror_flag"
10867 || test ! -s conftest.err'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest.$ac_objext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 echo "$as_me:$LINENO: result: yes" >&5
10880 echo "${ECHO_T}yes" >&6
10881 else
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 cat >>confdefs.h <<\_ACEOF
10886 #define NO_STRINGS_WITH_STRING_H 1
10887 _ACEOF
10889 echo "$as_me:$LINENO: result: no" >&5
10890 echo "${ECHO_T}no" >&6
10892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10893 CPPFLAGS=$cppflags_save
10896 if test $ac_cv_c_compiler_gnu = yes; then
10897 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10898 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10899 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 ac_pattern="Autoconf.*'x'"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h. */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10909 #include <sgtty.h>
10910 Autoconf TIOCGETP
10911 _ACEOF
10912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10913 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10914 ac_cv_prog_gcc_traditional=yes
10915 else
10916 ac_cv_prog_gcc_traditional=no
10918 rm -f conftest*
10921 if test $ac_cv_prog_gcc_traditional = no; then
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 #include <termio.h>
10929 Autoconf TCGETA
10930 _ACEOF
10931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10932 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10933 ac_cv_prog_gcc_traditional=yes
10935 rm -f conftest*
10939 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10940 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10941 if test $ac_cv_prog_gcc_traditional = yes; then
10942 CC="$CC -traditional"
10946 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10948 if test "${ac_cv_c_const+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10959 main ()
10961 /* FIXME: Include the comments suggested by Paul. */
10962 #ifndef __cplusplus
10963 /* Ultrix mips cc rejects this. */
10964 typedef int charset[2];
10965 const charset x;
10966 /* SunOS 4.1.1 cc rejects this. */
10967 char const *const *ccp;
10968 char **p;
10969 /* NEC SVR4.0.2 mips cc rejects this. */
10970 struct point {int x, y;};
10971 static struct point const zero = {0,0};
10972 /* AIX XL C 1.02.0.0 rejects this.
10973 It does not let you subtract one const X* pointer from another in
10974 an arm of an if-expression whose if-part is not a constant
10975 expression */
10976 const char *g = "string";
10977 ccp = &g + (g ? g-g : 0);
10978 /* HPUX 7.0 cc rejects these. */
10979 ++ccp;
10980 p = (char**) ccp;
10981 ccp = (char const *const *) p;
10982 { /* SCO 3.2v4 cc rejects this. */
10983 char *t;
10984 char const *s = 0 ? (char *) 0 : (char const *) 0;
10986 *t++ = 0;
10988 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10989 int x[] = {25, 17};
10990 const int *foo = &x[0];
10991 ++foo;
10993 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10994 typedef const int *iptr;
10995 iptr p = 0;
10996 ++p;
10998 { /* AIX XL C 1.02.0.0 rejects this saying
10999 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11000 struct s { int j; const int *ap[3]; };
11001 struct s *b; b->j = 5;
11003 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11004 const int foo = 10;
11006 #endif
11009 return 0;
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_c_const=yes
11035 else
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_c_const=no
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11044 echo "${ECHO_T}$ac_cv_c_const" >&6
11045 if test $ac_cv_c_const = no; then
11047 cat >>confdefs.h <<\_ACEOF
11048 #define const
11049 _ACEOF
11053 echo "$as_me:$LINENO: checking for mode_t" >&5
11054 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11055 if test "${ac_cv_type_mode_t+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h. */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 $ac_includes_default
11066 main ()
11068 if ((mode_t *) 0)
11069 return 0;
11070 if (sizeof (mode_t))
11071 return 0;
11073 return 0;
11075 _ACEOF
11076 rm -f conftest.$ac_objext
11077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11078 (eval $ac_compile) 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try='test -z "$ac_c_werror_flag"
11086 || test ! -s conftest.err'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; } &&
11092 { ac_try='test -s conftest.$ac_objext'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; }; then
11098 ac_cv_type_mode_t=yes
11099 else
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11103 ac_cv_type_mode_t=no
11105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11107 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11108 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11109 if test $ac_cv_type_mode_t = yes; then
11111 else
11113 cat >>confdefs.h <<_ACEOF
11114 #define mode_t int
11115 _ACEOF
11119 echo "$as_me:$LINENO: checking for off_t" >&5
11120 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11121 if test "${ac_cv_type_off_t+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 $ac_includes_default
11132 main ()
11134 if ((off_t *) 0)
11135 return 0;
11136 if (sizeof (off_t))
11137 return 0;
11139 return 0;
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144 (eval $ac_compile) 2>conftest.er1
11145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -z "$ac_c_werror_flag"
11152 || test ! -s conftest.err'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest.$ac_objext'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 ac_cv_type_off_t=yes
11165 else
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 ac_cv_type_off_t=no
11171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11173 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11174 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11175 if test $ac_cv_type_off_t = yes; then
11177 else
11179 cat >>confdefs.h <<_ACEOF
11180 #define off_t long
11181 _ACEOF
11185 echo "$as_me:$LINENO: checking for pid_t" >&5
11186 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11187 if test "${ac_cv_type_pid_t+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11198 main ()
11200 if ((pid_t *) 0)
11201 return 0;
11202 if (sizeof (pid_t))
11203 return 0;
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11210 (eval $ac_compile) 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest.$ac_objext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_cv_type_pid_t=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_cv_type_pid_t=no
11237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11239 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11240 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11241 if test $ac_cv_type_pid_t = yes; then
11243 else
11245 cat >>confdefs.h <<_ACEOF
11246 #define pid_t int
11247 _ACEOF
11251 echo "$as_me:$LINENO: checking for size_t" >&5
11252 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11253 if test "${ac_cv_type_size_t+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 $ac_includes_default
11264 main ()
11266 if ((size_t *) 0)
11267 return 0;
11268 if (sizeof (size_t))
11269 return 0;
11271 return 0;
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276 (eval $ac_compile) 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -z "$ac_c_werror_flag"
11284 || test ! -s conftest.err'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_type_size_t=yes
11297 else
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_cv_type_size_t=no
11303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11305 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11306 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11307 if test $ac_cv_type_size_t = yes; then
11309 else
11311 cat >>confdefs.h <<_ACEOF
11312 #define size_t unsigned
11313 _ACEOF
11317 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11318 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11319 if test "${ac_cv_type_uid_t+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <sys/types.h>
11330 _ACEOF
11331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11332 $EGREP "uid_t" >/dev/null 2>&1; then
11333 ac_cv_type_uid_t=yes
11334 else
11335 ac_cv_type_uid_t=no
11337 rm -f conftest*
11340 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11341 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11342 if test $ac_cv_type_uid_t = no; then
11344 cat >>confdefs.h <<\_ACEOF
11345 #define uid_t int
11346 _ACEOF
11349 cat >>confdefs.h <<\_ACEOF
11350 #define gid_t int
11351 _ACEOF
11355 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11356 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11357 if test "${ac_cv_header_time+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 #include <sys/types.h>
11367 #include <sys/time.h>
11368 #include <time.h>
11371 main ()
11373 if ((struct tm *) 0)
11374 return 0;
11376 return 0;
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381 (eval $ac_compile) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -z "$ac_c_werror_flag"
11389 || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_cv_header_time=yes
11402 else
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11406 ac_cv_header_time=no
11408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11410 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11411 echo "${ECHO_T}$ac_cv_header_time" >&6
11412 if test $ac_cv_header_time = yes; then
11414 cat >>confdefs.h <<\_ACEOF
11415 #define TIME_WITH_SYS_TIME 1
11416 _ACEOF
11420 echo "$as_me:$LINENO: checking for ino_t" >&5
11421 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11422 if test "${ac_cv_type_ino_t+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 $ac_includes_default
11433 main ()
11435 if ((ino_t *) 0)
11436 return 0;
11437 if (sizeof (ino_t))
11438 return 0;
11440 return 0;
11442 _ACEOF
11443 rm -f conftest.$ac_objext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag"
11453 || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_type_ino_t=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_type_ino_t=no
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11474 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11475 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11476 if test $ac_cv_type_ino_t = yes; then
11478 else
11480 cat >>confdefs.h <<_ACEOF
11481 #define ino_t long
11482 _ACEOF
11486 echo "$as_me:$LINENO: checking for dev_t" >&5
11487 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11488 if test "${ac_cv_type_dev_t+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 $ac_includes_default
11499 main ()
11501 if ((dev_t *) 0)
11502 return 0;
11503 if (sizeof (dev_t))
11504 return 0;
11506 return 0;
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_type_dev_t=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_cv_type_dev_t=no
11538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11540 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11541 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11542 if test $ac_cv_type_dev_t = yes; then
11544 else
11546 cat >>confdefs.h <<_ACEOF
11547 #define dev_t unsigned
11548 _ACEOF
11553 echo "$as_me:$LINENO: checking for rlim_t" >&5
11554 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11555 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11556 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11557 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11558 else
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11566 #include <sys/types.h>
11567 #if STDC_HEADERS
11568 #include <stdlib.h>
11569 #include <stddef.h>
11570 #endif
11571 #ifdef HAVE_SYS_RESOURCE_H
11572 #include <sys/resource.h>
11573 #endif
11575 _ACEOF
11576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11577 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11578 ac_cv_type_rlim_t=yes
11579 else
11580 ac_cv_type_rlim_t=no
11582 rm -f conftest*
11584 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11585 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11587 if test $ac_cv_type_rlim_t = no; then
11588 cat >> confdefs.h <<\EOF
11589 #define rlim_t unsigned long
11593 echo "$as_me:$LINENO: checking for stack_t" >&5
11594 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11595 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11596 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11597 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11598 else
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11606 #include <sys/types.h>
11607 #if STDC_HEADERS
11608 #include <stdlib.h>
11609 #include <stddef.h>
11610 #endif
11611 #include <signal.h>
11613 _ACEOF
11614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11615 $EGREP "stack_t" >/dev/null 2>&1; then
11616 ac_cv_type_stack_t=yes
11617 else
11618 ac_cv_type_stack_t=no
11620 rm -f conftest*
11622 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11623 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11625 if test $ac_cv_type_stack_t = no; then
11626 cat >> confdefs.h <<\EOF
11627 #define stack_t struct sigaltstack
11631 echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11632 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 #include <sys/types.h>
11641 #if STDC_HEADERS
11642 #include <stdlib.h>
11643 #include <stddef.h>
11644 #endif
11645 #include <signal.h>
11646 #include "confdefs.h"
11649 main ()
11651 stack_t sigstk; sigstk.ss_base = 0;
11653 return 0;
11655 _ACEOF
11656 rm -f conftest.$ac_objext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11658 (eval $ac_compile) 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag"
11666 || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest.$ac_objext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 echo "$as_me:$LINENO: result: yes" >&5
11679 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_SS_BASE 1
11681 _ACEOF
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6
11690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11692 olibs="$LIBS"
11693 echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11694 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11696 # Check whether --with-tlib or --without-tlib was given.
11697 if test "${with_tlib+set}" = set; then
11698 withval="$with_tlib"
11701 if test -n "$with_tlib"; then
11702 echo "$as_me:$LINENO: result: $with_tlib" >&5
11703 echo "${ECHO_T}$with_tlib" >&6
11704 LIBS="$LIBS -l$with_tlib"
11705 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11706 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11715 main ()
11719 return 0;
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 echo "$as_me:$LINENO: result: OK" >&5
11745 echo "${ECHO_T}OK" >&6
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 { { echo "$as_me:$LINENO: error: FAILED" >&5
11751 echo "$as_me: error: FAILED" >&2;}
11752 { (exit 1); exit 1; }; }
11754 rm -f conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 olibs="$LIBS"
11757 else
11758 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11759 echo "${ECHO_T}empty: automatic terminal library selection" >&6
11760 case "`uname -s 2>/dev/null`" in
11761 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
11762 *) tlibs="ncurses termlib termcap curses";;
11763 esac
11764 for libname in $tlibs; do
11766 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11767 echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11768 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11769 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772 ac_check_lib_save_LIBS=$LIBS
11773 LIBS="-l${libname} $LIBS"
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11781 /* Override any gcc2 internal prototype to avoid an error. */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787 char tgetent ();
11789 main ()
11791 tgetent ();
11793 return 0;
11795 _ACEOF
11796 rm -f conftest.$ac_objext conftest$ac_exeext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_Lib=yes"
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 eval "$as_ac_Lib=no"
11825 rm -f conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_lib_save_LIBS
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11831 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11834 _ACEOF
11836 LIBS="-l${libname} $LIBS"
11840 if test "x$olibs" != "x$LIBS"; then
11841 if test "$cross_compiling" = yes; then
11842 res="FAIL"
11843 else
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11851 #ifdef HAVE_TERMCAP_H
11852 # include <termcap.h>
11853 #endif
11854 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11855 _ACEOF
11856 rm -f conftest$ac_exeext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11858 (eval $ac_link) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 res="OK"
11868 else
11869 echo "$as_me: program exited with status $ac_status" >&5
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ( exit $ac_status )
11874 res="FAIL"
11876 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11878 if test "$res" = "OK"; then
11879 break
11881 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11882 echo "${ECHO_T}$libname library is not usable" >&6
11883 LIBS="$olibs"
11885 done
11886 if test "x$olibs" = "x$LIBS"; then
11887 echo "$as_me:$LINENO: result: no terminal library found" >&5
11888 echo "${ECHO_T}no terminal library found" >&6
11892 if test "x$olibs" = "x$LIBS"; then
11893 echo "$as_me:$LINENO: checking for tgetent()" >&5
11894 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11903 main ()
11905 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 { { echo "$as_me:$LINENO: error: NOT FOUND!
11939 You need to install a terminal library; for example ncurses.
11940 Or specify the name of the library with --with-tlib." >&5
11941 echo "$as_me: error: NOT FOUND!
11942 You need to install a terminal library; for example ncurses.
11943 Or specify the name of the library with --with-tlib." >&2;}
11944 { (exit 1); exit 1; }; }
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11950 echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11951 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11952 if test "$cross_compiling" = yes; then
11953 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11954 echo "$as_me: error: failed to compile test program." >&2;}
11955 { (exit 1); exit 1; }; }
11956 else
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11964 #ifdef HAVE_TERMCAP_H
11965 # include <termcap.h>
11966 #endif
11967 main()
11968 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11969 _ACEOF
11970 rm -f conftest$ac_exeext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11982 echo "${ECHO_T}no -- we are in termcap land" >&6
11983 else
11984 echo "$as_me: program exited with status $ac_status" >&5
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ( exit $ac_status )
11989 echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11990 echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11991 #define TERMINFO 1
11992 _ACEOF
11995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11998 if test "x$olibs" != "x$LIBS"; then
11999 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12000 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
12001 if test "$cross_compiling" = yes; then
12002 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12003 echo "$as_me: error: failed to compile test program." >&2;}
12004 { (exit 1); exit 1; }; }
12005 else
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12013 #ifdef HAVE_TERMCAP_H
12014 # include <termcap.h>
12015 #endif
12016 main()
12017 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12018 _ACEOF
12019 rm -f conftest$ac_exeext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12021 (eval $ac_link) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 echo "$as_me:$LINENO: result: zero" >&5
12031 echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
12032 #define TGETENT_ZERO_ERR 0
12033 _ACEOF
12035 else
12036 echo "$as_me: program exited with status $ac_status" >&5
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ( exit $ac_status )
12041 echo "$as_me:$LINENO: result: non-zero" >&5
12042 echo "${ECHO_T}non-zero" >&6
12044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12048 echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12049 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12057 #ifdef HAVE_TERMCAP_H
12058 # include <termcap.h>
12059 #endif
12062 main ()
12064 ospeed = 20000
12066 return 0;
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12071 (eval $ac_link) 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_c_werror_flag"
12079 || test ! -s conftest.err'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12082 ac_status=$?
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; } &&
12085 { ac_try='test -s conftest$ac_exeext'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 echo "$as_me:$LINENO: result: yes" >&5
12092 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_OSPEED 1
12094 _ACEOF
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 echo "$as_me:$LINENO: result: no" >&5
12101 echo "${ECHO_T}no" >&6
12102 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12103 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12111 #ifdef HAVE_TERMCAP_H
12112 # include <termcap.h>
12113 #endif
12114 extern short ospeed;
12117 main ()
12119 ospeed = 20000
12121 return 0;
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest$ac_exeext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 echo "$as_me:$LINENO: result: yes" >&5
12147 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12148 #define OSPEED_EXTERN 1
12149 _ACEOF
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 echo "$as_me:$LINENO: result: no" >&5
12156 echo "${ECHO_T}no" >&6
12158 rm -f conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12162 rm -f conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12165 echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12166 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12174 #ifdef HAVE_TERMCAP_H
12175 # include <termcap.h>
12176 #endif
12179 main ()
12181 if (UP == 0 && BC == 0) PC = 1
12183 return 0;
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag"
12196 || test ! -s conftest.err'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 echo "$as_me:$LINENO: result: yes" >&5
12209 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_UP_BC_PC 1
12211 _ACEOF
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6
12219 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12220 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h. */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12228 #ifdef HAVE_TERMCAP_H
12229 # include <termcap.h>
12230 #endif
12231 extern char *UP, *BC, PC;
12234 main ()
12236 if (UP == 0 && BC == 0) PC = 1
12238 return 0;
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 echo "$as_me:$LINENO: result: yes" >&5
12264 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12265 #define UP_BC_PC_EXTERN 1
12266 _ACEOF
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6
12275 rm -f conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12279 rm -f conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12282 echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12283 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12291 #ifdef HAVE_TERMCAP_H
12292 # include <termcap.h>
12293 #endif
12296 main ()
12298 extern int xx(); tputs("test", 1, (outfuntype)xx)
12300 return 0;
12302 _ACEOF
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 echo "$as_me:$LINENO: result: yes" >&5
12326 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_OUTFUNTYPE 1
12328 _ACEOF
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 echo "$as_me:$LINENO: result: no" >&5
12335 echo "${ECHO_T}no" >&6
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12339 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12340 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12348 #include <sys/types.h>
12349 #include <sys/time.h>
12350 #include <sys/select.h>
12352 main ()
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 echo "$as_me:$LINENO: result: yes" >&5
12382 echo "${ECHO_T}yes" >&6
12383 cat >>confdefs.h <<\_ACEOF
12384 #define SYS_SELECT_WITH_SYS_TIME 1
12385 _ACEOF
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12397 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12398 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12399 if test -r /dev/ptc; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define HAVE_DEV_PTC 1
12402 _ACEOF
12404 echo "$as_me:$LINENO: result: yes" >&5
12405 echo "${ECHO_T}yes" >&6
12406 else
12407 echo "$as_me:$LINENO: result: no" >&5
12408 echo "${ECHO_T}no" >&6
12411 echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12412 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12413 if test -c /dev/ptmx ; then
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12422 main ()
12424 ptsname(0);grantpt(0);unlockpt(0);
12426 return 0;
12428 _ACEOF
12429 rm -f conftest.$ac_objext conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_SVR4_PTYS 1
12454 _ACEOF
12456 else
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 echo "$as_me:$LINENO: result: no" >&5
12461 echo "${ECHO_T}no" >&6
12463 rm -f conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 else
12466 echo "$as_me:$LINENO: result: no" >&5
12467 echo "${ECHO_T}no" >&6
12470 echo "$as_me:$LINENO: checking for ptyranges" >&5
12471 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12472 if test -d /dev/ptym ; then
12473 pdir='/dev/ptym'
12474 else
12475 pdir='/dev'
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h. */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 #ifdef M_UNIX
12484 yes;
12485 #endif
12487 _ACEOF
12488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12489 $EGREP "yes" >/dev/null 2>&1; then
12490 ptys=`echo /dev/ptyp??`
12491 else
12492 ptys=`echo $pdir/pty??`
12494 rm -f conftest*
12496 if test "$ptys" != "$pdir/pty??" ; then
12497 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12498 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12499 cat >>confdefs.h <<_ACEOF
12500 #define PTYRANGE0 "$p0"
12501 _ACEOF
12503 cat >>confdefs.h <<_ACEOF
12504 #define PTYRANGE1 "$p1"
12505 _ACEOF
12507 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12508 echo "${ECHO_T}$p0 / $p1" >&6
12509 else
12510 echo "$as_me:$LINENO: result: don't know" >&5
12511 echo "${ECHO_T}don't know" >&6
12514 echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12515 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12516 rm -f conftest_grp
12517 if test "$cross_compiling" = yes; then
12518 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12519 echo "$as_me: error: failed to compile test program" >&2;}
12520 { (exit 1); exit 1; }; }
12521 else
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h. */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12529 #include <sys/types.h>
12530 #include <sys/stat.h>
12531 #include <stdio.h>
12532 main()
12534 struct stat sb;
12535 char *x,*ttyname();
12536 int om, m;
12537 FILE *fp;
12539 if (!(x = ttyname(0))) exit(1);
12540 if (stat(x, &sb)) exit(1);
12541 om = sb.st_mode;
12542 if (om & 002) exit(0);
12543 m = system("mesg y");
12544 if (m == -1 || m == 127) exit(1);
12545 if (stat(x, &sb)) exit(1);
12546 m = sb.st_mode;
12547 if (chmod(x, om)) exit(1);
12548 if (m & 002) exit(0);
12549 if (sb.st_gid == getgid()) exit(1);
12550 if (!(fp=fopen("conftest_grp", "w")))
12551 exit(1);
12552 fprintf(fp, "%d\n", sb.st_gid);
12553 fclose(fp);
12554 exit(0);
12557 _ACEOF
12558 rm -f conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12570 if test -f conftest_grp; then
12571 ptygrp=`cat conftest_grp`
12572 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12573 echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12574 cat >>confdefs.h <<\_ACEOF
12575 #define PTYMODE 0620
12576 _ACEOF
12578 cat >>confdefs.h <<_ACEOF
12579 #define PTYGROUP $ptygrp
12580 _ACEOF
12582 else
12583 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12584 echo "${ECHO_T}ptys are world accessable" >&6
12587 else
12588 echo "$as_me: program exited with status $ac_status" >&5
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ( exit $ac_status )
12593 echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12594 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12598 rm -f conftest_grp
12601 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12602 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12603 if test "${ac_cv_type_signal+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <signal.h>
12614 #ifdef signal
12615 # undef signal
12616 #endif
12617 #ifdef __cplusplus
12618 extern "C" void (*signal (int, void (*)(int)))(int);
12619 #else
12620 void (*signal ()) ();
12621 #endif
12624 main ()
12626 int i;
12628 return 0;
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest.$ac_objext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_type_signal=void
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_cv_type_signal=int
12660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12663 echo "${ECHO_T}$ac_cv_type_signal" >&6
12665 cat >>confdefs.h <<_ACEOF
12666 #define RETSIGTYPE $ac_cv_type_signal
12667 _ACEOF
12671 if test $ac_cv_type_signal = void; then
12672 cat >>confdefs.h <<\_ACEOF
12673 #define SIGRETURN return
12674 _ACEOF
12676 else
12677 cat >>confdefs.h <<\_ACEOF
12678 #define SIGRETURN return 0
12679 _ACEOF
12683 echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12684 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 #include <signal.h>
12693 test_sig()
12695 struct sigcontext *scont;
12696 scont = (struct sigcontext *)0;
12697 return 1;
12700 main ()
12704 return 0;
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 echo "$as_me:$LINENO: result: yes" >&5
12730 echo "${ECHO_T}yes" >&6
12731 cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_SIGCONTEXT 1
12733 _ACEOF
12735 else
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 echo "$as_me:$LINENO: result: no" >&5
12740 echo "${ECHO_T}no" >&6
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12744 echo "$as_me:$LINENO: checking getcwd implementation" >&5
12745 echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12746 if test "$cross_compiling" = yes; then
12747 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12748 echo "$as_me: error: failed to compile test program" >&2;}
12749 { (exit 1); exit 1; }; }
12750 else
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 char *dagger[] = { "IFS=pwd", 0 };
12759 main()
12761 char buffer[500];
12762 extern char **environ;
12763 environ = dagger;
12764 return getcwd(buffer, 500) ? 0 : 1;
12766 _ACEOF
12767 rm -f conftest$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 echo "$as_me:$LINENO: result: it is usable" >&5
12779 echo "${ECHO_T}it is usable" >&6
12780 else
12781 echo "$as_me: program exited with status $ac_status" >&5
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ( exit $ac_status )
12786 echo "$as_me:$LINENO: result: it stinks" >&5
12787 echo "${ECHO_T}it stinks" >&6
12788 cat >>confdefs.h <<\_ACEOF
12789 #define BAD_GETCWD 1
12790 _ACEOF
12793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12842 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12843 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12844 memset nanosleep opendir putenv qsort readlink select setenv \
12845 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12846 sigvec strcasecmp strerror strftime stricmp strncasecmp \
12847 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12848 usleep utime utimes
12850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12851 echo "$as_me:$LINENO: checking for $ac_func" >&5
12852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12853 if eval "test \"\${$as_ac_var+set}\" = set"; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12864 #define $ac_func innocuous_$ac_func
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func (); below.
12868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12869 <limits.h> exists even on freestanding compilers. */
12871 #ifdef __STDC__
12872 # include <limits.h>
12873 #else
12874 # include <assert.h>
12875 #endif
12877 #undef $ac_func
12879 /* Override any gcc2 internal prototype to avoid an error. */
12880 #ifdef __cplusplus
12881 extern "C"
12883 #endif
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12886 char $ac_func ();
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12891 choke me
12892 #else
12893 char (*f) () = $ac_func;
12894 #endif
12895 #ifdef __cplusplus
12897 #endif
12900 main ()
12902 return f != $ac_func;
12904 return 0;
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 eval "$as_ac_var=yes"
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 eval "$as_ac_var=no"
12936 rm -f conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12941 if test `eval echo '${'$as_ac_var'}'` = yes; then
12942 cat >>confdefs.h <<_ACEOF
12943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12944 _ACEOF
12947 done
12950 echo "$as_me:$LINENO: checking for st_blksize" >&5
12951 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <sys/types.h>
12959 #include <sys/stat.h>
12961 main ()
12963 struct stat st;
12964 int n;
12966 stat("/", &st);
12967 n = (int)st.st_blksize;
12969 return 0;
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974 (eval $ac_compile) 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag"
12982 || test ! -s conftest.err'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 echo "$as_me:$LINENO: result: yes" >&5
12995 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12996 #define HAVE_ST_BLKSIZE 1
12997 _ACEOF
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 echo "$as_me:$LINENO: result: no" >&5
13004 echo "${ECHO_T}no" >&6
13006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13008 echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13009 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
13010 if test "$cross_compiling" = yes; then
13011 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13012 echo "$as_me: error: failed to compile test program" >&2;}
13013 { (exit 1); exit 1; }; }
13014 else
13015 cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h. */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 #include <sys/types.h>
13022 #include <sys/stat.h>
13023 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13024 _ACEOF
13025 rm -f conftest$ac_exeext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13027 (eval $ac_link) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 echo "$as_me:$LINENO: result: yes" >&5
13037 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13038 #define STAT_IGNORES_SLASH 1
13039 _ACEOF
13041 else
13042 echo "$as_me: program exited with status $ac_status" >&5
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13046 ( exit $ac_status )
13047 echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6
13050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13053 echo "$as_me:$LINENO: checking for iconv_open()" >&5
13054 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
13055 save_LIBS="$LIBS"
13056 LIBS="$LIBS -liconv"
13057 cat >conftest.$ac_ext <<_ACEOF
13058 /* confdefs.h. */
13059 _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>
13066 #endif
13069 main ()
13071 iconv_open("fr", "to");
13073 return 0;
13075 _ACEOF
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
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
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
13089 ac_status=$?
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
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13099 echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
13100 #define HAVE_ICONV 1
13101 _ACEOF
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 LIBS="$save_LIBS"
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13115 #ifdef HAVE_ICONV_H
13116 # include <iconv.h>
13117 #endif
13120 main ()
13122 iconv_open("fr", "to");
13124 return 0;
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag"
13137 || test ! -s conftest.err'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 echo "$as_me:$LINENO: result: yes" >&5
13150 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_ICONV 1
13152 _ACEOF
13154 else
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6
13161 rm -f conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13164 rm -f conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13168 echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13169 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h. */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13177 #ifdef HAVE_LANGINFO_H
13178 # include <langinfo.h>
13179 #endif
13182 main ()
13184 char *cs = nl_langinfo(CODESET);
13186 return 0;
13188 _ACEOF
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13191 (eval $ac_link) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 echo "$as_me:$LINENO: result: yes" >&5
13212 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13213 #define HAVE_NL_LANGINFO_CODESET 1
13214 _ACEOF
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6
13223 rm -f conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13226 echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13227 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13228 # Check whether --enable-acl or --disable-acl was given.
13229 if test "${enable_acl+set}" = set; then
13230 enableval="$enable_acl"
13232 else
13233 enable_acl="yes"
13235 if test "$enable_acl" = "yes"; then
13236 echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6
13238 echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13239 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13240 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 ac_check_lib_save_LIBS=$LIBS
13244 LIBS="-lposix1e $LIBS"
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13252 /* Override any gcc2 internal prototype to avoid an error. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 /* We use char because int might match the return type of a gcc2
13257 builtin and then its argument prototype would still apply. */
13258 char acl_get_file ();
13260 main ()
13262 acl_get_file ();
13264 return 0;
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_lib_posix1e_acl_get_file=yes
13290 else
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_cv_lib_posix1e_acl_get_file=no
13296 rm -f conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13300 echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13301 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13302 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13303 LIBS="$LIBS -lposix1e"
13304 else
13305 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13306 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13307 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 else
13310 ac_check_lib_save_LIBS=$LIBS
13311 LIBS="-lacl $LIBS"
13312 cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h. */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 /* Override any gcc2 internal prototype to avoid an error. */
13320 #ifdef __cplusplus
13321 extern "C"
13322 #endif
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char acl_get_file ();
13327 main ()
13329 acl_get_file ();
13331 return 0;
13333 _ACEOF
13334 rm -f conftest.$ac_objext conftest$ac_exeext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13336 (eval $ac_link) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag"
13344 || test ! -s conftest.err'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_cv_lib_acl_acl_get_file=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_cv_lib_acl_acl_get_file=no
13363 rm -f conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13365 LIBS=$ac_check_lib_save_LIBS
13367 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13368 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13369 if test $ac_cv_lib_acl_acl_get_file = yes; then
13370 LIBS="$LIBS -lacl"
13371 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13372 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13373 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 ac_check_lib_save_LIBS=$LIBS
13377 LIBS="-lattr $LIBS"
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13385 /* Override any gcc2 internal prototype to avoid an error. */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 /* We use char because int might match the return type of a gcc2
13390 builtin and then its argument prototype would still apply. */
13391 char fgetxattr ();
13393 main ()
13395 fgetxattr ();
13397 return 0;
13399 _ACEOF
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13402 (eval $ac_link) 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag"
13410 || test ! -s conftest.err'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
13422 ac_cv_lib_attr_fgetxattr=yes
13423 else
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ac_cv_lib_attr_fgetxattr=no
13429 rm -f conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13433 echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13434 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13435 if test $ac_cv_lib_attr_fgetxattr = yes; then
13436 LIBS="$LIBS -lattr"
13444 echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13445 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13453 #include <sys/types.h>
13454 #ifdef HAVE_SYS_ACL_H
13455 # include <sys/acl.h>
13456 #endif
13457 acl_t acl;
13459 main ()
13461 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13462 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13463 acl_free(acl);
13465 return 0;
13467 _ACEOF
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470 (eval $ac_link) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest$ac_exeext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 echo "$as_me:$LINENO: result: yes" >&5
13491 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13492 #define HAVE_POSIX_ACL 1
13493 _ACEOF
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 echo "$as_me:$LINENO: result: no" >&5
13500 echo "${ECHO_T}no" >&6
13502 rm -f conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13505 echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13506 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13514 #ifdef HAVE_SYS_ACL_H
13515 # include <sys/acl.h>
13516 #endif
13518 main ()
13520 acl("foo", GETACLCNT, 0, NULL);
13523 return 0;
13525 _ACEOF
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try='test -s conftest$ac_exeext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 echo "$as_me:$LINENO: result: yes" >&5
13549 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_SOLARIS_ACL 1
13551 _ACEOF
13553 else
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6
13560 rm -f conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13563 echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13564 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13565 cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h. */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13572 #ifdef HAVE_SYS_ACL_H
13573 # include <sys/acl.h>
13574 #endif
13575 #ifdef HAVE_SYS_ACCESS_H
13576 # include <sys/access.h>
13577 #endif
13578 #define _ALL_SOURCE
13580 #include <sys/stat.h>
13582 int aclsize;
13583 struct acl *aclent;
13585 main ()
13587 aclsize = sizeof(struct acl);
13588 aclent = (void *)malloc(aclsize);
13589 statacl("foo", STX_NORMAL, aclent, aclsize);
13592 return 0;
13594 _ACEOF
13595 rm -f conftest.$ac_objext conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 echo "$as_me:$LINENO: result: yes" >&5
13618 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13619 #define HAVE_AIX_ACL 1
13620 _ACEOF
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 echo "$as_me:$LINENO: result: no" >&5
13627 echo "${ECHO_T}no" >&6
13629 rm -f conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13631 else
13632 echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6
13636 echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13637 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13638 # Check whether --enable-gpm or --disable-gpm was given.
13639 if test "${enable_gpm+set}" = set; then
13640 enableval="$enable_gpm"
13642 else
13643 enable_gpm="yes"
13646 if test "$enable_gpm" = "yes"; then
13647 echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6
13649 echo "$as_me:$LINENO: checking for gpm" >&5
13650 echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13651 if test "${vi_cv_have_gpm+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 olibs="$LIBS" ; LIBS="-lgpm"
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h. */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 #include <gpm.h>
13662 #include <linux/keyboard.h>
13664 main ()
13666 Gpm_GetLibVersion(NULL);
13668 return 0;
13670 _ACEOF
13671 rm -f conftest.$ac_objext conftest$ac_exeext
13672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13673 (eval $ac_link) 2>conftest.er1
13674 ac_status=$?
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -z "$ac_c_werror_flag"
13681 || test ! -s conftest.err'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 vi_cv_have_gpm=yes
13694 else
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 vi_cv_have_gpm=no
13700 rm -f conftest.err conftest.$ac_objext \
13701 conftest$ac_exeext conftest.$ac_ext
13702 LIBS="$olibs"
13705 echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13706 echo "${ECHO_T}$vi_cv_have_gpm" >&6
13707 if test $vi_cv_have_gpm = yes; then
13708 LIBS="$LIBS -lgpm"
13709 cat >>confdefs.h <<\_ACEOF
13710 #define HAVE_GPM 1
13711 _ACEOF
13714 else
13715 echo "$as_me:$LINENO: result: yes" >&5
13716 echo "${ECHO_T}yes" >&6
13719 echo "$as_me:$LINENO: checking for rename" >&5
13720 echo $ECHO_N "checking for rename... $ECHO_C" >&6
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 #include <stdio.h>
13729 main ()
13731 rename("this", "that")
13733 return 0;
13735 _ACEOF
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13738 (eval $ac_link) 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest$ac_exeext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 echo "$as_me:$LINENO: result: yes" >&5
13759 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13760 #define HAVE_RENAME 1
13761 _ACEOF
13763 else
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 echo "$as_me:$LINENO: result: no" >&5
13768 echo "${ECHO_T}no" >&6
13770 rm -f conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13773 echo "$as_me:$LINENO: checking for sysctl" >&5
13774 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 #include <sys/types.h>
13782 #include <sys/sysctl.h>
13784 main ()
13786 int mib[2], r;
13787 size_t len;
13789 mib[0] = CTL_HW;
13790 mib[1] = HW_USERMEM;
13791 len = sizeof(r);
13792 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13795 return 0;
13797 _ACEOF
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 echo "$as_me:$LINENO: result: yes" >&5
13821 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13822 #define HAVE_SYSCTL 1
13823 _ACEOF
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 echo "$as_me:$LINENO: result: not usable" >&5
13830 echo "${ECHO_T}not usable" >&6
13832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13834 echo "$as_me:$LINENO: checking for sysinfo" >&5
13835 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13836 cat >conftest.$ac_ext <<_ACEOF
13837 /* confdefs.h. */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13842 #include <sys/types.h>
13843 #include <sys/sysinfo.h>
13845 main ()
13847 struct sysinfo sinfo;
13848 int t;
13850 (void)sysinfo(&sinfo);
13851 t = sinfo.totalram;
13854 return 0;
13856 _ACEOF
13857 rm -f conftest.$ac_objext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13859 (eval $ac_compile) 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_c_werror_flag"
13867 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try='test -s conftest.$ac_objext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 echo "$as_me:$LINENO: result: yes" >&5
13880 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13881 #define HAVE_SYSINFO 1
13882 _ACEOF
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 echo "$as_me:$LINENO: result: not usable" >&5
13889 echo "${ECHO_T}not usable" >&6
13891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13893 echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13894 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13895 cat >conftest.$ac_ext <<_ACEOF
13896 /* confdefs.h. */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 #include <sys/types.h>
13902 #include <sys/sysinfo.h>
13904 main ()
13906 struct sysinfo sinfo;
13907 sinfo.mem_unit = 1;
13910 return 0;
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915 (eval $ac_compile) 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -z "$ac_c_werror_flag"
13923 || test ! -s conftest.err'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest.$ac_objext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 echo "$as_me:$LINENO: result: yes" >&5
13936 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_SYSINFO_MEM_UNIT 1
13938 _ACEOF
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 echo "$as_me:$LINENO: result: no" >&5
13945 echo "${ECHO_T}no" >&6
13947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me:$LINENO: checking for sysconf" >&5
13950 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h. */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 #include <unistd.h>
13959 main ()
13961 (void)sysconf(_SC_PAGESIZE);
13962 (void)sysconf(_SC_PHYS_PAGES);
13965 return 0;
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest.$ac_objext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 echo "$as_me:$LINENO: result: yes" >&5
13991 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13992 #define HAVE_SYSCONF 1
13993 _ACEOF
13995 else
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 echo "$as_me:$LINENO: result: not usable" >&5
14000 echo "${ECHO_T}not usable" >&6
14002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14005 echo "$as_me:$LINENO: checking size of int" >&5
14006 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14007 if test "${ac_cv_sizeof_int+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 if test "$cross_compiling" = yes; then
14011 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14012 echo "$as_me: error: failed to compile test program" >&2;}
14013 { (exit 1); exit 1; }; }
14014 else
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <stdio.h>
14022 main()
14024 FILE *f=fopen("conftestval", "w");
14025 if (!f) exit(1);
14026 fprintf(f, "%d\n", (int)sizeof(int));
14027 exit(0);
14029 _ACEOF
14030 rm -f conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_cv_sizeof_int=`cat conftestval`
14042 else
14043 echo "$as_me: program exited with status $ac_status" >&5
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ( exit $ac_status )
14048 ac_cv_sizeof_int=0
14050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14055 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14056 cat >>confdefs.h <<_ACEOF
14057 #define SIZEOF_INT $ac_cv_sizeof_int
14058 _ACEOF
14061 echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
14062 echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
14063 bcopy_test_prog='
14064 main() {
14065 char buf[10];
14066 strcpy(buf, "abcdefghi");
14067 mch_memmove(buf, buf + 2, 3);
14068 if (strncmp(buf, "ababcf", 6))
14069 exit(1);
14070 strcpy(buf, "abcdefghi");
14071 mch_memmove(buf + 2, buf, 3);
14072 if (strncmp(buf, "cdedef", 6))
14073 exit(1);
14074 exit(0); /* libc version works properly. */
14078 if test "$cross_compiling" = yes; then
14079 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14080 echo "$as_me: error: failed to compile test program" >&2;}
14081 { (exit 1); exit 1; }; }
14082 else
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14090 _ACEOF
14091 rm -f conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 cat >>confdefs.h <<\_ACEOF
14103 #define USEMEMMOVE 1
14104 _ACEOF
14105 echo "$as_me:$LINENO: result: memmove does" >&5
14106 echo "${ECHO_T}memmove does" >&6
14107 else
14108 echo "$as_me: program exited with status $ac_status" >&5
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ( exit $ac_status )
14113 if test "$cross_compiling" = yes; then
14114 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14115 echo "$as_me: error: failed to compile test program" >&2;}
14116 { (exit 1); exit 1; }; }
14117 else
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14125 _ACEOF
14126 rm -f conftest$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define USEBCOPY 1
14139 _ACEOF
14140 echo "$as_me:$LINENO: result: bcopy does" >&5
14141 echo "${ECHO_T}bcopy does" >&6
14142 else
14143 echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ( exit $ac_status )
14148 if test "$cross_compiling" = yes; then
14149 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14150 echo "$as_me: error: failed to compile test program" >&2;}
14151 { (exit 1); exit 1; }; }
14152 else
14153 cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h. */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14160 _ACEOF
14161 rm -f conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define USEMEMCPY 1
14174 _ACEOF
14175 echo "$as_me:$LINENO: result: memcpy does" >&5
14176 echo "${ECHO_T}memcpy does" >&6
14177 else
14178 echo "$as_me: program exited with status $ac_status" >&5
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ( exit $ac_status )
14183 echo "$as_me:$LINENO: result: no" >&5
14184 echo "${ECHO_T}no" >&6
14186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14196 if test "$enable_multibyte" = "yes"; then
14197 cflags_save=$CFLAGS
14198 ldflags_save=$LDFLAGS
14199 if test -n "$x_includes" ; then
14200 CFLAGS="$CFLAGS -I$x_includes"
14201 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
14202 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14203 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 #include <X11/Xlocale.h>
14212 main ()
14216 return 0;
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221 (eval $ac_compile) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h. */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14248 /* Override any gcc2 internal prototype to avoid an error. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254 char _Xsetlocale ();
14256 main ()
14258 _Xsetlocale ();
14260 return 0;
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag"
14273 || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest$ac_exeext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 echo "$as_me:$LINENO: result: yes" >&5
14286 echo "${ECHO_T}yes" >&6
14287 cat >>confdefs.h <<\_ACEOF
14288 #define X_LOCALE 1
14289 _ACEOF
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6
14298 rm -f conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14300 else
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 echo "$as_me:$LINENO: result: no" >&5
14305 echo "${ECHO_T}no" >&6
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309 CFLAGS=$cflags_save
14310 LDFLAGS=$ldflags_save
14313 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14314 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14315 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318 ac_check_lib_save_LIBS=$LIBS
14319 LIBS="-lxpg4 $LIBS"
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14327 /* Override any gcc2 internal prototype to avoid an error. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 /* We use char because int might match the return type of a gcc2
14332 builtin and then its argument prototype would still apply. */
14333 char _xpg4_setrunelocale ();
14335 main ()
14337 _xpg4_setrunelocale ();
14339 return 0;
14341 _ACEOF
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag"
14352 || test ! -s conftest.err'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest$ac_exeext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14365 else
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ac_cv_lib_xpg4__xpg4_setrunelocale=no
14371 rm -f conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14375 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14376 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14377 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14378 LIBS="$LIBS -lxpg4"
14382 echo "$as_me:$LINENO: checking how to create tags" >&5
14383 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14384 test -f tags && mv tags tags.save
14385 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14386 TAGPRG="ctags -I INIT+ --fields=+S"
14387 else
14388 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14389 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14390 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14391 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14392 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14393 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14394 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14396 test -f tags.save && mv tags.save tags
14397 echo "$as_me:$LINENO: result: $TAGPRG" >&5
14398 echo "${ECHO_T}$TAGPRG" >&6
14400 echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14401 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14402 MANDEF="man"
14403 (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14404 echo "$as_me:$LINENO: result: $MANDEF" >&5
14405 echo "${ECHO_T}$MANDEF" >&6
14406 if test "$MANDEF" = "man -s"; then
14407 cat >>confdefs.h <<\_ACEOF
14408 #define USEMAN_S 1
14409 _ACEOF
14413 echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14414 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14415 # Check whether --enable-nls or --disable-nls was given.
14416 if test "${enable_nls+set}" = set; then
14417 enableval="$enable_nls"
14419 else
14420 enable_nls="yes"
14423 if test "$enable_nls" = "yes"; then
14424 echo "$as_me:$LINENO: result: no" >&5
14425 echo "${ECHO_T}no" >&6
14427 INSTALL_LANGS=install-languages
14429 INSTALL_TOOL_LANGS=install-tool-languages
14432 # Extract the first word of "msgfmt", so it can be a program name with args.
14433 set dummy msgfmt; ac_word=$2
14434 echo "$as_me:$LINENO: checking for $ac_word" >&5
14435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14436 if test "${ac_cv_prog_MSGFMT+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 if test -n "$MSGFMT"; then
14440 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14441 else
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14445 IFS=$as_save_IFS
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449 ac_cv_prog_MSGFMT="msgfmt"
14450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14451 break 2
14453 done
14454 done
14458 MSGFMT=$ac_cv_prog_MSGFMT
14459 if test -n "$MSGFMT"; then
14460 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14461 echo "${ECHO_T}$MSGFMT" >&6
14462 else
14463 echo "$as_me:$LINENO: result: no" >&5
14464 echo "${ECHO_T}no" >&6
14467 echo "$as_me:$LINENO: checking for NLS" >&5
14468 echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14469 if test -f po/Makefile; then
14470 have_gettext="no"
14471 if test -n "$MSGFMT"; then
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <libintl.h>
14480 main ()
14482 gettext("Test");
14484 return 0;
14486 _ACEOF
14487 rm -f conftest.$ac_objext conftest$ac_exeext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -z "$ac_c_werror_flag"
14497 || test ! -s conftest.err'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest$ac_exeext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 echo "$as_me:$LINENO: result: gettext() works" >&5
14510 echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 olibs=$LIBS
14516 LIBS="$LIBS -lintl"
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <libintl.h>
14525 main ()
14527 gettext("Test");
14529 return 0;
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest$ac_exeext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14555 echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14561 echo "${ECHO_T}gettext() doesn't work" >&6;
14562 LIBS=$olibs
14564 rm -f conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14567 rm -f conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569 else
14570 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14571 echo "${ECHO_T}msgfmt not found - disabled" >&6;
14573 if test $have_gettext = "yes"; then
14574 cat >>confdefs.h <<\_ACEOF
14575 #define HAVE_GETTEXT 1
14576 _ACEOF
14578 MAKEMO=yes
14581 for ac_func in bind_textdomain_codeset
14583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14584 echo "$as_me:$LINENO: checking for $ac_func" >&5
14585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14586 if eval "test \"\${$as_ac_var+set}\" = set"; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14597 #define $ac_func innocuous_$ac_func
14599 /* System header to define __stub macros and hopefully few prototypes,
14600 which can conflict with char $ac_func (); below.
14601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602 <limits.h> exists even on freestanding compilers. */
14604 #ifdef __STDC__
14605 # include <limits.h>
14606 #else
14607 # include <assert.h>
14608 #endif
14610 #undef $ac_func
14612 /* Override any gcc2 internal prototype to avoid an error. */
14613 #ifdef __cplusplus
14614 extern "C"
14616 #endif
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14619 char $ac_func ();
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 choke me
14625 #else
14626 char (*f) () = $ac_func;
14627 #endif
14628 #ifdef __cplusplus
14630 #endif
14633 main ()
14635 return f != $ac_func;
14637 return 0;
14639 _ACEOF
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>conftest.er1
14643 ac_status=$?
14644 grep -v '^ *+' conftest.er1 >conftest.err
14645 rm -f conftest.er1
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag"
14650 || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest$ac_exeext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 eval "$as_ac_var=yes"
14663 else
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 eval "$as_ac_var=no"
14669 rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14674 if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677 _ACEOF
14680 done
14682 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14683 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 #include <libintl.h>
14691 extern int _nl_msg_cat_cntr;
14693 main ()
14695 ++_nl_msg_cat_cntr;
14697 return 0;
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 echo "$as_me:$LINENO: result: yes" >&5
14723 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_NL_MSG_CAT_CNTR 1
14725 _ACEOF
14727 else
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14734 rm -f conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext conftest.$ac_ext
14737 else
14738 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14739 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14741 else
14742 echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6
14746 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14747 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14748 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14749 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14753 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14754 else
14755 # Is the header compilable?
14756 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14757 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h. */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14765 #include <dlfcn.h>
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14770 ac_status=$?
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -f conftest.er1
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -z "$ac_c_werror_flag"
14777 || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 ac_header_compiler=yes
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_header_compiler=no
14796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6
14800 # Is the header present?
14801 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14802 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <dlfcn.h>
14810 _ACEOF
14811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } >/dev/null; then
14819 if test -s conftest.err; then
14820 ac_cpp_err=$ac_c_preproc_warn_flag
14821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14822 else
14823 ac_cpp_err=
14825 else
14826 ac_cpp_err=yes
14828 if test -z "$ac_cpp_err"; then
14829 ac_header_preproc=yes
14830 else
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ac_header_preproc=no
14836 rm -f conftest.err conftest.$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14838 echo "${ECHO_T}$ac_header_preproc" >&6
14840 # So? What about this header?
14841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14842 yes:no: )
14843 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14844 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14846 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14847 ac_header_preproc=yes
14849 no:yes:* )
14850 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14851 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14853 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14855 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14857 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14859 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14861 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14863 cat <<\_ASBOX
14864 ## ------------------------------------------ ##
14865 ## Report this to the AC_PACKAGE_NAME lists. ##
14866 ## ------------------------------------------ ##
14867 _ASBOX
14869 sed "s/^/$as_me: WARNING: /" >&2
14871 esac
14872 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14873 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14874 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 ac_cv_header_dlfcn_h=$ac_header_preproc
14879 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14880 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14883 if test $ac_cv_header_dlfcn_h = yes; then
14884 DLL=dlfcn.h
14885 else
14886 if test "${ac_cv_header_dl_h+set}" = set; then
14887 echo "$as_me:$LINENO: checking for dl.h" >&5
14888 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14889 if test "${ac_cv_header_dl_h+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14893 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14894 else
14895 # Is the header compilable?
14896 echo "$as_me:$LINENO: checking dl.h usability" >&5
14897 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 $ac_includes_default
14905 #include <dl.h>
14906 _ACEOF
14907 rm -f conftest.$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909 (eval $ac_compile) 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -z "$ac_c_werror_flag"
14917 || test ! -s conftest.err'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_header_compiler=yes
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_header_compiler=no
14936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938 echo "${ECHO_T}$ac_header_compiler" >&6
14940 # Is the header present?
14941 echo "$as_me:$LINENO: checking dl.h presence" >&5
14942 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h. */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 #include <dl.h>
14950 _ACEOF
14951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14962 else
14963 ac_cpp_err=
14965 else
14966 ac_cpp_err=yes
14968 if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14970 else
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 ac_header_preproc=no
14976 rm -f conftest.err conftest.$ac_ext
14977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 echo "${ECHO_T}$ac_header_preproc" >&6
14980 # So? What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
14983 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14984 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14986 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
14989 no:yes:* )
14990 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14991 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14993 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14995 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14997 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
15001 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
15003 cat <<\_ASBOX
15004 ## ------------------------------------------ ##
15005 ## Report this to the AC_PACKAGE_NAME lists. ##
15006 ## ------------------------------------------ ##
15007 _ASBOX
15009 sed "s/^/$as_me: WARNING: /" >&2
15011 esac
15012 echo "$as_me:$LINENO: checking for dl.h" >&5
15013 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
15014 if test "${ac_cv_header_dl_h+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017 ac_cv_header_dl_h=$ac_header_preproc
15019 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15020 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
15023 if test $ac_cv_header_dl_h = yes; then
15024 DLL=dl.h
15031 if test x${DLL} = xdlfcn.h; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_DLFCN_H 1
15035 _ACEOF
15037 echo "$as_me:$LINENO: checking for dlopen()" >&5
15038 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15047 main ()
15050 extern void* dlopen();
15051 dlopen();
15054 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag"
15067 || test ! -s conftest.err'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest$ac_exeext'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 echo "$as_me:$LINENO: result: yes" >&5
15080 echo "${ECHO_T}yes" >&6;
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_DLOPEN 1
15084 _ACEOF
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 echo "$as_me:$LINENO: result: no" >&5
15091 echo "${ECHO_T}no" >&6;
15092 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
15093 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
15094 olibs=$LIBS
15095 LIBS="$LIBS -ldl"
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h. */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15104 main ()
15107 extern void* dlopen();
15108 dlopen();
15111 return 0;
15113 _ACEOF
15114 rm -f conftest.$ac_objext conftest$ac_exeext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15116 (eval $ac_link) 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest$ac_exeext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 echo "$as_me:$LINENO: result: yes" >&5
15137 echo "${ECHO_T}yes" >&6;
15139 cat >>confdefs.h <<\_ACEOF
15140 #define HAVE_DLOPEN 1
15141 _ACEOF
15143 else
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 echo "$as_me:$LINENO: result: no" >&5
15148 echo "${ECHO_T}no" >&6;
15149 LIBS=$olibs
15151 rm -f conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15154 rm -f conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15156 echo "$as_me:$LINENO: checking for dlsym()" >&5
15157 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h. */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15166 main ()
15169 extern void* dlsym();
15170 dlsym();
15173 return 0;
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15179 ac_status=$?
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 echo "$as_me:$LINENO: result: yes" >&5
15199 echo "${ECHO_T}yes" >&6;
15201 cat >>confdefs.h <<\_ACEOF
15202 #define HAVE_DLSYM 1
15203 _ACEOF
15205 else
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 echo "$as_me:$LINENO: result: no" >&5
15210 echo "${ECHO_T}no" >&6;
15211 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15212 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
15213 olibs=$LIBS
15214 LIBS="$LIBS -ldl"
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15223 main ()
15226 extern void* dlsym();
15227 dlsym();
15230 return 0;
15232 _ACEOF
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15235 (eval $ac_link) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest$ac_exeext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 echo "$as_me:$LINENO: result: yes" >&5
15256 echo "${ECHO_T}yes" >&6;
15258 cat >>confdefs.h <<\_ACEOF
15259 #define HAVE_DLSYM 1
15260 _ACEOF
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15266 echo "$as_me:$LINENO: result: no" >&5
15267 echo "${ECHO_T}no" >&6;
15268 LIBS=$olibs
15270 rm -f conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15273 rm -f conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15275 elif test x${DLL} = xdl.h; then
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_DL_H 1
15279 _ACEOF
15281 echo "$as_me:$LINENO: checking for shl_load()" >&5
15282 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h. */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15291 main ()
15294 extern void* shl_load();
15295 shl_load();
15298 return 0;
15300 _ACEOF
15301 rm -f conftest.$ac_objext conftest$ac_exeext
15302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15303 (eval $ac_link) 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -z "$ac_c_werror_flag"
15311 || test ! -s conftest.err'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; } &&
15317 { ac_try='test -s conftest$ac_exeext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 echo "$as_me:$LINENO: result: yes" >&5
15324 echo "${ECHO_T}yes" >&6;
15326 cat >>confdefs.h <<\_ACEOF
15327 #define HAVE_SHL_LOAD 1
15328 _ACEOF
15330 else
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6;
15336 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15337 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15338 olibs=$LIBS
15339 LIBS="$LIBS -ldld"
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15348 main ()
15351 extern void* shl_load();
15352 shl_load();
15355 return 0;
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
15367 { ac_try='test -z "$ac_c_werror_flag"
15368 || test ! -s conftest.err'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 echo "$as_me:$LINENO: result: yes" >&5
15381 echo "${ECHO_T}yes" >&6;
15383 cat >>confdefs.h <<\_ACEOF
15384 #define HAVE_SHL_LOAD 1
15385 _ACEOF
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6;
15393 LIBS=$olibs
15395 rm -f conftest.err conftest.$ac_objext \
15396 conftest$ac_exeext conftest.$ac_ext
15398 rm -f conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15402 for ac_header in setjmp.h
15404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15406 echo "$as_me:$LINENO: checking for $ac_header" >&5
15407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15413 else
15414 # Is the header compilable?
15415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15424 #include <$ac_header>
15425 _ACEOF
15426 rm -f conftest.$ac_objext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15428 (eval $ac_compile) 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -z "$ac_c_werror_flag"
15436 || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest.$ac_objext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_compiler=no
15455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6
15459 # Is the header present?
15460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h. */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <$ac_header>
15469 _ACEOF
15470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } >/dev/null; then
15478 if test -s conftest.err; then
15479 ac_cpp_err=$ac_c_preproc_warn_flag
15480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15481 else
15482 ac_cpp_err=
15484 else
15485 ac_cpp_err=yes
15487 if test -z "$ac_cpp_err"; then
15488 ac_header_preproc=yes
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_preproc=no
15495 rm -f conftest.err conftest.$ac_ext
15496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15497 echo "${ECHO_T}$ac_header_preproc" >&6
15499 # So? What about this header?
15500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15501 yes:no: )
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15506 ac_header_preproc=yes
15508 no:yes:* )
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15522 cat <<\_ASBOX
15523 ## ------------------------------------------ ##
15524 ## Report this to the AC_PACKAGE_NAME lists. ##
15525 ## ------------------------------------------ ##
15526 _ASBOX
15528 sed "s/^/$as_me: WARNING: /" >&2
15530 esac
15531 echo "$as_me:$LINENO: checking for $ac_header" >&5
15532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536 eval "$as_ac_Header=\$ac_header_preproc"
15538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15545 _ACEOF
15549 done
15552 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15553 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15554 LIBS=`echo $LIBS | sed s/-ldl//`
15555 PERL_LIBS="$PERL_LIBS -ldl"
15559 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15560 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
15561 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15562 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15563 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
15564 || test "x$features" = "xhuge"; then
15565 LIBS="$LIBS -framework Carbon"
15566 echo "$as_me:$LINENO: result: yes" >&5
15567 echo "${ECHO_T}yes" >&6
15568 else
15569 echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6
15573 if test "x$MACARCH" = "xboth"; then
15574 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15577 echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15578 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15579 DEPEND_CFLAGS_FILTER=
15580 if test "$GCC" = yes; then
15581 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15582 if test "$gccmajor" -gt "2"; then
15583 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15586 if test "$DEPEND_CFLAGS_FILTER" = ""; then
15587 echo "$as_me:$LINENO: result: no" >&5
15588 echo "${ECHO_T}no" >&6
15589 else
15590 echo "$as_me:$LINENO: result: yes" >&5
15591 echo "${ECHO_T}yes" >&6
15595 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15596 cat >confcache <<\_ACEOF
15597 # This file is a shell script that caches the results of configure
15598 # tests run on this system so they can be shared between configure
15599 # scripts and configure runs, see configure's option --config-cache.
15600 # It is not useful on other systems. If it contains results you don't
15601 # want to keep, you may remove or edit it.
15603 # config.status only pays attention to the cache file if you give it
15604 # the --recheck option to rerun configure.
15606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15608 # following values.
15610 _ACEOF
15612 # The following way of writing the cache mishandles newlines in values,
15613 # but we know of no workaround that is simple, portable, and efficient.
15614 # So, don't put newlines in cache variables' values.
15615 # Ultrix sh set writes to stderr and can't be redirected directly,
15616 # and sets the high bit in the cache file unless we assign to the vars.
15618 (set) 2>&1 |
15619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15620 *ac_space=\ *)
15621 # `set' does not quote correctly, so add quotes (double-quote
15622 # substitution turns \\\\ into \\, and sed turns \\ into \).
15623 sed -n \
15624 "s/'/'\\\\''/g;
15625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15628 # `set' quotes correctly as required by POSIX, so do not add quotes.
15629 sed -n \
15630 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15632 esac;
15634 sed '
15635 t clear
15636 : clear
15637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15638 t end
15639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15640 : end' >>confcache
15641 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15642 if test -w $cache_file; then
15643 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15644 cat confcache >$cache_file
15645 else
15646 echo "not updating unwritable cache $cache_file"
15649 rm -f confcache
15651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15652 # Let make expand exec_prefix.
15653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15657 # trailing colons and then remove the whole line if VPATH becomes empty
15658 # (actually we leave an empty line to preserve line numbers).
15659 if test "x$srcdir" = x.; then
15660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15661 s/:*\$(srcdir):*/:/;
15662 s/:*\${srcdir}:*/:/;
15663 s/:*@srcdir@:*/:/;
15664 s/^\([^=]*=[ ]*\):*/\1/;
15665 s/:*$//;
15666 s/^[^=]*=[ ]*$//;
15670 DEFS=-DHAVE_CONFIG_H
15672 ac_libobjs=
15673 ac_ltlibobjs=
15674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15675 # 1. Remove the extension, and $U if already installed.
15676 ac_i=`echo "$ac_i" |
15677 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15678 # 2. Add them.
15679 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15680 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15681 done
15682 LIBOBJS=$ac_libobjs
15684 LTLIBOBJS=$ac_ltlibobjs
15688 : ${CONFIG_STATUS=./config.status}
15689 ac_clean_files_save=$ac_clean_files
15690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15693 cat >$CONFIG_STATUS <<_ACEOF
15694 #! $SHELL
15695 # Generated by $as_me.
15696 # Run this file to recreate the current configuration.
15697 # Compiler output produced by configure, useful for debugging
15698 # configure, is in config.log if it exists.
15700 debug=false
15701 ac_cs_recheck=false
15702 ac_cs_silent=false
15703 SHELL=\${CONFIG_SHELL-$SHELL}
15704 _ACEOF
15706 cat >>$CONFIG_STATUS <<\_ACEOF
15707 ## --------------------- ##
15708 ## M4sh Initialization. ##
15709 ## --------------------- ##
15711 # Be Bourne compatible
15712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15713 emulate sh
15714 NULLCMD=:
15715 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15716 # is contrary to our usage. Disable this feature.
15717 alias -g '${1+"$@"}'='"$@"'
15718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15719 set -o posix
15721 DUALCASE=1; export DUALCASE # for MKS sh
15723 # Support unset when possible.
15724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15725 as_unset=unset
15726 else
15727 as_unset=false
15731 # Work around bugs in pre-3.0 UWIN ksh.
15732 $as_unset ENV MAIL MAILPATH
15733 PS1='$ '
15734 PS2='> '
15735 PS4='+ '
15737 # NLS nuisances.
15738 for as_var in \
15739 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15740 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15741 LC_TELEPHONE LC_TIME
15743 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15744 eval $as_var=C; export $as_var
15745 else
15746 $as_unset $as_var
15748 done
15750 # Required to use basename.
15751 if expr a : '\(a\)' >/dev/null 2>&1; then
15752 as_expr=expr
15753 else
15754 as_expr=false
15757 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15758 as_basename=basename
15759 else
15760 as_basename=false
15764 # Name of the executable.
15765 as_me=`$as_basename "$0" ||
15766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15767 X"$0" : 'X\(//\)$' \| \
15768 X"$0" : 'X\(/\)$' \| \
15769 . : '\(.\)' 2>/dev/null ||
15770 echo X/"$0" |
15771 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15772 /^X\/\(\/\/\)$/{ s//\1/; q; }
15773 /^X\/\(\/\).*/{ s//\1/; q; }
15774 s/.*/./; q'`
15777 # PATH needs CR, and LINENO needs CR and PATH.
15778 # Avoid depending upon Character Ranges.
15779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15782 as_cr_digits='0123456789'
15783 as_cr_alnum=$as_cr_Letters$as_cr_digits
15785 # The user is always right.
15786 if test "${PATH_SEPARATOR+set}" != set; then
15787 echo "#! /bin/sh" >conf$$.sh
15788 echo "exit 0" >>conf$$.sh
15789 chmod +x conf$$.sh
15790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15791 PATH_SEPARATOR=';'
15792 else
15793 PATH_SEPARATOR=:
15795 rm -f conf$$.sh
15799 as_lineno_1=$LINENO
15800 as_lineno_2=$LINENO
15801 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15802 test "x$as_lineno_1" != "x$as_lineno_2" &&
15803 test "x$as_lineno_3" = "x$as_lineno_2" || {
15804 # Find who we are. Look in the path if we contain no path at all
15805 # relative or not.
15806 case $0 in
15807 *[\\/]* ) as_myself=$0 ;;
15808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $PATH
15811 IFS=$as_save_IFS
15812 test -z "$as_dir" && as_dir=.
15813 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15814 done
15817 esac
15818 # We did not find ourselves, most probably we were run as `sh COMMAND'
15819 # in which case we are not to be found in the path.
15820 if test "x$as_myself" = x; then
15821 as_myself=$0
15823 if test ! -f "$as_myself"; then
15824 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15825 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15826 { (exit 1); exit 1; }; }
15828 case $CONFIG_SHELL in
15830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15831 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15833 IFS=$as_save_IFS
15834 test -z "$as_dir" && as_dir=.
15835 for as_base in sh bash ksh sh5; do
15836 case $as_dir in
15838 if ("$as_dir/$as_base" -c '
15839 as_lineno_1=$LINENO
15840 as_lineno_2=$LINENO
15841 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15842 test "x$as_lineno_1" != "x$as_lineno_2" &&
15843 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15844 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15845 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15846 CONFIG_SHELL=$as_dir/$as_base
15847 export CONFIG_SHELL
15848 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15849 fi;;
15850 esac
15851 done
15852 done
15854 esac
15856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15857 # uniformly replaced by the line number. The first 'sed' inserts a
15858 # line-number line before each line; the second 'sed' does the real
15859 # work. The second script uses 'N' to pair each line-number line
15860 # with the numbered line, and appends trailing '-' during
15861 # substitution so that $LINENO is not a special case at line end.
15862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15863 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15864 sed '=' <$as_myself |
15865 sed '
15867 s,$,-,
15868 : loop
15869 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15870 t loop
15871 s,-$,,
15872 s,^['$as_cr_digits']*\n,,
15873 ' >$as_me.lineno &&
15874 chmod +x $as_me.lineno ||
15875 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15876 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15877 { (exit 1); exit 1; }; }
15879 # Don't try to exec as it changes $[0], causing all sort of problems
15880 # (the dirname of $[0] is not the place where we might find the
15881 # original and so on. Autoconf is especially sensible to this).
15882 . ./$as_me.lineno
15883 # Exit status is that of the last command.
15884 exit
15888 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15889 *c*,-n*) ECHO_N= ECHO_C='
15890 ' ECHO_T=' ' ;;
15891 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15892 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15893 esac
15895 if expr a : '\(a\)' >/dev/null 2>&1; then
15896 as_expr=expr
15897 else
15898 as_expr=false
15901 rm -f conf$$ conf$$.exe conf$$.file
15902 echo >conf$$.file
15903 if ln -s conf$$.file conf$$ 2>/dev/null; then
15904 # We could just check for DJGPP; but this test a) works b) is more generic
15905 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15906 if test -f conf$$.exe; then
15907 # Don't use ln at all; we don't have any links
15908 as_ln_s='cp -p'
15909 else
15910 as_ln_s='ln -s'
15912 elif ln conf$$.file conf$$ 2>/dev/null; then
15913 as_ln_s=ln
15914 else
15915 as_ln_s='cp -p'
15917 rm -f conf$$ conf$$.exe conf$$.file
15919 if mkdir -p . 2>/dev/null; then
15920 as_mkdir_p=:
15921 else
15922 test -d ./-p && rmdir ./-p
15923 as_mkdir_p=false
15926 as_executable_p="test -f"
15928 # Sed expression to map a string onto a valid CPP name.
15929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15931 # Sed expression to map a string onto a valid variable name.
15932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15935 # IFS
15936 # We need space, tab and new line, in precisely that order.
15937 as_nl='
15939 IFS=" $as_nl"
15941 # CDPATH.
15942 $as_unset CDPATH
15944 exec 6>&1
15946 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15947 # report actual input values of CONFIG_FILES etc. instead of their
15948 # values after options handling. Logging --version etc. is OK.
15949 exec 5>>config.log
15951 echo
15952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15953 ## Running $as_me. ##
15954 _ASBOX
15955 } >&5
15956 cat >&5 <<_CSEOF
15958 This file was extended by $as_me, which was
15959 generated by GNU Autoconf 2.59. Invocation command line was
15961 CONFIG_FILES = $CONFIG_FILES
15962 CONFIG_HEADERS = $CONFIG_HEADERS
15963 CONFIG_LINKS = $CONFIG_LINKS
15964 CONFIG_COMMANDS = $CONFIG_COMMANDS
15965 $ $0 $@
15967 _CSEOF
15968 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15969 echo >&5
15970 _ACEOF
15972 # Files that config.status was made for.
15973 if test -n "$ac_config_files"; then
15974 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15977 if test -n "$ac_config_headers"; then
15978 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15981 if test -n "$ac_config_links"; then
15982 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15985 if test -n "$ac_config_commands"; then
15986 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15989 cat >>$CONFIG_STATUS <<\_ACEOF
15991 ac_cs_usage="\
15992 \`$as_me' instantiates files from templates according to the
15993 current configuration.
15995 Usage: $0 [OPTIONS] [FILE]...
15997 -h, --help print this help, then exit
15998 -V, --version print version number, then exit
15999 -q, --quiet do not print progress messages
16000 -d, --debug don't remove temporary files
16001 --recheck update $as_me by reconfiguring in the same conditions
16002 --file=FILE[:TEMPLATE]
16003 instantiate the configuration file FILE
16004 --header=FILE[:TEMPLATE]
16005 instantiate the configuration header FILE
16007 Configuration files:
16008 $config_files
16010 Configuration headers:
16011 $config_headers
16013 Report bugs to <bug-autoconf@gnu.org>."
16014 _ACEOF
16016 cat >>$CONFIG_STATUS <<_ACEOF
16017 ac_cs_version="\\
16018 config.status
16019 configured by $0, generated by GNU Autoconf 2.59,
16020 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16022 Copyright (C) 2003 Free Software Foundation, Inc.
16023 This config.status script is free software; the Free Software Foundation
16024 gives unlimited permission to copy, distribute and modify it."
16025 srcdir=$srcdir
16026 _ACEOF
16028 cat >>$CONFIG_STATUS <<\_ACEOF
16029 # If no file are specified by the user, then we need to provide default
16030 # value. By we need to know if files were specified by the user.
16031 ac_need_defaults=:
16032 while test $# != 0
16034 case $1 in
16035 --*=*)
16036 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16037 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16038 ac_shift=:
16041 ac_option=$1
16042 ac_optarg=$2
16043 ac_shift=shift
16045 *) # This is not an option, so the user has probably given explicit
16046 # arguments.
16047 ac_option=$1
16048 ac_need_defaults=false;;
16049 esac
16051 case $ac_option in
16052 # Handling of the options.
16053 _ACEOF
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16056 ac_cs_recheck=: ;;
16057 --version | --vers* | -V )
16058 echo "$ac_cs_version"; exit 0 ;;
16059 --he | --h)
16060 # Conflict between --help and --header
16061 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16062 Try \`$0 --help' for more information." >&5
16063 echo "$as_me: error: ambiguous option: $1
16064 Try \`$0 --help' for more information." >&2;}
16065 { (exit 1); exit 1; }; };;
16066 --help | --hel | -h )
16067 echo "$ac_cs_usage"; exit 0 ;;
16068 --debug | --d* | -d )
16069 debug=: ;;
16070 --file | --fil | --fi | --f )
16071 $ac_shift
16072 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16073 ac_need_defaults=false;;
16074 --header | --heade | --head | --hea )
16075 $ac_shift
16076 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16077 ac_need_defaults=false;;
16078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16080 ac_cs_silent=: ;;
16082 # This is an error.
16083 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16084 Try \`$0 --help' for more information." >&5
16085 echo "$as_me: error: unrecognized option: $1
16086 Try \`$0 --help' for more information." >&2;}
16087 { (exit 1); exit 1; }; } ;;
16089 *) ac_config_targets="$ac_config_targets $1" ;;
16091 esac
16092 shift
16093 done
16095 ac_configure_extra_args=
16097 if $ac_cs_silent; then
16098 exec 6>/dev/null
16099 ac_configure_extra_args="$ac_configure_extra_args --silent"
16102 _ACEOF
16103 cat >>$CONFIG_STATUS <<_ACEOF
16104 if \$ac_cs_recheck; then
16105 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16106 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16109 _ACEOF
16115 cat >>$CONFIG_STATUS <<\_ACEOF
16116 for ac_config_target in $ac_config_targets
16118 case "$ac_config_target" in
16119 # Handling of arguments.
16120 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
16121 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
16122 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16123 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16124 { (exit 1); exit 1; }; };;
16125 esac
16126 done
16128 # If the user did not use the arguments to specify the items to instantiate,
16129 # then the envvar interface is used. Set only those that are not.
16130 # We use the long form for the default assignment because of an extremely
16131 # bizarre bug on SunOS 4.1.3.
16132 if $ac_need_defaults; then
16133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16137 # Have a temporary directory for convenience. Make it in the build tree
16138 # simply because there is no reason to put it here, and in addition,
16139 # creating and moving files from /tmp can sometimes cause problems.
16140 # Create a temporary directory, and hook for its removal unless debugging.
16141 $debug ||
16143 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16144 trap '{ (exit 1); exit 1; }' 1 2 13 15
16147 # Create a (secure) tmp directory for tmp files.
16150 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16151 test -n "$tmp" && test -d "$tmp"
16152 } ||
16154 tmp=./confstat$$-$RANDOM
16155 (umask 077 && mkdir $tmp)
16156 } ||
16158 echo "$me: cannot create a temporary directory in ." >&2
16159 { (exit 1); exit 1; }
16162 _ACEOF
16164 cat >>$CONFIG_STATUS <<_ACEOF
16167 # CONFIG_FILES section.
16170 # No need to generate the scripts if there are no CONFIG_FILES.
16171 # This happens for instance when ./config.status config.h
16172 if test -n "\$CONFIG_FILES"; then
16173 # Protect against being on the right side of a sed subst in config.status.
16174 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16175 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16176 s,@SHELL@,$SHELL,;t t
16177 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16178 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16179 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16180 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16181 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16182 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16183 s,@exec_prefix@,$exec_prefix,;t t
16184 s,@prefix@,$prefix,;t t
16185 s,@program_transform_name@,$program_transform_name,;t t
16186 s,@bindir@,$bindir,;t t
16187 s,@sbindir@,$sbindir,;t t
16188 s,@libexecdir@,$libexecdir,;t t
16189 s,@datadir@,$datadir,;t t
16190 s,@sysconfdir@,$sysconfdir,;t t
16191 s,@sharedstatedir@,$sharedstatedir,;t t
16192 s,@localstatedir@,$localstatedir,;t t
16193 s,@libdir@,$libdir,;t t
16194 s,@includedir@,$includedir,;t t
16195 s,@oldincludedir@,$oldincludedir,;t t
16196 s,@infodir@,$infodir,;t t
16197 s,@mandir@,$mandir,;t t
16198 s,@build_alias@,$build_alias,;t t
16199 s,@host_alias@,$host_alias,;t t
16200 s,@target_alias@,$target_alias,;t t
16201 s,@DEFS@,$DEFS,;t t
16202 s,@ECHO_C@,$ECHO_C,;t t
16203 s,@ECHO_N@,$ECHO_N,;t t
16204 s,@ECHO_T@,$ECHO_T,;t t
16205 s,@LIBS@,$LIBS,;t t
16206 s,@SET_MAKE@,$SET_MAKE,;t t
16207 s,@CC@,$CC,;t t
16208 s,@CFLAGS@,$CFLAGS,;t t
16209 s,@LDFLAGS@,$LDFLAGS,;t t
16210 s,@CPPFLAGS@,$CPPFLAGS,;t t
16211 s,@ac_ct_CC@,$ac_ct_CC,;t t
16212 s,@EXEEXT@,$EXEEXT,;t t
16213 s,@OBJEXT@,$OBJEXT,;t t
16214 s,@CPP@,$CPP,;t t
16215 s,@EGREP@,$EGREP,;t t
16216 s,@AWK@,$AWK,;t t
16217 s,@STRIP@,$STRIP,;t t
16218 s,@CPP_MM@,$CPP_MM,;t t
16219 s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16220 s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16221 s,@VIMNAME@,$VIMNAME,;t t
16222 s,@EXNAME@,$EXNAME,;t t
16223 s,@VIEWNAME@,$VIEWNAME,;t t
16224 s,@line_break@,$line_break,;t t
16225 s,@dovimdiff@,$dovimdiff,;t t
16226 s,@dogvimdiff@,$dogvimdiff,;t t
16227 s,@compiledby@,$compiledby,;t t
16228 s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16229 s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16230 s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16231 s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16232 s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16233 s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16234 s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16235 s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16236 s,@shrpenv@,$shrpenv,;t t
16237 s,@PERL_SRC@,$PERL_SRC,;t t
16238 s,@PERL_OBJ@,$PERL_OBJ,;t t
16239 s,@PERL_PRO@,$PERL_PRO,;t t
16240 s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16241 s,@PERL_LIBS@,$PERL_LIBS,;t t
16242 s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16243 s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16244 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16245 s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16246 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16247 s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16248 s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16249 s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16250 s,@TCL_SRC@,$TCL_SRC,;t t
16251 s,@TCL_OBJ@,$TCL_OBJ,;t t
16252 s,@TCL_PRO@,$TCL_PRO,;t t
16253 s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16254 s,@TCL_LIBS@,$TCL_LIBS,;t t
16255 s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16256 s,@RUBY_SRC@,$RUBY_SRC,;t t
16257 s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16258 s,@RUBY_PRO@,$RUBY_PRO,;t t
16259 s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16260 s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16261 s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16262 s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16263 s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16264 s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16265 s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16266 s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16267 s,@xmkmfpath@,$xmkmfpath,;t t
16268 s,@X_CFLAGS@,$X_CFLAGS,;t t
16269 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16270 s,@X_LIBS@,$X_LIBS,;t t
16271 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16272 s,@X_LIB@,$X_LIB,;t t
16273 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16274 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16275 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16276 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16277 s,@GTK_LIBS@,$GTK_LIBS,;t t
16278 s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16279 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16280 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16281 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16282 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16283 s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16284 s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16285 s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16286 s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16287 s,@GUITYPE@,$GUITYPE,;t t
16288 s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16289 s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16290 s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16291 s,@TAGPRG@,$TAGPRG,;t t
16292 s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16293 s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16294 s,@MSGFMT@,$MSGFMT,;t t
16295 s,@MAKEMO@,$MAKEMO,;t t
16296 s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16297 s,@LIBOBJS@,$LIBOBJS,;t t
16298 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16299 CEOF
16301 _ACEOF
16303 cat >>$CONFIG_STATUS <<\_ACEOF
16304 # Split the substitutions into bite-sized pieces for seds with
16305 # small command number limits, like on Digital OSF/1 and HP-UX.
16306 ac_max_sed_lines=48
16307 ac_sed_frag=1 # Number of current file.
16308 ac_beg=1 # First line for current file.
16309 ac_end=$ac_max_sed_lines # Line after last line for current file.
16310 ac_more_lines=:
16311 ac_sed_cmds=
16312 while $ac_more_lines; do
16313 if test $ac_beg -gt 1; then
16314 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16315 else
16316 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16318 if test ! -s $tmp/subs.frag; then
16319 ac_more_lines=false
16320 else
16321 # The purpose of the label and of the branching condition is to
16322 # speed up the sed processing (if there are no `@' at all, there
16323 # is no need to browse any of the substitutions).
16324 # These are the two extra sed commands mentioned above.
16325 (echo ':t
16326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16327 if test -z "$ac_sed_cmds"; then
16328 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16329 else
16330 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16332 ac_sed_frag=`expr $ac_sed_frag + 1`
16333 ac_beg=$ac_end
16334 ac_end=`expr $ac_end + $ac_max_sed_lines`
16336 done
16337 if test -z "$ac_sed_cmds"; then
16338 ac_sed_cmds=cat
16340 fi # test -n "$CONFIG_FILES"
16342 _ACEOF
16343 cat >>$CONFIG_STATUS <<\_ACEOF
16344 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16346 case $ac_file in
16347 - | *:- | *:-:* ) # input from stdin
16348 cat >$tmp/stdin
16349 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16351 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16353 * ) ac_file_in=$ac_file.in ;;
16354 esac
16356 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16359 X"$ac_file" : 'X\(//\)[^/]' \| \
16360 X"$ac_file" : 'X\(//\)$' \| \
16361 X"$ac_file" : 'X\(/\)' \| \
16362 . : '\(.\)' 2>/dev/null ||
16363 echo X"$ac_file" |
16364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16366 /^X\(\/\/\)$/{ s//\1/; q; }
16367 /^X\(\/\).*/{ s//\1/; q; }
16368 s/.*/./; q'`
16369 { if $as_mkdir_p; then
16370 mkdir -p "$ac_dir"
16371 else
16372 as_dir="$ac_dir"
16373 as_dirs=
16374 while test ! -d "$as_dir"; do
16375 as_dirs="$as_dir $as_dirs"
16376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16378 X"$as_dir" : 'X\(//\)[^/]' \| \
16379 X"$as_dir" : 'X\(//\)$' \| \
16380 X"$as_dir" : 'X\(/\)' \| \
16381 . : '\(.\)' 2>/dev/null ||
16382 echo X"$as_dir" |
16383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16385 /^X\(\/\/\)$/{ s//\1/; q; }
16386 /^X\(\/\).*/{ s//\1/; q; }
16387 s/.*/./; q'`
16388 done
16389 test ! -n "$as_dirs" || mkdir $as_dirs
16390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16391 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16392 { (exit 1); exit 1; }; }; }
16394 ac_builddir=.
16396 if test "$ac_dir" != .; then
16397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16398 # A "../" for each directory in $ac_dir_suffix.
16399 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16400 else
16401 ac_dir_suffix= ac_top_builddir=
16404 case $srcdir in
16405 .) # No --srcdir option. We are building in place.
16406 ac_srcdir=.
16407 if test -z "$ac_top_builddir"; then
16408 ac_top_srcdir=.
16409 else
16410 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16411 fi ;;
16412 [\\/]* | ?:[\\/]* ) # Absolute path.
16413 ac_srcdir=$srcdir$ac_dir_suffix;
16414 ac_top_srcdir=$srcdir ;;
16415 *) # Relative path.
16416 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16417 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16418 esac
16420 # Do not use `cd foo && pwd` to compute absolute paths, because
16421 # the directories may not exist.
16422 case `pwd` in
16423 .) ac_abs_builddir="$ac_dir";;
16425 case "$ac_dir" in
16426 .) ac_abs_builddir=`pwd`;;
16427 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16428 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16429 esac;;
16430 esac
16431 case $ac_abs_builddir in
16432 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16434 case ${ac_top_builddir}. in
16435 .) ac_abs_top_builddir=$ac_abs_builddir;;
16436 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16437 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16438 esac;;
16439 esac
16440 case $ac_abs_builddir in
16441 .) ac_abs_srcdir=$ac_srcdir;;
16443 case $ac_srcdir in
16444 .) ac_abs_srcdir=$ac_abs_builddir;;
16445 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16446 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16447 esac;;
16448 esac
16449 case $ac_abs_builddir in
16450 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16452 case $ac_top_srcdir in
16453 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16454 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16455 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16456 esac;;
16457 esac
16461 if test x"$ac_file" != x-; then
16462 { echo "$as_me:$LINENO: creating $ac_file" >&5
16463 echo "$as_me: creating $ac_file" >&6;}
16464 rm -f "$ac_file"
16466 # Let's still pretend it is `configure' which instantiates (i.e., don't
16467 # use $as_me), people would be surprised to read:
16468 # /* config.h. Generated by config.status. */
16469 if test x"$ac_file" = x-; then
16470 configure_input=
16471 else
16472 configure_input="$ac_file. "
16474 configure_input=$configure_input"Generated from `echo $ac_file_in |
16475 sed 's,.*/,,'` by configure."
16477 # First look for the input files in the build tree, otherwise in the
16478 # src tree.
16479 ac_file_inputs=`IFS=:
16480 for f in $ac_file_in; do
16481 case $f in
16482 -) echo $tmp/stdin ;;
16483 [\\/$]*)
16484 # Absolute (can't be DOS-style, as IFS=:)
16485 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16486 echo "$as_me: error: cannot find input file: $f" >&2;}
16487 { (exit 1); exit 1; }; }
16488 echo "$f";;
16489 *) # Relative
16490 if test -f "$f"; then
16491 # Build tree
16492 echo "$f"
16493 elif test -f "$srcdir/$f"; then
16494 # Source tree
16495 echo "$srcdir/$f"
16496 else
16497 # /dev/null tree
16498 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16499 echo "$as_me: error: cannot find input file: $f" >&2;}
16500 { (exit 1); exit 1; }; }
16501 fi;;
16502 esac
16503 done` || { (exit 1); exit 1; }
16504 _ACEOF
16505 cat >>$CONFIG_STATUS <<_ACEOF
16506 sed "$ac_vpsub
16507 $extrasub
16508 _ACEOF
16509 cat >>$CONFIG_STATUS <<\_ACEOF
16511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16512 s,@configure_input@,$configure_input,;t t
16513 s,@srcdir@,$ac_srcdir,;t t
16514 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16515 s,@top_srcdir@,$ac_top_srcdir,;t t
16516 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16517 s,@builddir@,$ac_builddir,;t t
16518 s,@abs_builddir@,$ac_abs_builddir,;t t
16519 s,@top_builddir@,$ac_top_builddir,;t t
16520 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16521 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16522 rm -f $tmp/stdin
16523 if test x"$ac_file" != x-; then
16524 mv $tmp/out $ac_file
16525 else
16526 cat $tmp/out
16527 rm -f $tmp/out
16530 done
16531 _ACEOF
16532 cat >>$CONFIG_STATUS <<\_ACEOF
16535 # CONFIG_HEADER section.
16538 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16539 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16541 # ac_d sets the value in "#define NAME VALUE" lines.
16542 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16543 ac_dB='[ ].*$,\1#\2'
16544 ac_dC=' '
16545 ac_dD=',;t'
16546 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16547 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16548 ac_uB='$,\1#\2define\3'
16549 ac_uC=' '
16550 ac_uD=',;t'
16552 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16554 case $ac_file in
16555 - | *:- | *:-:* ) # input from stdin
16556 cat >$tmp/stdin
16557 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16559 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16561 * ) ac_file_in=$ac_file.in ;;
16562 esac
16564 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16565 echo "$as_me: creating $ac_file" >&6;}
16567 # First look for the input files in the build tree, otherwise in the
16568 # src tree.
16569 ac_file_inputs=`IFS=:
16570 for f in $ac_file_in; do
16571 case $f in
16572 -) echo $tmp/stdin ;;
16573 [\\/$]*)
16574 # Absolute (can't be DOS-style, as IFS=:)
16575 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16576 echo "$as_me: error: cannot find input file: $f" >&2;}
16577 { (exit 1); exit 1; }; }
16578 # Do quote $f, to prevent DOS paths from being IFS'd.
16579 echo "$f";;
16580 *) # Relative
16581 if test -f "$f"; then
16582 # Build tree
16583 echo "$f"
16584 elif test -f "$srcdir/$f"; then
16585 # Source tree
16586 echo "$srcdir/$f"
16587 else
16588 # /dev/null tree
16589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16590 echo "$as_me: error: cannot find input file: $f" >&2;}
16591 { (exit 1); exit 1; }; }
16592 fi;;
16593 esac
16594 done` || { (exit 1); exit 1; }
16595 # Remove the trailing spaces.
16596 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16598 _ACEOF
16600 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16601 # `conftest.undefs', that substitutes the proper values into
16602 # config.h.in to produce config.h. The first handles `#define'
16603 # templates, and the second `#undef' templates.
16604 # And first: Protect against being on the right side of a sed subst in
16605 # config.status. Protect against being in an unquoted here document
16606 # in config.status.
16607 rm -f conftest.defines conftest.undefs
16608 # Using a here document instead of a string reduces the quoting nightmare.
16609 # Putting comments in sed scripts is not portable.
16611 # `end' is used to avoid that the second main sed command (meant for
16612 # 0-ary CPP macros) applies to n-ary macro definitions.
16613 # See the Autoconf documentation for `clear'.
16614 cat >confdef2sed.sed <<\_ACEOF
16615 s/[\\&,]/\\&/g
16616 s,[\\$`],\\&,g
16617 t clear
16618 : clear
16619 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16620 t end
16621 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16622 : end
16623 _ACEOF
16624 # If some macros were called several times there might be several times
16625 # the same #defines, which is useless. Nevertheless, we may not want to
16626 # sort them, since we want the *last* AC-DEFINE to be honored.
16627 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16628 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16629 rm -f confdef2sed.sed
16631 # This sed command replaces #undef with comments. This is necessary, for
16632 # example, in the case of _POSIX_SOURCE, which is predefined and required
16633 # on some systems where configure will not decide to define it.
16634 cat >>conftest.undefs <<\_ACEOF
16635 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16636 _ACEOF
16638 # Break up conftest.defines because some shells have a limit on the size
16639 # of here documents, and old seds have small limits too (100 cmds).
16640 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16641 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16642 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16643 echo ' :' >>$CONFIG_STATUS
16644 rm -f conftest.tail
16645 while grep . conftest.defines >/dev/null
16647 # Write a limited-size here document to $tmp/defines.sed.
16648 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16649 # Speed up: don't consider the non `#define' lines.
16650 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16651 # Work around the forget-to-reset-the-flag bug.
16652 echo 't clr' >>$CONFIG_STATUS
16653 echo ': clr' >>$CONFIG_STATUS
16654 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16655 echo 'CEOF
16656 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16657 rm -f $tmp/in
16658 mv $tmp/out $tmp/in
16659 ' >>$CONFIG_STATUS
16660 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16661 rm -f conftest.defines
16662 mv conftest.tail conftest.defines
16663 done
16664 rm -f conftest.defines
16665 echo ' fi # grep' >>$CONFIG_STATUS
16666 echo >>$CONFIG_STATUS
16668 # Break up conftest.undefs because some shells have a limit on the size
16669 # of here documents, and old seds have small limits too (100 cmds).
16670 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16671 rm -f conftest.tail
16672 while grep . conftest.undefs >/dev/null
16674 # Write a limited-size here document to $tmp/undefs.sed.
16675 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16676 # Speed up: don't consider the non `#undef'
16677 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16678 # Work around the forget-to-reset-the-flag bug.
16679 echo 't clr' >>$CONFIG_STATUS
16680 echo ': clr' >>$CONFIG_STATUS
16681 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16682 echo 'CEOF
16683 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16684 rm -f $tmp/in
16685 mv $tmp/out $tmp/in
16686 ' >>$CONFIG_STATUS
16687 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16688 rm -f conftest.undefs
16689 mv conftest.tail conftest.undefs
16690 done
16691 rm -f conftest.undefs
16693 cat >>$CONFIG_STATUS <<\_ACEOF
16694 # Let's still pretend it is `configure' which instantiates (i.e., don't
16695 # use $as_me), people would be surprised to read:
16696 # /* config.h. Generated by config.status. */
16697 if test x"$ac_file" = x-; then
16698 echo "/* Generated by configure. */" >$tmp/config.h
16699 else
16700 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16702 cat $tmp/in >>$tmp/config.h
16703 rm -f $tmp/in
16704 if test x"$ac_file" != x-; then
16705 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16706 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16707 echo "$as_me: $ac_file is unchanged" >&6;}
16708 else
16709 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16711 X"$ac_file" : 'X\(//\)[^/]' \| \
16712 X"$ac_file" : 'X\(//\)$' \| \
16713 X"$ac_file" : 'X\(/\)' \| \
16714 . : '\(.\)' 2>/dev/null ||
16715 echo X"$ac_file" |
16716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16718 /^X\(\/\/\)$/{ s//\1/; q; }
16719 /^X\(\/\).*/{ s//\1/; q; }
16720 s/.*/./; q'`
16721 { if $as_mkdir_p; then
16722 mkdir -p "$ac_dir"
16723 else
16724 as_dir="$ac_dir"
16725 as_dirs=
16726 while test ! -d "$as_dir"; do
16727 as_dirs="$as_dir $as_dirs"
16728 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16730 X"$as_dir" : 'X\(//\)[^/]' \| \
16731 X"$as_dir" : 'X\(//\)$' \| \
16732 X"$as_dir" : 'X\(/\)' \| \
16733 . : '\(.\)' 2>/dev/null ||
16734 echo X"$as_dir" |
16735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16737 /^X\(\/\/\)$/{ s//\1/; q; }
16738 /^X\(\/\).*/{ s//\1/; q; }
16739 s/.*/./; q'`
16740 done
16741 test ! -n "$as_dirs" || mkdir $as_dirs
16742 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16743 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16744 { (exit 1); exit 1; }; }; }
16746 rm -f $ac_file
16747 mv $tmp/config.h $ac_file
16749 else
16750 cat $tmp/config.h
16751 rm -f $tmp/config.h
16753 done
16754 _ACEOF
16756 cat >>$CONFIG_STATUS <<\_ACEOF
16758 { (exit 0); exit 0; }
16759 _ACEOF
16760 chmod +x $CONFIG_STATUS
16761 ac_clean_files=$ac_clean_files_save
16764 # configure is writing to config.log, and then calls config.status.
16765 # config.status does its own redirection, appending to config.log.
16766 # Unfortunately, on DOS this fails, as config.log is still kept open
16767 # by configure, so config.status won't be able to write to it; its
16768 # output is simply discarded. So we exec the FD to /dev/null,
16769 # effectively closing config.log, so it can be properly (re)opened and
16770 # appended to by config.status. When coming back to configure, we
16771 # need to make the FD available again.
16772 if test "$no_create" != yes; then
16773 ac_cs_success=:
16774 ac_config_status_args=
16775 test "$silent" = yes &&
16776 ac_config_status_args="$ac_config_status_args --quiet"
16777 exec 5>/dev/null
16778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16779 exec 5>>config.log
16780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16781 # would make configure fail if this is the last instruction.
16782 $ac_cs_success || { (exit 1); exit 1; }