Synced from the latest CVS repository.
[vim_extended.git] / src / auto / configure
blob386fc810e15ec8448c9c9c65dea6fa9d5076b4c1
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-selinux Don't check for SELinux support.
849 --disable-xsmp Disable XSMP session management
850 --disable-xsmp-interact Disable XSMP interaction
851 --enable-mzschemeinterp Include MzScheme interpreter.
852 --enable-perlinterp Include Perl interpreter.
853 --enable-pythoninterp Include Python interpreter.
854 --enable-tclinterp Include Tcl interpreter.
855 --enable-rubyinterp Include Ruby interpreter.
856 --enable-cscope Include cscope interface.
857 --enable-workshop Include Sun Visual Workshop support.
858 --disable-netbeans Disable NetBeans integration support.
859 --enable-sniff Include Sniff interface.
860 --enable-multibyte Include multibyte editing support.
861 --enable-hangulinput Include Hangul input support.
862 --enable-xim Include XIM input support.
863 --enable-fontset Include X fontset output support.
864 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
865 --enable-gtk-check If auto-select GUI, check for GTK default=yes
866 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
867 --enable-gnome-check If GTK GUI, check for GNOME default=no
868 --enable-motif-check If auto-select GUI, check for Motif default=yes
869 --enable-athena-check If auto-select GUI, check for Athena default=yes
870 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
871 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
872 --disable-gtktest Do not try to compile and run a test GTK program
873 --disable-acl Don't check for ACL support.
874 --disable-gpm Don't use gpm (Linux mouse daemon).
875 --disable-nls Don't support NLS (gettext()).
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>auto/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
3395 if test "x$CARBON" = "xyes"; then
3396 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
3397 with_x=no
3402 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3403 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3414 have_local_include=''
3415 have_local_lib=''
3416 if test "$GCC" = yes; then
3417 echo 'void f(){}' > conftest.c
3418 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3419 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3420 rm -f conftest.c conftest.o
3422 if test -z "$have_local_lib" -a -d /usr/local/lib; then
3423 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3424 if test "$tt" = "$LDFLAGS"; then
3425 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3428 if test -z "$have_local_include" -a -d /usr/local/include; then
3429 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3430 if test "$tt" = "$CPPFLAGS"; then
3431 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3435 echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3436 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3438 # Check whether --with-vim-name or --without-vim-name was given.
3439 if test "${with_vim_name+set}" = set; then
3440 withval="$with_vim_name"
3441 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3442 echo "${ECHO_T}$VIMNAME" >&6
3443 else
3444 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3445 echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3448 echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3449 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3451 # Check whether --with-ex-name or --without-ex-name was given.
3452 if test "${with_ex_name+set}" = set; then
3453 withval="$with_ex_name"
3454 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3455 echo "${ECHO_T}$EXNAME" >&6
3456 else
3457 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3458 echo "${ECHO_T}Defaulting to ex" >&6
3461 echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3462 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3464 # Check whether --with-view-name or --without-view-name was given.
3465 if test "${with_view_name+set}" = set; then
3466 withval="$with_view_name"
3467 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3468 echo "${ECHO_T}$VIEWNAME" >&6
3469 else
3470 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3471 echo "${ECHO_T}Defaulting to view" >&6
3475 echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3476 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3478 # Check whether --with-global-runtime or --without-global-runtime was given.
3479 if test "${with_global_runtime+set}" = set; then
3480 withval="$with_global_runtime"
3481 echo "$as_me:$LINENO: result: $withval" >&5
3482 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3483 #define RUNTIME_GLOBAL "$withval"
3484 _ACEOF
3486 else
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3491 echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3492 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3494 # Check whether --with-modified-by or --without-modified-by was given.
3495 if test "${with_modified_by+set}" = set; then
3496 withval="$with_modified_by"
3497 echo "$as_me:$LINENO: result: $withval" >&5
3498 echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3499 #define MODIFIED_BY "$withval"
3500 _ACEOF
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3508 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3517 main ()
3519 /* TryCompile function for CharSet.
3520 Treat any failure as ASCII for compatibility with existing art.
3521 Use compile-time rather than run-time tests for cross-compiler
3522 tolerance. */
3523 #if '0'!=240
3524 make an error "Character set is not EBCDIC"
3525 #endif
3527 return 0;
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 # TryCompile action if true
3553 cf_cv_ebcdic=yes
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 # TryCompile action if false
3559 cf_cv_ebcdic=no
3561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562 # end of TryCompile ])
3563 # end of CacheVal CvEbcdic
3564 echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3565 echo "${ECHO_T}$cf_cv_ebcdic" >&6
3566 case "$cf_cv_ebcdic" in #(vi
3567 yes) cat >>confdefs.h <<\_ACEOF
3568 #define EBCDIC 1
3569 _ACEOF
3571 line_break='"\\n"'
3573 *) line_break='"\\012"';;
3574 esac
3577 if test "$cf_cv_ebcdic" = "yes"; then
3578 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3579 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3580 case `uname` in
3581 OS/390) OS390Unix="yes";
3582 if test "$CC" = "cc"; then
3583 ccm="$_CC_CCMODE"
3584 ccn="CC"
3585 else
3586 if test "$CC" = "c89"; then
3587 ccm="$_CC_C89MODE"
3588 ccn="C89"
3589 else
3590 ccm=1
3593 if test "$ccm" != "1"; then
3594 echo ""
3595 echo "------------------------------------------"
3596 echo " On OS/390 Unix, the environment variable"
3597 echo " __CC_${ccn}MODE must be set to \"1\"!"
3598 echo " Do:"
3599 echo " export _CC_${ccn}MODE=1"
3600 echo " and then call configure again."
3601 echo "------------------------------------------"
3602 exit 1
3604 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3605 echo "$as_me:$LINENO: result: yes" >&5
3606 echo "${ECHO_T}yes" >&6
3608 *) OS390Unix="no";
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3612 esac
3615 echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
3616 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6
3617 # Check whether --enable-selinux or --disable-selinux was given.
3618 if test "${enable_selinux+set}" = set; then
3619 enableval="$enable_selinux"
3621 else
3622 enable_selinux="yes"
3624 if test "$enable_selinux" = "yes"; then
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
3628 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
3629 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632 ac_check_lib_save_LIBS=$LIBS
3633 LIBS="-lselinux $LIBS"
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h. */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 #ifdef __cplusplus
3643 extern "C"
3644 #endif
3645 /* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3647 char is_selinux_enabled ();
3649 main ()
3651 is_selinux_enabled ();
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest$ac_exeext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_cv_lib_selinux_is_selinux_enabled=yes
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ac_cv_lib_selinux_is_selinux_enabled=no
3685 rm -f conftest.err conftest.$ac_objext \
3686 conftest$ac_exeext conftest.$ac_ext
3687 LIBS=$ac_check_lib_save_LIBS
3689 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
3690 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
3691 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
3692 LIBS="$LIBS -lselinux"
3693 cat >>confdefs.h <<\_ACEOF
3694 #define HAVE_SELINUX 1
3695 _ACEOF
3699 else
3700 echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6
3705 echo "$as_me:$LINENO: checking --with-features argument" >&5
3706 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3708 # Check whether --with-features or --without-features was given.
3709 if test "${with_features+set}" = set; then
3710 withval="$with_features"
3711 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3712 echo "${ECHO_T}$features" >&6
3713 else
3714 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3715 echo "${ECHO_T}Defaulting to normal" >&6
3718 dovimdiff=""
3719 dogvimdiff=""
3720 case "$features" in
3721 tiny) cat >>confdefs.h <<\_ACEOF
3722 #define FEAT_TINY 1
3723 _ACEOF
3725 small) cat >>confdefs.h <<\_ACEOF
3726 #define FEAT_SMALL 1
3727 _ACEOF
3729 normal) cat >>confdefs.h <<\_ACEOF
3730 #define FEAT_NORMAL 1
3731 _ACEOF
3732 dovimdiff="installvimdiff";
3733 dogvimdiff="installgvimdiff" ;;
3734 big) cat >>confdefs.h <<\_ACEOF
3735 #define FEAT_BIG 1
3736 _ACEOF
3737 dovimdiff="installvimdiff";
3738 dogvimdiff="installgvimdiff" ;;
3739 huge) cat >>confdefs.h <<\_ACEOF
3740 #define FEAT_HUGE 1
3741 _ACEOF
3742 dovimdiff="installvimdiff";
3743 dogvimdiff="installgvimdiff" ;;
3744 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3745 echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3746 esac
3751 echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3752 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3754 # Check whether --with-compiledby or --without-compiledby was given.
3755 if test "${with_compiledby+set}" = set; then
3756 withval="$with_compiledby"
3757 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3758 echo "${ECHO_T}$withval" >&6
3759 else
3760 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3766 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3767 # Check whether --enable-xsmp or --disable-xsmp was given.
3768 if test "${enable_xsmp+set}" = set; then
3769 enableval="$enable_xsmp"
3771 else
3772 enable_xsmp="yes"
3775 if test "$enable_xsmp" = "yes"; then
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3778 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3779 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3780 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3781 if test "${enable_xsmp_interact+set}" = set; then
3782 enableval="$enable_xsmp_interact"
3784 else
3785 enable_xsmp_interact="yes"
3787 if test "$enable_xsmp_interact" = "yes"; then
3788 echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 cat >>confdefs.h <<\_ACEOF
3791 #define USE_XSMP_INTERACT 1
3792 _ACEOF
3794 else
3795 echo "$as_me:$LINENO: result: yes" >&5
3796 echo "${ECHO_T}yes" >&6
3798 else
3799 echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3803 echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3804 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3805 # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3806 if test "${enable_mzschemeinterp+set}" = set; then
3807 enableval="$enable_mzschemeinterp"
3809 else
3810 enable_mzschemeinterp="no"
3812 echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3813 echo "${ECHO_T}$enable_mzschemeinterp" >&6
3815 if test "$enable_mzschemeinterp" = "yes"; then
3818 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3819 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3821 # Check whether --with-plthome or --without-plthome was given.
3822 if test "${with_plthome+set}" = set; then
3823 withval="$with_plthome"
3824 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3825 echo "${ECHO_T}$with_plthome" >&6
3826 else
3827 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3828 echo "${ECHO_T}\"no\"" >&6
3831 if test "X$with_plthome" != "X"; then
3832 vi_cv_path_mzscheme_pfx="$with_plthome"
3833 else
3834 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3835 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3836 if test "X$PLTHOME" != "X"; then
3837 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3838 echo "${ECHO_T}\"$PLTHOME\"" >&6
3839 vi_cv_path_mzscheme_pfx="$PLTHOME"
3840 else
3841 echo "$as_me:$LINENO: result: \"not set\"" >&5
3842 echo "${ECHO_T}\"not set\"" >&6
3843 # Extract the first word of "mzscheme", so it can be a program name with args.
3844 set dummy mzscheme; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 case $vi_cv_path_mzscheme in
3851 [\\/]* | ?:[\\/]*)
3852 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3870 esac
3872 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3874 if test -n "$vi_cv_path_mzscheme"; then
3875 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3876 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3883 if test "X$vi_cv_path_mzscheme" != "X"; then
3884 lsout=`ls -l $vi_cv_path_mzscheme`
3885 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3886 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3890 if test "X$vi_cv_path_mzscheme" != "X"; then
3891 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3892 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3893 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 vi_cv_path_mzscheme_pfx=`
3897 ${vi_cv_path_mzscheme} -evm \
3898 "(display (simplify-path \
3899 (build-path (call-with-values \
3900 (lambda () (split-path (find-system-path (quote exec-file)))) \
3901 (lambda (base name must-be-dir?) base)) (quote up))))"`
3903 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3904 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3905 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3910 SCHEME_INC=
3911 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3912 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3913 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3914 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3915 echo "$as_me:$LINENO: result: \"yes\"" >&5
3916 echo "${ECHO_T}\"yes\"" >&6
3917 else
3918 echo "$as_me:$LINENO: result: \"no\"" >&5
3919 echo "${ECHO_T}\"no\"" >&6
3920 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
3921 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6
3922 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
3923 echo "$as_me:$LINENO: result: \"yes\"" >&5
3924 echo "${ECHO_T}\"yes\"" >&6
3925 SCHEME_INC=/plt
3926 else
3927 echo "$as_me:$LINENO: result: \"no\"" >&5
3928 echo "${ECHO_T}\"no\"" >&6
3929 vi_cv_path_mzscheme_pfx=
3934 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3935 if test "x$MACOSX" = "xyes"; then
3936 MZSCHEME_LIBS="-framework PLT_MzScheme"
3937 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3938 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
3939 else
3940 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
3941 if test "$GCC" = yes; then
3942 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3943 elif test "`(uname) 2>/dev/null`" = SunOS &&
3944 uname -r | grep '^5' >/dev/null; then
3945 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3948 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
3949 SCHEME_COLLECTS=lib/plt/
3951 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
3952 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
3953 MZSCHEME_SRC="if_mzsch.c"
3954 MZSCHEME_OBJ="objects/if_mzsch.o"
3955 MZSCHEME_PRO="if_mzsch.pro"
3956 cat >>confdefs.h <<\_ACEOF
3957 #define FEAT_MZSCHEME 1
3958 _ACEOF
3969 echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3970 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3971 # Check whether --enable-perlinterp or --disable-perlinterp was given.
3972 if test "${enable_perlinterp+set}" = set; then
3973 enableval="$enable_perlinterp"
3975 else
3976 enable_perlinterp="no"
3978 echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3979 echo "${ECHO_T}$enable_perlinterp" >&6
3980 if test "$enable_perlinterp" = "yes"; then
3982 # Extract the first word of "perl", so it can be a program name with args.
3983 set dummy perl; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989 case $vi_cv_path_perl in
3990 [\\/]* | ?:[\\/]*)
3991 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4009 esac
4011 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4013 if test -n "$vi_cv_path_perl"; then
4014 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4015 echo "${ECHO_T}$vi_cv_path_perl" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4021 if test "X$vi_cv_path_perl" != "X"; then
4022 echo "$as_me:$LINENO: checking Perl version" >&5
4023 echo $ECHO_N "checking Perl version... $ECHO_C" >&6
4024 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4025 eval `$vi_cv_path_perl -V:usethreads`
4026 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4027 badthreads=no
4028 else
4029 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4030 eval `$vi_cv_path_perl -V:use5005threads`
4031 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4032 badthreads=no
4033 else
4034 badthreads=yes
4035 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4036 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
4038 else
4039 badthreads=yes
4040 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4041 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
4044 if test $badthreads = no; then
4045 echo "$as_me:$LINENO: result: OK" >&5
4046 echo "${ECHO_T}OK" >&6
4047 eval `$vi_cv_path_perl -V:shrpenv`
4048 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4049 shrpenv=""
4051 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4053 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4054 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4055 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4056 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4057 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4058 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4059 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4061 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4062 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
4063 cflags_save=$CFLAGS
4064 libs_save=$LIBS
4065 ldflags_save=$LDFLAGS
4066 CFLAGS="$CFLAGS $perlcppflags"
4067 LIBS="$LIBS $perllibs"
4068 LDFLAGS="$perlldflags $LDFLAGS"
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 rm -f conftest.$ac_objext conftest$ac_exeext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086 (eval $ac_link) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest$ac_exeext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6; perl_ok=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4113 echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4115 rm -f conftest.err conftest.$ac_objext \
4116 conftest$ac_exeext conftest.$ac_ext
4117 CFLAGS=$cflags_save
4118 LIBS=$libs_save
4119 LDFLAGS=$ldflags_save
4120 if test $perl_ok = yes; then
4121 if test "X$perlcppflags" != "X"; then
4122 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4124 if test "X$perlldflags" != "X"; then
4125 LDFLAGS="$perlldflags $LDFLAGS"
4127 PERL_LIBS=$perllibs
4128 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4129 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4130 PERL_PRO="if_perl.pro if_perlsfio.pro"
4131 cat >>confdefs.h <<\_ACEOF
4132 #define FEAT_PERL 1
4133 _ACEOF
4137 else
4138 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4139 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4143 if test "x$MACOSX" = "xyes"; then
4144 dir=/System/Library/Perl
4145 darwindir=$dir/darwin
4146 if test -d $darwindir; then
4147 PERL=/usr/bin/perl
4148 else
4149 dir=/System/Library/Perl/5.8.1
4150 darwindir=$dir/darwin-thread-multi-2level
4151 if test -d $darwindir; then
4152 PERL=/usr/bin/perl
4155 if test -n "$PERL"; then
4156 PERL_DIR="$dir"
4157 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4158 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4159 PERL_LIBS="-L$darwindir/CORE -lperl"
4170 echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4171 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4172 # Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4173 if test "${enable_pythoninterp+set}" = set; then
4174 enableval="$enable_pythoninterp"
4176 else
4177 enable_pythoninterp="no"
4179 echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4180 echo "${ECHO_T}$enable_pythoninterp" >&6
4181 if test "$enable_pythoninterp" = "yes"; then
4182 # Extract the first word of "python", so it can be a program name with args.
4183 set dummy python; ac_word=$2
4184 echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 case $vi_cv_path_python in
4190 [\\/]* | ?:[\\/]*)
4191 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4209 esac
4211 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4213 if test -n "$vi_cv_path_python"; then
4214 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4215 echo "${ECHO_T}$vi_cv_path_python" >&6
4216 else
4217 echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4221 if test "X$vi_cv_path_python" != "X"; then
4223 echo "$as_me:$LINENO: checking Python version" >&5
4224 echo $ECHO_N "checking Python version... $ECHO_C" >&6
4225 if test "${vi_cv_var_python_version+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 vi_cv_var_python_version=`
4229 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4232 echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4233 echo "${ECHO_T}$vi_cv_var_python_version" >&6
4235 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4236 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4237 if ${vi_cv_path_python} -c \
4238 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4239 then
4240 echo "$as_me:$LINENO: result: yep" >&5
4241 echo "${ECHO_T}yep" >&6
4243 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4244 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4245 if test "${vi_cv_path_python_pfx+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 vi_cv_path_python_pfx=`
4249 ${vi_cv_path_python} -c \
4250 "import sys; print sys.prefix"`
4252 echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4253 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4255 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4256 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4257 if test "${vi_cv_path_python_epfx+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 vi_cv_path_python_epfx=`
4261 ${vi_cv_path_python} -c \
4262 "import sys; print sys.exec_prefix"`
4264 echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4265 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4268 if test "${vi_cv_path_pythonpath+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 vi_cv_path_pythonpath=`
4272 unset PYTHONPATH;
4273 ${vi_cv_path_python} -c \
4274 "import sys, string; print string.join(sys.path,':')"`
4280 # Check whether --with-python-config-dir or --without-python-config-dir was given.
4281 if test "${with_python_config_dir+set}" = set; then
4282 withval="$with_python_config_dir"
4283 vi_cv_path_python_conf="${withval}"
4286 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4287 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4288 if test "${vi_cv_path_python_conf+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4292 vi_cv_path_python_conf=
4293 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4294 for subdir in lib share; do
4295 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4296 if test -d "$d" && test -f "$d/config.c"; then
4297 vi_cv_path_python_conf="$d"
4299 done
4300 done
4303 echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4304 echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4306 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4308 if test "X$PYTHON_CONFDIR" = "X"; then
4309 echo "$as_me:$LINENO: result: can't find it!" >&5
4310 echo "${ECHO_T}can't find it!" >&6
4311 else
4313 if test "${vi_cv_path_python_plibs+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4317 tmp_mkf="/tmp/Makefile-conf$$"
4318 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4320 @echo "python_MODLIBS='$(MODLIBS)'"
4321 @echo "python_LIBS='$(LIBS)'"
4322 @echo "python_SYSLIBS='$(SYSLIBS)'"
4323 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4325 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4326 rm -f ${tmp_mkf}
4327 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4328 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4329 vi_cv_path_python_plibs="-framework Python"
4330 else
4331 if test "${vi_cv_var_python_version}" = "1.4"; then
4332 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4333 else
4334 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4336 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4337 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4343 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4344 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4345 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4346 else
4347 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
4349 PYTHON_SRC="if_python.c"
4350 if test "x$MACOSX" = "xyes"; then
4351 PYTHON_OBJ="objects/if_python.o"
4352 else
4353 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4355 if test "${vi_cv_var_python_version}" = "1.4"; then
4356 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4358 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4360 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4361 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4362 threadsafe_flag=
4363 thread_lib=
4364 if test "`(uname) 2>/dev/null`" != Darwin; then
4365 test "$GCC" = yes && threadsafe_flag="-pthread"
4366 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4367 threadsafe_flag="-D_THREAD_SAFE"
4368 thread_lib="-pthread"
4371 libs_save_old=$LIBS
4372 if test -n "$threadsafe_flag"; then
4373 cflags_save=$CFLAGS
4374 CFLAGS="$CFLAGS $threadsafe_flag"
4375 LIBS="$LIBS $thread_lib"
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4384 main ()
4388 return 0;
4390 _ACEOF
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414 echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4423 rm -f conftest.err conftest.$ac_objext \
4424 conftest$ac_exeext conftest.$ac_ext
4425 CFLAGS=$cflags_save
4426 else
4427 echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4431 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4432 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4433 cflags_save=$CFLAGS
4434 libs_save=$LIBS
4435 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4436 LIBS="$LIBS $PYTHON_LIBS"
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4445 main ()
4449 return 0;
4451 _ACEOF
4452 rm -f conftest.$ac_objext conftest$ac_exeext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454 (eval $ac_link) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6; python_ok=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4481 echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4483 rm -f conftest.err conftest.$ac_objext \
4484 conftest$ac_exeext conftest.$ac_ext
4485 CFLAGS=$cflags_save
4486 LIBS=$libs_save
4487 if test $python_ok = yes; then
4488 cat >>confdefs.h <<\_ACEOF
4489 #define FEAT_PYTHON 1
4490 _ACEOF
4492 else
4493 LIBS=$libs_save_old
4494 PYTHON_SRC=
4495 PYTHON_OBJ=
4496 PYTHON_LIBS=
4497 PYTHON_CFLAGS=
4501 else
4502 echo "$as_me:$LINENO: result: too old" >&5
4503 echo "${ECHO_T}too old" >&6
4514 echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4515 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4516 # Check whether --enable-tclinterp or --disable-tclinterp was given.
4517 if test "${enable_tclinterp+set}" = set; then
4518 enableval="$enable_tclinterp"
4520 else
4521 enable_tclinterp="no"
4523 echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4524 echo "${ECHO_T}$enable_tclinterp" >&6
4526 if test "$enable_tclinterp" = "yes"; then
4528 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4529 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4531 # Check whether --with-tclsh or --without-tclsh was given.
4532 if test "${with_tclsh+set}" = set; then
4533 withval="$with_tclsh"
4534 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4535 echo "${ECHO_T}$tclsh_name" >&6
4536 else
4537 tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4540 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4541 set dummy $tclsh_name; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 case $vi_cv_path_tcl in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4567 esac
4569 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4571 if test -n "$vi_cv_path_tcl"; then
4572 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4573 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4574 else
4575 echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6
4581 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
4582 tclsh_name="tclsh8.4"
4583 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4584 set dummy $tclsh_name; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 case $vi_cv_path_tcl in
4591 [\\/]* | ?:[\\/]*)
4592 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4606 done
4607 done
4610 esac
4612 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4614 if test -n "$vi_cv_path_tcl"; then
4615 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4616 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4617 else
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4623 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4624 tclsh_name="tclsh8.2"
4625 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4626 set dummy $tclsh_name; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 case $vi_cv_path_tcl in
4633 [\\/]* | ?:[\\/]*)
4634 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4652 esac
4654 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4656 if test -n "$vi_cv_path_tcl"; then
4657 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4658 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4665 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4666 tclsh_name="tclsh8.0"
4667 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4668 set dummy $tclsh_name; ac_word=$2
4669 echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 case $vi_cv_path_tcl in
4675 [\\/]* | ?:[\\/]*)
4676 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4694 esac
4696 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4698 if test -n "$vi_cv_path_tcl"; then
4699 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4700 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4707 if test "X$vi_cv_path_tcl" = "X"; then
4708 tclsh_name="tclsh"
4709 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4710 set dummy $tclsh_name; ac_word=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716 case $vi_cv_path_tcl in
4717 [\\/]* | ?:[\\/]*)
4718 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4736 esac
4738 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4740 if test -n "$vi_cv_path_tcl"; then
4741 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4742 echo "${ECHO_T}$vi_cv_path_tcl" >&6
4743 else
4744 echo "$as_me:$LINENO: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4749 if test "X$vi_cv_path_tcl" != "X"; then
4750 echo "$as_me:$LINENO: checking Tcl version" >&5
4751 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4752 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4753 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4754 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4755 echo "${ECHO_T}$tclver - OK" >&6;
4756 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
4758 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4759 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4760 if test "x$MACOSX" != "xyes"; then
4761 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include /usr/include/tcl$tclver"
4762 else
4763 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4765 TCL_INC=
4766 for try in $tclinc; do
4767 if test -f "$try/tcl.h"; then
4768 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4769 echo "${ECHO_T}$try/tcl.h" >&6
4770 TCL_INC=$try
4771 break
4773 done
4774 if test -z "$TCL_INC"; then
4775 echo "$as_me:$LINENO: result: <not found>" >&5
4776 echo "${ECHO_T}<not found>" >&6
4777 SKIP_TCL=YES
4779 if test -z "$SKIP_TCL"; then
4780 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4781 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4782 if test "x$MACOSX" != "xyes"; then
4783 tclcnf=`echo $tclinc | sed s/include/lib/g`
4784 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
4785 else
4786 tclcnf="/System/Library/Frameworks/Tcl.framework"
4788 for try in $tclcnf; do
4789 if test -f $try/tclConfig.sh; then
4790 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4791 echo "${ECHO_T}$try/tclConfig.sh" >&6
4792 . $try/tclConfig.sh
4793 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4794 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
4795 break
4797 done
4798 if test -z "$TCL_LIBS"; then
4799 echo "$as_me:$LINENO: result: <not found>" >&5
4800 echo "${ECHO_T}<not found>" >&6
4801 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4802 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4803 tcllib=`echo $tclinc | sed s/include/lib/g`
4804 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
4805 for ext in .so .a ; do
4806 for ver in "" $tclver ; do
4807 for try in $tcllib ; do
4808 trylib=tcl$ver$ext
4809 if test -f $try/lib$trylib ; then
4810 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4811 echo "${ECHO_T}$try/lib$trylib" >&6
4812 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4813 if test "`(uname) 2>/dev/null`" = SunOS &&
4814 uname -r | grep '^5' >/dev/null; then
4815 TCL_LIBS="$TCL_LIBS -R $try"
4817 break 3
4819 done
4820 done
4821 done
4822 if test -z "$TCL_LIBS"; then
4823 echo "$as_me:$LINENO: result: <not found>" >&5
4824 echo "${ECHO_T}<not found>" >&6
4825 SKIP_TCL=YES
4828 if test -z "$SKIP_TCL"; then
4829 cat >>confdefs.h <<\_ACEOF
4830 #define FEAT_TCL 1
4831 _ACEOF
4833 TCL_SRC=if_tcl.c
4834 TCL_OBJ=objects/if_tcl.o
4835 TCL_PRO=if_tcl.pro
4836 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4839 else
4840 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4841 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4851 echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4852 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4853 # Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4854 if test "${enable_rubyinterp+set}" = set; then
4855 enableval="$enable_rubyinterp"
4857 else
4858 enable_rubyinterp="no"
4860 echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4861 echo "${ECHO_T}$enable_rubyinterp" >&6
4862 if test "$enable_rubyinterp" = "yes"; then
4864 # Extract the first word of "ruby", so it can be a program name with args.
4865 set dummy ruby; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 case $vi_cv_path_ruby in
4872 [\\/]* | ?:[\\/]*)
4873 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4891 esac
4893 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4895 if test -n "$vi_cv_path_ruby"; then
4896 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4897 echo "${ECHO_T}$vi_cv_path_ruby" >&6
4898 else
4899 echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4903 if test "X$vi_cv_path_ruby" != "X"; then
4904 echo "$as_me:$LINENO: checking Ruby version" >&5
4905 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4906 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4907 echo "$as_me:$LINENO: result: OK" >&5
4908 echo "${ECHO_T}OK" >&6
4909 echo "$as_me:$LINENO: checking Ruby header files" >&5
4910 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4911 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4912 if test "X$rubyhdrdir" != "X"; then
4913 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4914 echo "${ECHO_T}$rubyhdrdir" >&6
4915 RUBY_CFLAGS="-I$rubyhdrdir"
4916 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4917 if test "X$rubylibs" != "X"; then
4918 RUBY_LIBS="$rubylibs"
4920 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4921 if test -f "$rubyhdrdir/$librubyarg"; then
4922 librubyarg="$rubyhdrdir/$librubyarg"
4923 else
4924 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4925 if test -f "$rubylibdir/$librubyarg"; then
4926 librubyarg="$rubylibdir/$librubyarg"
4927 elif test "$librubyarg" = "libruby.a"; then
4928 librubyarg="-lruby"
4929 else
4930 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4934 if test "X$librubyarg" != "X"; then
4935 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4937 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4938 if test "X$rubyldflags" != "X"; then
4939 LDFLAGS="$rubyldflags $LDFLAGS"
4941 RUBY_SRC="if_ruby.c"
4942 RUBY_OBJ="objects/if_ruby.o"
4943 RUBY_PRO="if_ruby.pro"
4944 cat >>confdefs.h <<\_ACEOF
4945 #define FEAT_RUBY 1
4946 _ACEOF
4948 else
4949 echo "$as_me:$LINENO: result: not found" >&5
4950 echo "${ECHO_T}not found" >&6
4952 else
4953 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4954 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4964 echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4965 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4966 # Check whether --enable-cscope or --disable-cscope was given.
4967 if test "${enable_cscope+set}" = set; then
4968 enableval="$enable_cscope"
4970 else
4971 enable_cscope="no"
4973 echo "$as_me:$LINENO: result: $enable_cscope" >&5
4974 echo "${ECHO_T}$enable_cscope" >&6
4975 if test "$enable_cscope" = "yes"; then
4976 cat >>confdefs.h <<\_ACEOF
4977 #define FEAT_CSCOPE 1
4978 _ACEOF
4982 echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4983 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4984 # Check whether --enable-workshop or --disable-workshop was given.
4985 if test "${enable_workshop+set}" = set; then
4986 enableval="$enable_workshop"
4988 else
4989 enable_workshop="no"
4991 echo "$as_me:$LINENO: result: $enable_workshop" >&5
4992 echo "${ECHO_T}$enable_workshop" >&6
4993 if test "$enable_workshop" = "yes"; then
4994 cat >>confdefs.h <<\_ACEOF
4995 #define FEAT_SUN_WORKSHOP 1
4996 _ACEOF
4998 WORKSHOP_SRC="workshop.c integration.c"
5000 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5002 if test "${enable_gui-xxx}" = xxx; then
5003 enable_gui=motif
5007 echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5008 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
5009 # Check whether --enable-netbeans or --disable-netbeans was given.
5010 if test "${enable_netbeans+set}" = set; then
5011 enableval="$enable_netbeans"
5013 else
5014 enable_netbeans="yes"
5016 if test "$enable_netbeans" = "yes"; then
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5020 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5021 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5022 if test "${ac_cv_lib_socket_socket+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 ac_check_lib_save_LIBS=$LIBS
5026 LIBS="-lsocket $LIBS"
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5034 /* Override any gcc2 internal prototype to avoid an error. */
5035 #ifdef __cplusplus
5036 extern "C"
5037 #endif
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5040 char socket ();
5042 main ()
5044 socket ();
5046 return 0;
5048 _ACEOF
5049 rm -f conftest.$ac_objext conftest$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_lib_socket_socket=yes
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_cv_lib_socket_socket=no
5078 rm -f conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS
5082 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5083 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5084 if test $ac_cv_lib_socket_socket = yes; then
5085 cat >>confdefs.h <<_ACEOF
5086 #define HAVE_LIBSOCKET 1
5087 _ACEOF
5089 LIBS="-lsocket $LIBS"
5094 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5095 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5096 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 ac_check_lib_save_LIBS=$LIBS
5100 LIBS="-lnsl $LIBS"
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5108 /* Override any gcc2 internal prototype to avoid an error. */
5109 #ifdef __cplusplus
5110 extern "C"
5111 #endif
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5114 char gethostbyname ();
5116 main ()
5118 gethostbyname ();
5120 return 0;
5122 _ACEOF
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest$ac_exeext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_lib_nsl_gethostbyname=yes
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_cv_lib_nsl_gethostbyname=no
5152 rm -f conftest.err conftest.$ac_objext \
5153 conftest$ac_exeext conftest.$ac_ext
5154 LIBS=$ac_check_lib_save_LIBS
5156 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5157 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5158 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5159 cat >>confdefs.h <<_ACEOF
5160 #define HAVE_LIBNSL 1
5161 _ACEOF
5163 LIBS="-lnsl $LIBS"
5167 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5168 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 #include <stdio.h>
5177 #include <stdlib.h>
5178 #include <stdarg.h>
5179 #include <fcntl.h>
5180 #include <netdb.h>
5181 #include <netinet/in.h>
5182 #include <errno.h>
5183 #include <sys/types.h>
5184 #include <sys/socket.h>
5185 /* Check bitfields */
5186 struct nbbuf {
5187 unsigned int initDone:1;
5188 ushort signmaplen;
5192 main ()
5195 /* Check creating a socket. */
5196 struct sockaddr_in server;
5197 (void)socket(AF_INET, SOCK_STREAM, 0);
5198 (void)htons(100);
5199 (void)gethostbyname("microsoft.com");
5200 if (errno == ECONNREFUSED)
5201 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5204 return 0;
5206 _ACEOF
5207 rm -f conftest.$ac_objext conftest$ac_exeext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; enable_netbeans="no"
5238 rm -f conftest.err conftest.$ac_objext \
5239 conftest$ac_exeext conftest.$ac_ext
5240 else
5241 echo "$as_me:$LINENO: result: yes" >&5
5242 echo "${ECHO_T}yes" >&6
5244 if test "$enable_netbeans" = "yes"; then
5245 cat >>confdefs.h <<\_ACEOF
5246 #define FEAT_NETBEANS_INTG 1
5247 _ACEOF
5249 NETBEANS_SRC="netbeans.c"
5251 NETBEANS_OBJ="objects/netbeans.o"
5255 echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5256 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5257 # Check whether --enable-sniff or --disable-sniff was given.
5258 if test "${enable_sniff+set}" = set; then
5259 enableval="$enable_sniff"
5261 else
5262 enable_sniff="no"
5264 echo "$as_me:$LINENO: result: $enable_sniff" >&5
5265 echo "${ECHO_T}$enable_sniff" >&6
5266 if test "$enable_sniff" = "yes"; then
5267 cat >>confdefs.h <<\_ACEOF
5268 #define FEAT_SNIFF 1
5269 _ACEOF
5271 SNIFF_SRC="if_sniff.c"
5273 SNIFF_OBJ="objects/if_sniff.o"
5277 echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5278 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5279 # Check whether --enable-multibyte or --disable-multibyte was given.
5280 if test "${enable_multibyte+set}" = set; then
5281 enableval="$enable_multibyte"
5283 else
5284 enable_multibyte="no"
5286 echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5287 echo "${ECHO_T}$enable_multibyte" >&6
5288 if test "$enable_multibyte" = "yes"; then
5289 cat >>confdefs.h <<\_ACEOF
5290 #define FEAT_MBYTE 1
5291 _ACEOF
5295 echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5296 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5297 # Check whether --enable-hangulinput or --disable-hangulinput was given.
5298 if test "${enable_hangulinput+set}" = set; then
5299 enableval="$enable_hangulinput"
5301 else
5302 enable_hangulinput="no"
5304 echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5305 echo "${ECHO_T}$enable_hangulinput" >&6
5307 echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5308 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5309 # Check whether --enable-xim or --disable-xim was given.
5310 if test "${enable_xim+set}" = set; then
5311 enableval="$enable_xim"
5312 echo "$as_me:$LINENO: result: $enable_xim" >&5
5313 echo "${ECHO_T}$enable_xim" >&6
5314 else
5315 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5316 echo "${ECHO_T}defaulting to auto" >&6
5319 echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5320 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5321 # Check whether --enable-fontset or --disable-fontset was given.
5322 if test "${enable_fontset+set}" = set; then
5323 enableval="$enable_fontset"
5325 else
5326 enable_fontset="no"
5328 echo "$as_me:$LINENO: result: $enable_fontset" >&5
5329 echo "${ECHO_T}$enable_fontset" >&6
5331 test -z "$with_x" && with_x=yes
5332 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5333 if test "$with_x" = no; then
5334 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5335 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5336 else
5338 # Extract the first word of "xmkmf", so it can be a program name with args.
5339 set dummy xmkmf; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_xmkmfpath+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 case $xmkmfpath in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5365 esac
5367 xmkmfpath=$ac_cv_path_xmkmfpath
5369 if test -n "$xmkmfpath"; then
5370 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5371 echo "${ECHO_T}$xmkmfpath" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5378 echo "$as_me:$LINENO: checking for X" >&5
5379 echo $ECHO_N "checking for X... $ECHO_C" >&6
5382 # Check whether --with-x or --without-x was given.
5383 if test "${with_x+set}" = set; then
5384 withval="$with_x"
5387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5388 if test "x$with_x" = xno; then
5389 # The user explicitly disabled X.
5390 have_x=disabled
5391 else
5392 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5393 # Both variables are already set.
5394 have_x=yes
5395 else
5396 if test "${ac_cv_have_x+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 # One or both of the vars are not set, and there is no cached value.
5400 ac_x_includes=no ac_x_libraries=no
5401 rm -fr conftest.dir
5402 if mkdir conftest.dir; then
5403 cd conftest.dir
5404 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5405 cat >Imakefile <<'_ACEOF'
5406 acfindx:
5407 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5408 _ACEOF
5409 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5411 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension in a so sl; do
5414 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5415 test -f $ac_im_libdir/libX11.$ac_extension; then
5416 ac_im_usrlibdir=$ac_im_libdir; break
5418 done
5419 # Screen out bogus values from the imake configuration. They are
5420 # bogus both because they are the default anyway, and because
5421 # using them would break gcc on systems where it needs fixed includes.
5422 case $ac_im_incroot in
5423 /usr/include) ;;
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425 esac
5426 case $ac_im_usrlibdir in
5427 /usr/lib | /lib) ;;
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429 esac
5431 cd ..
5432 rm -fr conftest.dir
5435 # Standard set of common directories for X headers.
5436 # Check X11 before X11Rn because it is often a symlink to the current release.
5437 ac_x_header_dirs='
5438 /usr/X11/include
5439 /usr/X11R6/include
5440 /usr/X11R5/include
5441 /usr/X11R4/include
5443 /usr/include/X11
5444 /usr/include/X11R6
5445 /usr/include/X11R5
5446 /usr/include/X11R4
5448 /usr/local/X11/include
5449 /usr/local/X11R6/include
5450 /usr/local/X11R5/include
5451 /usr/local/X11R4/include
5453 /usr/local/include/X11
5454 /usr/local/include/X11R6
5455 /usr/local/include/X11R5
5456 /usr/local/include/X11R4
5458 /usr/X386/include
5459 /usr/x386/include
5460 /usr/XFree86/include/X11
5462 /usr/include
5463 /usr/local/include
5464 /usr/unsupported/include
5465 /usr/athena/include
5466 /usr/local/x11r5/include
5467 /usr/lpp/Xamples/include
5469 /usr/openwin/include
5470 /usr/openwin/share/include'
5472 if test "$ac_x_includes" = no; then
5473 # Guess where to find include files, by looking for Intrinsic.h.
5474 # First, try using that file with no special directory specified.
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <X11/Intrinsic.h>
5482 _ACEOF
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev/null; then
5491 if test -s conftest.err; then
5492 ac_cpp_err=$ac_c_preproc_warn_flag
5493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494 else
5495 ac_cpp_err=
5497 else
5498 ac_cpp_err=yes
5500 if test -z "$ac_cpp_err"; then
5501 # We can compile using X headers with no special include directory.
5502 ac_x_includes=
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 for ac_dir in $ac_x_header_dirs; do
5508 if test -r "$ac_dir/X11/Intrinsic.h"; then
5509 ac_x_includes=$ac_dir
5510 break
5512 done
5514 rm -f conftest.err conftest.$ac_ext
5515 fi # $ac_x_includes = no
5517 if test "$ac_x_libraries" = no; then
5518 # Check for the libraries.
5519 # See if we find them without any special options.
5520 # Don't add to $LIBS permanently.
5521 ac_save_LIBS=$LIBS
5522 LIBS="-lXt $LIBS"
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 #include <X11/Intrinsic.h>
5531 main ()
5533 XtMalloc (0)
5535 return 0;
5537 _ACEOF
5538 rm -f conftest.$ac_objext conftest$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag"
5548 || test ! -s conftest.err'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; } &&
5554 { ac_try='test -s conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 LIBS=$ac_save_LIBS
5561 # We can link X programs with no special library path.
5562 ac_x_libraries=
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 LIBS=$ac_save_LIBS
5568 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5570 # Don't even attempt the hair of trying to link an X program!
5571 for ac_extension in a so sl; do
5572 if test -r $ac_dir/libXt.$ac_extension; then
5573 ac_x_libraries=$ac_dir
5574 break 2
5576 done
5577 done
5579 rm -f conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 fi # $ac_x_libraries = no
5583 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5584 # Didn't find X anywhere. Cache the known absence of X.
5585 ac_cv_have_x="have_x=no"
5586 else
5587 # Record where we found X for the cache.
5588 ac_cv_have_x="have_x=yes \
5589 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5594 eval "$ac_cv_have_x"
5595 fi # $with_x != no
5597 if test "$have_x" != yes; then
5598 echo "$as_me:$LINENO: result: $have_x" >&5
5599 echo "${ECHO_T}$have_x" >&6
5600 no_x=yes
5601 else
5602 # If each of the values was on the command line, it overrides each guess.
5603 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5604 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5605 # Update the cache value to reflect the command line values.
5606 ac_cv_have_x="have_x=yes \
5607 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5608 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5609 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5612 if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it.
5615 cat >>confdefs.h <<\_ACEOF
5616 #define X_DISPLAY_MISSING 1
5617 _ACEOF
5619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620 else
5621 if test -n "$x_includes"; then
5622 X_CFLAGS="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then
5627 X_LIBS="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . .
5630 case `(uname -sr) 2>/dev/null` in
5631 "SunOS 5"*)
5632 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5633 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5634 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5643 main ()
5647 return 0;
5649 _ACEOF
5650 rm -f conftest.$ac_objext conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_R_nospace=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_R_nospace=no
5679 rm -f conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 if test $ac_R_nospace = yes; then
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5684 X_LIBS="$X_LIBS -R$x_libraries"
5685 else
5686 LIBS="$ac_xsave_LIBS -R $x_libraries"
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5695 main ()
5699 return 0;
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_R_space=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 ac_R_space=no
5731 rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 if test $ac_R_space = yes; then
5734 echo "$as_me:$LINENO: result: yes" >&5
5735 echo "${ECHO_T}yes" >&6
5736 X_LIBS="$X_LIBS -R $x_libraries"
5737 else
5738 echo "$as_me:$LINENO: result: neither works" >&5
5739 echo "${ECHO_T}neither works" >&6
5742 LIBS=$ac_xsave_LIBS
5743 esac
5746 # Check for system-dependent libraries X programs must link with.
5747 # Do this before checking for the system-independent R6 libraries
5748 # (-lICE), since we may need -lsocket or whatever for X linking.
5750 if test "$ISC" = yes; then
5751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5752 else
5753 # Martyn Johnson says this is needed for Ultrix, if the X
5754 # libraries were built with DECnet support. And Karl Berry says
5755 # the Alpha needs dnet_stub (dnet does not exist).
5756 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 /* Override any gcc2 internal prototype to avoid an error. */
5765 #ifdef __cplusplus
5766 extern "C"
5767 #endif
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5770 char XOpenDisplay ();
5772 main ()
5774 XOpenDisplay ();
5776 return 0;
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5807 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5808 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 ac_check_lib_save_LIBS=$LIBS
5812 LIBS="-ldnet $LIBS"
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5820 /* Override any gcc2 internal prototype to avoid an error. */
5821 #ifdef __cplusplus
5822 extern "C"
5823 #endif
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char dnet_ntoa ();
5828 main ()
5830 dnet_ntoa ();
5832 return 0;
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag"
5845 || test ! -s conftest.err'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_lib_dnet_dnet_ntoa=yes
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_cv_lib_dnet_dnet_ntoa=no
5864 rm -f conftest.err conftest.$ac_objext \
5865 conftest$ac_exeext conftest.$ac_ext
5866 LIBS=$ac_check_lib_save_LIBS
5868 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5869 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5870 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5871 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5874 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5875 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5876 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5877 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 ac_check_lib_save_LIBS=$LIBS
5881 LIBS="-ldnet_stub $LIBS"
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 #ifdef __cplusplus
5891 extern "C"
5892 #endif
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5895 char dnet_ntoa ();
5897 main ()
5899 dnet_ntoa ();
5901 return 0;
5903 _ACEOF
5904 rm -f conftest.$ac_objext conftest$ac_exeext
5905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906 (eval $ac_link) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -z "$ac_c_werror_flag"
5914 || test ! -s conftest.err'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_cv_lib_dnet_stub_dnet_ntoa=no
5933 rm -f conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
5935 LIBS=$ac_check_lib_save_LIBS
5937 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5938 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5939 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5940 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5945 rm -f conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext conftest.$ac_ext
5947 LIBS="$ac_xsave_LIBS"
5949 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5950 # to get the SysV transport functions.
5951 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5952 # needs -lnsl.
5953 # The nsl library prevents programs from opening the X display
5954 # on Irix 5.2, according to T.E. Dickey.
5955 # The functions gethostbyname, getservbyname, and inet_addr are
5956 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5957 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5958 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5959 if test "${ac_cv_func_gethostbyname+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5970 #define gethostbyname innocuous_gethostbyname
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char gethostbyname (); below.
5974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 <limits.h> exists even on freestanding compilers. */
5977 #ifdef __STDC__
5978 # include <limits.h>
5979 #else
5980 # include <assert.h>
5981 #endif
5983 #undef gethostbyname
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 #ifdef __cplusplus
5987 extern "C"
5989 #endif
5990 /* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5992 char gethostbyname ();
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5997 choke me
5998 #else
5999 char (*f) () = gethostbyname;
6000 #endif
6001 #ifdef __cplusplus
6003 #endif
6006 main ()
6008 return f != gethostbyname;
6010 return 0;
6012 _ACEOF
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_func_gethostbyname=yes
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_func_gethostbyname=no
6042 rm -f conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6046 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6048 if test $ac_cv_func_gethostbyname = no; then
6049 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6050 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6051 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lnsl $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 #ifdef __cplusplus
6065 extern "C"
6066 #endif
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6069 char gethostbyname ();
6071 main ()
6073 gethostbyname ();
6075 return 0;
6077 _ACEOF
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_lib_nsl_gethostbyname=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_lib_nsl_gethostbyname=no
6107 rm -f conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_check_lib_save_LIBS
6111 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6112 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6113 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6117 if test $ac_cv_lib_nsl_gethostbyname = no; then
6118 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6119 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6120 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 ac_check_lib_save_LIBS=$LIBS
6124 LIBS="-lbsd $LIBS"
6125 cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h. */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 #ifdef __cplusplus
6134 extern "C"
6135 #endif
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6138 char gethostbyname ();
6140 main ()
6142 gethostbyname ();
6144 return 0;
6146 _ACEOF
6147 rm -f conftest.$ac_objext conftest$ac_exeext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_lib_bsd_gethostbyname=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_cv_lib_bsd_gethostbyname=no
6176 rm -f conftest.err conftest.$ac_objext \
6177 conftest$ac_exeext conftest.$ac_ext
6178 LIBS=$ac_check_lib_save_LIBS
6180 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6181 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6182 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6183 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6189 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6190 # socket/setsockopt and other routines are undefined under SCO ODT
6191 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6192 # on later versions), says Simon Leinen: it contains gethostby*
6193 # variants that don't use the name server (or something). -lsocket
6194 # must be given before -lnsl if both are needed. We assume that
6195 # if connect needs -lnsl, so does gethostbyname.
6196 echo "$as_me:$LINENO: checking for connect" >&5
6197 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6198 if test "${ac_cv_func_connect+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6209 #define connect innocuous_connect
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char connect (); below.
6213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214 <limits.h> exists even on freestanding compilers. */
6216 #ifdef __STDC__
6217 # include <limits.h>
6218 #else
6219 # include <assert.h>
6220 #endif
6222 #undef connect
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 #ifdef __cplusplus
6226 extern "C"
6228 #endif
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6231 char connect ();
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined (__stub_connect) || defined (__stub___connect)
6236 choke me
6237 #else
6238 char (*f) () = connect;
6239 #endif
6240 #ifdef __cplusplus
6242 #endif
6245 main ()
6247 return f != connect;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254 (eval $ac_link) 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_func_connect=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_cv_func_connect=no
6281 rm -f conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6285 echo "${ECHO_T}$ac_cv_func_connect" >&6
6287 if test $ac_cv_func_connect = no; then
6288 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6289 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6290 if test "${ac_cv_lib_socket_connect+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 ac_check_lib_save_LIBS=$LIBS
6294 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6302 /* Override any gcc2 internal prototype to avoid an error. */
6303 #ifdef __cplusplus
6304 extern "C"
6305 #endif
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6308 char connect ();
6310 main ()
6312 connect ();
6314 return 0;
6316 _ACEOF
6317 rm -f conftest.$ac_objext conftest$ac_exeext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6319 (eval $ac_link) 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_lib_socket_connect=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_cv_lib_socket_connect=no
6346 rm -f conftest.err conftest.$ac_objext \
6347 conftest$ac_exeext conftest.$ac_ext
6348 LIBS=$ac_check_lib_save_LIBS
6350 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6351 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6352 if test $ac_cv_lib_socket_connect = yes; then
6353 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6358 # Guillermo Gomez says -lposix is necessary on A/UX.
6359 echo "$as_me:$LINENO: checking for remove" >&5
6360 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6361 if test "${ac_cv_func_remove+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6372 #define remove innocuous_remove
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char remove (); below.
6376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 <limits.h> exists even on freestanding compilers. */
6379 #ifdef __STDC__
6380 # include <limits.h>
6381 #else
6382 # include <assert.h>
6383 #endif
6385 #undef remove
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 #ifdef __cplusplus
6389 extern "C"
6391 #endif
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6394 char remove ();
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_remove) || defined (__stub___remove)
6399 choke me
6400 #else
6401 char (*f) () = remove;
6402 #endif
6403 #ifdef __cplusplus
6405 #endif
6408 main ()
6410 return f != remove;
6412 return 0;
6414 _ACEOF
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest$ac_exeext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_cv_func_remove=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_func_remove=no
6444 rm -f conftest.err conftest.$ac_objext \
6445 conftest$ac_exeext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6448 echo "${ECHO_T}$ac_cv_func_remove" >&6
6450 if test $ac_cv_func_remove = no; then
6451 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6452 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6453 if test "${ac_cv_lib_posix_remove+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456 ac_check_lib_save_LIBS=$LIBS
6457 LIBS="-lposix $LIBS"
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 #ifdef __cplusplus
6467 extern "C"
6468 #endif
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6471 char remove ();
6473 main ()
6475 remove ();
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_lib_posix_remove=yes
6503 else
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_cv_lib_posix_remove=no
6509 rm -f conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
6511 LIBS=$ac_check_lib_save_LIBS
6513 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6514 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6515 if test $ac_cv_lib_posix_remove = yes; then
6516 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6521 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6522 echo "$as_me:$LINENO: checking for shmat" >&5
6523 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6524 if test "${ac_cv_func_shmat+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6535 #define shmat innocuous_shmat
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char shmat (); below.
6539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6540 <limits.h> exists even on freestanding compilers. */
6542 #ifdef __STDC__
6543 # include <limits.h>
6544 #else
6545 # include <assert.h>
6546 #endif
6548 #undef shmat
6550 /* Override any gcc2 internal prototype to avoid an error. */
6551 #ifdef __cplusplus
6552 extern "C"
6554 #endif
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6557 char shmat ();
6558 /* The GNU C library defines this for functions which it implements
6559 to always fail with ENOSYS. Some functions are actually named
6560 something starting with __ and the normal name is an alias. */
6561 #if defined (__stub_shmat) || defined (__stub___shmat)
6562 choke me
6563 #else
6564 char (*f) () = shmat;
6565 #endif
6566 #ifdef __cplusplus
6568 #endif
6571 main ()
6573 return f != shmat;
6575 return 0;
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_func_shmat=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_cv_func_shmat=no
6607 rm -f conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6611 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6613 if test $ac_cv_func_shmat = no; then
6614 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6615 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6616 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 ac_check_lib_save_LIBS=$LIBS
6620 LIBS="-lipc $LIBS"
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6628 /* Override any gcc2 internal prototype to avoid an error. */
6629 #ifdef __cplusplus
6630 extern "C"
6631 #endif
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6634 char shmat ();
6636 main ()
6638 shmat ();
6640 return 0;
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645 (eval $ac_link) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest$ac_exeext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_lib_ipc_shmat=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_cv_lib_ipc_shmat=no
6672 rm -f conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 LIBS=$ac_check_lib_save_LIBS
6676 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6677 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6678 if test $ac_cv_lib_ipc_shmat = yes; then
6679 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6685 # Check for libraries that X11R6 Xt/Xaw programs need.
6686 ac_save_LDFLAGS=$LDFLAGS
6687 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6688 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6689 # check for ICE first), but we must link in the order -lSM -lICE or
6690 # we get undefined symbols. So assume we have SM if we have ICE.
6691 # These have to be linked with before -lX11, unlike the other
6692 # libraries we check for below, so use a different variable.
6693 # John Interrante, Karl Berry
6694 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6695 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6696 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 ac_check_lib_save_LIBS=$LIBS
6700 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6708 /* Override any gcc2 internal prototype to avoid an error. */
6709 #ifdef __cplusplus
6710 extern "C"
6711 #endif
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6714 char IceConnectionNumber ();
6716 main ()
6718 IceConnectionNumber ();
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -z "$ac_c_werror_flag"
6733 || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_cv_lib_ICE_IceConnectionNumber=yes
6746 else
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 ac_cv_lib_ICE_IceConnectionNumber=no
6752 rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6754 LIBS=$ac_check_lib_save_LIBS
6756 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6757 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6758 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6759 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6762 LDFLAGS=$ac_save_LDFLAGS
6767 if test "$OS390Unix" = "yes"; then
6768 CFLAGS="$CFLAGS -W c,dll"
6769 LDFLAGS="$LDFLAGS -W l,dll"
6770 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6774 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6775 x_libraries=`echo "$x_includes" | sed s/include/lib/`
6776 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6777 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6778 X_LIBS="$X_LIBS -L$x_libraries"
6779 if test "`(uname) 2>/dev/null`" = SunOS &&
6780 uname -r | grep '^5' >/dev/null; then
6781 X_LIBS="$X_LIBS -R $x_libraries"
6785 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6786 x_includes=`echo "$x_libraries" | sed s/lib/include/`
6787 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6788 echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6789 X_CFLAGS="$X_CFLAGS -I$x_includes"
6792 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6793 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6794 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6797 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6798 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6799 cflags_save=$CFLAGS
6800 CFLAGS="$CFLAGS $X_CFLAGS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <X11/Xlib.h>
6809 main ()
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 echo "$as_me:$LINENO: result: yes" >&5
6839 echo "${ECHO_T}yes" >&6
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; no_x=yes
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 CFLAGS=$cflags_save
6850 if test "${no_x-no}" = yes; then
6851 with_x=no
6852 else
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_X11 1
6855 _ACEOF
6857 X_LIB="-lXt -lX11";
6860 ac_save_LDFLAGS="$LDFLAGS"
6861 LDFLAGS="-L$x_libraries $LDFLAGS"
6863 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6864 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6865 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 ac_check_lib_save_LIBS=$LIBS
6869 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char _XdmcpAuthDoIt ();
6885 main ()
6887 _XdmcpAuthDoIt ();
6889 return 0;
6891 _ACEOF
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6921 rm -f conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6926 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6927 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6932 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6933 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6934 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937 ac_check_lib_save_LIBS=$LIBS
6938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any gcc2 internal prototype to avoid an error. */
6947 #ifdef __cplusplus
6948 extern "C"
6949 #endif
6950 /* We use char because int might match the return type of a gcc2
6951 builtin and then its argument prototype would still apply. */
6952 char IceOpenConnection ();
6954 main ()
6956 IceOpenConnection ();
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963 (eval $ac_link) 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest$ac_exeext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_cv_lib_ICE_IceOpenConnection=yes
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_cv_lib_ICE_IceOpenConnection=no
6990 rm -f conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 LIBS=$ac_check_lib_save_LIBS
6994 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6995 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6996 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7001 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7002 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7003 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
7004 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 ac_check_lib_save_LIBS=$LIBS
7008 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 #ifdef __cplusplus
7018 extern "C"
7019 #endif
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7022 char XpmCreatePixmapFromData ();
7024 main ()
7026 XpmCreatePixmapFromData ();
7028 return 0;
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try='test -z "$ac_c_werror_flag"
7041 || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest$ac_exeext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7060 rm -f conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062 LIBS=$ac_check_lib_save_LIBS
7064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7065 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
7066 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7067 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7071 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7072 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
7073 cflags_save=$CFLAGS
7074 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7075 cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 #include <X11/Xlib.h>
7083 main ()
7087 return 0;
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6
7114 else
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 CFLAGS="$CFLAGS -Wno-implicit-int"
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 #include <X11/Xlib.h>
7127 main ()
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -z "$ac_c_werror_flag"
7144 || test ! -s conftest.err'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; } &&
7150 { ac_try='test -s conftest.$ac_objext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 echo "$as_me:$LINENO: result: test failed" >&5
7163 echo "${ECHO_T}test failed" >&6
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170 CFLAGS=$cflags_save
7172 LDFLAGS="$ac_save_LDFLAGS"
7177 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7179 echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7180 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7181 # Check whether --enable-gui or --disable-gui was given.
7182 if test "${enable_gui+set}" = set; then
7183 enableval="$enable_gui"
7185 else
7186 enable_gui="auto"
7189 enable_gui_canon=`echo "_$enable_gui" | \
7190 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7192 SKIP_GTK=YES
7193 SKIP_GTK2=YES
7194 SKIP_GNOME=YES
7195 SKIP_MOTIF=YES
7196 SKIP_ATHENA=YES
7197 SKIP_NEXTAW=YES
7198 SKIP_PHOTON=YES
7199 SKIP_CARBON=YES
7200 GUITYPE=NONE
7202 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7203 SKIP_PHOTON=
7204 case "$enable_gui_canon" in
7205 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7206 echo "${ECHO_T}no GUI support" >&6
7207 SKIP_PHOTON=YES ;;
7208 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7209 echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7210 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7211 echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7212 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7213 echo "${ECHO_T}Photon GUI support" >&6 ;;
7214 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7215 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7216 SKIP_PHOTON=YES ;;
7217 esac
7219 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7220 SKIP_CARBON=
7221 case "$enable_gui_canon" in
7222 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7223 echo "${ECHO_T}no GUI support" >&6
7224 SKIP_CARBON=YES ;;
7225 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7226 echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7227 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7228 echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7229 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7230 echo "${ECHO_T}Carbon GUI support" >&6 ;;
7231 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7232 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7233 SKIP_CARBON=YES ;;
7234 esac
7236 else
7238 case "$enable_gui_canon" in
7239 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7240 echo "${ECHO_T}no GUI support" >&6 ;;
7241 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7242 echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7243 SKIP_GTK=
7244 SKIP_GTK2=
7245 SKIP_GNOME=
7246 SKIP_MOTIF=
7247 SKIP_ATHENA=
7248 SKIP_NEXTAW=
7249 SKIP_CARBON=;;
7250 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7251 echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7252 SKIP_GTK=;;
7253 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7254 echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7255 SKIP_GTK=
7256 SKIP_GTK2=;;
7257 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7258 echo "${ECHO_T}GNOME 1.x GUI support" >&6
7259 SKIP_GNOME=
7260 SKIP_GTK=;;
7261 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7262 echo "${ECHO_T}GNOME 2.x GUI support" >&6
7263 SKIP_GNOME=
7264 SKIP_GTK=
7265 SKIP_GTK2=;;
7266 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7267 echo "${ECHO_T}Motif GUI support" >&6
7268 SKIP_MOTIF=;;
7269 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7270 echo "${ECHO_T}Athena GUI support" >&6
7271 SKIP_ATHENA=;;
7272 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7273 echo "${ECHO_T}neXtaw GUI support" >&6
7274 SKIP_NEXTAW=;;
7275 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7276 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7277 esac
7281 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7282 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7283 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7284 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7285 if test "${enable_gtk_check+set}" = set; then
7286 enableval="$enable_gtk_check"
7288 else
7289 enable_gtk_check="yes"
7291 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7292 echo "${ECHO_T}$enable_gtk_check" >&6
7293 if test "x$enable_gtk_check" = "xno"; then
7294 SKIP_GTK=YES
7295 SKIP_GNOME=YES
7299 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7300 -a "$enable_gui_canon" != "gnome2"; then
7301 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7302 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7303 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7304 if test "${enable_gtk2_check+set}" = set; then
7305 enableval="$enable_gtk2_check"
7307 else
7308 enable_gtk2_check="yes"
7310 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7311 echo "${ECHO_T}$enable_gtk2_check" >&6
7312 if test "x$enable_gtk2_check" = "xno"; then
7313 SKIP_GTK2=YES
7317 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7318 -a "$enable_gui_canon" != "gnome2"; then
7319 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7320 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7321 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7322 if test "${enable_gnome_check+set}" = set; then
7323 enableval="$enable_gnome_check"
7325 else
7326 enable_gnome_check="no"
7328 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7329 echo "${ECHO_T}$enable_gnome_check" >&6
7330 if test "x$enable_gnome_check" = "xno"; then
7331 SKIP_GNOME=YES
7335 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7336 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7337 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7338 # Check whether --enable-motif-check or --disable-motif-check was given.
7339 if test "${enable_motif_check+set}" = set; then
7340 enableval="$enable_motif_check"
7342 else
7343 enable_motif_check="yes"
7345 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7346 echo "${ECHO_T}$enable_motif_check" >&6
7347 if test "x$enable_motif_check" = "xno"; then
7348 SKIP_MOTIF=YES
7352 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7353 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7354 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7355 # Check whether --enable-athena-check or --disable-athena-check was given.
7356 if test "${enable_athena_check+set}" = set; then
7357 enableval="$enable_athena_check"
7359 else
7360 enable_athena_check="yes"
7362 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7363 echo "${ECHO_T}$enable_athena_check" >&6
7364 if test "x$enable_athena_check" = "xno"; then
7365 SKIP_ATHENA=YES
7369 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7370 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7371 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7372 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7373 if test "${enable_nextaw_check+set}" = set; then
7374 enableval="$enable_nextaw_check"
7376 else
7377 enable_nextaw_check="yes"
7379 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7380 echo "${ECHO_T}$enable_nextaw_check" >&6;
7381 if test "x$enable_nextaw_check" = "xno"; then
7382 SKIP_NEXTAW=YES
7386 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7387 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7388 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7389 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7390 if test "${enable_carbon_check+set}" = set; then
7391 enableval="$enable_carbon_check"
7393 else
7394 enable_carbon_check="yes"
7396 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7397 echo "${ECHO_T}$enable_carbon_check" >&6;
7398 if test "x$enable_carbon_check" = "xno"; then
7399 SKIP_CARBON=YES
7404 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7405 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7406 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7407 echo "$as_me:$LINENO: result: yes" >&5
7408 echo "${ECHO_T}yes" >&6;
7409 GUITYPE=CARBONGUI
7410 if test "$VIMNAME" = "vim"; then
7411 VIMNAME=Vim
7414 if test x$prefix = xNONE; then
7415 prefix=/Applications
7418 datadir='${prefix}/Vim.app/Contents/Resources'
7420 SKIP_GTK=YES;
7421 SKIP_GTK2=YES;
7422 SKIP_GNOME=YES;
7423 SKIP_MOTIF=YES;
7424 SKIP_ATHENA=YES;
7425 SKIP_NEXTAW=YES;
7426 SKIP_PHOTON=YES;
7427 SKIP_CARBON=YES
7438 if test -z "$SKIP_GTK"; then
7440 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7441 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7443 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7444 if test "${with_gtk_prefix+set}" = set; then
7445 withval="$with_gtk_prefix"
7446 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7447 echo "${ECHO_T}$gtk_config_prefix" >&6
7448 else
7449 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7453 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7454 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7456 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7457 if test "${with_gtk_exec_prefix+set}" = set; then
7458 withval="$with_gtk_exec_prefix"
7459 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7460 echo "${ECHO_T}$gtk_config_prefix" >&6
7461 else
7462 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6
7466 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7467 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7468 # Check whether --enable-gtktest or --disable-gtktest was given.
7469 if test "${enable_gtktest+set}" = set; then
7470 enableval="$enable_gtktest"
7472 else
7473 enable_gtktest=yes
7475 if test "x$enable_gtktest" = "xyes" ; then
7476 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7477 echo "${ECHO_T}gtk test enabled" >&6
7478 else
7479 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7480 echo "${ECHO_T}gtk test disabled" >&6
7483 if test "x$gtk_config_prefix" != "x" ; then
7484 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7485 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7487 if test "x$gtk_config_exec_prefix" != "x" ; then
7488 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7489 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7491 if test "X$GTK_CONFIG" = "X"; then
7492 # Extract the first word of "gtk-config", so it can be a program name with args.
7493 set dummy gtk-config; ac_word=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 case $GTK_CONFIG in
7500 [\\/]* | ?:[\\/]*)
7501 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7515 done
7516 done
7518 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7520 esac
7522 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7524 if test -n "$GTK_CONFIG"; then
7525 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7526 echo "${ECHO_T}$GTK_CONFIG" >&6
7527 else
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7532 if test "X$GTK_CONFIG" = "Xno"; then
7533 # Extract the first word of "gtk12-config", so it can be a program name with args.
7534 set dummy gtk12-config; ac_word=$2
7535 echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7537 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540 case $GTK12_CONFIG in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7559 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7561 esac
7563 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7565 if test -n "$GTK12_CONFIG"; then
7566 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7567 echo "${ECHO_T}$GTK12_CONFIG" >&6
7568 else
7569 echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7573 GTK_CONFIG="$GTK12_CONFIG"
7575 else
7576 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7577 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7579 if test "X$PKG_CONFIG" = "X"; then
7580 # Extract the first word of "pkg-config", so it can be a program name with args.
7581 set dummy pkg-config; ac_word=$2
7582 echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7584 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 case $PKG_CONFIG in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7606 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7608 esac
7610 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7612 if test -n "$PKG_CONFIG"; then
7613 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7614 echo "${ECHO_T}$PKG_CONFIG" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7622 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7623 if test "X$SKIP_GTK2" != "XYES"; then
7625 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7627 min_gtk_version=2.2.0
7628 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7629 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7630 no_gtk=""
7631 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7632 && $PKG_CONFIG --exists gtk+-2.0; then
7634 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7635 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7636 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7637 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7638 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7639 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7640 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7641 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7642 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7644 elif test "X$GTK_CONFIG" != "Xno"; then
7646 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7647 GTK_LIBDIR=
7648 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7649 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7650 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7651 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7652 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7653 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7654 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7656 else
7657 no_gtk=yes
7660 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7662 ac_save_CFLAGS="$CFLAGS"
7663 ac_save_LIBS="$LIBS"
7664 CFLAGS="$CFLAGS $GTK_CFLAGS"
7665 LIBS="$LIBS $GTK_LIBS"
7667 rm -f conf.gtktest
7668 if test "$cross_compiling" = yes; then
7669 echo $ac_n "cross compiling; assumed OK... $ac_c"
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 #include <gtk/gtk.h>
7679 #include <stdio.h>
7682 main ()
7684 int major, minor, micro;
7685 char *tmp_version;
7687 system ("touch conf.gtktest");
7689 /* HP/UX 9 (%@#!) writes to sscanf strings */
7690 tmp_version = g_strdup("$min_gtk_version");
7691 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7692 printf("%s, bad version string\n", "$min_gtk_version");
7693 exit(1);
7696 if ((gtk_major_version > major) ||
7697 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7698 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7699 (gtk_micro_version >= micro)))
7701 return 0;
7703 return 1;
7706 _ACEOF
7707 rm -f conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7719 else
7720 echo "$as_me: program exited with status $ac_status" >&5
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 ( exit $ac_status )
7725 no_gtk=yes
7727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7729 CFLAGS="$ac_save_CFLAGS"
7730 LIBS="$ac_save_LIBS"
7733 if test "x$no_gtk" = x ; then
7734 if test "x$enable_gtktest" = "xyes"; then
7735 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7736 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7737 else
7738 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7739 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7741 GUI_LIB_LOC="$GTK_LIBDIR"
7742 GTK_LIBNAME="$GTK_LIBS"
7743 GUI_INC_LOC="$GTK_CFLAGS"
7744 else
7746 echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6
7748 GTK_CFLAGS=""
7749 GTK_LIBS=""
7754 else
7755 GTK_CFLAGS=""
7756 GTK_LIBS=""
7761 rm -f conf.gtktest
7763 if test "x$GTK_CFLAGS" != "x"; then
7764 SKIP_ATHENA=YES
7765 SKIP_NEXTAW=YES
7766 SKIP_MOTIF=YES
7767 GUITYPE=GTK
7772 if test "x$GUITYPE" != "xGTK"; then
7773 SKIP_GTK2=YES
7775 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7777 min_gtk_version=1.1.16
7778 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7779 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7780 no_gtk=""
7781 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7782 && $PKG_CONFIG --exists gtk+-2.0; then
7784 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7785 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7786 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7787 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7788 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7789 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7790 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7791 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7792 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7794 elif test "X$GTK_CONFIG" != "Xno"; then
7796 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7797 GTK_LIBDIR=
7798 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7799 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7800 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7801 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7802 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7803 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7804 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7806 else
7807 no_gtk=yes
7810 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7812 ac_save_CFLAGS="$CFLAGS"
7813 ac_save_LIBS="$LIBS"
7814 CFLAGS="$CFLAGS $GTK_CFLAGS"
7815 LIBS="$LIBS $GTK_LIBS"
7817 rm -f conf.gtktest
7818 if test "$cross_compiling" = yes; then
7819 echo $ac_n "cross compiling; assumed OK... $ac_c"
7820 else
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 #include <gtk/gtk.h>
7829 #include <stdio.h>
7832 main ()
7834 int major, minor, micro;
7835 char *tmp_version;
7837 system ("touch conf.gtktest");
7839 /* HP/UX 9 (%@#!) writes to sscanf strings */
7840 tmp_version = g_strdup("$min_gtk_version");
7841 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7842 printf("%s, bad version string\n", "$min_gtk_version");
7843 exit(1);
7846 if ((gtk_major_version > major) ||
7847 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7848 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7849 (gtk_micro_version >= micro)))
7851 return 0;
7853 return 1;
7856 _ACEOF
7857 rm -f conftest$ac_exeext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7869 else
7870 echo "$as_me: program exited with status $ac_status" >&5
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 ( exit $ac_status )
7875 no_gtk=yes
7877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7879 CFLAGS="$ac_save_CFLAGS"
7880 LIBS="$ac_save_LIBS"
7883 if test "x$no_gtk" = x ; then
7884 if test "x$enable_gtktest" = "xyes"; then
7885 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7886 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7887 else
7888 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7889 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7891 GTK_LIBNAME="$GTK_LIBS"
7892 GUI_INC_LOC="$GTK_CFLAGS"
7893 else
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7897 GTK_CFLAGS=""
7898 GTK_LIBS=""
7903 else
7904 GTK_CFLAGS=""
7905 GTK_LIBS=""
7910 rm -f conf.gtktest
7912 if test "x$GTK_CFLAGS" != "x"; then
7913 SKIP_ATHENA=YES
7914 SKIP_NEXTAW=YES
7915 SKIP_MOTIF=YES
7916 GUITYPE=GTK
7921 if test "x$GUITYPE" = "xGTK"; then
7922 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7923 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7924 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7925 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7926 else
7928 if test "0$gtk_major_version" -ge 2; then
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_GTK2 1
7931 _ACEOF
7933 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7934 || test "0$gtk_minor_version" -ge 2 \
7935 || test "0$gtk_major_version" -gt 2; then
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_GTK_MULTIHEAD 1
7938 _ACEOF
7942 if test -z "$SKIP_GNOME"; then
7950 # Check whether --with-gnome-includes or --without-gnome-includes was given.
7951 if test "${with_gnome_includes+set}" = set; then
7952 withval="$with_gnome_includes"
7953 CFLAGS="$CFLAGS -I$withval"
7958 # Check whether --with-gnome-libs or --without-gnome-libs was given.
7959 if test "${with_gnome_libs+set}" = set; then
7960 withval="$with_gnome_libs"
7961 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7966 # Check whether --with-gnome or --without-gnome was given.
7967 if test "${with_gnome+set}" = set; then
7968 withval="$with_gnome"
7969 if test x$withval = xyes; then
7970 want_gnome=yes
7971 have_gnome=yes
7972 else
7973 if test "x$withval" = xno; then
7974 want_gnome=no
7975 else
7976 want_gnome=yes
7977 LDFLAGS="$LDFLAGS -L$withval/lib"
7978 CFLAGS="$CFLAGS -I$withval/include"
7979 gnome_prefix=$withval/lib
7982 else
7983 want_gnome=yes
7986 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7988 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7989 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7990 if $PKG_CONFIG --exists libgnomeui-2.0; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7993 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7994 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7995 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7997 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7998 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7999 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8000 echo "$as_me:$LINENO: result: yes" >&5
8001 echo "${ECHO_T}yes" >&6
8002 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8003 GNOME_LIBS="$GNOME_LIBS -pthread"
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8008 have_gnome=yes
8009 else
8010 echo "$as_me:$LINENO: result: not found" >&5
8011 echo "${ECHO_T}not found" >&6
8012 if test "x" = xfail; then
8013 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8014 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8015 { (exit 1); exit 1; }; }
8019 elif test "x$want_gnome" = xyes; then
8021 # Extract the first word of "gnome-config", so it can be a program name with args.
8022 set dummy gnome-config; ac_word=$2
8023 echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8025 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028 case $GNOME_CONFIG in
8029 [\\/]* | ?:[\\/]*)
8030 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8047 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8049 esac
8051 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8053 if test -n "$GNOME_CONFIG"; then
8054 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8055 echo "${ECHO_T}$GNOME_CONFIG" >&6
8056 else
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8061 if test "$GNOME_CONFIG" = "no"; then
8062 no_gnome_config="yes"
8063 else
8064 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8065 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
8066 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068 echo "${ECHO_T}yes" >&6
8069 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8070 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8071 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8072 have_gnome=yes
8073 else
8074 echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6
8076 no_gnome_config="yes"
8080 if test x$exec_prefix = xNONE; then
8081 if test x$prefix = xNONE; then
8082 gnome_prefix=$ac_default_prefix/lib
8083 else
8084 gnome_prefix=$prefix/lib
8086 else
8087 gnome_prefix=`eval echo \`echo $libdir\``
8090 if test "$no_gnome_config" = "yes"; then
8091 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8092 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
8093 if test -f $gnome_prefix/gnomeConf.sh; then
8094 echo "$as_me:$LINENO: result: found" >&5
8095 echo "${ECHO_T}found" >&6
8096 echo "loading gnome configuration from" \
8097 "$gnome_prefix/gnomeConf.sh"
8098 . $gnome_prefix/gnomeConf.sh
8099 have_gnome=yes
8100 else
8101 echo "$as_me:$LINENO: result: not found" >&5
8102 echo "${ECHO_T}not found" >&6
8103 if test x = xfail; then
8104 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8105 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8106 { (exit 1); exit 1; }; }
8113 if test x$have_gnome = xyes ; then
8114 cat >>confdefs.h <<\_ACEOF
8115 #define FEAT_GUI_GNOME 1
8116 _ACEOF
8118 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8119 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8129 if test -z "$SKIP_MOTIF"; then
8130 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
8131 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8133 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8134 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
8135 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8136 GUI_INC_LOC=
8137 for try in $gui_includes; do
8138 if test -f "$try/Xm/Xm.h"; then
8139 GUI_INC_LOC=$try
8141 done
8142 if test -n "$GUI_INC_LOC"; then
8143 if test "$GUI_INC_LOC" = /usr/include; then
8144 GUI_INC_LOC=
8145 echo "$as_me:$LINENO: result: in default path" >&5
8146 echo "${ECHO_T}in default path" >&6
8147 else
8148 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8149 echo "${ECHO_T}$GUI_INC_LOC" >&6
8151 else
8152 echo "$as_me:$LINENO: result: <not found>" >&5
8153 echo "${ECHO_T}<not found>" >&6
8154 SKIP_MOTIF=YES
8159 if test -z "$SKIP_MOTIF"; then
8160 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8161 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8163 # Check whether --with-motif-lib or --without-motif-lib was given.
8164 if test "${with_motif_lib+set}" = set; then
8165 withval="$with_motif_lib"
8166 MOTIF_LIBNAME="${withval}"
8169 if test -n "$MOTIF_LIBNAME"; then
8170 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8171 echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8172 GUI_LIB_LOC=
8173 else
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8177 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8179 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8180 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8181 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
8182 GUI_LIB_LOC=
8183 for try in $gui_libs; do
8184 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8185 if test -f "$libtry"; then
8186 GUI_LIB_LOC=$try
8188 done
8189 done
8190 if test -n "$GUI_LIB_LOC"; then
8191 if test "$GUI_LIB_LOC" = /usr/lib; then
8192 GUI_LIB_LOC=
8193 echo "$as_me:$LINENO: result: in default path" >&5
8194 echo "${ECHO_T}in default path" >&6
8195 else
8196 if test -n "$GUI_LIB_LOC"; then
8197 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8198 echo "${ECHO_T}$GUI_LIB_LOC" >&6
8199 if test "`(uname) 2>/dev/null`" = SunOS &&
8200 uname -r | grep '^5' >/dev/null; then
8201 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8205 MOTIF_LIBNAME=-lXm
8206 else
8207 echo "$as_me:$LINENO: result: <not found>" >&5
8208 echo "${ECHO_T}<not found>" >&6
8209 SKIP_MOTIF=YES
8214 if test -z "$SKIP_MOTIF"; then
8215 SKIP_ATHENA=YES
8216 SKIP_NEXTAW=YES
8217 GUITYPE=MOTIF
8222 GUI_X_LIBS=
8224 if test -z "$SKIP_ATHENA"; then
8225 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8226 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8227 cflags_save=$CFLAGS
8228 CFLAGS="$CFLAGS $X_CFLAGS"
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8236 #include <X11/Intrinsic.h>
8237 #include <X11/Xaw/Paned.h>
8239 main ()
8243 return 0;
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 echo "$as_me:$LINENO: result: yes" >&5
8269 echo "${ECHO_T}yes" >&6
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8278 CFLAGS=$cflags_save
8281 if test -z "$SKIP_ATHENA"; then
8282 GUITYPE=ATHENA
8285 if test -z "$SKIP_NEXTAW"; then
8286 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8287 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8288 cflags_save=$CFLAGS
8289 CFLAGS="$CFLAGS $X_CFLAGS"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8297 #include <X11/Intrinsic.h>
8298 #include <X11/neXtaw/Paned.h>
8300 main ()
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8339 CFLAGS=$cflags_save
8342 if test -z "$SKIP_NEXTAW"; then
8343 GUITYPE=NEXTAW
8346 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8347 if test -n "$GUI_INC_LOC"; then
8348 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8350 if test -n "$GUI_LIB_LOC"; then
8351 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8354 ldflags_save=$LDFLAGS
8355 LDFLAGS="$X_LIBS $LDFLAGS"
8356 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8357 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8358 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 ac_check_lib_save_LIBS=$LIBS
8362 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8376 char XShapeQueryExtension ();
8378 main ()
8380 XShapeQueryExtension ();
8382 return 0;
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_lib_Xext_XShapeQueryExtension=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_lib_Xext_XShapeQueryExtension=no
8414 rm -f conftest.err conftest.$ac_objext \
8415 conftest$ac_exeext conftest.$ac_ext
8416 LIBS=$ac_check_lib_save_LIBS
8418 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8419 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8420 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8421 GUI_X_LIBS="-lXext"
8424 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8425 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8426 if test "${ac_cv_lib_w_wslen+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char wslen ();
8446 main ()
8448 wslen ();
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_lib_w_wslen=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_cv_lib_w_wslen=no
8482 rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_check_lib_save_LIBS
8486 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8487 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8488 if test $ac_cv_lib_w_wslen = yes; then
8489 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8492 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8493 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8494 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 #ifdef __cplusplus
8508 extern "C"
8509 #endif
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8512 char dlsym ();
8514 main ()
8516 dlsym ();
8518 return 0;
8520 _ACEOF
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523 (eval $ac_link) 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_lib_dl_dlsym=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_lib_dl_dlsym=no
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8555 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8556 if test $ac_cv_lib_dl_dlsym = yes; then
8557 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8560 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8561 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8562 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 ac_check_lib_save_LIBS=$LIBS
8566 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8574 /* Override any gcc2 internal prototype to avoid an error. */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8580 char XmuCreateStippledPixmap ();
8582 main ()
8584 XmuCreateStippledPixmap ();
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 (eval $ac_link) 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -z "$ac_c_werror_flag"
8599 || test ! -s conftest.err'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8612 else
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8618 rm -f conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 LIBS=$ac_check_lib_save_LIBS
8622 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8623 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8624 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8625 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8628 if test -z "$SKIP_MOTIF"; then
8629 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8630 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8631 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 ac_check_lib_save_LIBS=$LIBS
8635 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char XpEndJob ();
8651 main ()
8653 XpEndJob ();
8655 return 0;
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_Xp_XpEndJob=yes
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_cv_lib_Xp_XpEndJob=no
8687 rm -f conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 LIBS=$ac_check_lib_save_LIBS
8691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8692 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8693 if test $ac_cv_lib_Xp_XpEndJob = yes; then
8694 GUI_X_LIBS="-lXp $GUI_X_LIBS"
8698 LDFLAGS=$ldflags_save
8700 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8701 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8702 NARROW_PROTO=
8703 rm -fr conftestdir
8704 if mkdir conftestdir; then
8705 cd conftestdir
8706 cat > Imakefile <<'EOF'
8707 acfindx:
8708 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8710 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8711 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8713 cd ..
8714 rm -fr conftestdir
8716 if test -z "$NARROW_PROTO"; then
8717 echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6
8719 else
8720 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8721 echo "${ECHO_T}$NARROW_PROTO" >&6
8726 if test "$enable_xsmp" = "yes"; then
8727 cppflags_save=$CPPFLAGS
8728 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8730 for ac_header in X11/SM/SMlib.h
8732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8734 echo "$as_me:$LINENO: checking for $ac_header" >&5
8735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8741 else
8742 # Is the header compilable?
8743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #include <$ac_header>
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756 (eval $ac_compile) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag"
8764 || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest.$ac_objext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_header_compiler=yes
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 ac_header_compiler=no
8783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8785 echo "${ECHO_T}$ac_header_compiler" >&6
8787 # Is the header present?
8788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 #include <$ac_header>
8797 _ACEOF
8798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } >/dev/null; then
8806 if test -s conftest.err; then
8807 ac_cpp_err=$ac_c_preproc_warn_flag
8808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8809 else
8810 ac_cpp_err=
8812 else
8813 ac_cpp_err=yes
8815 if test -z "$ac_cpp_err"; then
8816 ac_header_preproc=yes
8817 else
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_header_preproc=no
8823 rm -f conftest.err conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8825 echo "${ECHO_T}$ac_header_preproc" >&6
8827 # So? What about this header?
8828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8829 yes:no: )
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8834 ac_header_preproc=yes
8836 no:yes:* )
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8850 cat <<\_ASBOX
8851 ## ------------------------------------------ ##
8852 ## Report this to the AC_PACKAGE_NAME lists. ##
8853 ## ------------------------------------------ ##
8854 _ASBOX
8856 sed "s/^/$as_me: WARNING: /" >&2
8858 esac
8859 echo "$as_me:$LINENO: checking for $ac_header" >&5
8860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 eval "$as_ac_Header=\$ac_header_preproc"
8866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8873 _ACEOF
8877 done
8879 CPPFLAGS=$cppflags_save
8883 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8884 cppflags_save=$CPPFLAGS
8885 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8888 for ac_header in X11/xpm.h X11/Sunkeysym.h
8890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899 else
8900 # Is the header compilable?
8901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 #include <$ac_header>
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_header_compiler=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_header_compiler=no
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <$ac_header>
8955 _ACEOF
8956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } >/dev/null; then
8964 if test -s conftest.err; then
8965 ac_cpp_err=$ac_c_preproc_warn_flag
8966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8967 else
8968 ac_cpp_err=
8970 else
8971 ac_cpp_err=yes
8973 if test -z "$ac_cpp_err"; then
8974 ac_header_preproc=yes
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_header_preproc=no
8981 rm -f conftest.err conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8985 # So? What about this header?
8986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8987 yes:no: )
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992 ac_header_preproc=yes
8994 no:yes:* )
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9008 cat <<\_ASBOX
9009 ## ------------------------------------------ ##
9010 ## Report this to the AC_PACKAGE_NAME lists. ##
9011 ## ------------------------------------------ ##
9012 _ASBOX
9014 sed "s/^/$as_me: WARNING: /" >&2
9016 esac
9017 echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 eval "$as_ac_Header=\$ac_header_preproc"
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 _ACEOF
9035 done
9038 if test ! "$enable_xim" = "no"; then
9039 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9040 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 #include <X11/Xlib.h>
9048 _ACEOF
9049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9050 $EGREP "XIMText" >/dev/null 2>&1; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6
9053 else
9054 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9055 echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
9057 rm -f conftest*
9060 CPPFLAGS=$cppflags_save
9062 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9063 -a "x$GUITYPE" != "xNONE" ; then
9064 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9065 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
9066 enable_xim="yes"
9070 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9071 cppflags_save=$CPPFLAGS
9072 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9073 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9074 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 #include <X11/Intrinsic.h>
9083 #include <X11/Xmu/Editres.h>
9085 main ()
9087 int i; i = 0;
9089 return 0;
9091 _ACEOF
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094 (eval $ac_compile) 2>conftest.er1
9095 ac_status=$?
9096 grep -v '^ *+' conftest.er1 >conftest.err
9097 rm -f conftest.er1
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try='test -z "$ac_c_werror_flag"
9102 || test ! -s conftest.err'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; } &&
9108 { ac_try='test -s conftest.$ac_objext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9114 echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_X11_XMU_EDITRES_H 1
9118 _ACEOF
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 echo "$as_me:$LINENO: result: no" >&5
9125 echo "${ECHO_T}no" >&6
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 CPPFLAGS=$cppflags_save
9131 if test -z "$SKIP_MOTIF"; then
9132 cppflags_save=$CPPFLAGS
9133 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9141 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9142 Xm/UnhighlightT.h Xm/Notebook.h
9144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9146 echo "$as_me:$LINENO: checking for $ac_header" >&5
9147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9153 else
9154 # Is the header compilable?
9155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9164 #include <$ac_header>
9165 _ACEOF
9166 rm -f conftest.$ac_objext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_header_compiler=yes
9189 else
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_header_compiler=no
9195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9197 echo "${ECHO_T}$ac_header_compiler" >&6
9199 # Is the header present?
9200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <$ac_header>
9209 _ACEOF
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev/null; then
9218 if test -s conftest.err; then
9219 ac_cpp_err=$ac_c_preproc_warn_flag
9220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9221 else
9222 ac_cpp_err=
9224 else
9225 ac_cpp_err=yes
9227 if test -z "$ac_cpp_err"; then
9228 ac_header_preproc=yes
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_header_preproc=no
9235 rm -f conftest.err conftest.$ac_ext
9236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9237 echo "${ECHO_T}$ac_header_preproc" >&6
9239 # So? What about this header?
9240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9241 yes:no: )
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9246 ac_header_preproc=yes
9248 no:yes:* )
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9262 cat <<\_ASBOX
9263 ## ------------------------------------------ ##
9264 ## Report this to the AC_PACKAGE_NAME lists. ##
9265 ## ------------------------------------------ ##
9266 _ASBOX
9268 sed "s/^/$as_me: WARNING: /" >&2
9270 esac
9271 echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 eval "$as_ac_Header=\$ac_header_preproc"
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283 cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9285 _ACEOF
9289 done
9292 if test $ac_cv_header_Xm_XpmP_h = yes; then
9293 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9294 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301 #include <Xm/XpmP.h>
9303 main ()
9305 XpmAttributes_21 attr;
9307 return 0;
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 echo "$as_me:$LINENO: result: yes" >&5
9333 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9334 #define XPMATTRIBUTES_TYPE XpmAttributes_21
9335 _ACEOF
9337 else
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9343 #define XPMATTRIBUTES_TYPE XpmAttributes
9344 _ACEOF
9348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9349 else
9350 cat >>confdefs.h <<\_ACEOF
9351 #define XPMATTRIBUTES_TYPE XpmAttributes
9352 _ACEOF
9355 CPPFLAGS=$cppflags_save
9358 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9359 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9360 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9361 enable_xim="no"
9363 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9364 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9365 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9366 enable_fontset="no"
9368 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9369 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9370 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9371 enable_fontset="no"
9374 if test -z "$SKIP_PHOTON"; then
9375 GUITYPE=PHOTONGUI
9383 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9384 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9385 echo "$as_me: error: cannot use workshop without Motif" >&2;}
9386 { (exit 1); exit 1; }; }
9389 if test "$enable_xim" = "yes"; then
9390 cat >>confdefs.h <<\_ACEOF
9391 #define FEAT_XIM 1
9392 _ACEOF
9395 if test "$enable_fontset" = "yes"; then
9396 cat >>confdefs.h <<\_ACEOF
9397 #define FEAT_XFONTSET 1
9398 _ACEOF
9405 if test "$enable_hangulinput" = "yes"; then
9406 if test "x$GUITYPE" = "xNONE"; then
9407 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9408 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9409 enable_hangulinput=no
9410 else
9411 cat >>confdefs.h <<\_ACEOF
9412 #define FEAT_HANGULIN 1
9413 _ACEOF
9415 HANGULIN_SRC=hangulin.c
9417 HANGULIN_OBJ=objects/hangulin.o
9423 echo "$as_me:$LINENO: checking quality of toupper" >&5
9424 echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9425 if test "$cross_compiling" = yes; then
9426 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9427 echo "$as_me: error: failed to compile test program" >&2;}
9428 { (exit 1); exit 1; }; }
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 #include <ctype.h>
9437 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9438 _ACEOF
9439 rm -f conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 cat >>confdefs.h <<\_ACEOF
9451 #define BROKEN_TOUPPER 1
9452 _ACEOF
9453 echo "$as_me:$LINENO: result: bad" >&5
9454 echo "${ECHO_T}bad" >&6
9455 else
9456 echo "$as_me: program exited with status $ac_status" >&5
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ( exit $ac_status )
9461 echo "$as_me:$LINENO: result: good" >&5
9462 echo "${ECHO_T}good" >&6
9464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9467 echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9468 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9477 main ()
9479 printf("(" __DATE__ " " __TIME__ ")");
9481 return 0;
9483 _ACEOF
9484 rm -f conftest.$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9508 #define HAVE_DATE_TIME 1
9509 _ACEOF
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 echo "$as_me:$LINENO: result: no" >&5
9516 echo "${ECHO_T}no" >&6
9518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9520 if test "${ac_cv_header_elf_h+set}" = set; then
9521 echo "$as_me:$LINENO: checking for elf.h" >&5
9522 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9523 if test "${ac_cv_header_elf_h+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9527 echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9528 else
9529 # Is the header compilable?
9530 echo "$as_me:$LINENO: checking elf.h usability" >&5
9531 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9539 #include <elf.h>
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543 (eval $ac_compile) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_header_compiler=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_header_compiler=no
9570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking elf.h presence" >&5
9576 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 #include <elf.h>
9584 _ACEOF
9585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev/null; then
9593 if test -s conftest.err; then
9594 ac_cpp_err=$ac_c_preproc_warn_flag
9595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9596 else
9597 ac_cpp_err=
9599 else
9600 ac_cpp_err=yes
9602 if test -z "$ac_cpp_err"; then
9603 ac_header_preproc=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_preproc=no
9610 rm -f conftest.err conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9614 # So? What about this header?
9615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9616 yes:no: )
9617 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9620 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9621 ac_header_preproc=yes
9623 no:yes:* )
9624 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9625 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9627 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9629 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9631 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9635 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9637 cat <<\_ASBOX
9638 ## ------------------------------------------ ##
9639 ## Report this to the AC_PACKAGE_NAME lists. ##
9640 ## ------------------------------------------ ##
9641 _ASBOX
9643 sed "s/^/$as_me: WARNING: /" >&2
9645 esac
9646 echo "$as_me:$LINENO: checking for elf.h" >&5
9647 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9648 if test "${ac_cv_header_elf_h+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651 ac_cv_header_elf_h=$ac_header_preproc
9653 echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9654 echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9657 if test $ac_cv_header_elf_h = yes; then
9658 HAS_ELF=1
9662 if test "$HAS_ELF" = 1; then
9664 echo "$as_me:$LINENO: checking for main in -lelf" >&5
9665 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9666 if test "${ac_cv_lib_elf_main+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669 ac_check_lib_save_LIBS=$LIBS
9670 LIBS="-lelf $LIBS"
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9680 main ()
9682 main ();
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_lib_elf_main=yes
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 ac_cv_lib_elf_main=no
9716 rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 LIBS=$ac_check_lib_save_LIBS
9720 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9721 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9722 if test $ac_cv_lib_elf_main = yes; then
9723 cat >>confdefs.h <<_ACEOF
9724 #define HAVE_LIBELF 1
9725 _ACEOF
9727 LIBS="-lelf $LIBS"
9738 ac_header_dirent=no
9739 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9740 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9741 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9742 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 #include <sys/types.h>
9753 #include <$ac_hdr>
9756 main ()
9758 if ((DIR *) 0)
9759 return 0;
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest.$ac_objext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 eval "$as_ac_Header=yes"
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 eval "$as_ac_Header=no"
9793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9800 _ACEOF
9802 ac_header_dirent=$ac_hdr; break
9805 done
9806 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9807 if test $ac_header_dirent = dirent.h; then
9808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9810 if test "${ac_cv_search_opendir+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 ac_func_search_save_LIBS=$LIBS
9814 ac_cv_search_opendir=no
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828 char opendir ();
9830 main ()
9832 opendir ();
9834 return 0;
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_search_opendir="none required"
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9865 rm -f conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 if test "$ac_cv_search_opendir" = no; then
9868 for ac_lib in dir; do
9869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any gcc2 internal prototype to avoid an error. */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9883 char opendir ();
9885 main ()
9887 opendir ();
9889 return 0;
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag"
9902 || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_search_opendir="-l$ac_lib"
9915 break
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9921 rm -f conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 done
9925 LIBS=$ac_func_search_save_LIBS
9927 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9928 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9929 if test "$ac_cv_search_opendir" != no; then
9930 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9934 else
9935 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9936 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9937 if test "${ac_cv_search_opendir+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 ac_func_search_save_LIBS=$LIBS
9941 ac_cv_search_opendir=no
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9955 char opendir ();
9957 main ()
9959 opendir ();
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_search_opendir="none required"
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9992 rm -f conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9994 if test "$ac_cv_search_opendir" = no; then
9995 for ac_lib in x; do
9996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10004 /* Override any gcc2 internal prototype to avoid an error. */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 /* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10010 char opendir ();
10012 main ()
10014 opendir ();
10016 return 0;
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag"
10029 || test ! -s conftest.err'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try='test -s conftest$ac_exeext'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_search_opendir="-l$ac_lib"
10042 break
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10048 rm -f conftest.err conftest.$ac_objext \
10049 conftest$ac_exeext conftest.$ac_ext
10050 done
10052 LIBS=$ac_func_search_save_LIBS
10054 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10055 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10056 if test "$ac_cv_search_opendir" != no; then
10057 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10064 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10066 if test "${ac_cv_header_stdc+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <stdlib.h>
10076 #include <stdarg.h>
10077 #include <string.h>
10078 #include <float.h>
10081 main ()
10085 return 0;
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 ac_cv_header_stdc=yes
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 ac_cv_header_stdc=no
10117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119 if test $ac_cv_header_stdc = yes; then
10120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <string.h>
10129 _ACEOF
10130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10131 $EGREP "memchr" >/dev/null 2>&1; then
10133 else
10134 ac_cv_header_stdc=no
10136 rm -f conftest*
10140 if test $ac_cv_header_stdc = yes; then
10141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10150 _ACEOF
10151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10152 $EGREP "free" >/dev/null 2>&1; then
10154 else
10155 ac_cv_header_stdc=no
10157 rm -f conftest*
10161 if test $ac_cv_header_stdc = yes; then
10162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10163 if test "$cross_compiling" = yes; then
10165 else
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h. */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <ctype.h>
10173 #if ((' ' & 0x0FF) == 0x020)
10174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10176 #else
10177 # define ISLOWER(c) \
10178 (('a' <= (c) && (c) <= 'i') \
10179 || ('j' <= (c) && (c) <= 'r') \
10180 || ('s' <= (c) && (c) <= 'z'))
10181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10182 #endif
10184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10186 main ()
10188 int i;
10189 for (i = 0; i < 256; i++)
10190 if (XOR (islower (i), ISLOWER (i))
10191 || toupper (i) != TOUPPER (i))
10192 exit(2);
10193 exit (0);
10195 _ACEOF
10196 rm -f conftest$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10208 else
10209 echo "$as_me: program exited with status $ac_status" >&5
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ( exit $ac_status )
10214 ac_cv_header_stdc=no
10216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10221 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10222 if test $ac_cv_header_stdc = yes; then
10224 cat >>confdefs.h <<\_ACEOF
10225 #define STDC_HEADERS 1
10226 _ACEOF
10230 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10231 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10232 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <sys/types.h>
10242 #include <sys/wait.h>
10243 #ifndef WEXITSTATUS
10244 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10245 #endif
10246 #ifndef WIFEXITED
10247 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10248 #endif
10251 main ()
10253 int s;
10254 wait (&s);
10255 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_header_sys_wait_h=yes
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_header_sys_wait_h=no
10289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10292 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10293 if test $ac_cv_header_sys_wait_h = yes; then
10295 cat >>confdefs.h <<\_ACEOF
10296 #define HAVE_SYS_WAIT_H 1
10297 _ACEOF
10302 if test $ac_cv_header_sys_wait_h = no; then
10303 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10304 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <sys/wait.h>
10313 main ()
10315 union wait xx, yy; xx = yy
10317 return 0;
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag"
10330 || test ! -s conftest.err'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest.$ac_objext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 echo "$as_me:$LINENO: result: yes" >&5
10343 echo "${ECHO_T}yes" >&6
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_SYS_WAIT_H 1
10346 _ACEOF
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_UNION_WAIT 1
10350 _ACEOF
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 echo "$as_me:$LINENO: result: no" >&5
10357 echo "${ECHO_T}no" >&6
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10404 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10405 iconv.h langinfo.h unistd.h stropts.h errno.h \
10406 sys/resource.h sys/systeminfo.h locale.h \
10407 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10408 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10409 libgen.h util/debug.h util/msg18n.h frame.h \
10410 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10414 echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10421 else
10422 # Is the header compilable?
10423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 $ac_includes_default
10432 #include <$ac_header>
10433 _ACEOF
10434 rm -f conftest.$ac_objext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_header_compiler=yes
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_header_compiler=no
10463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10465 echo "${ECHO_T}$ac_header_compiler" >&6
10467 # Is the header present?
10468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <$ac_header>
10477 _ACEOF
10478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev/null; then
10486 if test -s conftest.err; then
10487 ac_cpp_err=$ac_c_preproc_warn_flag
10488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10489 else
10490 ac_cpp_err=
10492 else
10493 ac_cpp_err=yes
10495 if test -z "$ac_cpp_err"; then
10496 ac_header_preproc=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_header_preproc=no
10503 rm -f conftest.err conftest.$ac_ext
10504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10505 echo "${ECHO_T}$ac_header_preproc" >&6
10507 # So? What about this header?
10508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10509 yes:no: )
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10514 ac_header_preproc=yes
10516 no:yes:* )
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10530 cat <<\_ASBOX
10531 ## ------------------------------------------ ##
10532 ## Report this to the AC_PACKAGE_NAME lists. ##
10533 ## ------------------------------------------ ##
10534 _ASBOX
10536 sed "s/^/$as_me: WARNING: /" >&2
10538 esac
10539 echo "$as_me:$LINENO: checking for $ac_header" >&5
10540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 eval "$as_ac_Header=\$ac_header_preproc"
10546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553 _ACEOF
10557 done
10560 echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10561 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10569 #include <pthread.h>
10570 #include <pthread_np.h>
10572 main ()
10574 int i; i = 0;
10576 return 0;
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag"
10589 || test ! -s conftest.err'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try='test -s conftest.$ac_objext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_PTHREAD_NP_H 1
10605 _ACEOF
10607 else
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10617 for ac_header in strings.h
10619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10621 echo "$as_me:$LINENO: checking for $ac_header" >&5
10622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10628 else
10629 # Is the header compilable?
10630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10639 #include <$ac_header>
10640 _ACEOF
10641 rm -f conftest.$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -z "$ac_c_werror_flag"
10651 || test ! -s conftest.err'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_header_compiler=yes
10664 else
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_header_compiler=no
10670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672 echo "${ECHO_T}$ac_header_compiler" >&6
10674 # Is the header present?
10675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <$ac_header>
10684 _ACEOF
10685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev/null; then
10693 if test -s conftest.err; then
10694 ac_cpp_err=$ac_c_preproc_warn_flag
10695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10696 else
10697 ac_cpp_err=
10699 else
10700 ac_cpp_err=yes
10702 if test -z "$ac_cpp_err"; then
10703 ac_header_preproc=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_header_preproc=no
10710 rm -f conftest.err conftest.$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10712 echo "${ECHO_T}$ac_header_preproc" >&6
10714 # So? What about this header?
10715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10716 yes:no: )
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10721 ac_header_preproc=yes
10723 no:yes:* )
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10737 cat <<\_ASBOX
10738 ## ------------------------------------------ ##
10739 ## Report this to the AC_PACKAGE_NAME lists. ##
10740 ## ------------------------------------------ ##
10741 _ASBOX
10743 sed "s/^/$as_me: WARNING: /" >&2
10745 esac
10746 echo "$as_me:$LINENO: checking for $ac_header" >&5
10747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 eval "$as_ac_Header=\$ac_header_preproc"
10753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10758 cat >>confdefs.h <<_ACEOF
10759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10760 _ACEOF
10764 done
10766 if test "x$MACOSX" = "xyes"; then
10767 cat >>confdefs.h <<\_ACEOF
10768 #define NO_STRINGS_WITH_STRING_H 1
10769 _ACEOF
10771 else
10773 echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10774 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10775 cppflags_save=$CPPFLAGS
10776 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10784 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10785 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10786 /* but don't do it on AIX 5.1 (Uribarri) */
10787 #endif
10788 #ifdef HAVE_XM_XM_H
10789 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10790 #endif
10791 #ifdef HAVE_STRING_H
10792 # include <string.h>
10793 #endif
10794 #if defined(HAVE_STRINGS_H)
10795 # include <strings.h>
10796 #endif
10799 main ()
10801 int i; i = 0;
10803 return 0;
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest.$ac_objext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 echo "$as_me:$LINENO: result: yes" >&5
10829 echo "${ECHO_T}yes" >&6
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 cat >>confdefs.h <<\_ACEOF
10835 #define NO_STRINGS_WITH_STRING_H 1
10836 _ACEOF
10838 echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842 CPPFLAGS=$cppflags_save
10845 if test $ac_cv_c_compiler_gnu = yes; then
10846 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10847 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10848 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 ac_pattern="Autoconf.*'x'"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <sgtty.h>
10859 Autoconf TIOCGETP
10860 _ACEOF
10861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10862 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10863 ac_cv_prog_gcc_traditional=yes
10864 else
10865 ac_cv_prog_gcc_traditional=no
10867 rm -f conftest*
10870 if test $ac_cv_prog_gcc_traditional = no; then
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <termio.h>
10878 Autoconf TCGETA
10879 _ACEOF
10880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10882 ac_cv_prog_gcc_traditional=yes
10884 rm -f conftest*
10888 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10889 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10890 if test $ac_cv_prog_gcc_traditional = yes; then
10891 CC="$CC -traditional"
10895 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10896 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10897 if test "${ac_cv_c_const+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10908 main ()
10910 /* FIXME: Include the comments suggested by Paul. */
10911 #ifndef __cplusplus
10912 /* Ultrix mips cc rejects this. */
10913 typedef int charset[2];
10914 const charset x;
10915 /* SunOS 4.1.1 cc rejects this. */
10916 char const *const *ccp;
10917 char **p;
10918 /* NEC SVR4.0.2 mips cc rejects this. */
10919 struct point {int x, y;};
10920 static struct point const zero = {0,0};
10921 /* AIX XL C 1.02.0.0 rejects this.
10922 It does not let you subtract one const X* pointer from another in
10923 an arm of an if-expression whose if-part is not a constant
10924 expression */
10925 const char *g = "string";
10926 ccp = &g + (g ? g-g : 0);
10927 /* HPUX 7.0 cc rejects these. */
10928 ++ccp;
10929 p = (char**) ccp;
10930 ccp = (char const *const *) p;
10931 { /* SCO 3.2v4 cc rejects this. */
10932 char *t;
10933 char const *s = 0 ? (char *) 0 : (char const *) 0;
10935 *t++ = 0;
10937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10938 int x[] = {25, 17};
10939 const int *foo = &x[0];
10940 ++foo;
10942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10943 typedef const int *iptr;
10944 iptr p = 0;
10945 ++p;
10947 { /* AIX XL C 1.02.0.0 rejects this saying
10948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10949 struct s { int j; const int *ap[3]; };
10950 struct s *b; b->j = 5;
10952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10953 const int foo = 10;
10955 #endif
10958 return 0;
10960 _ACEOF
10961 rm -f conftest.$ac_objext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963 (eval $ac_compile) 2>conftest.er1
10964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try='test -z "$ac_c_werror_flag"
10971 || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest.$ac_objext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_c_const=yes
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 ac_cv_c_const=no
10990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10992 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10993 echo "${ECHO_T}$ac_cv_c_const" >&6
10994 if test $ac_cv_c_const = no; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define const
10998 _ACEOF
11002 echo "$as_me:$LINENO: checking for mode_t" >&5
11003 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11004 if test "${ac_cv_type_mode_t+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_includes_default
11015 main ()
11017 if ((mode_t *) 0)
11018 return 0;
11019 if (sizeof (mode_t))
11020 return 0;
11022 return 0;
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027 (eval $ac_compile) 2>conftest.er1
11028 ac_status=$?
11029 grep -v '^ *+' conftest.er1 >conftest.err
11030 rm -f conftest.er1
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try='test -z "$ac_c_werror_flag"
11035 || test ! -s conftest.err'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_type_mode_t=yes
11048 else
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ac_cv_type_mode_t=no
11054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11056 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11057 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11058 if test $ac_cv_type_mode_t = yes; then
11060 else
11062 cat >>confdefs.h <<_ACEOF
11063 #define mode_t int
11064 _ACEOF
11068 echo "$as_me:$LINENO: checking for off_t" >&5
11069 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11070 if test "${ac_cv_type_off_t+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h. */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 $ac_includes_default
11081 main ()
11083 if ((off_t *) 0)
11084 return 0;
11085 if (sizeof (off_t))
11086 return 0;
11088 return 0;
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_cv_type_off_t=yes
11114 else
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ac_cv_type_off_t=no
11120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11122 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11123 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11124 if test $ac_cv_type_off_t = yes; then
11126 else
11128 cat >>confdefs.h <<_ACEOF
11129 #define off_t long
11130 _ACEOF
11134 echo "$as_me:$LINENO: checking for pid_t" >&5
11135 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11136 if test "${ac_cv_type_pid_t+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 $ac_includes_default
11147 main ()
11149 if ((pid_t *) 0)
11150 return 0;
11151 if (sizeof (pid_t))
11152 return 0;
11154 return 0;
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag"
11167 || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_cv_type_pid_t=yes
11180 else
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_type_pid_t=no
11186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11189 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11190 if test $ac_cv_type_pid_t = yes; then
11192 else
11194 cat >>confdefs.h <<_ACEOF
11195 #define pid_t int
11196 _ACEOF
11200 echo "$as_me:$LINENO: checking for size_t" >&5
11201 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11202 if test "${ac_cv_type_size_t+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 $ac_includes_default
11213 main ()
11215 if ((size_t *) 0)
11216 return 0;
11217 if (sizeof (size_t))
11218 return 0;
11220 return 0;
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_type_size_t=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_cv_type_size_t=no
11252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11254 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11255 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11256 if test $ac_cv_type_size_t = yes; then
11258 else
11260 cat >>confdefs.h <<_ACEOF
11261 #define size_t unsigned
11262 _ACEOF
11266 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11267 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11268 if test "${ac_cv_type_uid_t+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <sys/types.h>
11279 _ACEOF
11280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11281 $EGREP "uid_t" >/dev/null 2>&1; then
11282 ac_cv_type_uid_t=yes
11283 else
11284 ac_cv_type_uid_t=no
11286 rm -f conftest*
11289 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11290 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11291 if test $ac_cv_type_uid_t = no; then
11293 cat >>confdefs.h <<\_ACEOF
11294 #define uid_t int
11295 _ACEOF
11298 cat >>confdefs.h <<\_ACEOF
11299 #define gid_t int
11300 _ACEOF
11304 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11305 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11306 if test "${ac_cv_header_time+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11316 #include <sys/time.h>
11317 #include <time.h>
11320 main ()
11322 if ((struct tm *) 0)
11323 return 0;
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 ac_cv_header_time=yes
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 ac_cv_header_time=no
11357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11359 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11360 echo "${ECHO_T}$ac_cv_header_time" >&6
11361 if test $ac_cv_header_time = yes; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define TIME_WITH_SYS_TIME 1
11365 _ACEOF
11369 echo "$as_me:$LINENO: checking for ino_t" >&5
11370 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11371 if test "${ac_cv_type_ino_t+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 $ac_includes_default
11382 main ()
11384 if ((ino_t *) 0)
11385 return 0;
11386 if (sizeof (ino_t))
11387 return 0;
11389 return 0;
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag"
11402 || test ! -s conftest.err'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_type_ino_t=yes
11415 else
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 ac_cv_type_ino_t=no
11421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11425 if test $ac_cv_type_ino_t = yes; then
11427 else
11429 cat >>confdefs.h <<_ACEOF
11430 #define ino_t long
11431 _ACEOF
11435 echo "$as_me:$LINENO: checking for dev_t" >&5
11436 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11437 if test "${ac_cv_type_dev_t+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 $ac_includes_default
11448 main ()
11450 if ((dev_t *) 0)
11451 return 0;
11452 if (sizeof (dev_t))
11453 return 0;
11455 return 0;
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_type_dev_t=yes
11481 else
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_cv_type_dev_t=no
11487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11490 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11491 if test $ac_cv_type_dev_t = yes; then
11493 else
11495 cat >>confdefs.h <<_ACEOF
11496 #define dev_t unsigned
11497 _ACEOF
11502 echo "$as_me:$LINENO: checking for rlim_t" >&5
11503 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11504 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11505 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11506 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11507 else
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h. */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11515 #include <sys/types.h>
11516 #if STDC_HEADERS
11517 #include <stdlib.h>
11518 #include <stddef.h>
11519 #endif
11520 #ifdef HAVE_SYS_RESOURCE_H
11521 #include <sys/resource.h>
11522 #endif
11524 _ACEOF
11525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11526 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11527 ac_cv_type_rlim_t=yes
11528 else
11529 ac_cv_type_rlim_t=no
11531 rm -f conftest*
11533 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11534 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11536 if test $ac_cv_type_rlim_t = no; then
11537 cat >> confdefs.h <<\EOF
11538 #define rlim_t unsigned long
11542 echo "$as_me:$LINENO: checking for stack_t" >&5
11543 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11544 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11545 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11546 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11547 else
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h. */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11555 #include <sys/types.h>
11556 #if STDC_HEADERS
11557 #include <stdlib.h>
11558 #include <stddef.h>
11559 #endif
11560 #include <signal.h>
11562 _ACEOF
11563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11564 $EGREP "stack_t" >/dev/null 2>&1; then
11565 ac_cv_type_stack_t=yes
11566 else
11567 ac_cv_type_stack_t=no
11569 rm -f conftest*
11571 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11572 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11574 if test $ac_cv_type_stack_t = no; then
11575 cat >> confdefs.h <<\EOF
11576 #define stack_t struct sigaltstack
11580 echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11581 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11589 #include <sys/types.h>
11590 #if STDC_HEADERS
11591 #include <stdlib.h>
11592 #include <stddef.h>
11593 #endif
11594 #include <signal.h>
11595 #include "confdefs.h"
11598 main ()
11600 stack_t sigstk; sigstk.ss_base = 0;
11602 return 0;
11604 _ACEOF
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 echo "$as_me:$LINENO: result: yes" >&5
11628 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11629 #define HAVE_SS_BASE 1
11630 _ACEOF
11632 else
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 echo "$as_me:$LINENO: result: no" >&5
11637 echo "${ECHO_T}no" >&6
11639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11641 olibs="$LIBS"
11642 echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11643 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11645 # Check whether --with-tlib or --without-tlib was given.
11646 if test "${with_tlib+set}" = set; then
11647 withval="$with_tlib"
11650 if test -n "$with_tlib"; then
11651 echo "$as_me:$LINENO: result: $with_tlib" >&5
11652 echo "${ECHO_T}$with_tlib" >&6
11653 LIBS="$LIBS -l$with_tlib"
11654 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11655 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11664 main ()
11668 return 0;
11670 _ACEOF
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag"
11681 || test ! -s conftest.err'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest$ac_exeext'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 echo "$as_me:$LINENO: result: OK" >&5
11694 echo "${ECHO_T}OK" >&6
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 { { echo "$as_me:$LINENO: error: FAILED" >&5
11700 echo "$as_me: error: FAILED" >&2;}
11701 { (exit 1); exit 1; }; }
11703 rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 olibs="$LIBS"
11706 else
11707 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11708 echo "${ECHO_T}empty: automatic terminal library selection" >&6
11709 case "`uname -s 2>/dev/null`" in
11710 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
11711 *) tlibs="ncurses termlib termcap curses";;
11712 esac
11713 for libname in $tlibs; do
11715 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11716 echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11717 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 ac_check_lib_save_LIBS=$LIBS
11722 LIBS="-l${libname} $LIBS"
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h. */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11730 /* Override any gcc2 internal prototype to avoid an error. */
11731 #ifdef __cplusplus
11732 extern "C"
11733 #endif
11734 /* We use char because int might match the return type of a gcc2
11735 builtin and then its argument prototype would still apply. */
11736 char tgetent ();
11738 main ()
11740 tgetent ();
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11747 (eval $ac_link) 2>conftest.er1
11748 ac_status=$?
11749 grep -v '^ *+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 eval "$as_ac_Lib=yes"
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 eval "$as_ac_Lib=no"
11774 rm -f conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11779 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11780 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11783 _ACEOF
11785 LIBS="-l${libname} $LIBS"
11789 if test "x$olibs" != "x$LIBS"; then
11790 if test "$cross_compiling" = yes; then
11791 res="FAIL"
11792 else
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11800 #ifdef HAVE_TERMCAP_H
11801 # include <termcap.h>
11802 #endif
11803 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11804 _ACEOF
11805 rm -f conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 res="OK"
11817 else
11818 echo "$as_me: program exited with status $ac_status" >&5
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 ( exit $ac_status )
11823 res="FAIL"
11825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11827 if test "$res" = "OK"; then
11828 break
11830 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11831 echo "${ECHO_T}$libname library is not usable" >&6
11832 LIBS="$olibs"
11834 done
11835 if test "x$olibs" = "x$LIBS"; then
11836 echo "$as_me:$LINENO: result: no terminal library found" >&5
11837 echo "${ECHO_T}no terminal library found" >&6
11841 if test "x$olibs" = "x$LIBS"; then
11842 echo "$as_me:$LINENO: checking for tgetent()" >&5
11843 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11852 main ()
11854 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11883 else
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 { { echo "$as_me:$LINENO: error: NOT FOUND!
11888 You need to install a terminal library; for example ncurses.
11889 Or specify the name of the library with --with-tlib." >&5
11890 echo "$as_me: error: NOT FOUND!
11891 You need to install a terminal library; for example ncurses.
11892 Or specify the name of the library with --with-tlib." >&2;}
11893 { (exit 1); exit 1; }; }
11895 rm -f conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11899 echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11900 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11901 if test "$cross_compiling" = yes; then
11902 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11903 echo "$as_me: error: failed to compile test program." >&2;}
11904 { (exit 1); exit 1; }; }
11905 else
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11913 #ifdef HAVE_TERMCAP_H
11914 # include <termcap.h>
11915 #endif
11916 main()
11917 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11918 _ACEOF
11919 rm -f conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11931 echo "${ECHO_T}no -- we are in termcap land" >&6
11932 else
11933 echo "$as_me: program exited with status $ac_status" >&5
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ( exit $ac_status )
11938 echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11939 echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11940 #define TERMINFO 1
11941 _ACEOF
11944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11947 if test "x$olibs" != "x$LIBS"; then
11948 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11949 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11950 if test "$cross_compiling" = yes; then
11951 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11952 echo "$as_me: error: failed to compile test program." >&2;}
11953 { (exit 1); exit 1; }; }
11954 else
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 #ifdef HAVE_TERMCAP_H
11963 # include <termcap.h>
11964 #endif
11965 main()
11966 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11967 _ACEOF
11968 rm -f conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 echo "$as_me:$LINENO: result: zero" >&5
11980 echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11981 #define TGETENT_ZERO_ERR 0
11982 _ACEOF
11984 else
11985 echo "$as_me: program exited with status $ac_status" >&5
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ( exit $ac_status )
11990 echo "$as_me:$LINENO: result: non-zero" >&5
11991 echo "${ECHO_T}non-zero" >&6
11993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11997 echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11998 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #ifdef HAVE_TERMCAP_H
12007 # include <termcap.h>
12008 #endif
12011 main ()
12013 ospeed = 20000
12015 return 0;
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 echo "$as_me:$LINENO: result: yes" >&5
12041 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_OSPEED 1
12043 _ACEOF
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 echo "$as_me:$LINENO: result: no" >&5
12050 echo "${ECHO_T}no" >&6
12051 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12052 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12060 #ifdef HAVE_TERMCAP_H
12061 # include <termcap.h>
12062 #endif
12063 extern short ospeed;
12066 main ()
12068 ospeed = 20000
12070 return 0;
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 echo "$as_me:$LINENO: result: yes" >&5
12096 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12097 #define OSPEED_EXTERN 1
12098 _ACEOF
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6
12107 rm -f conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12111 rm -f conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12114 echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12115 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h. */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12123 #ifdef HAVE_TERMCAP_H
12124 # include <termcap.h>
12125 #endif
12128 main ()
12130 if (UP == 0 && BC == 0) PC = 1
12132 return 0;
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137 (eval $ac_link) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 echo "$as_me:$LINENO: result: yes" >&5
12158 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_UP_BC_PC 1
12160 _ACEOF
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12168 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12169 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 #ifdef HAVE_TERMCAP_H
12178 # include <termcap.h>
12179 #endif
12180 extern char *UP, *BC, PC;
12183 main ()
12185 if (UP == 0 && BC == 0) PC = 1
12187 return 0;
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 echo "$as_me:$LINENO: result: yes" >&5
12213 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12214 #define UP_BC_PC_EXTERN 1
12215 _ACEOF
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 echo "$as_me:$LINENO: result: no" >&5
12222 echo "${ECHO_T}no" >&6
12224 rm -f conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12228 rm -f conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12231 echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12232 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12240 #ifdef HAVE_TERMCAP_H
12241 # include <termcap.h>
12242 #endif
12245 main ()
12247 extern int xx(); tputs("test", 1, (outfuntype)xx)
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 echo "$as_me:$LINENO: result: yes" >&5
12275 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_OUTFUNTYPE 1
12277 _ACEOF
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6
12286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12288 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12289 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12297 #include <sys/types.h>
12298 #include <sys/time.h>
12299 #include <sys/select.h>
12301 main ()
12305 return 0;
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 echo "$as_me:$LINENO: result: yes" >&5
12331 echo "${ECHO_T}yes" >&6
12332 cat >>confdefs.h <<\_ACEOF
12333 #define SYS_SELECT_WITH_SYS_TIME 1
12334 _ACEOF
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6
12343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12346 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12347 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12348 if test -r /dev/ptc; then
12349 cat >>confdefs.h <<\_ACEOF
12350 #define HAVE_DEV_PTC 1
12351 _ACEOF
12353 echo "$as_me:$LINENO: result: yes" >&5
12354 echo "${ECHO_T}yes" >&6
12355 else
12356 echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12360 echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12361 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12362 if test -c /dev/ptmx ; then
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12371 main ()
12373 ptsname(0);grantpt(0);unlockpt(0);
12375 return 0;
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12381 ac_status=$?
12382 grep -v '^ *+' conftest.er1 >conftest.err
12383 rm -f conftest.er1
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 echo "$as_me:$LINENO: result: yes" >&5
12401 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12402 #define HAVE_SVR4_PTYS 1
12403 _ACEOF
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6
12412 rm -f conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12414 else
12415 echo "$as_me:$LINENO: result: no" >&5
12416 echo "${ECHO_T}no" >&6
12419 echo "$as_me:$LINENO: checking for ptyranges" >&5
12420 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12421 if test -d /dev/ptym ; then
12422 pdir='/dev/ptym'
12423 else
12424 pdir='/dev'
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 #ifdef M_UNIX
12433 yes;
12434 #endif
12436 _ACEOF
12437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12438 $EGREP "yes" >/dev/null 2>&1; then
12439 ptys=`echo /dev/ptyp??`
12440 else
12441 ptys=`echo $pdir/pty??`
12443 rm -f conftest*
12445 if test "$ptys" != "$pdir/pty??" ; then
12446 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12447 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12448 cat >>confdefs.h <<_ACEOF
12449 #define PTYRANGE0 "$p0"
12450 _ACEOF
12452 cat >>confdefs.h <<_ACEOF
12453 #define PTYRANGE1 "$p1"
12454 _ACEOF
12456 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12457 echo "${ECHO_T}$p0 / $p1" >&6
12458 else
12459 echo "$as_me:$LINENO: result: don't know" >&5
12460 echo "${ECHO_T}don't know" >&6
12463 echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12464 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12465 rm -f conftest_grp
12466 if test "$cross_compiling" = yes; then
12467 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12468 echo "$as_me: error: failed to compile test program" >&2;}
12469 { (exit 1); exit 1; }; }
12470 else
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12478 #include <sys/types.h>
12479 #include <sys/stat.h>
12480 #include <stdio.h>
12481 main()
12483 struct stat sb;
12484 char *x,*ttyname();
12485 int om, m;
12486 FILE *fp;
12488 if (!(x = ttyname(0))) exit(1);
12489 if (stat(x, &sb)) exit(1);
12490 om = sb.st_mode;
12491 if (om & 002) exit(0);
12492 m = system("mesg y");
12493 if (m == -1 || m == 127) exit(1);
12494 if (stat(x, &sb)) exit(1);
12495 m = sb.st_mode;
12496 if (chmod(x, om)) exit(1);
12497 if (m & 002) exit(0);
12498 if (sb.st_gid == getgid()) exit(1);
12499 if (!(fp=fopen("conftest_grp", "w")))
12500 exit(1);
12501 fprintf(fp, "%d\n", sb.st_gid);
12502 fclose(fp);
12503 exit(0);
12506 _ACEOF
12507 rm -f conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12519 if test -f conftest_grp; then
12520 ptygrp=`cat conftest_grp`
12521 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12522 echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12523 cat >>confdefs.h <<\_ACEOF
12524 #define PTYMODE 0620
12525 _ACEOF
12527 cat >>confdefs.h <<_ACEOF
12528 #define PTYGROUP $ptygrp
12529 _ACEOF
12531 else
12532 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12533 echo "${ECHO_T}ptys are world accessable" >&6
12536 else
12537 echo "$as_me: program exited with status $ac_status" >&5
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 ( exit $ac_status )
12542 echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12543 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12547 rm -f conftest_grp
12550 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12551 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12552 if test "${ac_cv_type_signal+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 #include <sys/types.h>
12562 #include <signal.h>
12563 #ifdef signal
12564 # undef signal
12565 #endif
12566 #ifdef __cplusplus
12567 extern "C" void (*signal (int, void (*)(int)))(int);
12568 #else
12569 void (*signal ()) ();
12570 #endif
12573 main ()
12575 int i;
12577 return 0;
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582 (eval $ac_compile) 2>conftest.er1
12583 ac_status=$?
12584 grep -v '^ *+' conftest.er1 >conftest.err
12585 rm -f conftest.er1
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -z "$ac_c_werror_flag"
12590 || test ! -s conftest.err'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest.$ac_objext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_type_signal=void
12603 else
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_cv_type_signal=int
12609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12612 echo "${ECHO_T}$ac_cv_type_signal" >&6
12614 cat >>confdefs.h <<_ACEOF
12615 #define RETSIGTYPE $ac_cv_type_signal
12616 _ACEOF
12620 if test $ac_cv_type_signal = void; then
12621 cat >>confdefs.h <<\_ACEOF
12622 #define SIGRETURN return
12623 _ACEOF
12625 else
12626 cat >>confdefs.h <<\_ACEOF
12627 #define SIGRETURN return 0
12628 _ACEOF
12632 echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12633 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 #include <signal.h>
12642 test_sig()
12644 struct sigcontext *scont;
12645 scont = (struct sigcontext *)0;
12646 return 1;
12649 main ()
12653 return 0;
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6
12680 cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_SIGCONTEXT 1
12682 _ACEOF
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 echo "$as_me:$LINENO: result: no" >&5
12689 echo "${ECHO_T}no" >&6
12691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12693 echo "$as_me:$LINENO: checking getcwd implementation" >&5
12694 echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12695 if test "$cross_compiling" = yes; then
12696 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12697 echo "$as_me: error: failed to compile test program" >&2;}
12698 { (exit 1); exit 1; }; }
12699 else
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 char *dagger[] = { "IFS=pwd", 0 };
12708 main()
12710 char buffer[500];
12711 extern char **environ;
12712 environ = dagger;
12713 return getcwd(buffer, 500) ? 0 : 1;
12715 _ACEOF
12716 rm -f conftest$ac_exeext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718 (eval $ac_link) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 echo "$as_me:$LINENO: result: it is usable" >&5
12728 echo "${ECHO_T}it is usable" >&6
12729 else
12730 echo "$as_me: program exited with status $ac_status" >&5
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ( exit $ac_status )
12735 echo "$as_me:$LINENO: result: it stinks" >&5
12736 echo "${ECHO_T}it stinks" >&6
12737 cat >>confdefs.h <<\_ACEOF
12738 #define BAD_GETCWD 1
12739 _ACEOF
12742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12791 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12792 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12793 memset nanosleep opendir putenv qsort readlink select setenv \
12794 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12795 sigvec strcasecmp strerror strftime stricmp strncasecmp \
12796 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12797 usleep utime utimes
12799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_var+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813 #define $ac_func innocuous_$ac_func
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12820 #ifdef __STDC__
12821 # include <limits.h>
12822 #else
12823 # include <assert.h>
12824 #endif
12826 #undef $ac_func
12828 /* Override any gcc2 internal prototype to avoid an error. */
12829 #ifdef __cplusplus
12830 extern "C"
12832 #endif
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12835 char $ac_func ();
12836 /* The GNU C library defines this for functions which it implements
12837 to always fail with ENOSYS. Some functions are actually named
12838 something starting with __ and the normal name is an alias. */
12839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12840 choke me
12841 #else
12842 char (*f) () = $ac_func;
12843 #endif
12844 #ifdef __cplusplus
12846 #endif
12849 main ()
12851 return f != $ac_func;
12853 return 0;
12855 _ACEOF
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 eval "$as_ac_var=yes"
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 eval "$as_ac_var=no"
12885 rm -f conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12890 if test `eval echo '${'$as_ac_var'}'` = yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12893 _ACEOF
12896 done
12899 echo "$as_me:$LINENO: checking for st_blksize" >&5
12900 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12907 #include <sys/types.h>
12908 #include <sys/stat.h>
12910 main ()
12912 struct stat st;
12913 int n;
12915 stat("/", &st);
12916 n = (int)st.st_blksize;
12918 return 0;
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_c_werror_flag"
12931 || test ! -s conftest.err'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest.$ac_objext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 echo "$as_me:$LINENO: result: yes" >&5
12944 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12945 #define HAVE_ST_BLKSIZE 1
12946 _ACEOF
12948 else
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 echo "$as_me:$LINENO: result: no" >&5
12953 echo "${ECHO_T}no" >&6
12955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12957 echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12958 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12959 if test "$cross_compiling" = yes; then
12960 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12961 echo "$as_me: error: failed to compile test program" >&2;}
12962 { (exit 1); exit 1; }; }
12963 else
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <sys/types.h>
12971 #include <sys/stat.h>
12972 main() {struct stat st; exit(stat("configure/", &st) != 0); }
12973 _ACEOF
12974 rm -f conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 echo "$as_me:$LINENO: result: yes" >&5
12986 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12987 #define STAT_IGNORES_SLASH 1
12988 _ACEOF
12990 else
12991 echo "$as_me: program exited with status $ac_status" >&5
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ( exit $ac_status )
12996 echo "$as_me:$LINENO: result: no" >&5
12997 echo "${ECHO_T}no" >&6
12999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13002 echo "$as_me:$LINENO: checking for iconv_open()" >&5
13003 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
13004 save_LIBS="$LIBS"
13005 LIBS="$LIBS -liconv"
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13013 #ifdef HAVE_ICONV_H
13014 # include <iconv.h>
13015 #endif
13018 main ()
13020 iconv_open("fr", "to");
13022 return 0;
13024 _ACEOF
13025 rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13027 (eval $ac_link) 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag"
13035 || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest$ac_exeext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13048 echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
13049 #define HAVE_ICONV 1
13050 _ACEOF
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 LIBS="$save_LIBS"
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" >&5
13099 echo "${ECHO_T}yes" >&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 echo "$as_me:$LINENO: result: no" >&5
13108 echo "${ECHO_T}no" >&6
13110 rm -f conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13113 rm -f conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13117 echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13118 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 #ifdef HAVE_LANGINFO_H
13127 # include <langinfo.h>
13128 #endif
13131 main ()
13133 char *cs = nl_langinfo(CODESET);
13135 return 0;
13137 _ACEOF
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13140 (eval $ac_link) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 echo "$as_me:$LINENO: result: yes" >&5
13161 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13162 #define HAVE_NL_LANGINFO_CODESET 1
13163 _ACEOF
13165 else
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6
13172 rm -f conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13175 echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13176 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13177 # Check whether --enable-acl or --disable-acl was given.
13178 if test "${enable_acl+set}" = set; then
13179 enableval="$enable_acl"
13181 else
13182 enable_acl="yes"
13184 if test "$enable_acl" = "yes"; then
13185 echo "$as_me:$LINENO: result: no" >&5
13186 echo "${ECHO_T}no" >&6
13187 echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13188 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13189 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lposix1e $LIBS"
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any gcc2 internal prototype to avoid an error. */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char acl_get_file ();
13209 main ()
13211 acl_get_file ();
13213 return 0;
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_posix1e_acl_get_file=yes
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 ac_cv_lib_posix1e_acl_get_file=no
13245 rm -f conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13250 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13251 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13252 LIBS="$LIBS -lposix1e"
13253 else
13254 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13255 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13256 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259 ac_check_lib_save_LIBS=$LIBS
13260 LIBS="-lacl $LIBS"
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h. */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 /* Override any gcc2 internal prototype to avoid an error. */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 /* We use char because int might match the return type of a gcc2
13273 builtin and then its argument prototype would still apply. */
13274 char acl_get_file ();
13276 main ()
13278 acl_get_file ();
13280 return 0;
13282 _ACEOF
13283 rm -f conftest.$ac_objext conftest$ac_exeext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13285 (eval $ac_link) 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag"
13293 || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_lib_acl_acl_get_file=yes
13306 else
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_cv_lib_acl_acl_get_file=no
13312 rm -f conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13316 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13317 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13318 if test $ac_cv_lib_acl_acl_get_file = yes; then
13319 LIBS="$LIBS -lacl"
13320 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13321 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13322 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325 ac_check_lib_save_LIBS=$LIBS
13326 LIBS="-lattr $LIBS"
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 /* Override any gcc2 internal prototype to avoid an error. */
13335 #ifdef __cplusplus
13336 extern "C"
13337 #endif
13338 /* We use char because int might match the return type of a gcc2
13339 builtin and then its argument prototype would still apply. */
13340 char fgetxattr ();
13342 main ()
13344 fgetxattr ();
13346 return 0;
13348 _ACEOF
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_lib_attr_fgetxattr=yes
13372 else
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 ac_cv_lib_attr_fgetxattr=no
13378 rm -f conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13380 LIBS=$ac_check_lib_save_LIBS
13382 echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13383 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13384 if test $ac_cv_lib_attr_fgetxattr = yes; then
13385 LIBS="$LIBS -lattr"
13393 echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13394 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 #include <sys/types.h>
13403 #ifdef HAVE_SYS_ACL_H
13404 # include <sys/acl.h>
13405 #endif
13406 acl_t acl;
13408 main ()
13410 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13411 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13412 acl_free(acl);
13414 return 0;
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag"
13427 || test ! -s conftest.err'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } &&
13433 { ac_try='test -s conftest$ac_exeext'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 echo "$as_me:$LINENO: result: yes" >&5
13440 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13441 #define HAVE_POSIX_ACL 1
13442 _ACEOF
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 echo "$as_me:$LINENO: result: no" >&5
13449 echo "${ECHO_T}no" >&6
13451 rm -f conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13454 echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13455 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13463 #ifdef HAVE_SYS_ACL_H
13464 # include <sys/acl.h>
13465 #endif
13467 main ()
13469 acl("foo", GETACLCNT, 0, NULL);
13472 return 0;
13474 _ACEOF
13475 rm -f conftest.$ac_objext conftest$ac_exeext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477 (eval $ac_link) 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13499 #define HAVE_SOLARIS_ACL 1
13500 _ACEOF
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13509 rm -f conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13512 echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13513 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13521 #ifdef HAVE_SYS_ACL_H
13522 # include <sys/acl.h>
13523 #endif
13524 #ifdef HAVE_SYS_ACCESS_H
13525 # include <sys/access.h>
13526 #endif
13527 #define _ALL_SOURCE
13529 #include <sys/stat.h>
13531 int aclsize;
13532 struct acl *aclent;
13534 main ()
13536 aclsize = sizeof(struct acl);
13537 aclent = (void *)malloc(aclsize);
13538 statacl("foo", STX_NORMAL, aclent, aclsize);
13541 return 0;
13543 _ACEOF
13544 rm -f conftest.$ac_objext conftest$ac_exeext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546 (eval $ac_link) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -z "$ac_c_werror_flag"
13554 || test ! -s conftest.err'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try='test -s conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 echo "$as_me:$LINENO: result: yes" >&5
13567 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13568 #define HAVE_AIX_ACL 1
13569 _ACEOF
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13578 rm -f conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13580 else
13581 echo "$as_me:$LINENO: result: yes" >&5
13582 echo "${ECHO_T}yes" >&6
13585 echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13586 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13587 # Check whether --enable-gpm or --disable-gpm was given.
13588 if test "${enable_gpm+set}" = set; then
13589 enableval="$enable_gpm"
13591 else
13592 enable_gpm="yes"
13595 if test "$enable_gpm" = "yes"; then
13596 echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6
13598 echo "$as_me:$LINENO: checking for gpm" >&5
13599 echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13600 if test "${vi_cv_have_gpm+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603 olibs="$LIBS" ; LIBS="-lgpm"
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h. */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 #include <gpm.h>
13611 #include <linux/keyboard.h>
13613 main ()
13615 Gpm_GetLibVersion(NULL);
13617 return 0;
13619 _ACEOF
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13622 (eval $ac_link) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest$ac_exeext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 vi_cv_have_gpm=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 vi_cv_have_gpm=no
13649 rm -f conftest.err conftest.$ac_objext \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS="$olibs"
13654 echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13655 echo "${ECHO_T}$vi_cv_have_gpm" >&6
13656 if test $vi_cv_have_gpm = yes; then
13657 LIBS="$LIBS -lgpm"
13658 cat >>confdefs.h <<\_ACEOF
13659 #define HAVE_GPM 1
13660 _ACEOF
13663 else
13664 echo "$as_me:$LINENO: result: yes" >&5
13665 echo "${ECHO_T}yes" >&6
13668 echo "$as_me:$LINENO: checking for rename" >&5
13669 echo $ECHO_N "checking for rename... $ECHO_C" >&6
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <stdio.h>
13678 main ()
13680 rename("this", "that")
13682 return 0;
13684 _ACEOF
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687 (eval $ac_link) 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag"
13695 || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest$ac_exeext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 echo "$as_me:$LINENO: result: yes" >&5
13708 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_RENAME 1
13710 _ACEOF
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 echo "$as_me:$LINENO: result: no" >&5
13717 echo "${ECHO_T}no" >&6
13719 rm -f conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13722 echo "$as_me:$LINENO: checking for sysctl" >&5
13723 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h. */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13731 #include <sys/sysctl.h>
13733 main ()
13735 int mib[2], r;
13736 size_t len;
13738 mib[0] = CTL_HW;
13739 mib[1] = HW_USERMEM;
13740 len = sizeof(r);
13741 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13744 return 0;
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag"
13757 || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 echo "$as_me:$LINENO: result: yes" >&5
13770 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13771 #define HAVE_SYSCTL 1
13772 _ACEOF
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 echo "$as_me:$LINENO: result: not usable" >&5
13779 echo "${ECHO_T}not usable" >&6
13781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 echo "$as_me:$LINENO: checking for sysinfo" >&5
13784 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 #include <sys/types.h>
13792 #include <sys/sysinfo.h>
13794 main ()
13796 struct sysinfo sinfo;
13797 int t;
13799 (void)sysinfo(&sinfo);
13800 t = sinfo.totalram;
13803 return 0;
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 echo "$as_me:$LINENO: result: yes" >&5
13829 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13830 #define HAVE_SYSINFO 1
13831 _ACEOF
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 echo "$as_me:$LINENO: result: not usable" >&5
13838 echo "${ECHO_T}not usable" >&6
13840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13842 echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13843 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h. */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 #include <sys/types.h>
13851 #include <sys/sysinfo.h>
13853 main ()
13855 struct sysinfo sinfo;
13856 sinfo.mem_unit = 1;
13859 return 0;
13861 _ACEOF
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864 (eval $ac_compile) 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest.$ac_objext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 echo "$as_me:$LINENO: result: yes" >&5
13885 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_SYSINFO_MEM_UNIT 1
13887 _ACEOF
13889 else
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6
13896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13898 echo "$as_me:$LINENO: checking for sysconf" >&5
13899 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 #include <unistd.h>
13908 main ()
13910 (void)sysconf(_SC_PAGESIZE);
13911 (void)sysconf(_SC_PHYS_PAGES);
13914 return 0;
13916 _ACEOF
13917 rm -f conftest.$ac_objext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag"
13927 || test ! -s conftest.err'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 echo "$as_me:$LINENO: result: yes" >&5
13940 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13941 #define HAVE_SYSCONF 1
13942 _ACEOF
13944 else
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 echo "$as_me:$LINENO: result: not usable" >&5
13949 echo "${ECHO_T}not usable" >&6
13951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: checking size of int" >&5
13955 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13956 if test "${ac_cv_sizeof_int+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 if test "$cross_compiling" = yes; then
13960 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13961 echo "$as_me: error: failed to compile test program" >&2;}
13962 { (exit 1); exit 1; }; }
13963 else
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <stdio.h>
13971 main()
13973 FILE *f=fopen("conftestval", "w");
13974 if (!f) exit(1);
13975 fprintf(f, "%d\n", (int)sizeof(int));
13976 exit(0);
13978 _ACEOF
13979 rm -f conftest$ac_exeext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_sizeof_int=`cat conftestval`
13991 else
13992 echo "$as_me: program exited with status $ac_status" >&5
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ( exit $ac_status )
13997 ac_cv_sizeof_int=0
13999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14004 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14005 cat >>confdefs.h <<_ACEOF
14006 #define SIZEOF_INT $ac_cv_sizeof_int
14007 _ACEOF
14010 echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
14011 echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
14012 bcopy_test_prog='
14013 main() {
14014 char buf[10];
14015 strcpy(buf, "abcdefghi");
14016 mch_memmove(buf, buf + 2, 3);
14017 if (strncmp(buf, "ababcf", 6))
14018 exit(1);
14019 strcpy(buf, "abcdefghi");
14020 mch_memmove(buf + 2, buf, 3);
14021 if (strncmp(buf, "cdedef", 6))
14022 exit(1);
14023 exit(0); /* libc version works properly. */
14027 if test "$cross_compiling" = yes; then
14028 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14029 echo "$as_me: error: failed to compile test program" >&2;}
14030 { (exit 1); exit 1; }; }
14031 else
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14039 _ACEOF
14040 rm -f conftest$ac_exeext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14042 (eval $ac_link) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 cat >>confdefs.h <<\_ACEOF
14052 #define USEMEMMOVE 1
14053 _ACEOF
14054 echo "$as_me:$LINENO: result: memmove does" >&5
14055 echo "${ECHO_T}memmove does" >&6
14056 else
14057 echo "$as_me: program exited with status $ac_status" >&5
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ( exit $ac_status )
14062 if test "$cross_compiling" = yes; then
14063 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14064 echo "$as_me: error: failed to compile test program" >&2;}
14065 { (exit 1); exit 1; }; }
14066 else
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14074 _ACEOF
14075 rm -f conftest$ac_exeext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 cat >>confdefs.h <<\_ACEOF
14087 #define USEBCOPY 1
14088 _ACEOF
14089 echo "$as_me:$LINENO: result: bcopy does" >&5
14090 echo "${ECHO_T}bcopy does" >&6
14091 else
14092 echo "$as_me: program exited with status $ac_status" >&5
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14096 ( exit $ac_status )
14097 if test "$cross_compiling" = yes; then
14098 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14099 echo "$as_me: error: failed to compile test program" >&2;}
14100 { (exit 1); exit 1; }; }
14101 else
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14109 _ACEOF
14110 rm -f conftest$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 cat >>confdefs.h <<\_ACEOF
14122 #define USEMEMCPY 1
14123 _ACEOF
14124 echo "$as_me:$LINENO: result: memcpy does" >&5
14125 echo "${ECHO_T}memcpy does" >&6
14126 else
14127 echo "$as_me: program exited with status $ac_status" >&5
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ( exit $ac_status )
14132 echo "$as_me:$LINENO: result: no" >&5
14133 echo "${ECHO_T}no" >&6
14135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14145 if test "$enable_multibyte" = "yes"; then
14146 cflags_save=$CFLAGS
14147 ldflags_save=$LDFLAGS
14148 if test -n "$x_includes" ; then
14149 CFLAGS="$CFLAGS -I$x_includes"
14150 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
14151 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14152 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14153 cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h. */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <X11/Xlocale.h>
14161 main ()
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14197 /* Override any gcc2 internal prototype to avoid an error. */
14198 #ifdef __cplusplus
14199 extern "C"
14200 #endif
14201 /* We use char because int might match the return type of a gcc2
14202 builtin and then its argument prototype would still apply. */
14203 char _Xsetlocale ();
14205 main ()
14207 _Xsetlocale ();
14209 return 0;
14211 _ACEOF
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 echo "$as_me:$LINENO: result: yes" >&5
14235 echo "${ECHO_T}yes" >&6
14236 cat >>confdefs.h <<\_ACEOF
14237 #define X_LOCALE 1
14238 _ACEOF
14240 else
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6
14247 rm -f conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249 else
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 echo "$as_me:$LINENO: result: no" >&5
14254 echo "${ECHO_T}no" >&6
14256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14258 CFLAGS=$cflags_save
14259 LDFLAGS=$ldflags_save
14262 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14263 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14264 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 ac_check_lib_save_LIBS=$LIBS
14268 LIBS="-lxpg4 $LIBS"
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14276 /* Override any gcc2 internal prototype to avoid an error. */
14277 #ifdef __cplusplus
14278 extern "C"
14279 #endif
14280 /* We use char because int might match the return type of a gcc2
14281 builtin and then its argument prototype would still apply. */
14282 char _xpg4_setrunelocale ();
14284 main ()
14286 _xpg4_setrunelocale ();
14288 return 0;
14290 _ACEOF
14291 rm -f conftest.$ac_objext conftest$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest$ac_exeext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_cv_lib_xpg4__xpg4_setrunelocale=no
14320 rm -f conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14322 LIBS=$ac_check_lib_save_LIBS
14324 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14325 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14326 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14327 LIBS="$LIBS -lxpg4"
14331 echo "$as_me:$LINENO: checking how to create tags" >&5
14332 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14333 test -f tags && mv tags tags.save
14334 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14335 TAGPRG="ctags -I INIT+ --fields=+S"
14336 else
14337 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14338 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14339 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14340 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14341 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14342 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14343 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14345 test -f tags.save && mv tags.save tags
14346 echo "$as_me:$LINENO: result: $TAGPRG" >&5
14347 echo "${ECHO_T}$TAGPRG" >&6
14349 echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14350 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14351 MANDEF="man"
14352 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14353 echo "$as_me:$LINENO: result: $MANDEF" >&5
14354 echo "${ECHO_T}$MANDEF" >&6
14355 if test "$MANDEF" = "man -s"; then
14356 cat >>confdefs.h <<\_ACEOF
14357 #define USEMAN_S 1
14358 _ACEOF
14362 echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14363 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14364 # Check whether --enable-nls or --disable-nls was given.
14365 if test "${enable_nls+set}" = set; then
14366 enableval="$enable_nls"
14368 else
14369 enable_nls="yes"
14372 if test "$enable_nls" = "yes"; then
14373 echo "$as_me:$LINENO: result: no" >&5
14374 echo "${ECHO_T}no" >&6
14376 INSTALL_LANGS=install-languages
14378 INSTALL_TOOL_LANGS=install-tool-languages
14381 # Extract the first word of "msgfmt", so it can be a program name with args.
14382 set dummy msgfmt; ac_word=$2
14383 echo "$as_me:$LINENO: checking for $ac_word" >&5
14384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14385 if test "${ac_cv_prog_MSGFMT+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388 if test -n "$MSGFMT"; then
14389 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_MSGFMT="msgfmt"
14399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14402 done
14403 done
14407 MSGFMT=$ac_cv_prog_MSGFMT
14408 if test -n "$MSGFMT"; then
14409 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14410 echo "${ECHO_T}$MSGFMT" >&6
14411 else
14412 echo "$as_me:$LINENO: result: no" >&5
14413 echo "${ECHO_T}no" >&6
14416 echo "$as_me:$LINENO: checking for NLS" >&5
14417 echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14418 if test -f po/Makefile; then
14419 have_gettext="no"
14420 if test -n "$MSGFMT"; then
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <libintl.h>
14429 main ()
14431 gettext("Test");
14433 return 0;
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 echo "$as_me:$LINENO: result: gettext() works" >&5
14459 echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14460 else
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 olibs=$LIBS
14465 LIBS="$LIBS -lintl"
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h. */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <libintl.h>
14474 main ()
14476 gettext("Test");
14478 return 0;
14480 _ACEOF
14481 rm -f conftest.$ac_objext conftest$ac_exeext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483 (eval $ac_link) 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14504 echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14510 echo "${ECHO_T}gettext() doesn't work" >&6;
14511 LIBS=$olibs
14513 rm -f conftest.err conftest.$ac_objext \
14514 conftest$ac_exeext conftest.$ac_ext
14516 rm -f conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
14518 else
14519 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14520 echo "${ECHO_T}msgfmt not found - disabled" >&6;
14522 if test $have_gettext = "yes"; then
14523 cat >>confdefs.h <<\_ACEOF
14524 #define HAVE_GETTEXT 1
14525 _ACEOF
14527 MAKEMO=yes
14530 for ac_func in bind_textdomain_codeset
14532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14533 echo "$as_me:$LINENO: checking for $ac_func" >&5
14534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14535 if eval "test \"\${$as_ac_var+set}\" = set"; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14546 #define $ac_func innocuous_$ac_func
14548 /* System header to define __stub macros and hopefully few prototypes,
14549 which can conflict with char $ac_func (); below.
14550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14551 <limits.h> exists even on freestanding compilers. */
14553 #ifdef __STDC__
14554 # include <limits.h>
14555 #else
14556 # include <assert.h>
14557 #endif
14559 #undef $ac_func
14561 /* Override any gcc2 internal prototype to avoid an error. */
14562 #ifdef __cplusplus
14563 extern "C"
14565 #endif
14566 /* We use char because int might match the return type of a gcc2
14567 builtin and then its argument prototype would still apply. */
14568 char $ac_func ();
14569 /* The GNU C library defines this for functions which it implements
14570 to always fail with ENOSYS. Some functions are actually named
14571 something starting with __ and the normal name is an alias. */
14572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14573 choke me
14574 #else
14575 char (*f) () = $ac_func;
14576 #endif
14577 #ifdef __cplusplus
14579 #endif
14582 main ()
14584 return f != $ac_func;
14586 return 0;
14588 _ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14591 (eval $ac_link) 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -z "$ac_c_werror_flag"
14599 || test ! -s conftest.err'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest$ac_exeext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 eval "$as_ac_var=yes"
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 eval "$as_ac_var=no"
14618 rm -f conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext conftest.$ac_ext
14621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14623 if test `eval echo '${'$as_ac_var'}'` = yes; then
14624 cat >>confdefs.h <<_ACEOF
14625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14626 _ACEOF
14629 done
14631 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14632 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 #include <libintl.h>
14640 extern int _nl_msg_cat_cntr;
14642 main ()
14644 ++_nl_msg_cat_cntr;
14646 return 0;
14648 _ACEOF
14649 rm -f conftest.$ac_objext conftest$ac_exeext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest$ac_exeext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 echo "$as_me:$LINENO: result: yes" >&5
14672 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_NL_MSG_CAT_CNTR 1
14674 _ACEOF
14676 else
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 echo "$as_me:$LINENO: result: no" >&5
14681 echo "${ECHO_T}no" >&6
14683 rm -f conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14686 else
14687 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14688 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14690 else
14691 echo "$as_me:$LINENO: result: yes" >&5
14692 echo "${ECHO_T}yes" >&6
14695 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14696 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14697 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14698 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14702 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14703 else
14704 # Is the header compilable?
14705 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14706 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 $ac_includes_default
14714 #include <dlfcn.h>
14715 _ACEOF
14716 rm -f conftest.$ac_objext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718 (eval $ac_compile) 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_header_compiler=yes
14739 else
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ac_header_compiler=no
14745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14747 echo "${ECHO_T}$ac_header_compiler" >&6
14749 # Is the header present?
14750 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14751 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <dlfcn.h>
14759 _ACEOF
14760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } >/dev/null; then
14768 if test -s conftest.err; then
14769 ac_cpp_err=$ac_c_preproc_warn_flag
14770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14771 else
14772 ac_cpp_err=
14774 else
14775 ac_cpp_err=yes
14777 if test -z "$ac_cpp_err"; then
14778 ac_header_preproc=yes
14779 else
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_header_preproc=no
14785 rm -f conftest.err conftest.$ac_ext
14786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14787 echo "${ECHO_T}$ac_header_preproc" >&6
14789 # So? What about this header?
14790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14791 yes:no: )
14792 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14793 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14795 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14796 ac_header_preproc=yes
14798 no:yes:* )
14799 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14800 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14802 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14804 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14806 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14808 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14810 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14812 cat <<\_ASBOX
14813 ## ------------------------------------------ ##
14814 ## Report this to the AC_PACKAGE_NAME lists. ##
14815 ## ------------------------------------------ ##
14816 _ASBOX
14818 sed "s/^/$as_me: WARNING: /" >&2
14820 esac
14821 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14822 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14823 if test "${ac_cv_header_dlfcn_h+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826 ac_cv_header_dlfcn_h=$ac_header_preproc
14828 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14829 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14832 if test $ac_cv_header_dlfcn_h = yes; then
14833 DLL=dlfcn.h
14834 else
14835 if test "${ac_cv_header_dl_h+set}" = set; then
14836 echo "$as_me:$LINENO: checking for dl.h" >&5
14837 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14838 if test "${ac_cv_header_dl_h+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14842 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14843 else
14844 # Is the header compilable?
14845 echo "$as_me:$LINENO: checking dl.h usability" >&5
14846 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 $ac_includes_default
14854 #include <dl.h>
14855 _ACEOF
14856 rm -f conftest.$ac_objext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest.$ac_objext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_header_compiler=yes
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_header_compiler=no
14885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887 echo "${ECHO_T}$ac_header_compiler" >&6
14889 # Is the header present?
14890 echo "$as_me:$LINENO: checking dl.h presence" >&5
14891 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 #include <dl.h>
14899 _ACEOF
14900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } >/dev/null; then
14908 if test -s conftest.err; then
14909 ac_cpp_err=$ac_c_preproc_warn_flag
14910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14911 else
14912 ac_cpp_err=
14914 else
14915 ac_cpp_err=yes
14917 if test -z "$ac_cpp_err"; then
14918 ac_header_preproc=yes
14919 else
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_header_preproc=no
14925 rm -f conftest.err conftest.$ac_ext
14926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14927 echo "${ECHO_T}$ac_header_preproc" >&6
14929 # So? What about this header?
14930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14931 yes:no: )
14932 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14933 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14935 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14936 ac_header_preproc=yes
14938 no:yes:* )
14939 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14940 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14942 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14944 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14946 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14948 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14950 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14952 cat <<\_ASBOX
14953 ## ------------------------------------------ ##
14954 ## Report this to the AC_PACKAGE_NAME lists. ##
14955 ## ------------------------------------------ ##
14956 _ASBOX
14958 sed "s/^/$as_me: WARNING: /" >&2
14960 esac
14961 echo "$as_me:$LINENO: checking for dl.h" >&5
14962 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14963 if test "${ac_cv_header_dl_h+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966 ac_cv_header_dl_h=$ac_header_preproc
14968 echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14969 echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14972 if test $ac_cv_header_dl_h = yes; then
14973 DLL=dl.h
14980 if test x${DLL} = xdlfcn.h; then
14982 cat >>confdefs.h <<\_ACEOF
14983 #define HAVE_DLFCN_H 1
14984 _ACEOF
14986 echo "$as_me:$LINENO: checking for dlopen()" >&5
14987 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14996 main ()
14999 extern void* dlopen();
15000 dlopen();
15003 return 0;
15005 _ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15008 (eval $ac_link) 2>conftest.er1
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } &&
15015 { ac_try='test -z "$ac_c_werror_flag"
15016 || test ! -s conftest.err'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
15022 { ac_try='test -s conftest$ac_exeext'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 echo "$as_me:$LINENO: result: yes" >&5
15029 echo "${ECHO_T}yes" >&6;
15031 cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_DLOPEN 1
15033 _ACEOF
15035 else
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15039 echo "$as_me:$LINENO: result: no" >&5
15040 echo "${ECHO_T}no" >&6;
15041 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
15042 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
15043 olibs=$LIBS
15044 LIBS="$LIBS -ldl"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15053 main ()
15056 extern void* dlopen();
15057 dlopen();
15060 return 0;
15062 _ACEOF
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065 (eval $ac_link) 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest$ac_exeext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 echo "$as_me:$LINENO: result: yes" >&5
15086 echo "${ECHO_T}yes" >&6;
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_DLOPEN 1
15090 _ACEOF
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 echo "$as_me:$LINENO: result: no" >&5
15097 echo "${ECHO_T}no" >&6;
15098 LIBS=$olibs
15100 rm -f conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15103 rm -f conftest.err conftest.$ac_objext \
15104 conftest$ac_exeext conftest.$ac_ext
15105 echo "$as_me:$LINENO: checking for dlsym()" >&5
15106 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15115 main ()
15118 extern void* dlsym();
15119 dlsym();
15122 return 0;
15124 _ACEOF
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15127 (eval $ac_link) 2>conftest.er1
15128 ac_status=$?
15129 grep -v '^ *+' conftest.er1 >conftest.err
15130 rm -f conftest.er1
15131 cat conftest.err >&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -z "$ac_c_werror_flag"
15135 || test ! -s conftest.err'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 echo "$as_me:$LINENO: result: yes" >&5
15148 echo "${ECHO_T}yes" >&6;
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAVE_DLSYM 1
15152 _ACEOF
15154 else
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 echo "$as_me:$LINENO: result: no" >&5
15159 echo "${ECHO_T}no" >&6;
15160 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15161 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
15162 olibs=$LIBS
15163 LIBS="$LIBS -ldl"
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15172 main ()
15175 extern void* dlsym();
15176 dlsym();
15179 return 0;
15181 _ACEOF
15182 rm -f conftest.$ac_objext conftest$ac_exeext
15183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15184 (eval $ac_link) 2>conftest.er1
15185 ac_status=$?
15186 grep -v '^ *+' conftest.er1 >conftest.err
15187 rm -f conftest.er1
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } &&
15191 { ac_try='test -z "$ac_c_werror_flag"
15192 || test ! -s conftest.err'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest$ac_exeext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 echo "$as_me:$LINENO: result: yes" >&5
15205 echo "${ECHO_T}yes" >&6;
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_DLSYM 1
15209 _ACEOF
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6;
15217 LIBS=$olibs
15219 rm -f conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15222 rm -f conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15224 elif test x${DLL} = xdl.h; then
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_DL_H 1
15228 _ACEOF
15230 echo "$as_me:$LINENO: checking for shl_load()" >&5
15231 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15232 cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h. */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15240 main ()
15243 extern void* shl_load();
15244 shl_load();
15247 return 0;
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -z "$ac_c_werror_flag"
15260 || test ! -s conftest.err'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest$ac_exeext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 echo "$as_me:$LINENO: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6;
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_SHL_LOAD 1
15277 _ACEOF
15279 else
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 echo "$as_me:$LINENO: result: no" >&5
15284 echo "${ECHO_T}no" >&6;
15285 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15286 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15287 olibs=$LIBS
15288 LIBS="$LIBS -ldld"
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15297 main ()
15300 extern void* shl_load();
15301 shl_load();
15304 return 0;
15306 _ACEOF
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag"
15317 || test ! -s conftest.err'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 echo "$as_me:$LINENO: result: yes" >&5
15330 echo "${ECHO_T}yes" >&6;
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_SHL_LOAD 1
15334 _ACEOF
15336 else
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 echo "$as_me:$LINENO: result: no" >&5
15341 echo "${ECHO_T}no" >&6;
15342 LIBS=$olibs
15344 rm -f conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15347 rm -f conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15351 for ac_header in setjmp.h
15353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355 echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15362 else
15363 # Is the header compilable?
15364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15373 #include <$ac_header>
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_header_compiler=yes
15398 else
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ac_header_compiler=no
15404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406 echo "${ECHO_T}$ac_header_compiler" >&6
15408 # Is the header present?
15409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <$ac_header>
15418 _ACEOF
15419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430 else
15431 ac_cpp_err=
15433 else
15434 ac_cpp_err=yes
15436 if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15438 else
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_header_preproc=no
15444 rm -f conftest.err conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 echo "${ECHO_T}$ac_header_preproc" >&6
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450 yes:no: )
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc=yes
15457 no:yes:* )
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15471 cat <<\_ASBOX
15472 ## ------------------------------------------ ##
15473 ## Report this to the AC_PACKAGE_NAME lists. ##
15474 ## ------------------------------------------ ##
15475 _ASBOX
15477 sed "s/^/$as_me: WARNING: /" >&2
15479 esac
15480 echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485 eval "$as_ac_Header=\$ac_header_preproc"
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494 _ACEOF
15498 done
15501 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15502 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15503 LIBS=`echo $LIBS | sed s/-ldl//`
15504 PERL_LIBS="$PERL_LIBS -ldl"
15508 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15509 && test "x$GUITYPE" != "xCARBONGUI"; then
15510 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15511 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15512 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
15513 || test "x$features" = "xhuge"; then
15514 LIBS="$LIBS -framework Carbon"
15515 echo "$as_me:$LINENO: result: yes" >&5
15516 echo "${ECHO_T}yes" >&6
15517 else
15518 echo "$as_me:$LINENO: result: no" >&5
15519 echo "${ECHO_T}no" >&6
15522 if test "x$MACARCH" = "xboth"; then
15523 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15526 echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15527 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15528 DEPEND_CFLAGS_FILTER=
15529 if test "$GCC" = yes; then
15530 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15531 if test "$gccmajor" -gt "2"; then
15532 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15535 if test "$DEPEND_CFLAGS_FILTER" = ""; then
15536 echo "$as_me:$LINENO: result: no" >&5
15537 echo "${ECHO_T}no" >&6
15538 else
15539 echo "$as_me:$LINENO: result: yes" >&5
15540 echo "${ECHO_T}yes" >&6
15544 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15545 cat >confcache <<\_ACEOF
15546 # This file is a shell script that caches the results of configure
15547 # tests run on this system so they can be shared between configure
15548 # scripts and configure runs, see configure's option --config-cache.
15549 # It is not useful on other systems. If it contains results you don't
15550 # want to keep, you may remove or edit it.
15552 # config.status only pays attention to the cache file if you give it
15553 # the --recheck option to rerun configure.
15555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15557 # following values.
15559 _ACEOF
15561 # The following way of writing the cache mishandles newlines in values,
15562 # but we know of no workaround that is simple, portable, and efficient.
15563 # So, don't put newlines in cache variables' values.
15564 # Ultrix sh set writes to stderr and can't be redirected directly,
15565 # and sets the high bit in the cache file unless we assign to the vars.
15567 (set) 2>&1 |
15568 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15569 *ac_space=\ *)
15570 # `set' does not quote correctly, so add quotes (double-quote
15571 # substitution turns \\\\ into \\, and sed turns \\ into \).
15572 sed -n \
15573 "s/'/'\\\\''/g;
15574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15577 # `set' quotes correctly as required by POSIX, so do not add quotes.
15578 sed -n \
15579 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15581 esac;
15583 sed '
15584 t clear
15585 : clear
15586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15587 t end
15588 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15589 : end' >>confcache
15590 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15591 if test -w $cache_file; then
15592 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15593 cat confcache >$cache_file
15594 else
15595 echo "not updating unwritable cache $cache_file"
15598 rm -f confcache
15600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15601 # Let make expand exec_prefix.
15602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15606 # trailing colons and then remove the whole line if VPATH becomes empty
15607 # (actually we leave an empty line to preserve line numbers).
15608 if test "x$srcdir" = x.; then
15609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15610 s/:*\$(srcdir):*/:/;
15611 s/:*\${srcdir}:*/:/;
15612 s/:*@srcdir@:*/:/;
15613 s/^\([^=]*=[ ]*\):*/\1/;
15614 s/:*$//;
15615 s/^[^=]*=[ ]*$//;
15619 DEFS=-DHAVE_CONFIG_H
15621 ac_libobjs=
15622 ac_ltlibobjs=
15623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15624 # 1. Remove the extension, and $U if already installed.
15625 ac_i=`echo "$ac_i" |
15626 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15627 # 2. Add them.
15628 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15629 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15630 done
15631 LIBOBJS=$ac_libobjs
15633 LTLIBOBJS=$ac_ltlibobjs
15637 : ${CONFIG_STATUS=./config.status}
15638 ac_clean_files_save=$ac_clean_files
15639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15640 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15641 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15642 cat >$CONFIG_STATUS <<_ACEOF
15643 #! $SHELL
15644 # Generated by $as_me.
15645 # Run this file to recreate the current configuration.
15646 # Compiler output produced by configure, useful for debugging
15647 # configure, is in config.log if it exists.
15649 debug=false
15650 ac_cs_recheck=false
15651 ac_cs_silent=false
15652 SHELL=\${CONFIG_SHELL-$SHELL}
15653 _ACEOF
15655 cat >>$CONFIG_STATUS <<\_ACEOF
15656 ## --------------------- ##
15657 ## M4sh Initialization. ##
15658 ## --------------------- ##
15660 # Be Bourne compatible
15661 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15662 emulate sh
15663 NULLCMD=:
15664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15665 # is contrary to our usage. Disable this feature.
15666 alias -g '${1+"$@"}'='"$@"'
15667 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15668 set -o posix
15670 DUALCASE=1; export DUALCASE # for MKS sh
15672 # Support unset when possible.
15673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15674 as_unset=unset
15675 else
15676 as_unset=false
15680 # Work around bugs in pre-3.0 UWIN ksh.
15681 $as_unset ENV MAIL MAILPATH
15682 PS1='$ '
15683 PS2='> '
15684 PS4='+ '
15686 # NLS nuisances.
15687 for as_var in \
15688 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15689 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15690 LC_TELEPHONE LC_TIME
15692 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15693 eval $as_var=C; export $as_var
15694 else
15695 $as_unset $as_var
15697 done
15699 # Required to use basename.
15700 if expr a : '\(a\)' >/dev/null 2>&1; then
15701 as_expr=expr
15702 else
15703 as_expr=false
15706 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15707 as_basename=basename
15708 else
15709 as_basename=false
15713 # Name of the executable.
15714 as_me=`$as_basename "$0" ||
15715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15716 X"$0" : 'X\(//\)$' \| \
15717 X"$0" : 'X\(/\)$' \| \
15718 . : '\(.\)' 2>/dev/null ||
15719 echo X/"$0" |
15720 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15721 /^X\/\(\/\/\)$/{ s//\1/; q; }
15722 /^X\/\(\/\).*/{ s//\1/; q; }
15723 s/.*/./; q'`
15726 # PATH needs CR, and LINENO needs CR and PATH.
15727 # Avoid depending upon Character Ranges.
15728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15731 as_cr_digits='0123456789'
15732 as_cr_alnum=$as_cr_Letters$as_cr_digits
15734 # The user is always right.
15735 if test "${PATH_SEPARATOR+set}" != set; then
15736 echo "#! /bin/sh" >conf$$.sh
15737 echo "exit 0" >>conf$$.sh
15738 chmod +x conf$$.sh
15739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15740 PATH_SEPARATOR=';'
15741 else
15742 PATH_SEPARATOR=:
15744 rm -f conf$$.sh
15748 as_lineno_1=$LINENO
15749 as_lineno_2=$LINENO
15750 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15751 test "x$as_lineno_1" != "x$as_lineno_2" &&
15752 test "x$as_lineno_3" = "x$as_lineno_2" || {
15753 # Find who we are. Look in the path if we contain no path at all
15754 # relative or not.
15755 case $0 in
15756 *[\\/]* ) as_myself=$0 ;;
15757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15763 done
15766 esac
15767 # We did not find ourselves, most probably we were run as `sh COMMAND'
15768 # in which case we are not to be found in the path.
15769 if test "x$as_myself" = x; then
15770 as_myself=$0
15772 if test ! -f "$as_myself"; then
15773 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15774 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15775 { (exit 1); exit 1; }; }
15777 case $CONFIG_SHELL in
15779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15782 IFS=$as_save_IFS
15783 test -z "$as_dir" && as_dir=.
15784 for as_base in sh bash ksh sh5; do
15785 case $as_dir in
15787 if ("$as_dir/$as_base" -c '
15788 as_lineno_1=$LINENO
15789 as_lineno_2=$LINENO
15790 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15791 test "x$as_lineno_1" != "x$as_lineno_2" &&
15792 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15793 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15794 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15795 CONFIG_SHELL=$as_dir/$as_base
15796 export CONFIG_SHELL
15797 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15798 fi;;
15799 esac
15800 done
15801 done
15803 esac
15805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15806 # uniformly replaced by the line number. The first 'sed' inserts a
15807 # line-number line before each line; the second 'sed' does the real
15808 # work. The second script uses 'N' to pair each line-number line
15809 # with the numbered line, and appends trailing '-' during
15810 # substitution so that $LINENO is not a special case at line end.
15811 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15812 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15813 sed '=' <$as_myself |
15814 sed '
15816 s,$,-,
15817 : loop
15818 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15819 t loop
15820 s,-$,,
15821 s,^['$as_cr_digits']*\n,,
15822 ' >$as_me.lineno &&
15823 chmod +x $as_me.lineno ||
15824 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15825 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15826 { (exit 1); exit 1; }; }
15828 # Don't try to exec as it changes $[0], causing all sort of problems
15829 # (the dirname of $[0] is not the place where we might find the
15830 # original and so on. Autoconf is especially sensible to this).
15831 . ./$as_me.lineno
15832 # Exit status is that of the last command.
15833 exit
15837 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15838 *c*,-n*) ECHO_N= ECHO_C='
15839 ' ECHO_T=' ' ;;
15840 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15841 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15842 esac
15844 if expr a : '\(a\)' >/dev/null 2>&1; then
15845 as_expr=expr
15846 else
15847 as_expr=false
15850 rm -f conf$$ conf$$.exe conf$$.file
15851 echo >conf$$.file
15852 if ln -s conf$$.file conf$$ 2>/dev/null; then
15853 # We could just check for DJGPP; but this test a) works b) is more generic
15854 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15855 if test -f conf$$.exe; then
15856 # Don't use ln at all; we don't have any links
15857 as_ln_s='cp -p'
15858 else
15859 as_ln_s='ln -s'
15861 elif ln conf$$.file conf$$ 2>/dev/null; then
15862 as_ln_s=ln
15863 else
15864 as_ln_s='cp -p'
15866 rm -f conf$$ conf$$.exe conf$$.file
15868 if mkdir -p . 2>/dev/null; then
15869 as_mkdir_p=:
15870 else
15871 test -d ./-p && rmdir ./-p
15872 as_mkdir_p=false
15875 as_executable_p="test -f"
15877 # Sed expression to map a string onto a valid CPP name.
15878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15880 # Sed expression to map a string onto a valid variable name.
15881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15884 # IFS
15885 # We need space, tab and new line, in precisely that order.
15886 as_nl='
15888 IFS=" $as_nl"
15890 # CDPATH.
15891 $as_unset CDPATH
15893 exec 6>&1
15895 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15896 # report actual input values of CONFIG_FILES etc. instead of their
15897 # values after options handling. Logging --version etc. is OK.
15898 exec 5>>auto/config.log
15900 echo
15901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15902 ## Running $as_me. ##
15903 _ASBOX
15904 } >&5
15905 cat >&5 <<_CSEOF
15907 This file was extended by $as_me, which was
15908 generated by GNU Autoconf 2.59. Invocation command line was
15910 CONFIG_FILES = $CONFIG_FILES
15911 CONFIG_HEADERS = $CONFIG_HEADERS
15912 CONFIG_LINKS = $CONFIG_LINKS
15913 CONFIG_COMMANDS = $CONFIG_COMMANDS
15914 $ $0 $@
15916 _CSEOF
15917 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15918 echo >&5
15919 _ACEOF
15921 # Files that config.status was made for.
15922 if test -n "$ac_config_files"; then
15923 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15926 if test -n "$ac_config_headers"; then
15927 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15930 if test -n "$ac_config_links"; then
15931 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15934 if test -n "$ac_config_commands"; then
15935 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15938 cat >>$CONFIG_STATUS <<\_ACEOF
15940 ac_cs_usage="\
15941 \`$as_me' instantiates files from templates according to the
15942 current configuration.
15944 Usage: $0 [OPTIONS] [FILE]...
15946 -h, --help print this help, then exit
15947 -V, --version print version number, then exit
15948 -q, --quiet do not print progress messages
15949 -d, --debug don't remove temporary files
15950 --recheck update $as_me by reconfiguring in the same conditions
15951 --file=FILE[:TEMPLATE]
15952 instantiate the configuration file FILE
15953 --header=FILE[:TEMPLATE]
15954 instantiate the configuration header FILE
15956 Configuration files:
15957 $config_files
15959 Configuration headers:
15960 $config_headers
15962 Report bugs to <bug-autoconf@gnu.org>."
15963 _ACEOF
15965 cat >>$CONFIG_STATUS <<_ACEOF
15966 ac_cs_version="\\
15967 config.status
15968 configured by $0, generated by GNU Autoconf 2.59,
15969 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15971 Copyright (C) 2003 Free Software Foundation, Inc.
15972 This config.status script is free software; the Free Software Foundation
15973 gives unlimited permission to copy, distribute and modify it."
15974 srcdir=$srcdir
15975 _ACEOF
15977 cat >>$CONFIG_STATUS <<\_ACEOF
15978 # If no file are specified by the user, then we need to provide default
15979 # value. By we need to know if files were specified by the user.
15980 ac_need_defaults=:
15981 while test $# != 0
15983 case $1 in
15984 --*=*)
15985 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15986 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15987 ac_shift=:
15990 ac_option=$1
15991 ac_optarg=$2
15992 ac_shift=shift
15994 *) # This is not an option, so the user has probably given explicit
15995 # arguments.
15996 ac_option=$1
15997 ac_need_defaults=false;;
15998 esac
16000 case $ac_option in
16001 # Handling of the options.
16002 _ACEOF
16003 cat >>$CONFIG_STATUS <<\_ACEOF
16004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16005 ac_cs_recheck=: ;;
16006 --version | --vers* | -V )
16007 echo "$ac_cs_version"; exit 0 ;;
16008 --he | --h)
16009 # Conflict between --help and --header
16010 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16011 Try \`$0 --help' for more information." >&5
16012 echo "$as_me: error: ambiguous option: $1
16013 Try \`$0 --help' for more information." >&2;}
16014 { (exit 1); exit 1; }; };;
16015 --help | --hel | -h )
16016 echo "$ac_cs_usage"; exit 0 ;;
16017 --debug | --d* | -d )
16018 debug=: ;;
16019 --file | --fil | --fi | --f )
16020 $ac_shift
16021 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16022 ac_need_defaults=false;;
16023 --header | --heade | --head | --hea )
16024 $ac_shift
16025 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16026 ac_need_defaults=false;;
16027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16029 ac_cs_silent=: ;;
16031 # This is an error.
16032 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16033 Try \`$0 --help' for more information." >&5
16034 echo "$as_me: error: unrecognized option: $1
16035 Try \`$0 --help' for more information." >&2;}
16036 { (exit 1); exit 1; }; } ;;
16038 *) ac_config_targets="$ac_config_targets $1" ;;
16040 esac
16041 shift
16042 done
16044 ac_configure_extra_args=
16046 if $ac_cs_silent; then
16047 exec 6>/dev/null
16048 ac_configure_extra_args="$ac_configure_extra_args --silent"
16051 _ACEOF
16052 cat >>$CONFIG_STATUS <<_ACEOF
16053 if \$ac_cs_recheck; then
16054 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16055 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16058 _ACEOF
16064 cat >>$CONFIG_STATUS <<\_ACEOF
16065 for ac_config_target in $ac_config_targets
16067 case "$ac_config_target" in
16068 # Handling of arguments.
16069 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
16070 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
16071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16072 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16073 { (exit 1); exit 1; }; };;
16074 esac
16075 done
16077 # If the user did not use the arguments to specify the items to instantiate,
16078 # then the envvar interface is used. Set only those that are not.
16079 # We use the long form for the default assignment because of an extremely
16080 # bizarre bug on SunOS 4.1.3.
16081 if $ac_need_defaults; then
16082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16086 # Have a temporary directory for convenience. Make it in the build tree
16087 # simply because there is no reason to put it here, and in addition,
16088 # creating and moving files from /tmp can sometimes cause problems.
16089 # Create a temporary directory, and hook for its removal unless debugging.
16090 $debug ||
16092 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16093 trap '{ (exit 1); exit 1; }' 1 2 13 15
16096 # Create a (secure) tmp directory for tmp files.
16099 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16100 test -n "$tmp" && test -d "$tmp"
16101 } ||
16103 tmp=./confstat$$-$RANDOM
16104 (umask 077 && mkdir $tmp)
16105 } ||
16107 echo "$me: cannot create a temporary directory in ." >&2
16108 { (exit 1); exit 1; }
16111 _ACEOF
16113 cat >>$CONFIG_STATUS <<_ACEOF
16116 # CONFIG_FILES section.
16119 # No need to generate the scripts if there are no CONFIG_FILES.
16120 # This happens for instance when ./config.status config.h
16121 if test -n "\$CONFIG_FILES"; then
16122 # Protect against being on the right side of a sed subst in config.status.
16123 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16124 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16125 s,@SHELL@,$SHELL,;t t
16126 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16127 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16128 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16129 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16130 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16131 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16132 s,@exec_prefix@,$exec_prefix,;t t
16133 s,@prefix@,$prefix,;t t
16134 s,@program_transform_name@,$program_transform_name,;t t
16135 s,@bindir@,$bindir,;t t
16136 s,@sbindir@,$sbindir,;t t
16137 s,@libexecdir@,$libexecdir,;t t
16138 s,@datadir@,$datadir,;t t
16139 s,@sysconfdir@,$sysconfdir,;t t
16140 s,@sharedstatedir@,$sharedstatedir,;t t
16141 s,@localstatedir@,$localstatedir,;t t
16142 s,@libdir@,$libdir,;t t
16143 s,@includedir@,$includedir,;t t
16144 s,@oldincludedir@,$oldincludedir,;t t
16145 s,@infodir@,$infodir,;t t
16146 s,@mandir@,$mandir,;t t
16147 s,@build_alias@,$build_alias,;t t
16148 s,@host_alias@,$host_alias,;t t
16149 s,@target_alias@,$target_alias,;t t
16150 s,@DEFS@,$DEFS,;t t
16151 s,@ECHO_C@,$ECHO_C,;t t
16152 s,@ECHO_N@,$ECHO_N,;t t
16153 s,@ECHO_T@,$ECHO_T,;t t
16154 s,@LIBS@,$LIBS,;t t
16155 s,@SET_MAKE@,$SET_MAKE,;t t
16156 s,@CC@,$CC,;t t
16157 s,@CFLAGS@,$CFLAGS,;t t
16158 s,@LDFLAGS@,$LDFLAGS,;t t
16159 s,@CPPFLAGS@,$CPPFLAGS,;t t
16160 s,@ac_ct_CC@,$ac_ct_CC,;t t
16161 s,@EXEEXT@,$EXEEXT,;t t
16162 s,@OBJEXT@,$OBJEXT,;t t
16163 s,@CPP@,$CPP,;t t
16164 s,@EGREP@,$EGREP,;t t
16165 s,@AWK@,$AWK,;t t
16166 s,@STRIP@,$STRIP,;t t
16167 s,@CPP_MM@,$CPP_MM,;t t
16168 s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16169 s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16170 s,@VIMNAME@,$VIMNAME,;t t
16171 s,@EXNAME@,$EXNAME,;t t
16172 s,@VIEWNAME@,$VIEWNAME,;t t
16173 s,@line_break@,$line_break,;t t
16174 s,@dovimdiff@,$dovimdiff,;t t
16175 s,@dogvimdiff@,$dogvimdiff,;t t
16176 s,@compiledby@,$compiledby,;t t
16177 s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16178 s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16179 s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16180 s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16181 s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16182 s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16183 s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16184 s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16185 s,@shrpenv@,$shrpenv,;t t
16186 s,@PERL_SRC@,$PERL_SRC,;t t
16187 s,@PERL_OBJ@,$PERL_OBJ,;t t
16188 s,@PERL_PRO@,$PERL_PRO,;t t
16189 s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16190 s,@PERL_LIBS@,$PERL_LIBS,;t t
16191 s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16192 s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16193 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16194 s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16195 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16196 s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16197 s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16198 s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16199 s,@TCL_SRC@,$TCL_SRC,;t t
16200 s,@TCL_OBJ@,$TCL_OBJ,;t t
16201 s,@TCL_PRO@,$TCL_PRO,;t t
16202 s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16203 s,@TCL_LIBS@,$TCL_LIBS,;t t
16204 s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16205 s,@RUBY_SRC@,$RUBY_SRC,;t t
16206 s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16207 s,@RUBY_PRO@,$RUBY_PRO,;t t
16208 s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16209 s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16210 s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16211 s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16212 s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16213 s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16214 s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16215 s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16216 s,@xmkmfpath@,$xmkmfpath,;t t
16217 s,@X_CFLAGS@,$X_CFLAGS,;t t
16218 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16219 s,@X_LIBS@,$X_LIBS,;t t
16220 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16221 s,@X_LIB@,$X_LIB,;t t
16222 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16223 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16224 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16225 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16226 s,@GTK_LIBS@,$GTK_LIBS,;t t
16227 s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16228 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16229 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16230 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16231 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16232 s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16233 s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16234 s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16235 s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16236 s,@GUITYPE@,$GUITYPE,;t t
16237 s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16238 s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16239 s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16240 s,@TAGPRG@,$TAGPRG,;t t
16241 s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16242 s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16243 s,@MSGFMT@,$MSGFMT,;t t
16244 s,@MAKEMO@,$MAKEMO,;t t
16245 s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16246 s,@LIBOBJS@,$LIBOBJS,;t t
16247 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16248 CEOF
16250 _ACEOF
16252 cat >>$CONFIG_STATUS <<\_ACEOF
16253 # Split the substitutions into bite-sized pieces for seds with
16254 # small command number limits, like on Digital OSF/1 and HP-UX.
16255 ac_max_sed_lines=48
16256 ac_sed_frag=1 # Number of current file.
16257 ac_beg=1 # First line for current file.
16258 ac_end=$ac_max_sed_lines # Line after last line for current file.
16259 ac_more_lines=:
16260 ac_sed_cmds=
16261 while $ac_more_lines; do
16262 if test $ac_beg -gt 1; then
16263 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16264 else
16265 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16267 if test ! -s $tmp/subs.frag; then
16268 ac_more_lines=false
16269 else
16270 # The purpose of the label and of the branching condition is to
16271 # speed up the sed processing (if there are no `@' at all, there
16272 # is no need to browse any of the substitutions).
16273 # These are the two extra sed commands mentioned above.
16274 (echo ':t
16275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16276 if test -z "$ac_sed_cmds"; then
16277 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16278 else
16279 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16281 ac_sed_frag=`expr $ac_sed_frag + 1`
16282 ac_beg=$ac_end
16283 ac_end=`expr $ac_end + $ac_max_sed_lines`
16285 done
16286 if test -z "$ac_sed_cmds"; then
16287 ac_sed_cmds=cat
16289 fi # test -n "$CONFIG_FILES"
16291 _ACEOF
16292 cat >>$CONFIG_STATUS <<\_ACEOF
16293 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16295 case $ac_file in
16296 - | *:- | *:-:* ) # input from stdin
16297 cat >$tmp/stdin
16298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16302 * ) ac_file_in=$ac_file.in ;;
16303 esac
16305 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308 X"$ac_file" : 'X\(//\)[^/]' \| \
16309 X"$ac_file" : 'X\(//\)$' \| \
16310 X"$ac_file" : 'X\(/\)' \| \
16311 . : '\(.\)' 2>/dev/null ||
16312 echo X"$ac_file" |
16313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16315 /^X\(\/\/\)$/{ s//\1/; q; }
16316 /^X\(\/\).*/{ s//\1/; q; }
16317 s/.*/./; q'`
16318 { if $as_mkdir_p; then
16319 mkdir -p "$ac_dir"
16320 else
16321 as_dir="$ac_dir"
16322 as_dirs=
16323 while test ! -d "$as_dir"; do
16324 as_dirs="$as_dir $as_dirs"
16325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16327 X"$as_dir" : 'X\(//\)[^/]' \| \
16328 X"$as_dir" : 'X\(//\)$' \| \
16329 X"$as_dir" : 'X\(/\)' \| \
16330 . : '\(.\)' 2>/dev/null ||
16331 echo X"$as_dir" |
16332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16334 /^X\(\/\/\)$/{ s//\1/; q; }
16335 /^X\(\/\).*/{ s//\1/; q; }
16336 s/.*/./; q'`
16337 done
16338 test ! -n "$as_dirs" || mkdir $as_dirs
16339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16341 { (exit 1); exit 1; }; }; }
16343 ac_builddir=.
16345 if test "$ac_dir" != .; then
16346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16347 # A "../" for each directory in $ac_dir_suffix.
16348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16349 else
16350 ac_dir_suffix= ac_top_builddir=
16353 case $srcdir in
16354 .) # No --srcdir option. We are building in place.
16355 ac_srcdir=.
16356 if test -z "$ac_top_builddir"; then
16357 ac_top_srcdir=.
16358 else
16359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16360 fi ;;
16361 [\\/]* | ?:[\\/]* ) # Absolute path.
16362 ac_srcdir=$srcdir$ac_dir_suffix;
16363 ac_top_srcdir=$srcdir ;;
16364 *) # Relative path.
16365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16367 esac
16369 # Do not use `cd foo && pwd` to compute absolute paths, because
16370 # the directories may not exist.
16371 case `pwd` in
16372 .) ac_abs_builddir="$ac_dir";;
16374 case "$ac_dir" in
16375 .) ac_abs_builddir=`pwd`;;
16376 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16377 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16378 esac;;
16379 esac
16380 case $ac_abs_builddir in
16381 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16383 case ${ac_top_builddir}. in
16384 .) ac_abs_top_builddir=$ac_abs_builddir;;
16385 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16386 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16387 esac;;
16388 esac
16389 case $ac_abs_builddir in
16390 .) ac_abs_srcdir=$ac_srcdir;;
16392 case $ac_srcdir in
16393 .) ac_abs_srcdir=$ac_abs_builddir;;
16394 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16395 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16396 esac;;
16397 esac
16398 case $ac_abs_builddir in
16399 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16401 case $ac_top_srcdir in
16402 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16403 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16404 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16405 esac;;
16406 esac
16410 if test x"$ac_file" != x-; then
16411 { echo "$as_me:$LINENO: creating $ac_file" >&5
16412 echo "$as_me: creating $ac_file" >&6;}
16413 rm -f "$ac_file"
16415 # Let's still pretend it is `configure' which instantiates (i.e., don't
16416 # use $as_me), people would be surprised to read:
16417 # /* config.h. Generated by config.status. */
16418 if test x"$ac_file" = x-; then
16419 configure_input=
16420 else
16421 configure_input="$ac_file. "
16423 configure_input=$configure_input"Generated from `echo $ac_file_in |
16424 sed 's,.*/,,'` by configure."
16426 # First look for the input files in the build tree, otherwise in the
16427 # src tree.
16428 ac_file_inputs=`IFS=:
16429 for f in $ac_file_in; do
16430 case $f in
16431 -) echo $tmp/stdin ;;
16432 [\\/$]*)
16433 # Absolute (can't be DOS-style, as IFS=:)
16434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16435 echo "$as_me: error: cannot find input file: $f" >&2;}
16436 { (exit 1); exit 1; }; }
16437 echo "$f";;
16438 *) # Relative
16439 if test -f "$f"; then
16440 # Build tree
16441 echo "$f"
16442 elif test -f "$srcdir/$f"; then
16443 # Source tree
16444 echo "$srcdir/$f"
16445 else
16446 # /dev/null tree
16447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16448 echo "$as_me: error: cannot find input file: $f" >&2;}
16449 { (exit 1); exit 1; }; }
16450 fi;;
16451 esac
16452 done` || { (exit 1); exit 1; }
16453 _ACEOF
16454 cat >>$CONFIG_STATUS <<_ACEOF
16455 sed "$ac_vpsub
16456 $extrasub
16457 _ACEOF
16458 cat >>$CONFIG_STATUS <<\_ACEOF
16460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16461 s,@configure_input@,$configure_input,;t t
16462 s,@srcdir@,$ac_srcdir,;t t
16463 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16464 s,@top_srcdir@,$ac_top_srcdir,;t t
16465 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16466 s,@builddir@,$ac_builddir,;t t
16467 s,@abs_builddir@,$ac_abs_builddir,;t t
16468 s,@top_builddir@,$ac_top_builddir,;t t
16469 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16471 rm -f $tmp/stdin
16472 if test x"$ac_file" != x-; then
16473 mv $tmp/out $ac_file
16474 else
16475 cat $tmp/out
16476 rm -f $tmp/out
16479 done
16480 _ACEOF
16481 cat >>$CONFIG_STATUS <<\_ACEOF
16484 # CONFIG_HEADER section.
16487 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16488 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16490 # ac_d sets the value in "#define NAME VALUE" lines.
16491 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16492 ac_dB='[ ].*$,\1#\2'
16493 ac_dC=' '
16494 ac_dD=',;t'
16495 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16496 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16497 ac_uB='$,\1#\2define\3'
16498 ac_uC=' '
16499 ac_uD=',;t'
16501 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16503 case $ac_file in
16504 - | *:- | *:-:* ) # input from stdin
16505 cat >$tmp/stdin
16506 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16508 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16510 * ) ac_file_in=$ac_file.in ;;
16511 esac
16513 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16514 echo "$as_me: creating $ac_file" >&6;}
16516 # First look for the input files in the build tree, otherwise in the
16517 # src tree.
16518 ac_file_inputs=`IFS=:
16519 for f in $ac_file_in; do
16520 case $f in
16521 -) echo $tmp/stdin ;;
16522 [\\/$]*)
16523 # Absolute (can't be DOS-style, as IFS=:)
16524 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16525 echo "$as_me: error: cannot find input file: $f" >&2;}
16526 { (exit 1); exit 1; }; }
16527 # Do quote $f, to prevent DOS paths from being IFS'd.
16528 echo "$f";;
16529 *) # Relative
16530 if test -f "$f"; then
16531 # Build tree
16532 echo "$f"
16533 elif test -f "$srcdir/$f"; then
16534 # Source tree
16535 echo "$srcdir/$f"
16536 else
16537 # /dev/null tree
16538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16539 echo "$as_me: error: cannot find input file: $f" >&2;}
16540 { (exit 1); exit 1; }; }
16541 fi;;
16542 esac
16543 done` || { (exit 1); exit 1; }
16544 # Remove the trailing spaces.
16545 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16547 _ACEOF
16549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16550 # `conftest.undefs', that substitutes the proper values into
16551 # config.h.in to produce config.h. The first handles `#define'
16552 # templates, and the second `#undef' templates.
16553 # And first: Protect against being on the right side of a sed subst in
16554 # config.status. Protect against being in an unquoted here document
16555 # in config.status.
16556 rm -f conftest.defines conftest.undefs
16557 # Using a here document instead of a string reduces the quoting nightmare.
16558 # Putting comments in sed scripts is not portable.
16560 # `end' is used to avoid that the second main sed command (meant for
16561 # 0-ary CPP macros) applies to n-ary macro definitions.
16562 # See the Autoconf documentation for `clear'.
16563 cat >confdef2sed.sed <<\_ACEOF
16564 s/[\\&,]/\\&/g
16565 s,[\\$`],\\&,g
16566 t clear
16567 : clear
16568 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16569 t end
16570 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16571 : end
16572 _ACEOF
16573 # If some macros were called several times there might be several times
16574 # the same #defines, which is useless. Nevertheless, we may not want to
16575 # sort them, since we want the *last* AC-DEFINE to be honored.
16576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16578 rm -f confdef2sed.sed
16580 # This sed command replaces #undef with comments. This is necessary, for
16581 # example, in the case of _POSIX_SOURCE, which is predefined and required
16582 # on some systems where configure will not decide to define it.
16583 cat >>conftest.undefs <<\_ACEOF
16584 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16585 _ACEOF
16587 # Break up conftest.defines because some shells have a limit on the size
16588 # of here documents, and old seds have small limits too (100 cmds).
16589 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16590 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16592 echo ' :' >>$CONFIG_STATUS
16593 rm -f conftest.tail
16594 while grep . conftest.defines >/dev/null
16596 # Write a limited-size here document to $tmp/defines.sed.
16597 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16598 # Speed up: don't consider the non `#define' lines.
16599 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16600 # Work around the forget-to-reset-the-flag bug.
16601 echo 't clr' >>$CONFIG_STATUS
16602 echo ': clr' >>$CONFIG_STATUS
16603 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16604 echo 'CEOF
16605 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16606 rm -f $tmp/in
16607 mv $tmp/out $tmp/in
16608 ' >>$CONFIG_STATUS
16609 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16610 rm -f conftest.defines
16611 mv conftest.tail conftest.defines
16612 done
16613 rm -f conftest.defines
16614 echo ' fi # grep' >>$CONFIG_STATUS
16615 echo >>$CONFIG_STATUS
16617 # Break up conftest.undefs because some shells have a limit on the size
16618 # of here documents, and old seds have small limits too (100 cmds).
16619 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16620 rm -f conftest.tail
16621 while grep . conftest.undefs >/dev/null
16623 # Write a limited-size here document to $tmp/undefs.sed.
16624 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16625 # Speed up: don't consider the non `#undef'
16626 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16627 # Work around the forget-to-reset-the-flag bug.
16628 echo 't clr' >>$CONFIG_STATUS
16629 echo ': clr' >>$CONFIG_STATUS
16630 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16631 echo 'CEOF
16632 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16633 rm -f $tmp/in
16634 mv $tmp/out $tmp/in
16635 ' >>$CONFIG_STATUS
16636 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16637 rm -f conftest.undefs
16638 mv conftest.tail conftest.undefs
16639 done
16640 rm -f conftest.undefs
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643 # Let's still pretend it is `configure' which instantiates (i.e., don't
16644 # use $as_me), people would be surprised to read:
16645 # /* config.h. Generated by config.status. */
16646 if test x"$ac_file" = x-; then
16647 echo "/* Generated by configure. */" >$tmp/config.h
16648 else
16649 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16651 cat $tmp/in >>$tmp/config.h
16652 rm -f $tmp/in
16653 if test x"$ac_file" != x-; then
16654 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16656 echo "$as_me: $ac_file is unchanged" >&6;}
16657 else
16658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$ac_file" : 'X\(//\)[^/]' \| \
16661 X"$ac_file" : 'X\(//\)$' \| \
16662 X"$ac_file" : 'X\(/\)' \| \
16663 . : '\(.\)' 2>/dev/null ||
16664 echo X"$ac_file" |
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667 /^X\(\/\/\)$/{ s//\1/; q; }
16668 /^X\(\/\).*/{ s//\1/; q; }
16669 s/.*/./; q'`
16670 { if $as_mkdir_p; then
16671 mkdir -p "$ac_dir"
16672 else
16673 as_dir="$ac_dir"
16674 as_dirs=
16675 while test ! -d "$as_dir"; do
16676 as_dirs="$as_dir $as_dirs"
16677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679 X"$as_dir" : 'X\(//\)[^/]' \| \
16680 X"$as_dir" : 'X\(//\)$' \| \
16681 X"$as_dir" : 'X\(/\)' \| \
16682 . : '\(.\)' 2>/dev/null ||
16683 echo X"$as_dir" |
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686 /^X\(\/\/\)$/{ s//\1/; q; }
16687 /^X\(\/\).*/{ s//\1/; q; }
16688 s/.*/./; q'`
16689 done
16690 test ! -n "$as_dirs" || mkdir $as_dirs
16691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16693 { (exit 1); exit 1; }; }; }
16695 rm -f $ac_file
16696 mv $tmp/config.h $ac_file
16698 else
16699 cat $tmp/config.h
16700 rm -f $tmp/config.h
16702 done
16703 _ACEOF
16705 cat >>$CONFIG_STATUS <<\_ACEOF
16707 { (exit 0); exit 0; }
16708 _ACEOF
16709 chmod +x $CONFIG_STATUS
16710 ac_clean_files=$ac_clean_files_save
16713 # configure is writing to config.log, and then calls config.status.
16714 # config.status does its own redirection, appending to config.log.
16715 # Unfortunately, on DOS this fails, as config.log is still kept open
16716 # by configure, so config.status won't be able to write to it; its
16717 # output is simply discarded. So we exec the FD to /dev/null,
16718 # effectively closing config.log, so it can be properly (re)opened and
16719 # appended to by config.status. When coming back to configure, we
16720 # need to make the FD available again.
16721 if test "$no_create" != yes; then
16722 ac_cs_success=:
16723 ac_config_status_args=
16724 test "$silent" = yes &&
16725 ac_config_status_args="$ac_config_status_args --quiet"
16726 exec 5>/dev/null
16727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16728 exec 5>>auto/config.log
16729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16730 # would make configure fail if this is the last instruction.
16731 $ac_cs_success || { (exit 1); exit 1; }