(Fplay_sound_internal): Update call to openp.
[emacs.git] / configure
blob2d81a9c66f61beed02e40acacea1ffd4ec503598
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
261 ac_unique_file="src/lisp.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
816 Program names:
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
821 X features:
822 --x-includes=DIR X include files are in DIR
823 --x-libraries=DIR X library files are in DIR
825 System types:
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
831 if test -n "$ac_init_help"; then
833 cat <<\_ACEOF
835 Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --disable-largefile omit support for large files
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-game-dir use a shared game directory if possible
844 --with-game-user use specified user for game directory
845 --without-gcc don't use GCC to compile Emacs if GCC is found
846 --without-pop don't support POP mail retrieval with movemail
847 --with-kerberos support Kerberos-authenticated POP
848 --with-kerberos5 support Kerberos version 5 authenticated POP
849 --with-hesiod support Hesiod to get the POP server host
850 --without-sound don't compile with sound support
851 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
852 --with-xpm use -lXpm for displaying XPM images
853 --with-jpeg use -ljpeg for displaying JPEG images
854 --with-tiff use -ltiff for displaying TIFF images
855 --with-gif use -lungif for displaying GIF images
856 --with-png use -lpng for displaying PNG images
857 --without-toolkit-scroll-bars
858 don't use Motif or Xaw3d scroll bars
859 --without-xim don't use X11 XIM
860 --without-carbon don't use Carbon GUI on Mac OS X
861 --with-x use the X Window System
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 _ACEOF
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 # absolute.
910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915 cd $ac_dir
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
918 echo
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
921 echo
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
925 echo
926 $ac_configure --help
927 else
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 cd $ac_popdir
931 done
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
936 cat <<\_ACEOF
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
942 _ACEOF
943 exit 0
945 exec 5>config.log
946 cat >&5 <<_ACEOF
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
950 It was created by $as_me, which was
951 generated by GNU Autoconf 2.53. Invocation command line was
953 $ $0 $@
955 _ACEOF
957 cat <<_ASUNAME
958 ## --------- ##
959 ## Platform. ##
960 ## --------- ##
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 _ASUNAME
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 for as_dir in $PATH
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987 done
989 } >&5
991 cat >&5 <<_ACEOF
994 ## ----------- ##
995 ## Core tests. ##
996 ## ----------- ##
998 _ACEOF
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1004 ac_configure_args=
1005 ac_sep=
1006 for ac_arg
1008 case $ac_arg in
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n ) continue ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 continue ;;
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
1017 case " $ac_configure_args " in
1018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1019 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1020 ac_sep=" " ;;
1021 esac
1022 # Get rid of the leading space.
1023 done
1025 # When interrupted or exit'd, cleanup temporary files, and complete
1026 # config.log. We remove comments because anyway the quotes in there
1027 # would cause problems or look ugly.
1028 # WARNING: Be sure not to use single quotes in there, as some shells,
1029 # such as our DU 5.0 friend, will then `close' the trap.
1030 trap 'exit_status=$?
1031 # Save into config.log some information that might help in debugging.
1033 echo
1034 cat <<\_ASBOX
1035 ## ---------------- ##
1036 ## Cache variables. ##
1037 ## ---------------- ##
1038 _ASBOX
1039 echo
1040 # The following way of writing the cache mishandles newlines in values,
1042 (set) 2>&1 |
1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1044 *ac_space=\ *)
1045 sed -n \
1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1050 sed -n \
1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1053 esac;
1055 echo
1056 if test -s confdefs.h; then
1057 cat <<\_ASBOX
1058 ## ----------- ##
1059 ## confdefs.h. ##
1060 ## ----------- ##
1061 _ASBOX
1062 echo
1063 sed "/^$/d" confdefs.h
1064 echo
1066 test "$ac_signal" != 0 &&
1067 echo "$as_me: caught signal $ac_signal"
1068 echo "$as_me: exit $exit_status"
1069 } >&5
1070 rm -f core core.* *.core &&
1071 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1072 exit $exit_status
1074 for ac_signal in 1 2 13 15; do
1075 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1076 done
1077 ac_signal=0
1079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1080 rm -rf conftest* confdefs.h
1081 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1082 echo >confdefs.h
1084 # Predefined preprocessor variables.
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_NAME "$PACKAGE_NAME"
1088 _ACEOF
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1093 _ACEOF
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1098 _ACEOF
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_STRING "$PACKAGE_STRING"
1103 _ACEOF
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1108 _ACEOF
1111 # Let the site file select an alternate cache file if it wants to.
1112 # Prefer explicitly selected file to automatically selected ones.
1113 if test -z "$CONFIG_SITE"; then
1114 if test "x$prefix" != xNONE; then
1115 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1116 else
1117 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1120 for ac_site_file in $CONFIG_SITE; do
1121 if test -r "$ac_site_file"; then
1122 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1123 echo "$as_me: loading site script $ac_site_file" >&6;}
1124 sed 's/^/| /' "$ac_site_file" >&5
1125 . "$ac_site_file"
1127 done
1129 if test -r "$cache_file"; then
1130 # Some versions of bash will fail to source /dev/null (special
1131 # files actually), so we avoid doing that.
1132 if test -f "$cache_file"; then
1133 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1134 echo "$as_me: loading cache $cache_file" >&6;}
1135 case $cache_file in
1136 [\\/]* | ?:[\\/]* ) . $cache_file;;
1137 *) . ./$cache_file;;
1138 esac
1140 else
1141 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1142 echo "$as_me: creating cache $cache_file" >&6;}
1143 >$cache_file
1146 # Check that the precious variables saved in the cache have kept the same
1147 # value.
1148 ac_cache_corrupted=false
1149 for ac_var in `(set) 2>&1 |
1150 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1152 eval ac_new_set=\$ac_env_${ac_var}_set
1153 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1154 eval ac_new_val="\$ac_env_${ac_var}_value"
1155 case $ac_old_set,$ac_new_set in
1156 set,)
1157 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1159 ac_cache_corrupted=: ;;
1160 ,set)
1161 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1163 ac_cache_corrupted=: ;;
1164 ,);;
1166 if test "x$ac_old_val" != "x$ac_new_val"; then
1167 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1168 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1169 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1170 echo "$as_me: former value: $ac_old_val" >&2;}
1171 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1172 echo "$as_me: current value: $ac_new_val" >&2;}
1173 ac_cache_corrupted=:
1174 fi;;
1175 esac
1176 # Pass precious variables to config.status.
1177 if test "$ac_new_set" = set; then
1178 case $ac_new_val in
1179 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1181 *) ac_arg=$ac_var=$ac_new_val ;;
1182 esac
1183 case " $ac_configure_args " in
1184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1185 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1186 esac
1188 done
1189 if $ac_cache_corrupted; then
1190 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1191 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1192 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1193 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1194 { (exit 1); exit 1; }; }
1197 ac_ext=c
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1220 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1223 test "$program_prefix" != NONE &&
1224 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1225 # Use a double $ so make ignores it.
1226 test "$program_suffix" != NONE &&
1227 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1228 # Double any \ or $. echo might interpret backslashes.
1229 # By default was `s,x,x', remove it if useless.
1230 cat <<\_ACEOF >conftest.sed
1231 s/[\\$]/&&/g;s/;s,x,x,$//
1232 _ACEOF
1233 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1234 rm conftest.sed
1237 lispdir='${datadir}/emacs/${version}/lisp'
1238 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1239 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1240 lisppath='${locallisppath}:${lispdir}'
1241 etcdir='${datadir}/emacs/${version}/etc'
1242 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1243 docdir='${datadir}/emacs/${version}/etc'
1244 gamedir=yes
1247 # Check whether --with-game-dir or --without-game-dir was given.
1248 if test "${with_game_dir+set}" = set; then
1249 withval="$with_game_dir"
1251 gamedir="$withval"
1254 if test "$gamedir" = yes; then
1255 gamedir="${localstatedir}/games/emacs"
1257 eval tgamedir=\"$gamedir\"
1258 if test "$gamedir" != no; then
1260 cat >>confdefs.h <<_ACEOF
1261 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1262 _ACEOF
1266 gameuser=games
1268 # Check whether --with-game-user or --without-game-user was given.
1269 if test "${with_game_user+set}" = set; then
1270 withval="$with_game_user"
1271 gameuser="$withval"
1275 # Check whether --with-gcc or --without-gcc was given.
1276 if test "${with_gcc+set}" = set; then
1277 withval="$with_gcc"
1281 # Check whether --with-pop or --without-pop was given.
1282 if test "${with_pop+set}" = set; then
1283 withval="$with_pop"
1284 if test "$withval" = yes; then
1285 cat >>confdefs.h <<\_ACEOF
1286 #define MAIL_USE_POP 1
1287 _ACEOF
1289 else :
1291 else
1292 cat >>confdefs.h <<\_ACEOF
1293 #define MAIL_USE_POP 1
1294 _ACEOF
1299 # Check whether --with-kerberos or --without-kerberos was given.
1300 if test "${with_kerberos+set}" = set; then
1301 withval="$with_kerberos"
1302 cat >>confdefs.h <<\_ACEOF
1303 #define KERBEROS 1
1304 _ACEOF
1309 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1310 if test "${with_kerberos5+set}" = set; then
1311 withval="$with_kerberos5"
1312 if test "${with_kerberos5+set}" = set; then
1313 if test "${with_kerberos+set}" != set; then
1314 with_kerberos=yes
1315 cat >>confdefs.h <<\_ACEOF
1316 #define KERBEROS 1
1317 _ACEOF
1322 cat >>confdefs.h <<\_ACEOF
1323 #define KERBEROS5 1
1324 _ACEOF
1328 # Check whether --with-hesiod or --without-hesiod was given.
1329 if test "${with_hesiod+set}" = set; then
1330 withval="$with_hesiod"
1332 cat >>confdefs.h <<\_ACEOF
1333 #define HESIOD 1
1334 _ACEOF
1339 # Check whether --with-sound or --without-sound was given.
1340 if test "${with_sound+set}" = set; then
1341 withval="$with_sound"
1346 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1347 if test "${with_x_toolkit+set}" = set; then
1348 withval="$with_x_toolkit"
1349 case "${withval}" in
1350 y | ye | yes ) val=athena ;;
1351 n | no ) val=no ;;
1352 l | lu | luc | luci | lucid ) val=lucid ;;
1353 a | at | ath | athe | athen | athena ) val=athena ;;
1354 m | mo | mot | moti | motif ) val=motif ;;
1356 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1357 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1358 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1359 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1360 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1361 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1362 { (exit 1); exit 1; }; }
1364 esac
1365 with_x_toolkit=$val
1369 # Check whether --with-xpm or --without-xpm was given.
1370 if test "${with_xpm+set}" = set; then
1371 withval="$with_xpm"
1375 # Check whether --with-jpeg or --without-jpeg was given.
1376 if test "${with_jpeg+set}" = set; then
1377 withval="$with_jpeg"
1381 # Check whether --with-tiff or --without-tiff was given.
1382 if test "${with_tiff+set}" = set; then
1383 withval="$with_tiff"
1387 # Check whether --with-gif or --without-gif was given.
1388 if test "${with_gif+set}" = set; then
1389 withval="$with_gif"
1393 # Check whether --with-png or --without-png was given.
1394 if test "${with_png+set}" = set; then
1395 withval="$with_png"
1399 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1400 if test "${with_toolkit_scroll_bars+set}" = set; then
1401 withval="$with_toolkit_scroll_bars"
1405 # Check whether --with-xim or --without-xim was given.
1406 if test "${with_xim+set}" = set; then
1407 withval="$with_xim"
1411 # Check whether --with-carbon or --without-carbon was given.
1412 if test "${with_carbon+set}" = set; then
1413 withval="$with_carbon"
1417 #### Make srcdir absolute, if it isn't already. It's important to
1418 #### avoid running the path through pwd unnecessarily, since pwd can
1419 #### give you automounter prefixes, which can go away. We do all this
1420 #### so Emacs can find its files when run uninstalled.
1421 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1422 unset CDPATH
1423 case "${srcdir}" in
1424 /* ) ;;
1426 ## We may be able to use the $PWD environment variable to make this
1427 ## absolute. But sometimes PWD is inaccurate.
1428 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1429 ## but that tested only for a well-formed and valid PWD,
1430 ## it did not object when PWD was well-formed and valid but just wrong.
1431 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1432 then
1433 srcdir="$PWD"
1434 else
1435 srcdir="`(cd ${srcdir}; pwd)`"
1438 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1439 esac
1441 #### Check if the source directory already has a configured system in it.
1442 if test `pwd` != `(cd ${srcdir} && pwd)` \
1443 && test -f "${srcdir}/src/config.h" ; then
1444 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1445 as a build directory right now; it has been configured in its own
1446 right. To configure in another directory as well, you MUST
1447 use GNU make. If you do not have GNU make, then you must
1448 now do \`make distclean' in ${srcdir},
1449 and then run $0 again." >&5
1450 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1451 as a build directory right now; it has been configured in its own
1452 right. To configure in another directory as well, you MUST
1453 use GNU make. If you do not have GNU make, then you must
1454 now do \`make distclean' in ${srcdir},
1455 and then run $0 again." >&2;}
1457 extrasub='/^VPATH[ ]*=/c\
1458 vpath %.c $(srcdir)\
1459 vpath %.h $(srcdir)\
1460 vpath %.y $(srcdir)\
1461 vpath %.l $(srcdir)\
1462 vpath %.s $(srcdir)\
1463 vpath %.in $(srcdir)\
1464 vpath %.texi $(srcdir)'
1467 #### Given the configuration name, set machfile and opsysfile to the
1468 #### names of the m/*.h and s/*.h files we should use.
1470 ### Canonicalize the configuration name.
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 canonical=$host
1552 configuration=${host_alias-$host}
1555 ### If you add support for a new configuration, add code to this
1556 ### switch statement to recognize your configuration name and select
1557 ### the appropriate operating system and machine description files.
1559 ### You would hope that you could choose an m/*.h file pretty much
1560 ### based on the machine portion of the configuration name, and an s-
1561 ### file based on the operating system portion. However, it turns out
1562 ### that each m/*.h file is pretty manufacturer-specific - for
1563 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1564 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1565 ### machines. So we basically have to have a special case for each
1566 ### configuration name.
1568 ### As far as handling version numbers on operating systems is
1569 ### concerned, make sure things will fail in a fixable way. If
1570 ### /etc/MACHINES doesn't say anything about version numbers, be
1571 ### prepared to handle anything reasonably. If version numbers
1572 ### matter, be sure /etc/MACHINES says something about it.
1574 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1575 ### "System V Release 4"; he writes, "The old convention encouraged
1576 ### confusion between `system' and `release' levels'."
1578 machine='' opsys='' unported=no
1579 case "${canonical}" in
1581 ## FreeBSD ports
1582 *-*-freebsd* )
1583 opsys=freebsd
1584 case "${canonical}" in
1585 alpha*-*-freebsd*) machine=alpha ;;
1586 i[3456]86-*-freebsd*) machine=intel386 ;;
1587 esac
1590 ## NetBSD ports
1591 *-*-netbsd* )
1592 opsys=netbsd
1593 case "${canonical}" in
1594 alpha*-*-netbsd*) machine=alpha ;;
1595 i[3456]86-*-netbsd*) machine=intel386 ;;
1596 m68k-*-netbsd*)
1597 # This is somewhat bogus.
1598 machine=hp9000s300 ;;
1599 powerpc-apple-netbsd*) machine=macppc ;;
1600 mips-*-netbsd*) machine=pmax ;;
1601 mipsel-*-netbsd*) machine=pmax ;;
1602 ns32k-*-netbsd*) machine=ns32000 ;;
1603 powerpc-*-netbsd*) machine=macppc ;;
1604 sparc*-*-netbsd*) machine=sparc ;;
1605 vax-*-netbsd*) machine=vax ;;
1606 arm-*-netbsd*) machine=arm ;;
1607 esac
1610 ## OpenBSD ports
1611 *-*-openbsd* )
1612 opsys=openbsd
1613 case "${canonical}" in
1614 alpha*-*-openbsd*) machine=alpha ;;
1615 i386-*-openbsd*) machine=intel386 ;;
1616 m68k-*-openbsd*) machine=hp9000s300 ;;
1617 mipsel-*-openbsd*) machine=pmax ;;
1618 ns32k-*-openbsd*) machine=ns32000 ;;
1619 sparc-*-openbsd*) machine=sparc ;;
1620 vax-*-openbsd*) machine=vax ;;
1621 esac
1624 ## Acorn RISCiX:
1625 arm-acorn-riscix1.1* )
1626 machine=acorn opsys=riscix1-1
1628 arm-acorn-riscix1.2* | arm-acorn-riscix )
1629 ## This name is riscix12 instead of riscix1.2
1630 ## to avoid a file name conflict on MSDOS.
1631 machine=acorn opsys=riscix12
1634 ## BSDI ports
1635 *-*-bsdi* )
1636 opsys=bsdi
1637 case "${canonical}" in
1638 i[345]86-*-bsdi*) machine=intel386 ;;
1639 sparc-*-bsdi*) machine=sparc ;;
1640 powerpc-*-bsdi*) machine=macppc ;;
1641 esac
1642 case "${canonical}" in
1643 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1644 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1645 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1646 *-*-bsdi3* ) opsys=bsdos3 ;;
1647 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1648 esac
1651 ## Alliant machines
1652 ## Strictly speaking, we need the version of the alliant operating
1653 ## system to choose the right machine file, but currently the
1654 ## configuration name doesn't tell us enough to choose the right
1655 ## one; we need to give alliants their own operating system name to
1656 ## do this right. When someone cares, they can help us.
1657 fx80-alliant-* )
1658 machine=alliant4 opsys=bsd4-2
1660 i860-alliant-* )
1661 machine=alliant-2800 opsys=bsd4-3
1664 ## Alpha (DEC) machines.
1665 alpha*-dec-osf* )
1666 machine=alpha opsys=osf1
1667 # This is needed to find X11R6.1 libraries for certain tests.
1668 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1669 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1670 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1671 # due to non-traditional preprocessing with the current compiler
1672 # defaults. OSF 4 can also have that compiler version, and there
1673 # seems always to have been a usable /usr/bin/cpp.
1674 NON_GNU_CPP=/usr/bin/cpp
1675 case "${canonical}" in
1676 alpha*-dec-osf[5-9]*)
1677 opsys=osf5-0 ;;
1678 esac
1681 alpha*-*-linux-gnu* )
1682 machine=alpha opsys=gnu-linux
1685 arm*-*-linux-gnu* )
1686 machine=arm opsys=gnu-linux
1689 ppc-*-linux | \
1690 powerpc-*-linux* )
1691 machine=macppc opsys=gnu-linux
1694 ## Altos 3068
1695 m68*-altos-sysv* )
1696 machine=altos opsys=usg5-2
1699 ## Amdahl UTS
1700 580-amdahl-sysv* )
1701 machine=amdahl opsys=usg5-2-2
1704 ## Apollo, Domain/OS
1705 m68*-apollo-* )
1706 machine=apollo opsys=bsd4-3
1709 ## AT&T 3b2, 3b5, 3b15, 3b20
1710 we32k-att-sysv* )
1711 machine=att3b opsys=usg5-2-2
1714 ## AT&T 3b1 - The Mighty Unix PC!
1715 m68*-att-sysv* )
1716 machine=7300 opsys=usg5-2-2
1719 ## Bull dpx20
1720 rs6000-bull-bosx* )
1721 machine=ibmrs6000 opsys=aix3-2
1724 ## Bull dpx2
1725 m68*-bull-sysv3* )
1726 machine=dpx2 opsys=usg5-3
1729 ## Bull sps7
1730 m68*-bull-sysv2* )
1731 machine=sps7 opsys=usg5-2
1734 ## CCI 5/32, 6/32 -- see "Tahoe".
1736 ## Celerity
1737 ## I don't know what configuration name to use for this; config.sub
1738 ## doesn't seem to know anything about it. Hey, Celerity users, get
1739 ## in touch with us!
1740 celerity-celerity-bsd* )
1741 machine=celerity opsys=bsd4-2
1744 ## Clipper
1745 ## What operating systems does this chip run that Emacs has been
1746 ## tested on?
1747 clipper-* )
1748 machine=clipper
1749 ## We'll use the catch-all code at the bottom to guess the
1750 ## operating system.
1753 ## Compaq Nonstop
1754 mips-compaq-nonstopux* )
1755 machine=nonstopux opsys=nonstopux
1758 ## Convex
1759 *-convex-bsd* | *-convex-convexos* )
1760 machine=convex opsys=bsd4-3
1761 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1762 NON_GNU_CPP="cc -E -P"
1765 ## Cubix QBx/386
1766 i[3456]86-cubix-sysv* )
1767 machine=intel386 opsys=usg5-3
1770 ## Cydra 5
1771 cydra*-cydrome-sysv* )
1772 machine=cydra5 opsys=usg5-3
1775 ## Data General AViiON Machines
1776 ## DG changed naming conventions with the release of 5.4.4.10, they
1777 ## dropped the initial 5.4 but left the intervening R. Because of the
1778 ## R this shouldn't conflict with older versions of the OS (which I
1779 ## think were named like dgux4.*). In addition, DG new AViiONs series
1780 ## uses either Motorola M88k or Intel Pentium CPUs.
1781 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1782 machine=aviion opsys=dgux4
1784 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1785 ## This name is dgux5-4-3 instead of dgux5-4r3
1786 ## to avoid a file name conflict on MSDOS.
1787 machine=aviion opsys=dgux5-4-3
1789 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1790 machine=aviion opsys=dgux5-4r2
1792 m88k-dg-dgux* )
1793 machine=aviion opsys=dgux
1796 ## Data General AViiON Intel (x86) Machines
1797 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1798 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1799 i[345]86-dg-dguxR4* )
1800 machine=aviion-intel opsys=dgux4
1803 ## DECstations
1804 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1805 machine=pmax opsys=bsd4-2
1807 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1808 machine=pmax opsys=bsd4-3
1810 mips-dec-ultrix* )
1811 machine=pmax opsys=ultrix4-3
1813 mips-dec-osf* )
1814 machine=pmax opsys=osf1
1816 mips-dec-mach_bsd4.3* )
1817 machine=pmax opsys=mach-bsd4-3
1820 ## Motorola Delta machines
1821 m68k-motorola-sysv* | m68000-motorola-sysv* )
1822 machine=delta opsys=usg5-3
1823 if test -z "`type gnucc | grep 'not found'`"
1824 then
1825 if test -s /etc/167config
1826 then CC="gnucc -m68040"
1827 else CC="gnucc -m68881"
1829 else
1830 if test -z "`type gcc | grep 'not found'`"
1831 then CC=gcc
1832 else CC=cc
1836 m88k-motorola-sysv4* )
1837 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1838 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1839 # I hope there are not other 4.0 versions for this machine
1840 # which really need usg5-4 instead.
1841 machine=delta88k opsys=usg5-4-2
1843 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1844 machine=delta88k opsys=usg5-3
1847 ## Dual machines
1848 m68*-dual-sysv* )
1849 machine=dual opsys=usg5-2
1851 m68*-dual-uniplus* )
1852 machine=dual opsys=unipl5-2
1855 ## Elxsi 6400
1856 elxsi-elxsi-sysv* )
1857 machine=elxsi opsys=usg5-2
1860 ## Encore machines
1861 ns16k-encore-bsd* )
1862 machine=ns16000 opsys=umax
1865 ## The GEC 63 - apparently, this port isn't really finished yet.
1866 # I'm sure we finished off the last of the machines, though. -- fx
1868 ## Gould Power Node and NP1
1869 pn-gould-bsd4.2* )
1870 machine=gould opsys=bsd4-2
1872 pn-gould-bsd4.3* )
1873 machine=gould opsys=bsd4-3
1875 np1-gould-bsd* )
1876 machine=gould-np1 opsys=bsd4-3
1879 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1880 ## as far as Emacs is concerned).
1881 m88k-harris-cxux* )
1882 # Build needs to be different on 7.0 and later releases
1883 case "`uname -r`" in
1884 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1885 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1886 esac
1887 NON_GNU_CPP="/lib/cpp"
1889 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1890 m68k-harris-cxux* )
1891 machine=nh3000 opsys=cxux
1893 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1894 powerpc-harris-powerunix )
1895 machine=nh6000 opsys=powerunix
1896 NON_GNU_CPP="cc -Xo -E -P"
1898 ## SR2001/SR2201 running HI-UX/MPP
1899 hppa1.1-hitachi-hiuxmpp* )
1900 machine=sr2k opsys=hiuxmpp
1902 hppa1.1-hitachi-hiuxwe2* )
1903 machine=sr2k opsys=hiuxwe2
1905 ## Honeywell XPS100
1906 xps*-honeywell-sysv* )
1907 machine=xps100 opsys=usg5-2
1910 ## HP 9000 series 200 or 300
1911 m68*-hp-bsd* )
1912 machine=hp9000s300 opsys=bsd4-3
1914 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1915 m68*-hp-hpux* )
1916 case "`uname -r`" in
1917 ## Someone's system reports A.B8.05 for this.
1918 ## I wonder what other possibilities there are.
1919 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1920 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1921 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1922 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1923 *) machine=hp9000s300 opsys=hpux ;;
1924 esac
1927 ## HP 9000 series 700 and 800, running HP/UX
1928 hppa*-hp-hpux7* )
1929 machine=hp800 opsys=hpux
1931 hppa*-hp-hpux8* )
1932 machine=hp800 opsys=hpux8
1934 hppa*-hp-hpux9shr* )
1935 machine=hp800 opsys=hpux9shr
1937 hppa*-hp-hpux9* )
1938 machine=hp800 opsys=hpux9
1940 hppa*-hp-hpux10* )
1941 machine=hp800 opsys=hpux10
1943 hppa*-hp-hpux1[1-9]* )
1944 machine=hp800 opsys=hpux11
1947 hppa*-*-linux-gnu* )
1948 machine=hp800 opsys=gnu-linux
1951 ## HP 9000 series 700 and 800, running HP/UX
1952 hppa*-hp-hpux* )
1953 ## Cross-compilation? Nah!
1954 case "`uname -r`" in
1955 ## Someone's system reports A.B8.05 for this.
1956 ## I wonder what other possibilities there are.
1957 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1958 *.08.* ) machine=hp800 opsys=hpux8 ;;
1959 *.09.* ) machine=hp800 opsys=hpux9 ;;
1960 *) machine=hp800 opsys=hpux10 ;;
1961 esac
1963 hppa*-*-nextstep* )
1964 machine=hp800 opsys=nextstep
1967 ## Orion machines
1968 orion-orion-bsd* )
1969 machine=orion opsys=bsd4-2
1971 clipper-orion-bsd* )
1972 machine=orion105 opsys=bsd4-2
1975 ## IBM machines
1976 i[3456]86-ibm-aix1.1* )
1977 machine=ibmps2-aix opsys=usg5-2-2
1979 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1980 machine=ibmps2-aix opsys=usg5-3
1982 i370-ibm-aix*)
1983 machine=ibm370aix opsys=usg5-3
1985 s390-*-linux-gnu)
1986 machine=ibms390 opsys=gnu-linux
1988 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1989 machine=ibmrs6000 opsys=aix3-1
1991 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1992 machine=ibmrs6000 opsys=aix3-2-5
1994 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1995 machine=ibmrs6000 opsys=aix4-1
1997 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1998 machine=ibmrs6000 opsys=aix4-2
2000 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2001 machine=ibmrs6000 opsys=aix4-2
2003 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2004 machine=ibmrs6000 opsys=aix4
2006 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2007 machine=ibmrs6000 opsys=aix4-1
2009 rs6000-ibm-aix* | powerpc-ibm-aix* )
2010 machine=ibmrs6000 opsys=aix3-2
2012 romp-ibm-bsd4.3* )
2013 machine=ibmrt opsys=bsd4-3
2015 romp-ibm-bsd4.2* )
2016 machine=ibmrt opsys=bsd4-2
2018 romp-ibm-aos4.3* )
2019 machine=ibmrt opsys=bsd4-3
2021 romp-ibm-aos4.2* )
2022 machine=ibmrt opsys=bsd4-2
2024 romp-ibm-aos* )
2025 machine=ibmrt opsys=bsd4-3
2027 romp-ibm-bsd* )
2028 machine=ibmrt opsys=bsd4-3
2030 romp-ibm-aix* )
2031 machine=ibmrt-aix opsys=usg5-2-2
2034 ## Integrated Solutions `Optimum V'
2035 m68*-isi-bsd4.2* )
2036 machine=isi-ov opsys=bsd4-2
2038 m68*-isi-bsd4.3* )
2039 machine=isi-ov opsys=bsd4-3
2042 ## Intel 386 machines where we do care about the manufacturer
2043 i[3456]86-intsys-sysv* )
2044 machine=is386 opsys=usg5-2-2
2047 ## Prime EXL
2048 i[3456]86-prime-sysv* )
2049 machine=i386 opsys=usg5-3
2052 ## Sequent Symmetry running Dynix
2053 i[3456]86-sequent-bsd* )
2054 machine=symmetry opsys=bsd4-3
2057 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2058 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2059 machine=sequent-ptx opsys=ptx4
2060 NON_GNU_CPP=/lib/cpp
2063 ## Sequent Symmetry running DYNIX/ptx
2064 ## Use the old cpp rather than the newer ANSI one.
2065 i[3456]86-sequent-ptx* )
2066 machine=sequent-ptx opsys=ptx
2067 NON_GNU_CPP="/lib/cpp"
2070 ## ncr machine running svr4.3.
2071 i[3456]86-ncr-sysv4.3 )
2072 machine=ncr386 opsys=usg5-4-3
2075 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2076 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2077 i[3456]86-ncr-sysv* )
2078 machine=ncr386 opsys=usg5-4-2
2081 ## Intel Paragon OSF/1
2082 i860-intel-osf1* )
2083 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2086 ## Intel 860
2087 i860-*-sysv4* )
2088 machine=i860 opsys=usg5-4
2089 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2090 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2093 ## Macintosh PowerPC
2094 powerpc*-*-linux-gnu* )
2095 machine=macppc opsys=gnu-linux
2098 ## Masscomp machines
2099 m68*-masscomp-rtu* )
2100 machine=masscomp opsys=rtu
2103 ## Megatest machines
2104 m68*-megatest-bsd* )
2105 machine=mega68 opsys=bsd4-2
2108 ## Workstations sold by MIPS
2109 ## This is not necessarily all workstations using the MIPS processor -
2110 ## Irises are produced by SGI, and DECstations by DEC.
2112 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2113 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2114 ## it gives for choosing between the alternatives seems to be "Use
2115 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2116 ## the BSD world." I'll assume that these are instructions for
2117 ## handling two odd situations, and that every other situation
2118 ## should use mips.h and usg5-2-2, they being listed first.
2119 mips-mips-usg* )
2120 machine=mips4
2121 ## Fall through to the general code at the bottom to decide on the OS.
2123 mips-mips-riscos4* )
2124 machine=mips4 opsys=bsd4-3
2125 NON_GNU_CC="cc -systype bsd43"
2126 NON_GNU_CPP="cc -systype bsd43 -E"
2128 mips-mips-riscos5* )
2129 machine=mips4 opsys=riscos5
2130 NON_GNU_CC="cc -systype bsd43"
2131 NON_GNU_CPP="cc -systype bsd43 -E"
2133 mips-mips-bsd* )
2134 machine=mips opsys=bsd4-3
2136 mips-mips-* )
2137 machine=mips opsys=usg5-2-2
2140 ## NeXT
2141 m68*-next-* | m68k-*-nextstep* )
2142 machine=m68k opsys=nextstep
2145 ## The complete machine from National Semiconductor
2146 ns32k-ns-genix* )
2147 machine=ns32000 opsys=usg5-2
2150 ## NCR machines
2151 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2152 machine=tower32 opsys=usg5-2-2
2154 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2155 machine=tower32v3 opsys=usg5-3
2158 ## NEC EWS4800
2159 mips-nec-sysv4*)
2160 machine=ews4800 opsys=ux4800
2163 ## Nixdorf Targon 31
2164 m68*-nixdorf-sysv* )
2165 machine=targon31 opsys=usg5-2-2
2168 ## Nu (TI or LMI)
2169 m68*-nu-sysv* )
2170 machine=nu opsys=usg5-2
2173 ## Plexus
2174 m68*-plexus-sysv* )
2175 machine=plexus opsys=usg5-2
2178 ## PowerPC reference platform
2179 powerpcle-*-solaris2* )
2180 machine=prep
2181 opsys=sol2-5
2184 ## Pyramid machines
2185 ## I don't really have any idea what sort of processor the Pyramid has,
2186 ## so I'm assuming it is its own architecture.
2187 pyramid-pyramid-bsd* )
2188 machine=pyramid opsys=bsd4-2
2191 ## Sequent Balance
2192 ns32k-sequent-bsd4.2* )
2193 machine=sequent opsys=bsd4-2
2195 ns32k-sequent-bsd4.3* )
2196 machine=sequent opsys=bsd4-3
2199 ## Siemens Nixdorf
2200 mips-siemens-sysv* | mips-sni-sysv*)
2201 machine=mips-siemens opsys=usg5-4
2202 NON_GNU_CC=/usr/ccs/bin/cc
2203 NON_GNU_CPP=/usr/ccs/lib/cpp
2206 ## Silicon Graphics machines
2207 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2208 m68*-sgi-iris3.5* )
2209 machine=irist opsys=iris3-5
2211 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2212 machine=irist opsys=iris3-6
2214 ## Iris 4D
2215 mips-sgi-irix3* )
2216 machine=iris4d opsys=irix3-3
2218 mips-sgi-irix4* )
2219 machine=iris4d opsys=irix4-0
2221 mips-sgi-irix6.5 )
2222 machine=iris4d opsys=irix6-5
2223 # Without defining _LANGUAGE_C, things get masked out in the headers
2224 # so that, for instance, grepping for `free' in stdlib.h fails and
2225 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2226 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2227 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2229 mips-sgi-irix6* )
2230 machine=iris4d opsys=irix6-0
2231 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2232 # but presumably it does no harm.
2233 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2234 # -32 probably isn't necessary in later v.6s -- anyone know which?
2235 NON_GCC_TEST_OPTIONS=-32
2237 mips-sgi-irix5.[01]* )
2238 machine=iris4d opsys=irix5-0
2240 mips-sgi-irix5* | mips-sgi-irix* )
2241 machine=iris4d opsys=irix5-2
2244 ## SONY machines
2245 m68*-sony-bsd4.2* )
2246 machine=news opsys=bsd4-2
2248 m68*-sony-bsd4.3* )
2249 machine=news opsys=bsd4-3
2251 m68*-sony-newsos3* | m68*-sony-news3*)
2252 machine=news opsys=bsd4-3
2254 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2255 machine=news-risc opsys=bsd4-3
2257 mips-sony-newsos6* )
2258 machine=news-r6 opsys=newsos6
2260 mips-sony-news* )
2261 machine=news-risc opsys=newsos5
2264 ## Stride
2265 m68*-stride-sysv* )
2266 machine=stride opsys=usg5-2
2269 ## Suns
2270 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2271 machine=sparc opsys=gnu-linux
2274 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2275 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2276 | rs6000-*-solaris2*)
2277 case "${canonical}" in
2278 m68*-sunos1* ) machine=sun1 ;;
2279 m68*-sunos2* ) machine=sun2 ;;
2280 m68* ) machine=sun3 ;;
2281 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2282 i[3456]86-*-* ) machine=intel386 ;;
2283 powerpcle* ) machine=powerpcle ;;
2284 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2285 sparc* ) machine=sparc ;;
2286 * ) unported=yes ;;
2287 esac
2288 case "${canonical}" in
2289 ## The Sun386 didn't get past 4.0.
2290 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2291 *-sunos4.0* ) opsys=sunos4-0 ;;
2292 *-sunos4.1.[3-9]*noshare )
2293 ## This name is sunos413 instead of sunos4-1-3
2294 ## to avoid a file name conflict on MSDOS.
2295 opsys=sunos413
2296 NON_GNU_CPP=/usr/lib/cpp
2297 NON_GCC_TEST_OPTIONS=-Bstatic
2298 GCC_TEST_OPTIONS=-static
2300 *-sunos4.1.[3-9]* | *-sunos4shr*)
2301 opsys=sunos4shr
2302 NON_GNU_CPP=/usr/lib/cpp
2304 *-sunos4* | *-sunos )
2305 opsys=sunos4-1
2306 NON_GCC_TEST_OPTIONS=-Bstatic
2307 GCC_TEST_OPTIONS=-static
2309 *-sunos5.3* | *-solaris2.3* )
2310 opsys=sol2-3
2311 NON_GNU_CPP=/usr/ccs/lib/cpp
2313 *-sunos5.4* | *-solaris2.4* )
2314 opsys=sol2-4
2315 NON_GNU_CPP=/usr/ccs/lib/cpp
2316 RANLIB="ar -ts"
2318 *-sunos5.5* | *-solaris2.5* )
2319 opsys=sol2-5
2320 NON_GNU_CPP=/usr/ccs/lib/cpp
2321 RANLIB="ar -ts"
2323 *-sunos5* | *-solaris* )
2324 opsys=sol2-5
2325 NON_GNU_CPP=/usr/ccs/lib/cpp
2327 * ) opsys=bsd4-2 ;;
2328 esac
2329 ## Watch out for a compiler that we know will not work.
2330 case "${canonical}" in
2331 *-solaris* | *-sunos5* )
2332 if [ "x$CC" = x/usr/ucb/cc ]; then
2333 ## /usr/ucb/cc doesn't work;
2334 ## we should find some other compiler that does work.
2335 unset CC
2338 *) ;;
2339 esac
2341 sparc-*-nextstep* )
2342 machine=sparc opsys=nextstep
2345 ## Tadpole 68k
2346 m68*-tadpole-sysv* )
2347 machine=tad68k opsys=usg5-3
2350 ## Tahoe machines
2351 tahoe-tahoe-bsd4.2* )
2352 machine=tahoe opsys=bsd4-2
2354 tahoe-tahoe-bsd4.3* )
2355 machine=tahoe opsys=bsd4-3
2358 ## Tandem Integrity S2
2359 mips-tandem-sysv* )
2360 machine=tandem-s2 opsys=usg5-3
2363 ## Tektronix XD88
2364 m88k-tektronix-sysv3* )
2365 machine=tekxd88 opsys=usg5-3
2368 ## Tektronix 16000 box (6130?)
2369 ns16k-tektronix-bsd* )
2370 machine=ns16000 opsys=bsd4-2
2372 ## Tektronix 4300
2373 ## src/m/tek4300.h hints that this is a m68k machine.
2374 m68*-tektronix-bsd* )
2375 machine=tek4300 opsys=bsd4-3
2378 ## Titan P2 or P3
2379 ## We seem to have lost the machine-description file titan.h!
2380 titan-titan-sysv* )
2381 machine=titan opsys=usg5-3
2384 ## Ustation E30 (SS5E)
2385 m68*-unisys-uniplus* )
2386 machine=ustation opsystem=unipl5-2
2389 ## Vaxen.
2390 vax-dec-* )
2391 machine=vax
2392 case "${canonical}" in
2393 *-bsd4.1* ) opsys=bsd4-1 ;;
2394 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2395 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2396 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2397 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2398 *-vms* ) opsys=vms ;;
2399 * ) unported=yes
2400 esac
2403 ## Whitechapel MG1
2404 ns16k-whitechapel-* )
2405 machine=mg1
2406 ## We don't know what sort of OS runs on these; we'll let the
2407 ## operating system guessing code below try.
2410 ## Wicat
2411 m68*-wicat-sysv* )
2412 machine=wicat opsys=usg5-2
2415 ## IA-64
2416 ia64*-*-linux* )
2417 machine=ia64 opsys=gnu-linux
2420 ## Intel 386 machines where we don't care about the manufacturer
2421 i[3456]86-*-* )
2422 machine=intel386
2423 case "${canonical}" in
2424 *-lynxos* ) opsys=lynxos ;;
2425 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2426 *-isc2.2* ) opsys=isc2-2 ;;
2427 *-isc4.0* ) opsys=isc4-0 ;;
2428 *-isc4.* ) opsys=isc4-1
2429 GCC_TEST_OPTIONS=-posix
2430 NON_GCC_TEST_OPTIONS=-Xp
2432 *-isc* ) opsys=isc3-0 ;;
2433 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2434 *-esix* ) opsys=esix ;;
2435 *-xenix* ) opsys=xenix ;;
2436 *-linux-gnu* ) opsys=gnu-linux ;;
2437 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2438 *-sco3.2v5* ) opsys=sco5
2439 NON_GNU_CPP=/lib/cpp
2440 # Prevent -belf from being passed to $CPP.
2441 # /lib/cpp does not accept it.
2442 OVERRIDE_CPPFLAGS=" "
2444 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2445 *-386bsd* ) opsys=386bsd ;;
2446 *-nextstep* ) opsys=nextstep ;;
2447 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2448 esac
2451 ## m68k Linux-based GNU system
2452 m68k-*-linux-gnu* )
2453 machine=m68k opsys=gnu-linux
2456 ## Mips Linux-based GNU system
2457 mips-*-linux-gnu* )
2458 machine=mips opsys=gnu-linux
2461 ## UXP/DS
2462 sparc-fujitsu-sysv4* )
2463 machine=sparc opsys=uxpds
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2468 ## UXP/V
2469 f301-fujitsu-uxpv4.1)
2470 machine=f301 opsys=uxpv
2473 ## Darwin / Mac OS X
2474 powerpc-apple-darwin* )
2475 machine=powermac opsys=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP="cc -E -traditional-cpp"
2481 unported=yes
2483 esac
2485 ### If the code above didn't choose an operating system, just choose
2486 ### an operating system based on the configuration name. You really
2487 ### only want to use this when you have no idea what the right
2488 ### operating system is; if you know what operating systems a machine
2489 ### runs, it's cleaner to make it explicit in the case statement
2490 ### above.
2491 if test x"${opsys}" = x; then
2492 case "${canonical}" in
2493 *-gnu* ) opsys=gnu ;;
2494 *-bsd4.[01] ) opsys=bsd4-1 ;;
2495 *-bsd4.2 ) opsys=bsd4-2 ;;
2496 *-bsd4.3 ) opsys=bsd4-3 ;;
2497 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2498 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2499 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2500 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2501 *-sysv4.2uw* ) opsys=unixware ;;
2502 *-sysv4.1* | *-sysvr4.1* )
2503 NON_GNU_CPP=/usr/lib/cpp
2504 opsys=usg5-4 ;;
2505 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2506 if [ x$NON_GNU_CPP = x ]; then
2507 if [ -f /usr/ccs/lib/cpp ]; then
2508 NON_GNU_CPP=/usr/ccs/lib/cpp
2509 else
2510 NON_GNU_CPP=/lib/cpp
2513 opsys=usg5-4-2 ;;
2514 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2516 unported=yes
2518 esac
2522 if test $unported = yes; then
2523 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2524 Check \`etc/MACHINES' for recognized configuration names." >&5
2525 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2526 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2527 { (exit 1); exit 1; }; }
2530 machfile="m/${machine}.h"
2531 opsysfile="s/${opsys}.h"
2534 #### Choose a compiler.
2535 test -n "$CC" && cc_specified=yes
2537 # Save the value of CFLAGS that the user specified.
2538 SPECIFIED_CFLAGS="$CFLAGS"
2540 case ${with_gcc} in
2541 "yes" ) CC="gcc" GCC=yes ;;
2542 "no" ) : ${CC=cc} ;;
2544 esac
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2572 done
2573 done
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579 echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2587 if test -z "$ac_cv_prog_CC"; then
2588 ac_ct_CC=$CC
2589 # Extract the first word of "gcc", so it can be a program name with args.
2590 set dummy gcc; ac_word=$2
2591 echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 if test -n "$ac_ct_CC"; then
2597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_ac_ct_CC="gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6
2619 else
2620 echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2624 CC=$ac_ct_CC
2625 else
2626 CC="$ac_cv_prog_CC"
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2652 done
2653 done
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 echo "$as_me:$LINENO: result: $CC" >&5
2660 echo "${ECHO_T}$CC" >&6
2661 else
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2667 if test -z "$ac_cv_prog_CC"; then
2668 ac_ct_CC=$CC
2669 # Extract the first word of "cc", so it can be a program name with args.
2670 set dummy cc; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_CC="cc"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6
2699 else
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2704 CC=$ac_ct_CC
2705 else
2706 CC="$ac_cv_prog_CC"
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 ac_prog_rejected=no
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2733 ac_cv_prog_CC="cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy $ac_cv_prog_CC
2743 shift
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2748 shift
2749 set dummy "$as_dir/$ac_word" ${1+"$@"}
2750 shift
2751 ac_cv_prog_CC="$@"
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758 echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2791 done
2792 done
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798 echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6
2800 else
2801 echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2805 test -n "$CC" && break
2806 done
2808 if test -z "$CC"; then
2809 ac_ct_CC=$CC
2810 for ac_prog in cl
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2842 else
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2847 test -n "$ac_ct_CC" && break
2848 done
2850 CC=$ac_ct_CC
2856 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2857 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2858 { (exit 1); exit 1; }; }
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO:" \
2862 "checking for C compiler version" >&5
2863 ac_compiler=`set X $ac_compile; echo $2`
2864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865 (eval $ac_compiler --version </dev/null >&5) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870 (eval $ac_compiler -v </dev/null >&5) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875 (eval $ac_compiler -V </dev/null >&5) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2884 #ifdef F77_DUMMY_MAIN
2885 # ifdef __cplusplus
2886 extern "C"
2887 # endif
2888 int F77_DUMMY_MAIN() { return 1; }
2889 #endif
2891 main ()
2895 return 0;
2897 _ACEOF
2898 ac_clean_files_save=$ac_clean_files
2899 ac_clean_files="$ac_clean_files a.out a.exe"
2900 # Try to create an executable without -o first, disregard a.out.
2901 # It will help us diagnose broken compilers, and finding out an intuition
2902 # of exeext.
2903 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2904 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2905 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2907 (eval $ac_link_default) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Find the output, starting from the most likely. This scheme is
2912 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2913 # resort.
2915 # Be careful to initialize this variable, since it used to be cached.
2916 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2917 ac_cv_exeext=
2918 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2919 ls a.out conftest 2>/dev/null;
2920 ls a.* conftest.* 2>/dev/null`; do
2921 case $ac_file in
2922 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2923 a.out ) # We found the default executable, but exeext='' is most
2924 # certainly right.
2925 break;;
2926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2928 export ac_cv_exeext
2929 break;;
2930 * ) break;;
2931 esac
2932 done
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2937 echo "$as_me: error: C compiler cannot create executables" >&2;}
2938 { (exit 77); exit 77; }; }
2941 ac_exeext=$ac_cv_exeext
2942 echo "$as_me:$LINENO: result: $ac_file" >&5
2943 echo "${ECHO_T}$ac_file" >&6
2945 # Check the compiler produces executables we can run. If not, either
2946 # the compiler is broken, or we cross compile.
2947 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2948 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2949 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2950 # If not cross compiling, check that we can run a simple program.
2951 if test "$cross_compiling" != yes; then
2952 if { ac_try='./$ac_file'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 cross_compiling=no
2959 else
2960 if test "$cross_compiling" = maybe; then
2961 cross_compiling=yes
2962 else
2963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'." >&5
2965 echo "$as_me: error: cannot run C compiled programs.
2966 If you meant to cross compile, use \`--host'." >&2;}
2967 { (exit 1); exit 1; }; }
2971 echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6
2974 rm -f a.out a.exe conftest$ac_cv_exeext
2975 ac_clean_files=$ac_clean_files_save
2976 # Check the compiler produces executables we can run. If not, either
2977 # the compiler is broken, or we cross compile.
2978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2981 echo "${ECHO_T}$cross_compiling" >&6
2983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2993 # `rm'.
2994 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2995 case $ac_file in
2996 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 export ac_cv_exeext
2999 break;;
3000 * ) break;;
3001 esac
3002 done
3003 else
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011 echo "${ECHO_T}$ac_cv_exeext" >&6
3013 rm -f conftest.$ac_ext
3014 EXEEXT=$ac_cv_exeext
3015 ac_exeext=$EXEEXT
3016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3018 if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 #include "confdefs.h"
3025 #ifdef F77_DUMMY_MAIN
3026 # ifdef __cplusplus
3027 extern "C"
3028 # endif
3029 int F77_DUMMY_MAIN() { return 1; }
3030 #endif
3032 main ()
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.o conftest.obj
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049 break;;
3050 esac
3051 done
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3056 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3057 { (exit 1); exit 1; }; }
3060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3063 echo "${ECHO_T}$ac_cv_objext" >&6
3064 OBJEXT=$ac_cv_objext
3065 ac_objext=$OBJEXT
3066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 #include "confdefs.h"
3075 #ifdef F77_DUMMY_MAIN
3076 # ifdef __cplusplus
3077 extern "C"
3078 # endif
3079 int F77_DUMMY_MAIN() { return 1; }
3080 #endif
3082 main ()
3084 #ifndef __GNUC__
3085 choke me
3086 #endif
3089 return 0;
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_compiler_gnu=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 ac_compiler_gnu=no
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3116 GCC=`test $ac_compiler_gnu = yes && echo yes`
3117 ac_test_CFLAGS=${CFLAGS+set}
3118 ac_save_CFLAGS=$CFLAGS
3119 CFLAGS="-g"
3120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3122 if test "${ac_cv_prog_cc_g+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 #include "confdefs.h"
3129 #ifdef F77_DUMMY_MAIN
3130 # ifdef __cplusplus
3131 extern "C"
3132 # endif
3133 int F77_DUMMY_MAIN() { return 1; }
3134 #endif
3136 main ()
3140 return 0;
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cc_g=yes
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 ac_cv_prog_cc_g=no
3161 rm -f conftest.$ac_objext conftest.$ac_ext
3163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3169 CFLAGS="-g -O2"
3170 else
3171 CFLAGS="-g"
3173 else
3174 if test "$GCC" = yes; then
3175 CFLAGS="-O2"
3176 else
3177 CFLAGS=
3180 # Some people use a C++ compiler to compile C. Since we use `exit',
3181 # in C++ we need to declare it. In case someone uses the same compiler
3182 # for both compiling C and C++ we need to have the C++ compiler decide
3183 # the declaration of exit, since it's the most demanding environment.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #ifndef __cplusplus
3186 choke me
3187 #endif
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 for ac_declaration in \
3203 '#include <stdlib.h>' \
3204 'extern "C" void std::exit (int) throw (); using std::exit;' \
3205 'extern "C" void std::exit (int); using std::exit;' \
3206 'extern "C" void exit (int) throw ();' \
3207 'extern "C" void exit (int);' \
3208 'void exit (int);'
3210 cat >conftest.$ac_ext <<_ACEOF
3211 #line $LINENO "configure"
3212 #include "confdefs.h"
3213 #include <stdlib.h>
3214 $ac_declaration
3215 #ifdef F77_DUMMY_MAIN
3216 # ifdef __cplusplus
3217 extern "C"
3218 # endif
3219 int F77_DUMMY_MAIN() { return 1; }
3220 #endif
3222 main ()
3224 exit (42);
3226 return 0;
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 continue
3247 rm -f conftest.$ac_objext conftest.$ac_ext
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 $ac_declaration
3252 #ifdef F77_DUMMY_MAIN
3253 # ifdef __cplusplus
3254 extern "C"
3255 # endif
3256 int F77_DUMMY_MAIN() { return 1; }
3257 #endif
3259 main ()
3261 exit (42);
3263 return 0;
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 break
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3284 done
3285 rm -f conftest*
3286 if test -n "$ac_declaration"; then
3287 echo '#ifdef __cplusplus' >>confdefs.h
3288 echo $ac_declaration >>confdefs.h
3289 echo '#endif' >>confdefs.h
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 rm -f conftest.$ac_objext conftest.$ac_ext
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3309 #### Some systems specify a CPP to use unless we are using GCC.
3310 #### Now that we know whether we are using GCC, we can decide whether
3311 #### to use that one.
3312 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3313 then
3314 CPP="$NON_GNU_CPP"
3317 #### Some systems specify a CC to use unless we are using GCC.
3318 #### Now that we know whether we are using GCC, we can decide whether
3319 #### to use that one.
3320 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3321 test x$cc_specified != xyes
3322 then
3323 CC="$NON_GNU_CC"
3326 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3327 then
3328 CC="$CC $GCC_TEST_OPTIONS"
3331 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3332 then
3333 CC="$CC $NON_GCC_TEST_OPTIONS"
3336 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3337 then
3338 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3341 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3342 then
3343 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3346 #### Some other nice autoconf tests. If you add a test here which
3347 #### should make an entry in src/config.h, don't forget to add an
3348 #### #undef clause to src/config.h.in for autoconf to modify.
3350 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3351 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3352 LN_S=$as_ln_s
3353 if test "$LN_S" = "ln -s"; then
3354 echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3356 else
3357 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3358 echo "${ECHO_T}no, using $LN_S" >&6
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370 CPP=
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379 ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # On the NeXT, cc -E runs the code through the compiler's parser,
3385 # not just through cpp. "Syntax error" is here to catch this case.
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3389 #include <assert.h>
3390 Syntax error
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 ac_status=$?
3395 egrep -v '^ *\+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 else
3403 ac_cpp_err=
3405 else
3406 ac_cpp_err=yes
3408 if test -z "$ac_cpp_err"; then
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3414 continue
3416 rm -f conftest.err conftest.$ac_ext
3418 # OK, works on sane cases. Now check whether non-existent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427 ac_status=$?
3428 egrep -v '^ *\+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 else
3436 ac_cpp_err=
3438 else
3439 ac_cpp_err=yes
3441 if test -z "$ac_cpp_err"; then
3442 # Broken: success on invalid input.
3443 continue
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3451 rm -f conftest.err conftest.$ac_ext
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3457 break
3460 done
3461 ac_cv_prog_CPP=$CPP
3464 CPP=$ac_cv_prog_CPP
3465 else
3466 ac_cv_prog_CPP=$CPP
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3470 ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3480 #include <assert.h>
3481 Syntax error
3482 _ACEOF
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3485 ac_status=$?
3486 egrep -v '^ *\+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 else
3494 ac_cpp_err=
3496 else
3497 ac_cpp_err=yes
3499 if test -z "$ac_cpp_err"; then
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 # Broken: fails on valid input.
3505 continue
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether non-existent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 #line $LINENO "configure"
3513 #include "confdefs.h"
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518 ac_status=$?
3519 egrep -v '^ *\+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 else
3527 ac_cpp_err=
3529 else
3530 ac_cpp_err=yes
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3534 continue
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 # Passes both tests.
3539 ac_preproc_ok=:
3540 break
3542 rm -f conftest.err conftest.$ac_ext
3544 done
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3549 else
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3552 { (exit 1); exit 1; }; }
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 # Find a good install program. We prefer a C program (faster),
3562 # so one script is as good as another. But avoid the broken or
3563 # incompatible versions:
3564 # SysV /etc/install, /usr/sbin/install
3565 # SunOS /usr/etc/install
3566 # IRIX /sbin/install
3567 # AIX /bin/install
3568 # AmigaOS /C/install, which installs bootblocks on floppy discs
3569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585 case $as_dir/ in
3586 ./ | .// | /cC/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 /usr/ucb/* ) ;;
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3592 # by default.
3593 for ac_prog in ginstall scoinst install; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3596 if test $ac_prog = install &&
3597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3600 elif test $ac_prog = install &&
3601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3604 else
3605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3606 break 3
3609 done
3610 done
3612 esac
3613 done
3617 if test "${ac_cv_path_install+set}" = set; then
3618 INSTALL=$ac_cv_path_install
3619 else
3620 # As a last resort, use the slow shell script. We don't cache a
3621 # path for INSTALL within a source directory, because that will
3622 # break other packages using the cache if that directory is
3623 # removed, or if the path is relative.
3624 INSTALL=$ac_install_sh
3627 echo "$as_me:$LINENO: result: $INSTALL" >&5
3628 echo "${ECHO_T}$INSTALL" >&6
3630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3631 # It thinks the first close brace ends the variable substitution.
3632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3638 for ac_prog in 'bison -y' byacc
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_YACC+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 if test -n "$YACC"; then
3648 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_YACC="$ac_prog"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3661 done
3662 done
3666 YACC=$ac_cv_prog_YACC
3667 if test -n "$YACC"; then
3668 echo "$as_me:$LINENO: result: $YACC" >&5
3669 echo "${ECHO_T}$YACC" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 test -n "$YACC" && break
3676 done
3677 test -n "$YACC" || YACC="yacc"
3679 if test "x$RANLIB" = x; then
3680 if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_RANLIB+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 if test -n "$RANLIB"; then
3689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3702 done
3703 done
3707 RANLIB=$ac_cv_prog_RANLIB
3708 if test -n "$RANLIB"; then
3709 echo "$as_me:$LINENO: result: $RANLIB" >&5
3710 echo "${ECHO_T}$RANLIB" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3717 if test -z "$ac_cv_prog_RANLIB"; then
3718 ac_ct_RANLIB=$RANLIB
3719 # Extract the first word of "ranlib", so it can be a program name with args.
3720 set dummy ranlib; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$ac_ct_RANLIB"; then
3727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_ac_ct_RANLIB="ranlib"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3743 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3747 if test -n "$ac_ct_RANLIB"; then
3748 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3749 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3755 RANLIB=$ac_ct_RANLIB
3756 else
3757 RANLIB="$ac_cv_prog_RANLIB"
3765 echo "$as_me:$LINENO: checking for AIX" >&5
3766 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #line $LINENO "configure"
3769 #include "confdefs.h"
3770 #ifdef _AIX
3772 #endif
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "yes" >/dev/null 2>&1; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6
3779 cat >>confdefs.h <<\_ACEOF
3780 #define _ALL_SOURCE 1
3781 _ACEOF
3783 else
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3787 rm -f conftest*
3791 #### Extract some information from the operating system and machine files.
3793 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3794 - which libraries the lib-src programs will want, and
3795 - whether the GNU malloc routines are usable..." >&5
3796 echo "$as_me: checking the machine- and system-dependent files to find out
3797 - which libraries the lib-src programs will want, and
3798 - whether the GNU malloc routines are usable..." >&6;}
3800 ### First figure out CFLAGS (which we use for running the compiler here)
3801 ### and REAL_CFLAGS (which we use for real compilation).
3802 ### The two are the same except on a few systems, where they are made
3803 ### different to work around various lossages. For example,
3804 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3805 ### as implying static linking.
3807 ### If the CFLAGS env var is specified, we use that value
3808 ### instead of the default.
3810 ### It's not important that this name contain the PID; you can't run
3811 ### two configures in the same directory and have anything work
3812 ### anyway.
3813 tempcname="conftest.c"
3815 echo '
3816 #include "'${srcdir}'/src/'${opsysfile}'"
3817 #include "'${srcdir}'/src/'${machfile}'"
3818 #ifndef LIBS_MACHINE
3819 #define LIBS_MACHINE
3820 #endif
3821 #ifndef LIBS_SYSTEM
3822 #define LIBS_SYSTEM
3823 #endif
3824 #ifndef C_SWITCH_SYSTEM
3825 #define C_SWITCH_SYSTEM
3826 #endif
3827 #ifndef C_SWITCH_MACHINE
3828 #define C_SWITCH_MACHINE
3829 #endif
3830 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3831 configure___ c_switch_system=C_SWITCH_SYSTEM
3832 configure___ c_switch_machine=C_SWITCH_MACHINE
3834 #ifndef LIB_X11_LIB
3835 #define LIB_X11_LIB -lX11
3836 #endif
3838 #ifndef LIBX11_MACHINE
3839 #define LIBX11_MACHINE
3840 #endif
3842 #ifndef LIBX11_SYSTEM
3843 #define LIBX11_SYSTEM
3844 #endif
3845 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3847 #ifdef UNEXEC
3848 configure___ unexec=UNEXEC
3849 #else
3850 configure___ unexec=unexec.o
3851 #endif
3853 #ifdef SYSTEM_MALLOC
3854 configure___ system_malloc=yes
3855 #else
3856 configure___ system_malloc=no
3857 #endif
3859 #ifdef USE_MMAP_FOR_BUFFERS
3860 configure___ use_mmap_for_buffers=yes
3861 #else
3862 configure___ use_mmap_for_buffers=no
3863 #endif
3865 #ifndef C_DEBUG_SWITCH
3866 #define C_DEBUG_SWITCH -g
3867 #endif
3869 #ifndef C_OPTIMIZE_SWITCH
3870 #ifdef __GNUC__
3871 #define C_OPTIMIZE_SWITCH -O2
3872 #else
3873 #define C_OPTIMIZE_SWITCH -O
3874 #endif
3875 #endif
3877 #ifndef LD_SWITCH_MACHINE
3878 #define LD_SWITCH_MACHINE
3879 #endif
3881 #ifndef LD_SWITCH_SYSTEM
3882 #define LD_SWITCH_SYSTEM
3883 #endif
3885 #ifndef LD_SWITCH_X_SITE_AUX
3886 #define LD_SWITCH_X_SITE_AUX
3887 #endif
3889 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3890 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3892 #ifdef THIS_IS_CONFIGURE
3894 /* Get the CFLAGS for tests in configure. */
3895 #ifdef __GNUC__
3896 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3897 #else
3898 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3899 #endif
3901 #else /* not THIS_IS_CONFIGURE */
3903 /* Get the CFLAGS for real compilation. */
3904 #ifdef __GNUC__
3905 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3906 #else
3907 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3908 #endif
3910 #endif /* not THIS_IS_CONFIGURE */
3911 ' > ${tempcname}
3913 # The value of CPP is a quoted variable reference, so we need to do this
3914 # to get its actual value...
3915 CPP=`eval "echo $CPP"`
3916 eval `${CPP} -Isrc ${tempcname} \
3917 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3918 if test "x$SPECIFIED_CFLAGS" = x; then
3919 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3920 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3921 else
3922 REAL_CFLAGS="$CFLAGS"
3924 rm ${tempcname}
3926 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3928 ### Make sure subsequent tests use flags consistent with the build flags.
3930 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3931 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3932 else
3933 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3936 # Check whether --enable-largefile or --disable-largefile was given.
3937 if test "${enable_largefile+set}" = set; then
3938 enableval="$enable_largefile"
3941 if test "$enable_largefile" != no; then
3943 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3944 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3945 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 ac_cv_sys_largefile_CC=no
3949 if test "$GCC" != yes; then
3950 ac_save_CC=$CC
3951 while :; do
3952 # IRIX 6.2 and later do not support large files by default,
3953 # so use the C compiler's -n32 option if that helps.
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3957 #include <sys/types.h>
3958 /* Check that off_t can represent 2**63 - 1 correctly.
3959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3960 since some C++ compilers masquerading as C compilers
3961 incorrectly reject 9223372036854775807. */
3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3964 && LARGE_OFF_T % 2147483647 == 1)
3965 ? 1 : -1];
3966 #ifdef F77_DUMMY_MAIN
3967 # ifdef __cplusplus
3968 extern "C"
3969 # endif
3970 int F77_DUMMY_MAIN() { return 1; }
3971 #endif
3973 main ()
3977 return 0;
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 break
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 rm -f conftest.$ac_objext
3998 CC="$CC -n32"
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_sys_largefile_CC=' -n32'; break
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 rm -f conftest.$ac_objext
4017 break
4018 done
4019 CC=$ac_save_CC
4020 rm -f conftest.$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4024 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4025 if test "$ac_cv_sys_largefile_CC" != no; then
4026 CC=$CC$ac_cv_sys_largefile_CC
4029 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4030 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4031 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 while :; do
4035 ac_cv_sys_file_offset_bits=no
4036 cat >conftest.$ac_ext <<_ACEOF
4037 #line $LINENO "configure"
4038 #include "confdefs.h"
4039 #include <sys/types.h>
4040 /* Check that off_t can represent 2**63 - 1 correctly.
4041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4042 since some C++ compilers masquerading as C compilers
4043 incorrectly reject 9223372036854775807. */
4044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4046 && LARGE_OFF_T % 2147483647 == 1)
4047 ? 1 : -1];
4048 #ifdef F77_DUMMY_MAIN
4049 # ifdef __cplusplus
4050 extern "C"
4051 # endif
4052 int F77_DUMMY_MAIN() { return 1; }
4053 #endif
4055 main ()
4059 return 0;
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 break
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 rm -f conftest.$ac_objext conftest.$ac_ext
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 #include "confdefs.h"
4083 #define _FILE_OFFSET_BITS 64
4084 #include <sys/types.h>
4085 /* Check that off_t can represent 2**63 - 1 correctly.
4086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4087 since some C++ compilers masquerading as C compilers
4088 incorrectly reject 9223372036854775807. */
4089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4091 && LARGE_OFF_T % 2147483647 == 1)
4092 ? 1 : -1];
4093 #ifdef F77_DUMMY_MAIN
4094 # ifdef __cplusplus
4095 extern "C"
4096 # endif
4097 int F77_DUMMY_MAIN() { return 1; }
4098 #endif
4100 main ()
4104 return 0;
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_cv_sys_file_offset_bits=64; break
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 rm -f conftest.$ac_objext conftest.$ac_ext
4125 break
4126 done
4128 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4129 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4130 if test "$ac_cv_sys_file_offset_bits" != no; then
4132 cat >>confdefs.h <<_ACEOF
4133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4134 _ACEOF
4137 rm -f conftest*
4138 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4139 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4140 if test "${ac_cv_sys_large_files+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 while :; do
4144 ac_cv_sys_large_files=no
4145 cat >conftest.$ac_ext <<_ACEOF
4146 #line $LINENO "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 /* Check that off_t can represent 2**63 - 1 correctly.
4150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151 since some C++ compilers masquerading as C compilers
4152 incorrectly reject 9223372036854775807. */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155 && LARGE_OFF_T % 2147483647 == 1)
4156 ? 1 : -1];
4157 #ifdef F77_DUMMY_MAIN
4158 # ifdef __cplusplus
4159 extern "C"
4160 # endif
4161 int F77_DUMMY_MAIN() { return 1; }
4162 #endif
4164 main ()
4168 return 0;
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 break
4184 else
4185 echo "$as_me: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4188 rm -f conftest.$ac_objext conftest.$ac_ext
4189 cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4192 #define _LARGE_FILES 1
4193 #include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196 since some C++ compilers masquerading as C compilers
4197 incorrectly reject 9223372036854775807. */
4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200 && LARGE_OFF_T % 2147483647 == 1)
4201 ? 1 : -1];
4202 #ifdef F77_DUMMY_MAIN
4203 # ifdef __cplusplus
4204 extern "C"
4205 # endif
4206 int F77_DUMMY_MAIN() { return 1; }
4207 #endif
4209 main ()
4213 return 0;
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_sys_large_files=1; break
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 rm -f conftest.$ac_objext conftest.$ac_ext
4234 break
4235 done
4237 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4238 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4239 if test "$ac_cv_sys_large_files" != no; then
4241 cat >>confdefs.h <<_ACEOF
4242 #define _LARGE_FILES $ac_cv_sys_large_files
4243 _ACEOF
4246 rm -f conftest*
4250 if test "${with_sound}" != "no"; then
4251 # Sound support for GNU/Linux and the free BSDs.
4252 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4260 #include <stdlib.h>
4261 #include <stdarg.h>
4262 #include <string.h>
4263 #include <float.h>
4265 _ACEOF
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4268 ac_status=$?
4269 egrep -v '^ *\+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev/null; then
4274 if test -s conftest.err; then
4275 ac_cpp_err=$ac_c_preproc_warn_flag
4276 else
4277 ac_cpp_err=
4279 else
4280 ac_cpp_err=yes
4282 if test -z "$ac_cpp_err"; then
4283 ac_cv_header_stdc=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 ac_cv_header_stdc=no
4289 rm -f conftest.err conftest.$ac_ext
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4296 #include <string.h>
4298 _ACEOF
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 egrep "memchr" >/dev/null 2>&1; then
4302 else
4303 ac_cv_header_stdc=no
4305 rm -f conftest*
4309 if test $ac_cv_header_stdc = yes; then
4310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 #include "confdefs.h"
4314 #include <stdlib.h>
4316 _ACEOF
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "free" >/dev/null 2>&1; then
4320 else
4321 ac_cv_header_stdc=no
4323 rm -f conftest*
4327 if test $ac_cv_header_stdc = yes; then
4328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4329 if test "$cross_compiling" = yes; then
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 #line $LINENO "configure"
4334 #include "confdefs.h"
4335 #include <ctype.h>
4336 #if ((' ' & 0x0FF) == 0x020)
4337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4339 #else
4340 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4341 || ('j' <= (c) && (c) <= 'r') \
4342 || ('s' <= (c) && (c) <= 'z'))
4343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344 #endif
4346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4348 main ()
4350 int i;
4351 for (i = 0; i < 256; i++)
4352 if (XOR (islower (i), ISLOWER (i))
4353 || toupper (i) != TOUPPER (i))
4354 exit(2);
4355 exit (0);
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4370 else
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 ( exit $ac_status )
4375 ac_cv_header_stdc=no
4377 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4382 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4383 if test $ac_cv_header_stdc = yes; then
4385 cat >>confdefs.h <<\_ACEOF
4386 #define STDC_HEADERS 1
4387 _ACEOF
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4402 inttypes.h stdint.h unistd.h
4404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4405 echo "$as_me:$LINENO: checking for $ac_header" >&5
4406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line $LINENO "configure"
4412 #include "confdefs.h"
4413 $ac_includes_default
4415 #include <$ac_header>
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 eval "$as_ac_Header=yes"
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 eval "$as_ac_Header=no"
4435 rm -f conftest.$ac_objext conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440 cat >>confdefs.h <<_ACEOF
4441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4442 _ACEOF
4446 done
4452 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463 else
4464 # Is the header compilable?
4465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 $ac_includes_default
4471 #include <$ac_header>
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_header_compiler=yes
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 ac_header_compiler=no
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4493 echo "${ECHO_T}$ac_header_compiler" >&6
4495 # Is the header present?
4496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 #include "confdefs.h"
4501 #include <$ac_header>
4502 _ACEOF
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4505 ac_status=$?
4506 egrep -v '^ *\+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null; then
4511 if test -s conftest.err; then
4512 ac_cpp_err=$ac_c_preproc_warn_flag
4513 else
4514 ac_cpp_err=
4516 else
4517 ac_cpp_err=yes
4519 if test -z "$ac_cpp_err"; then
4520 ac_header_preproc=yes
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 ac_header_preproc=no
4526 rm -f conftest.err conftest.$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4528 echo "${ECHO_T}$ac_header_preproc" >&6
4530 # So? What about this header?
4531 case $ac_header_compiler:$ac_header_preproc in
4532 yes:no )
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4537 no:yes )
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4544 esac
4545 echo "$as_me:$LINENO: checking for $ac_header" >&5
4546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 eval "$as_ac_Header=$ac_header_preproc"
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557 cat >>confdefs.h <<_ACEOF
4558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559 _ACEOF
4563 done
4565 # Emulation library used on NetBSD.
4566 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4567 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4568 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 ac_check_lib_save_LIBS=$LIBS
4572 LIBS="-lossaudio $LIBS"
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 #include "confdefs.h"
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 #ifdef __cplusplus
4579 extern "C"
4580 #endif
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char _oss_ioctl ();
4584 #ifdef F77_DUMMY_MAIN
4585 # ifdef __cplusplus
4586 extern "C"
4587 # endif
4588 int F77_DUMMY_MAIN() { return 1; }
4589 #endif
4591 main ()
4593 _oss_ioctl ();
4595 return 0;
4597 _ACEOF
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_lib_ossaudio__oss_ioctl=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 ac_cv_lib_ossaudio__oss_ioctl=no
4616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4617 LIBS=$ac_check_lib_save_LIBS
4619 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4620 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4621 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4622 LIBSOUND=-lossaudio
4623 else
4624 LIBSOUND=
4647 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4648 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4649 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo "$as_me:$LINENO: checking for $ac_header" >&5
4654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4660 else
4661 # Is the header compilable?
4662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4668 #include <$ac_header>
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_header_compiler=no
4688 rm -f conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 #include "confdefs.h"
4698 #include <$ac_header>
4699 _ACEOF
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702 ac_status=$?
4703 egrep -v '^ *\+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null; then
4708 if test -s conftest.err; then
4709 ac_cpp_err=$ac_c_preproc_warn_flag
4710 else
4711 ac_cpp_err=
4713 else
4714 ac_cpp_err=yes
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 ac_header_preproc=no
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc in
4729 yes:no )
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4734 no:yes )
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4741 esac
4742 echo "$as_me:$LINENO: checking for $ac_header" >&5
4743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 eval "$as_ac_Header=$ac_header_preproc"
4749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4754 cat >>confdefs.h <<_ACEOF
4755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4756 _ACEOF
4760 done
4762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4764 if test "${ac_cv_header_stdc+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4770 #include <stdlib.h>
4771 #include <stdarg.h>
4772 #include <string.h>
4773 #include <float.h>
4775 _ACEOF
4776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778 ac_status=$?
4779 egrep -v '^ *\+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null; then
4784 if test -s conftest.err; then
4785 ac_cpp_err=$ac_c_preproc_warn_flag
4786 else
4787 ac_cpp_err=
4789 else
4790 ac_cpp_err=yes
4792 if test -z "$ac_cpp_err"; then
4793 ac_cv_header_stdc=yes
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4797 ac_cv_header_stdc=no
4799 rm -f conftest.err conftest.$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 #include "confdefs.h"
4806 #include <string.h>
4808 _ACEOF
4809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810 egrep "memchr" >/dev/null 2>&1; then
4812 else
4813 ac_cv_header_stdc=no
4815 rm -f conftest*
4819 if test $ac_cv_header_stdc = yes; then
4820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4824 #include <stdlib.h>
4826 _ACEOF
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 egrep "free" >/dev/null 2>&1; then
4830 else
4831 ac_cv_header_stdc=no
4833 rm -f conftest*
4837 if test $ac_cv_header_stdc = yes; then
4838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4839 if test "$cross_compiling" = yes; then
4841 else
4842 cat >conftest.$ac_ext <<_ACEOF
4843 #line $LINENO "configure"
4844 #include "confdefs.h"
4845 #include <ctype.h>
4846 #if ((' ' & 0x0FF) == 0x020)
4847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4849 #else
4850 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4851 || ('j' <= (c) && (c) <= 'r') \
4852 || ('s' <= (c) && (c) <= 'z'))
4853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4854 #endif
4856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4858 main ()
4860 int i;
4861 for (i = 0; i < 256; i++)
4862 if (XOR (islower (i), ISLOWER (i))
4863 || toupper (i) != TOUPPER (i))
4864 exit(2);
4865 exit (0);
4867 _ACEOF
4868 rm -f conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4880 else
4881 echo "$as_me: program exited with status $ac_status" >&5
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 ( exit $ac_status )
4885 ac_cv_header_stdc=no
4887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4893 if test $ac_cv_header_stdc = yes; then
4895 cat >>confdefs.h <<\_ACEOF
4896 #define STDC_HEADERS 1
4897 _ACEOF
4901 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4902 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4903 if test "${ac_cv_header_time+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 #include <sys/types.h>
4910 #include <sys/time.h>
4911 #include <time.h>
4913 #ifdef F77_DUMMY_MAIN
4914 # ifdef __cplusplus
4915 extern "C"
4916 # endif
4917 int F77_DUMMY_MAIN() { return 1; }
4918 #endif
4920 main ()
4922 if ((struct tm *) 0)
4923 return 0;
4925 return 0;
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_header_time=yes
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 ac_cv_header_time=no
4946 rm -f conftest.$ac_objext conftest.$ac_ext
4948 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4949 echo "${ECHO_T}$ac_cv_header_time" >&6
4950 if test $ac_cv_header_time = yes; then
4952 cat >>confdefs.h <<\_ACEOF
4953 #define TIME_WITH_SYS_TIME 1
4954 _ACEOF
4958 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4959 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4960 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 cat >conftest.$ac_ext <<_ACEOF
4964 #line $LINENO "configure"
4965 #include "confdefs.h"
4966 #include <sys/types.h>
4967 #include <signal.h>
4968 /* NetBSD declares sys_siglist in unistd.h. */
4969 #if HAVE_UNISTD_H
4970 # include <unistd.h>
4971 #endif
4973 #ifdef F77_DUMMY_MAIN
4974 # ifdef __cplusplus
4975 extern "C"
4976 # endif
4977 int F77_DUMMY_MAIN() { return 1; }
4978 #endif
4980 main ()
4982 char *msg = *(sys_siglist + 1);
4984 return 0;
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_decl_sys_siglist=yes
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5003 ac_cv_decl_sys_siglist=no
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5008 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5009 if test $ac_cv_decl_sys_siglist = yes; then
5011 cat >>confdefs.h <<\_ACEOF
5012 #define SYS_SIGLIST_DECLARED 1
5013 _ACEOF
5017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include <sys/types.h>
5026 #include <sys/wait.h>
5027 #ifndef WEXITSTATUS
5028 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5029 #endif
5030 #ifndef WIFEXITED
5031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5032 #endif
5034 #ifdef F77_DUMMY_MAIN
5035 # ifdef __cplusplus
5036 extern "C"
5037 # endif
5038 int F77_DUMMY_MAIN() { return 1; }
5039 #endif
5041 main ()
5043 int s;
5044 wait (&s);
5045 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5047 return 0;
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_header_sys_wait_h=yes
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_cv_header_sys_wait_h=no
5068 rm -f conftest.$ac_objext conftest.$ac_ext
5070 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5071 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5072 if test $ac_cv_header_sys_wait_h = yes; then
5074 cat >>confdefs.h <<\_ACEOF
5075 #define HAVE_SYS_WAIT_H 1
5076 _ACEOF
5081 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5082 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5083 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 #line $LINENO "configure"
5088 #include "confdefs.h"
5089 #ifdef TIME_WITH_SYS_TIME
5090 #include <sys/time.h>
5091 #include <time.h>
5092 #else
5093 #ifdef HAVE_SYS_TIME_H
5094 #include <sys/time.h>
5095 #else
5096 #include <time.h>
5097 #endif
5098 #endif
5099 #ifdef HAVE_UTIME_H
5100 #include <utime.h>
5101 #endif
5102 #ifdef F77_DUMMY_MAIN
5103 # ifdef __cplusplus
5104 extern "C"
5105 # endif
5106 int F77_DUMMY_MAIN() { return 1; }
5107 #endif
5109 main ()
5111 static struct utimbuf x; x.actime = x.modtime;
5113 return 0;
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 emacs_cv_struct_utimbuf=yes
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 emacs_cv_struct_utimbuf=no
5134 rm -f conftest.$ac_objext conftest.$ac_ext
5136 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5137 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5138 if test $emacs_cv_struct_utimbuf = yes; then
5140 cat >>confdefs.h <<\_ACEOF
5141 #define HAVE_STRUCT_UTIMBUF 1
5142 _ACEOF
5146 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5147 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5148 if test "${ac_cv_type_signal+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 #include "confdefs.h"
5154 #include <sys/types.h>
5155 #include <signal.h>
5156 #ifdef signal
5157 # undef signal
5158 #endif
5159 #ifdef __cplusplus
5160 extern "C" void (*signal (int, void (*)(int)))(int);
5161 #else
5162 void (*signal ()) ();
5163 #endif
5165 #ifdef F77_DUMMY_MAIN
5166 # ifdef __cplusplus
5167 extern "C"
5168 # endif
5169 int F77_DUMMY_MAIN() { return 1; }
5170 #endif
5172 main ()
5174 int i;
5176 return 0;
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try='test -s conftest.$ac_objext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 ac_cv_type_signal=void
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 ac_cv_type_signal=int
5197 rm -f conftest.$ac_objext conftest.$ac_ext
5199 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5200 echo "${ECHO_T}$ac_cv_type_signal" >&6
5202 cat >>confdefs.h <<_ACEOF
5203 #define RETSIGTYPE $ac_cv_type_signal
5204 _ACEOF
5208 echo "$as_me:$LINENO: checking for speed_t" >&5
5209 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5210 if test "${emacs_cv_speed_t+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 #include "confdefs.h"
5216 #include <termios.h>
5217 #ifdef F77_DUMMY_MAIN
5218 # ifdef __cplusplus
5219 extern "C"
5220 # endif
5221 int F77_DUMMY_MAIN() { return 1; }
5222 #endif
5224 main ()
5226 speed_t x = 1;
5228 return 0;
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 emacs_cv_speed_t=yes
5244 else
5245 echo "$as_me: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5247 emacs_cv_speed_t=no
5249 rm -f conftest.$ac_objext conftest.$ac_ext
5251 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5252 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5253 if test $emacs_cv_speed_t = yes; then
5255 cat >>confdefs.h <<\_ACEOF
5256 #define HAVE_SPEED_T 1
5257 _ACEOF
5261 echo "$as_me:$LINENO: checking for struct timeval" >&5
5262 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5263 if test "${emacs_cv_struct_timeval+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5269 #ifdef TIME_WITH_SYS_TIME
5270 #include <sys/time.h>
5271 #include <time.h>
5272 #else
5273 #ifdef HAVE_SYS_TIME_H
5274 #include <sys/time.h>
5275 #else
5276 #include <time.h>
5277 #endif
5278 #endif
5279 #ifdef F77_DUMMY_MAIN
5280 # ifdef __cplusplus
5281 extern "C"
5282 # endif
5283 int F77_DUMMY_MAIN() { return 1; }
5284 #endif
5286 main ()
5288 static struct timeval x; x.tv_sec = x.tv_usec;
5290 return 0;
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 emacs_cv_struct_timeval=yes
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 emacs_cv_struct_timeval=no
5311 rm -f conftest.$ac_objext conftest.$ac_ext
5313 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5314 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5315 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5316 if test $emacs_cv_struct_timeval = yes; then
5318 cat >>confdefs.h <<\_ACEOF
5319 #define HAVE_TIMEVAL 1
5320 _ACEOF
5324 echo "$as_me:$LINENO: checking for struct exception" >&5
5325 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5326 if test "${emacs_cv_struct_exception+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 #include "confdefs.h"
5332 #include <math.h>
5333 #ifdef F77_DUMMY_MAIN
5334 # ifdef __cplusplus
5335 extern "C"
5336 # endif
5337 int F77_DUMMY_MAIN() { return 1; }
5338 #endif
5340 main ()
5342 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5344 return 0;
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 emacs_cv_struct_exception=yes
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 emacs_cv_struct_exception=no
5365 rm -f conftest.$ac_objext conftest.$ac_ext
5367 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5368 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5369 HAVE_EXCEPTION=$emacs_cv_struct_exception
5370 if test $emacs_cv_struct_exception != yes; then
5372 cat >>confdefs.h <<\_ACEOF
5373 #define NO_MATHERR 1
5374 _ACEOF
5378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5380 if test "${ac_cv_struct_tm+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 #include <sys/types.h>
5387 #include <time.h>
5389 #ifdef F77_DUMMY_MAIN
5390 # ifdef __cplusplus
5391 extern "C"
5392 # endif
5393 int F77_DUMMY_MAIN() { return 1; }
5394 #endif
5396 main ()
5398 struct tm *tp; tp->tm_sec;
5400 return 0;
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -s conftest.$ac_objext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_struct_tm=time.h
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 ac_cv_struct_tm=sys/time.h
5421 rm -f conftest.$ac_objext conftest.$ac_ext
5423 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5424 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5425 if test $ac_cv_struct_tm = sys/time.h; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define TM_IN_SYS_TIME 1
5429 _ACEOF
5433 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5434 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5435 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 cat >conftest.$ac_ext <<_ACEOF
5439 #line $LINENO "configure"
5440 #include "confdefs.h"
5441 #include <sys/types.h>
5442 #include <$ac_cv_struct_tm>
5445 #ifdef F77_DUMMY_MAIN
5446 # ifdef __cplusplus
5447 extern "C"
5448 # endif
5449 int F77_DUMMY_MAIN() { return 1; }
5450 #endif
5452 main ()
5454 static struct tm ac_aggr;
5455 if (ac_aggr.tm_zone)
5456 return 0;
5458 return 0;
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_member_struct_tm_tm_zone=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5477 ac_cv_member_struct_tm_tm_zone=no
5479 rm -f conftest.$ac_objext conftest.$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5482 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5483 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define HAVE_STRUCT_TM_TM_ZONE 1
5487 _ACEOF
5492 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5494 cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_TM_ZONE 1
5496 _ACEOF
5498 else
5499 echo "$as_me:$LINENO: checking for tzname" >&5
5500 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5501 if test "${ac_cv_var_tzname+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 #include "confdefs.h"
5507 #include <time.h>
5508 #ifndef tzname /* For SGI. */
5509 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5510 #endif
5512 #ifdef F77_DUMMY_MAIN
5513 # ifdef __cplusplus
5514 extern "C"
5515 # endif
5516 int F77_DUMMY_MAIN() { return 1; }
5517 #endif
5519 main ()
5521 atoi(*tzname);
5523 return 0;
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_var_tzname=yes
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5542 ac_cv_var_tzname=no
5544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5547 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5548 if test $ac_cv_var_tzname = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_TZNAME 1
5552 _ACEOF
5557 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5558 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5559 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5565 #include <time.h>
5567 #ifdef F77_DUMMY_MAIN
5568 # ifdef __cplusplus
5569 extern "C"
5570 # endif
5571 int F77_DUMMY_MAIN() { return 1; }
5572 #endif
5574 main ()
5576 static struct tm ac_aggr;
5577 if (ac_aggr.tm_gmtoff)
5578 return 0;
5580 return 0;
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_member_struct_tm_tm_gmtoff=yes
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 ac_cv_member_struct_tm_tm_gmtoff=no
5601 rm -f conftest.$ac_objext conftest.$ac_ext
5603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5605 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5607 cat >>confdefs.h <<\_ACEOF
5608 #define HAVE_TM_GMTOFF 1
5609 _ACEOF
5615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 ac_cv_prog_cc_stdc=no
5621 ac_save_CC=$CC
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 #include "confdefs.h"
5625 #include <stdarg.h>
5626 #include <stdio.h>
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5633 char **p;
5634 int i;
5636 return p[i];
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5640 char *s;
5641 va_list v;
5642 va_start (v,p);
5643 s = g (p, va_arg (v,int));
5644 va_end (v);
5645 return s;
5647 int test (int i, double x);
5648 struct s1 {int (*f) (int a);};
5649 struct s2 {int (*f) (double a);};
5650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5651 int argc;
5652 char **argv;
5653 #ifdef F77_DUMMY_MAIN
5654 # ifdef __cplusplus
5655 extern "C"
5656 # endif
5657 int F77_DUMMY_MAIN() { return 1; }
5658 #endif
5660 main ()
5662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5664 return 0;
5666 _ACEOF
5667 # Don't try gcc -ansi; that turns off useful extensions and
5668 # breaks some systems' header files.
5669 # AIX -qlanglvl=ansi
5670 # Ultrix and OSF/1 -std1
5671 # HP-UX 10.20 and later -Ae
5672 # HP-UX older versions -Aa -D_HPUX_SOURCE
5673 # SVR4 -Xc -D__EXTENSIONS__
5674 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676 CC="$ac_save_CC $ac_arg"
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_cv_prog_cc_stdc=$ac_arg
5690 break
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5695 rm -f conftest.$ac_objext
5696 done
5697 rm -f conftest.$ac_ext conftest.$ac_objext
5698 CC=$ac_save_CC
5702 case "x$ac_cv_prog_cc_stdc" in
5703 x|xno)
5704 echo "$as_me:$LINENO: result: none needed" >&5
5705 echo "${ECHO_T}none needed" >&6 ;;
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5708 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5709 CC="$CC $ac_cv_prog_cc_stdc" ;;
5710 esac
5712 echo "$as_me:$LINENO: checking for function prototypes" >&5
5713 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5714 if test "$ac_cv_prog_cc_stdc" != no; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5718 cat >>confdefs.h <<\_ACEOF
5719 #define PROTOTYPES 1
5720 _ACEOF
5723 cat >>confdefs.h <<\_ACEOF
5724 #define __PROTOTYPES 1
5725 _ACEOF
5727 else
5728 echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6
5732 echo "$as_me:$LINENO: checking for working volatile" >&5
5733 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5734 if test "${ac_cv_c_volatile+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 cat >conftest.$ac_ext <<_ACEOF
5738 #line $LINENO "configure"
5739 #include "confdefs.h"
5741 #ifdef F77_DUMMY_MAIN
5742 # ifdef __cplusplus
5743 extern "C"
5744 # endif
5745 int F77_DUMMY_MAIN() { return 1; }
5746 #endif
5748 main ()
5751 volatile int x;
5752 int * volatile y;
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_c_volatile=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5773 ac_cv_c_volatile=no
5775 rm -f conftest.$ac_objext conftest.$ac_ext
5777 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5778 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5779 if test $ac_cv_c_volatile = no; then
5781 cat >>confdefs.h <<\_ACEOF
5782 #define volatile
5783 _ACEOF
5787 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5789 if test "${ac_cv_c_const+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5796 #ifdef F77_DUMMY_MAIN
5797 # ifdef __cplusplus
5798 extern "C"
5799 # endif
5800 int F77_DUMMY_MAIN() { return 1; }
5801 #endif
5803 main ()
5805 /* FIXME: Include the comments suggested by Paul. */
5806 #ifndef __cplusplus
5807 /* Ultrix mips cc rejects this. */
5808 typedef int charset[2];
5809 const charset x;
5810 /* SunOS 4.1.1 cc rejects this. */
5811 char const *const *ccp;
5812 char **p;
5813 /* NEC SVR4.0.2 mips cc rejects this. */
5814 struct point {int x, y;};
5815 static struct point const zero = {0,0};
5816 /* AIX XL C 1.02.0.0 rejects this.
5817 It does not let you subtract one const X* pointer from another in
5818 an arm of an if-expression whose if-part is not a constant
5819 expression */
5820 const char *g = "string";
5821 ccp = &g + (g ? g-g : 0);
5822 /* HPUX 7.0 cc rejects these. */
5823 ++ccp;
5824 p = (char**) ccp;
5825 ccp = (char const *const *) p;
5826 { /* SCO 3.2v4 cc rejects this. */
5827 char *t;
5828 char const *s = 0 ? (char *) 0 : (char const *) 0;
5830 *t++ = 0;
5832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5833 int x[] = {25, 17};
5834 const int *foo = &x[0];
5835 ++foo;
5837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5838 typedef const int *iptr;
5839 iptr p = 0;
5840 ++p;
5842 { /* AIX XL C 1.02.0.0 rejects this saying
5843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5844 struct s { int j; const int *ap[3]; };
5845 struct s *b; b->j = 5;
5847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5848 const int foo = 10;
5850 #endif
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_c_const=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_cv_c_const=no
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5877 echo "${ECHO_T}$ac_cv_c_const" >&6
5878 if test $ac_cv_c_const = no; then
5880 cat >>confdefs.h <<\_ACEOF
5881 #define const
5882 _ACEOF
5886 echo "$as_me:$LINENO: checking for void * support" >&5
5887 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5888 if test "${emacs_cv_void_star+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 #include "confdefs.h"
5895 #ifdef F77_DUMMY_MAIN
5896 # ifdef __cplusplus
5897 extern "C"
5898 # endif
5899 int F77_DUMMY_MAIN() { return 1; }
5900 #endif
5902 main ()
5904 void * foo;
5906 return 0;
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 emacs_cv_void_star=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5925 emacs_cv_void_star=no
5927 rm -f conftest.$ac_objext conftest.$ac_ext
5929 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5930 echo "${ECHO_T}$emacs_cv_void_star" >&6
5931 if test $emacs_cv_void_star = yes; then
5932 cat >>confdefs.h <<\_ACEOF
5933 #define POINTER_TYPE void
5934 _ACEOF
5936 else
5937 cat >>confdefs.h <<\_ACEOF
5938 #define POINTER_TYPE char
5939 _ACEOF
5944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5945 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5946 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 cat >conftest.make <<\_ACEOF
5951 all:
5952 @echo 'ac_maketemp="${MAKE}"'
5953 _ACEOF
5954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5956 if test -n "$ac_maketemp"; then
5957 eval ac_cv_prog_make_${ac_make}_set=yes
5958 else
5959 eval ac_cv_prog_make_${ac_make}_set=no
5961 rm -f conftest.make
5963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965 echo "${ECHO_T}yes" >&6
5966 SET_MAKE=
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 SET_MAKE="MAKE=${MAKE-make}"
5974 echo "$as_me:$LINENO: checking for long file names" >&5
5975 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5976 if test "${ac_cv_sys_long_file_names+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 ac_cv_sys_long_file_names=yes
5980 # Test for long file names in all the places we know might matter:
5981 # . the current directory, where building will happen
5982 # $prefix/lib where we will be installing things
5983 # $exec_prefix/lib likewise
5984 # eval it to expand exec_prefix.
5985 # $TMPDIR if set, where it might want to write temporary files
5986 # if $TMPDIR is not set:
5987 # /tmp where it might want to write temporary files
5988 # /var/tmp likewise
5989 # /usr/tmp likewise
5990 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5991 ac_tmpdirs=$TMPDIR
5992 else
5993 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5995 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5996 test -d $ac_dir || continue
5997 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5998 ac_xdir=$ac_dir/cf$$
5999 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6000 ac_tf1=$ac_xdir/conftest9012345
6001 ac_tf2=$ac_xdir/conftest9012346
6002 (echo 1 >$ac_tf1) 2>/dev/null
6003 (echo 2 >$ac_tf2) 2>/dev/null
6004 ac_val=`cat $ac_tf1 2>/dev/null`
6005 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6006 ac_cv_sys_long_file_names=no
6007 rm -rf $ac_xdir 2>/dev/null
6008 break
6010 rm -rf $ac_xdir 2>/dev/null
6011 done
6013 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6014 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6015 if test $ac_cv_sys_long_file_names = yes; then
6017 cat >>confdefs.h <<\_ACEOF
6018 #define HAVE_LONG_FILE_NAMES 1
6019 _ACEOF
6024 #### Choose a window system.
6026 echo "$as_me:$LINENO: checking for X" >&5
6027 echo $ECHO_N "checking for X... $ECHO_C" >&6
6030 # Check whether --with-x or --without-x was given.
6031 if test "${with_x+set}" = set; then
6032 withval="$with_x"
6035 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6036 if test "x$with_x" = xno; then
6037 # The user explicitly disabled X.
6038 have_x=disabled
6039 else
6040 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6041 # Both variables are already set.
6042 have_x=yes
6043 else
6044 if test "${ac_cv_have_x+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 # One or both of the vars are not set, and there is no cached value.
6048 ac_x_includes=no ac_x_libraries=no
6049 rm -fr conftest.dir
6050 if mkdir conftest.dir; then
6051 cd conftest.dir
6052 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6053 cat >Imakefile <<'_ACEOF'
6054 acfindx:
6055 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6056 _ACEOF
6057 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6059 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6060 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6061 for ac_extension in a so sl; do
6062 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6063 test -f $ac_im_libdir/libX11.$ac_extension; then
6064 ac_im_usrlibdir=$ac_im_libdir; break
6066 done
6067 # Screen out bogus values from the imake configuration. They are
6068 # bogus both because they are the default anyway, and because
6069 # using them would break gcc on systems where it needs fixed includes.
6070 case $ac_im_incroot in
6071 /usr/include) ;;
6072 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6073 esac
6074 case $ac_im_usrlibdir in
6075 /usr/lib | /lib) ;;
6076 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6077 esac
6079 cd ..
6080 rm -fr conftest.dir
6083 # Standard set of common directories for X headers.
6084 # Check X11 before X11Rn because it is often a symlink to the current release.
6085 ac_x_header_dirs='
6086 /usr/X11/include
6087 /usr/X11R6/include
6088 /usr/X11R5/include
6089 /usr/X11R4/include
6091 /usr/include/X11
6092 /usr/include/X11R6
6093 /usr/include/X11R5
6094 /usr/include/X11R4
6096 /usr/local/X11/include
6097 /usr/local/X11R6/include
6098 /usr/local/X11R5/include
6099 /usr/local/X11R4/include
6101 /usr/local/include/X11
6102 /usr/local/include/X11R6
6103 /usr/local/include/X11R5
6104 /usr/local/include/X11R4
6106 /usr/X386/include
6107 /usr/x386/include
6108 /usr/XFree86/include/X11
6110 /usr/include
6111 /usr/local/include
6112 /usr/unsupported/include
6113 /usr/athena/include
6114 /usr/local/x11r5/include
6115 /usr/lpp/Xamples/include
6117 /usr/openwin/include
6118 /usr/openwin/share/include'
6120 if test "$ac_x_includes" = no; then
6121 # Guess where to find include files, by looking for Intrinsic.h.
6122 # First, try using that file with no special directory specified.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6126 #include <X11/Intrinsic.h>
6127 _ACEOF
6128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6130 ac_status=$?
6131 egrep -v '^ *\+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev/null; then
6136 if test -s conftest.err; then
6137 ac_cpp_err=$ac_c_preproc_warn_flag
6138 else
6139 ac_cpp_err=
6141 else
6142 ac_cpp_err=yes
6144 if test -z "$ac_cpp_err"; then
6145 # We can compile using X headers with no special include directory.
6146 ac_x_includes=
6147 else
6148 echo "$as_me: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6150 for ac_dir in $ac_x_header_dirs; do
6151 if test -r "$ac_dir/X11/Intrinsic.h"; then
6152 ac_x_includes=$ac_dir
6153 break
6155 done
6157 rm -f conftest.err conftest.$ac_ext
6158 fi # $ac_x_includes = no
6160 if test "$ac_x_libraries" = no; then
6161 # Check for the libraries.
6162 # See if we find them without any special options.
6163 # Don't add to $LIBS permanently.
6164 ac_save_LIBS=$LIBS
6165 LIBS="-lXt $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6169 #include <X11/Intrinsic.h>
6170 #ifdef F77_DUMMY_MAIN
6171 # ifdef __cplusplus
6172 extern "C"
6173 # endif
6174 int F77_DUMMY_MAIN() { return 1; }
6175 #endif
6177 main ()
6179 XtMalloc (0)
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 LIBS=$ac_save_LIBS
6197 # We can link X programs with no special library path.
6198 ac_x_libraries=
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 LIBS=$ac_save_LIBS
6203 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6205 # Don't even attempt the hair of trying to link an X program!
6206 for ac_extension in a so sl; do
6207 if test -r $ac_dir/libXt.$ac_extension; then
6208 ac_x_libraries=$ac_dir
6209 break 2
6211 done
6212 done
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 fi # $ac_x_libraries = no
6217 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6218 # Didn't find X anywhere. Cache the known absence of X.
6219 ac_cv_have_x="have_x=no"
6220 else
6221 # Record where we found X for the cache.
6222 ac_cv_have_x="have_x=yes \
6223 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6228 eval "$ac_cv_have_x"
6229 fi # $with_x != no
6231 if test "$have_x" != yes; then
6232 echo "$as_me:$LINENO: result: $have_x" >&5
6233 echo "${ECHO_T}$have_x" >&6
6234 no_x=yes
6235 else
6236 # If each of the values was on the command line, it overrides each guess.
6237 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6238 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6239 # Update the cache value to reflect the command line values.
6240 ac_cv_have_x="have_x=yes \
6241 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6242 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6243 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6246 if test "$no_x" = yes; then
6247 window_system=none
6248 else
6249 window_system=x11
6252 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6253 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6254 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6255 x_default_search_path=""
6256 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6257 x_search_path="\
6258 ${x_library}/X11/%L/%T/%N%C%S:\
6259 ${x_library}/X11/%l/%T/%N%C%S:\
6260 ${x_library}/X11/%T/%N%C%S:\
6261 ${x_library}/X11/%L/%T/%N%S:\
6262 ${x_library}/X11/%l/%T/%N%S:\
6263 ${x_library}/X11/%T/%N%S"
6264 if test x"${x_default_search_path}" = x; then
6265 x_default_search_path=${x_search_path}
6266 else
6267 x_default_search_path="${x_search_path}:${x_default_search_path}"
6269 done
6271 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6272 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6275 if test x"${x_includes}" = x; then
6276 bitmapdir=/usr/include/X11/bitmaps
6277 else
6278 # accumulate include directories that have X11 bitmap subdirectories
6279 bmd_acc="dummyval"
6280 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6281 if test -d "${bmd}/X11/bitmaps"; then
6282 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6284 if test -d "${bmd}/bitmaps"; then
6285 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6287 done
6288 if test ${bmd_acc} != "dummyval"; then
6289 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6293 case "${window_system}" in
6294 x11 )
6295 HAVE_X_WINDOWS=yes
6296 HAVE_X11=yes
6297 case "${with_x_toolkit}" in
6298 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6299 motif ) USE_X_TOOLKIT=MOTIF ;;
6300 no ) USE_X_TOOLKIT=none ;;
6301 * ) USE_X_TOOLKIT=maybe ;;
6302 esac
6304 none )
6305 HAVE_X_WINDOWS=no
6306 HAVE_X11=no
6307 USE_X_TOOLKIT=none
6309 esac
6311 ### If we're using X11, we should use the X menu package.
6312 HAVE_MENUS=no
6313 case ${HAVE_X11} in
6314 yes ) HAVE_MENUS=yes ;;
6315 esac
6317 if test "${opsys}" = "hpux9"; then
6318 case "${x_libraries}" in
6319 *X11R4* )
6320 opsysfile="s/hpux9-x11r4.h"
6322 esac
6325 if test "${opsys}" = "hpux9shr"; then
6326 case "${x_libraries}" in
6327 *X11R4* )
6328 opsysfile="s/hpux9shxr4.h"
6330 esac
6333 ### Compute the unexec source name from the object name.
6334 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6336 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6337 # Assume not, until told otherwise.
6338 GNU_MALLOC=yes
6339 doug_lea_malloc=yes
6340 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6341 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6342 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348 /* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char malloc_get_state (); below. */
6350 #include <assert.h>
6351 /* Override any gcc2 internal prototype to avoid an error. */
6352 #ifdef __cplusplus
6353 extern "C"
6354 #endif
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char malloc_get_state ();
6358 char (*f) ();
6360 #ifdef F77_DUMMY_MAIN
6361 # ifdef __cplusplus
6362 extern "C"
6363 # endif
6364 int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6367 main ()
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6373 choke me
6374 #else
6375 f = malloc_get_state;
6376 #endif
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_func_malloc_get_state=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6398 ac_cv_func_malloc_get_state=no
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6403 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6404 if test $ac_cv_func_malloc_get_state = yes; then
6406 else
6407 doug_lea_malloc=no
6410 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6411 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6412 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char malloc_set_state (); below. */
6420 #include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error. */
6422 #ifdef __cplusplus
6423 extern "C"
6424 #endif
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6427 char malloc_set_state ();
6428 char (*f) ();
6430 #ifdef F77_DUMMY_MAIN
6431 # ifdef __cplusplus
6432 extern "C"
6433 # endif
6434 int F77_DUMMY_MAIN() { return 1; }
6435 #endif
6437 main ()
6439 /* The GNU C library defines this for functions which it implements
6440 to always fail with ENOSYS. Some functions are actually named
6441 something starting with __ and the normal name is an alias. */
6442 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6443 choke me
6444 #else
6445 f = malloc_set_state;
6446 #endif
6449 return 0;
6451 _ACEOF
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_func_malloc_set_state=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6468 ac_cv_func_malloc_set_state=no
6470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6472 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6473 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6474 if test $ac_cv_func_malloc_set_state = yes; then
6476 else
6477 doug_lea_malloc=no
6480 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6481 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6482 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 cat >conftest.$ac_ext <<_ACEOF
6486 #line $LINENO "configure"
6487 #include "confdefs.h"
6488 extern void (* __after_morecore_hook)();
6489 #ifdef F77_DUMMY_MAIN
6490 # ifdef __cplusplus
6491 extern "C"
6492 # endif
6493 int F77_DUMMY_MAIN() { return 1; }
6494 #endif
6496 main ()
6498 __after_morecore_hook = 0
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 emacs_cv_var___after_morecore_hook=yes
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6519 emacs_cv_var___after_morecore_hook=no
6521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6523 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6524 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6525 if test $emacs_cv_var___after_morecore_hook = no; then
6526 doug_lea_malloc=no
6528 if test "${system_malloc}" = "yes"; then
6529 GNU_MALLOC=no
6530 GNU_MALLOC_reason="
6531 (The GNU allocators don't work with this system configuration.)"
6533 if test "$doug_lea_malloc" = "yes" ; then
6534 if test "$GNU_MALLOC" = yes ; then
6535 GNU_MALLOC_reason="
6536 (Using Doug Lea's new malloc from the GNU C Library.)"
6539 cat >>confdefs.h <<\_ACEOF
6540 #define DOUG_LEA_MALLOC 1
6541 _ACEOF
6545 if test x"${REL_ALLOC}" = x; then
6546 REL_ALLOC=${GNU_MALLOC}
6552 for ac_header in stdlib.h unistd.h
6554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 else
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_header_compiler=yes
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6589 ac_header_compiler=no
6591 rm -f conftest.$ac_objext conftest.$ac_ext
6592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6
6595 # Is the header present?
6596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6598 cat >conftest.$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 #include "confdefs.h"
6601 #include <$ac_header>
6602 _ACEOF
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605 ac_status=$?
6606 egrep -v '^ *\+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null; then
6611 if test -s conftest.err; then
6612 ac_cpp_err=$ac_c_preproc_warn_flag
6613 else
6614 ac_cpp_err=
6616 else
6617 ac_cpp_err=yes
6619 if test -z "$ac_cpp_err"; then
6620 ac_header_preproc=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 ac_header_preproc=no
6626 rm -f conftest.err conftest.$ac_ext
6627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6628 echo "${ECHO_T}$ac_header_preproc" >&6
6630 # So? What about this header?
6631 case $ac_header_compiler:$ac_header_preproc in
6632 yes:no )
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6637 no:yes )
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6644 esac
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 eval "$as_ac_Header=$ac_header_preproc"
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 _ACEOF
6663 done
6666 for ac_func in getpagesize
6668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char $ac_func (); below. */
6679 #include <assert.h>
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 #ifdef __cplusplus
6682 extern "C"
6683 #endif
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6686 char $ac_func ();
6687 char (*f) ();
6689 #ifdef F77_DUMMY_MAIN
6690 # ifdef __cplusplus
6691 extern "C"
6692 # endif
6693 int F77_DUMMY_MAIN() { return 1; }
6694 #endif
6696 main ()
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 f = $ac_func;
6705 #endif
6708 return 0;
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 eval "$as_ac_var=yes"
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6727 eval "$as_ac_var=no"
6729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6733 if test `eval echo '${'$as_ac_var'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6736 _ACEOF
6739 done
6741 echo "$as_me:$LINENO: checking for working mmap" >&5
6742 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6743 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 if test "$cross_compiling" = yes; then
6747 ac_cv_func_mmap_fixed_mapped=no
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752 $ac_includes_default
6753 /* malloc might have been renamed as rpl_malloc. */
6754 #undef malloc
6756 /* Thanks to Mike Haertel and Jim Avera for this test.
6757 Here is a matrix of mmap possibilities:
6758 mmap private not fixed
6759 mmap private fixed at somewhere currently unmapped
6760 mmap private fixed at somewhere already mapped
6761 mmap shared not fixed
6762 mmap shared fixed at somewhere currently unmapped
6763 mmap shared fixed at somewhere already mapped
6764 For private mappings, we should verify that changes cannot be read()
6765 back from the file, nor mmap's back from the file at a different
6766 address. (There have been systems where private was not correctly
6767 implemented like the infamous i386 svr4.0, and systems where the
6768 VM page cache was not coherent with the file system buffer cache
6769 like early versions of FreeBSD and possibly contemporary NetBSD.)
6770 For shared mappings, we should conversely verify that changes get
6771 propagated back to all the places they're supposed to be.
6773 Grep wants private fixed already mapped.
6774 The main things grep needs to know about mmap are:
6775 * does it exist and is it safe to write into the mmap'd area
6776 * how to use it (BSD variants) */
6778 #include <fcntl.h>
6779 #include <sys/mman.h>
6781 #if !STDC_HEADERS && !HAVE_STDLIB_H
6782 char *malloc ();
6783 #endif
6785 /* This mess was copied from the GNU getpagesize.h. */
6786 #if !HAVE_GETPAGESIZE
6787 /* Assume that all systems that can run configure have sys/param.h. */
6788 # if !HAVE_SYS_PARAM_H
6789 # define HAVE_SYS_PARAM_H 1
6790 # endif
6792 # ifdef _SC_PAGESIZE
6793 # define getpagesize() sysconf(_SC_PAGESIZE)
6794 # else /* no _SC_PAGESIZE */
6795 # if HAVE_SYS_PARAM_H
6796 # include <sys/param.h>
6797 # ifdef EXEC_PAGESIZE
6798 # define getpagesize() EXEC_PAGESIZE
6799 # else /* no EXEC_PAGESIZE */
6800 # ifdef NBPG
6801 # define getpagesize() NBPG * CLSIZE
6802 # ifndef CLSIZE
6803 # define CLSIZE 1
6804 # endif /* no CLSIZE */
6805 # else /* no NBPG */
6806 # ifdef NBPC
6807 # define getpagesize() NBPC
6808 # else /* no NBPC */
6809 # ifdef PAGESIZE
6810 # define getpagesize() PAGESIZE
6811 # endif /* PAGESIZE */
6812 # endif /* no NBPC */
6813 # endif /* no NBPG */
6814 # endif /* no EXEC_PAGESIZE */
6815 # else /* no HAVE_SYS_PARAM_H */
6816 # define getpagesize() 8192 /* punt totally */
6817 # endif /* no HAVE_SYS_PARAM_H */
6818 # endif /* no _SC_PAGESIZE */
6820 #endif /* no HAVE_GETPAGESIZE */
6823 main ()
6825 char *data, *data2, *data3;
6826 int i, pagesize;
6827 int fd;
6829 pagesize = getpagesize ();
6831 /* First, make a file with some known garbage in it. */
6832 data = (char *) malloc (pagesize);
6833 if (!data)
6834 exit (1);
6835 for (i = 0; i < pagesize; ++i)
6836 *(data + i) = rand ();
6837 umask (0);
6838 fd = creat ("conftest.mmap", 0600);
6839 if (fd < 0)
6840 exit (1);
6841 if (write (fd, data, pagesize) != pagesize)
6842 exit (1);
6843 close (fd);
6845 /* Next, try to mmap the file at a fixed address which already has
6846 something else allocated at it. If we can, also make sure that
6847 we see the same garbage. */
6848 fd = open ("conftest.mmap", O_RDWR);
6849 if (fd < 0)
6850 exit (1);
6851 data2 = (char *) malloc (2 * pagesize);
6852 if (!data2)
6853 exit (1);
6854 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6857 exit (1);
6858 for (i = 0; i < pagesize; ++i)
6859 if (*(data + i) != *(data2 + i))
6860 exit (1);
6862 /* Finally, make sure that changes to the mapped area do not
6863 percolate back to the file as seen by read(). (This is a bug on
6864 some variants of i386 svr4.0.) */
6865 for (i = 0; i < pagesize; ++i)
6866 *(data2 + i) = *(data2 + i) + 1;
6867 data3 = (char *) malloc (pagesize);
6868 if (!data3)
6869 exit (1);
6870 if (read (fd, data3, pagesize) != pagesize)
6871 exit (1);
6872 for (i = 0; i < pagesize; ++i)
6873 if (*(data + i) != *(data3 + i))
6874 exit (1);
6875 close (fd);
6876 exit (0);
6878 _ACEOF
6879 rm -f conftest$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_func_mmap_fixed_mapped=yes
6891 else
6892 echo "$as_me: program exited with status $ac_status" >&5
6893 echo "$as_me: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 ( exit $ac_status )
6896 ac_cv_func_mmap_fixed_mapped=no
6898 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6901 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6902 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6905 cat >>confdefs.h <<\_ACEOF
6906 #define HAVE_MMAP 1
6907 _ACEOF
6910 rm -f conftest.mmap
6912 if test $use_mmap_for_buffers = yes; then
6913 REL_ALLOC=no
6916 LIBS="$libsrc_libs $LIBS"
6919 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6920 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6921 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 ac_check_lib_save_LIBS=$LIBS
6925 LIBS="-ldnet $LIBS"
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 #include "confdefs.h"
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char dnet_ntoa ();
6937 #ifdef F77_DUMMY_MAIN
6938 # ifdef __cplusplus
6939 extern "C"
6940 # endif
6941 int F77_DUMMY_MAIN() { return 1; }
6942 #endif
6944 main ()
6946 dnet_ntoa ();
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_dnet_dnet_ntoa=yes
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967 ac_cv_lib_dnet_dnet_ntoa=no
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970 LIBS=$ac_check_lib_save_LIBS
6972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define HAVE_LIBDNET 1
6977 _ACEOF
6979 LIBS="-ldnet $LIBS"
6984 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6985 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6986 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 ac_check_lib_save_LIBS=$LIBS
6990 LIBS="-lXbsd $LIBS"
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 #include "confdefs.h"
6996 #ifdef F77_DUMMY_MAIN
6997 # ifdef __cplusplus
6998 extern "C"
6999 # endif
7000 int F77_DUMMY_MAIN() { return 1; }
7001 #endif
7003 main ()
7005 main ();
7007 return 0;
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_lib_Xbsd_main=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7026 ac_cv_lib_Xbsd_main=no
7028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7029 LIBS=$ac_check_lib_save_LIBS
7031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7032 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7033 if test $ac_cv_lib_Xbsd_main = yes; then
7034 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7039 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7040 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7041 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lpthreads $LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 #ifdef __cplusplus
7052 extern "C"
7053 #endif
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char cma_open ();
7057 #ifdef F77_DUMMY_MAIN
7058 # ifdef __cplusplus
7059 extern "C"
7060 # endif
7061 int F77_DUMMY_MAIN() { return 1; }
7062 #endif
7064 main ()
7066 cma_open ();
7068 return 0;
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_lib_pthreads_cma_open=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 ac_cv_lib_pthreads_cma_open=no
7089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_check_lib_save_LIBS
7092 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7093 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7094 if test $ac_cv_lib_pthreads_cma_open = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_LIBPTHREADS 1
7097 _ACEOF
7099 LIBS="-lpthreads $LIBS"
7104 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7105 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7106 if test -d /usr/X386/include; then
7107 HAVE_XFREE386=yes
7108 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7109 else
7110 HAVE_XFREE386=no
7112 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7113 echo "${ECHO_T}$HAVE_XFREE386" >&6
7115 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7116 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7118 REAL_CPPFLAGS="$CPPFLAGS"
7120 if test "${HAVE_X11}" = "yes"; then
7121 DEFS="$C_SWITCH_X_SITE $DEFS"
7122 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7123 LIBS="$LIBX $LIBS"
7124 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7125 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7129 # but it's more convenient here to set LD_RUN_PATH
7130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7131 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7132 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7133 export LD_RUN_PATH
7136 if test "${opsys}" = "gnu-linux"; then
7137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7143 #ifdef F77_DUMMY_MAIN
7144 # ifdef __cplusplus
7145 extern "C"
7146 # endif
7147 int F77_DUMMY_MAIN() { return 1; }
7148 #endif
7150 main ()
7152 XOpenDisplay ("foo");
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 xlinux_first_failure=no
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 xlinux_first_failure=yes
7175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7176 if test "${xlinux_first_failure}" = "yes"; then
7177 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7178 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7179 OLD_CPPFLAGS="$CPPFLAGS"
7180 OLD_LIBS="$LIBS"
7181 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7182 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7183 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7184 LIBS="$LIBS -b i486-linuxaout"
7185 cat >conftest.$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 #include "confdefs.h"
7189 #ifdef F77_DUMMY_MAIN
7190 # ifdef __cplusplus
7191 extern "C"
7192 # endif
7193 int F77_DUMMY_MAIN() { return 1; }
7194 #endif
7196 main ()
7198 XOpenDisplay ("foo");
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 xlinux_second_failure=no
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 xlinux_second_failure=yes
7221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7222 if test "${xlinux_second_failure}" = "yes"; then
7223 # If we get the same failure with -b, there is no use adding -b.
7224 # So take it out. This plays safe.
7225 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7226 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7227 CPPFLAGS="$OLD_CPPFLAGS"
7228 LIBS="$OLD_LIBS"
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7231 else
7232 echo "$as_me:$LINENO: result: yes" >&5
7233 echo "${ECHO_T}yes" >&6
7235 else
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7241 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7242 # header files included from there.
7243 echo "$as_me:$LINENO: checking for Xkb" >&5
7244 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 #include "confdefs.h"
7248 #include <X11/Xlib.h>
7249 #include <X11/XKBlib.h>
7250 #ifdef F77_DUMMY_MAIN
7251 # ifdef __cplusplus
7252 extern "C"
7253 # endif
7254 int F77_DUMMY_MAIN() { return 1; }
7255 #endif
7257 main ()
7259 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7261 return 0;
7263 _ACEOF
7264 rm -f conftest.$ac_objext conftest$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -s conftest$ac_exeext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 emacs_xkb=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 emacs_xkb=no
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7283 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7284 echo "${ECHO_T}$emacs_xkb" >&6
7285 if test $emacs_xkb = yes; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_XKBGETKEYBOARD 1
7289 _ACEOF
7297 for ac_func in XrmSetDatabase XScreenResourceString \
7298 XScreenNumberOfScreen XSetWMProtocols
7300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7301 echo "$as_me:$LINENO: checking for $ac_func" >&5
7302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7303 if eval "test \"\${$as_ac_var+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 #line $LINENO "configure"
7308 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char $ac_func (); below. */
7311 #include <assert.h>
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 #ifdef __cplusplus
7314 extern "C"
7315 #endif
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7318 char $ac_func ();
7319 char (*f) ();
7321 #ifdef F77_DUMMY_MAIN
7322 # ifdef __cplusplus
7323 extern "C"
7324 # endif
7325 int F77_DUMMY_MAIN() { return 1; }
7326 #endif
7328 main ()
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7334 choke me
7335 #else
7336 f = $ac_func;
7337 #endif
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7359 eval "$as_ac_var=no"
7361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7365 if test `eval echo '${'$as_ac_var'}'` = yes; then
7366 cat >>confdefs.h <<_ACEOF
7367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7368 _ACEOF
7371 done
7375 if test "${window_system}" = "x11"; then
7376 echo "$as_me:$LINENO: checking X11 version 6" >&5
7377 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7378 if test "${emacs_cv_x11_version_6+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 #include <X11/Xlib.h>
7385 #ifdef F77_DUMMY_MAIN
7386 # ifdef __cplusplus
7387 extern "C"
7388 # endif
7389 int F77_DUMMY_MAIN() { return 1; }
7390 #endif
7392 main ()
7394 #if XlibSpecificationRelease < 6
7395 fail;
7396 #endif
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 emacs_cv_x11_version_6=yes
7415 else
7416 echo "$as_me: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7418 emacs_cv_x11_version_6=no
7420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7423 if test $emacs_cv_x11_version_6 = yes; then
7424 echo "$as_me:$LINENO: result: 6 or newer" >&5
7425 echo "${ECHO_T}6 or newer" >&6
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_X11R6 1
7429 _ACEOF
7431 else
7432 echo "$as_me:$LINENO: result: before 6" >&5
7433 echo "${ECHO_T}before 6" >&6
7437 if test "${window_system}" = "x11"; then
7438 echo "$as_me:$LINENO: checking X11 version 5" >&5
7439 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7440 if test "${emacs_cv_x11_version_5+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 #include <X11/Xlib.h>
7447 #ifdef F77_DUMMY_MAIN
7448 # ifdef __cplusplus
7449 extern "C"
7450 # endif
7451 int F77_DUMMY_MAIN() { return 1; }
7452 #endif
7454 main ()
7456 #if XlibSpecificationRelease < 5
7457 fail;
7458 #endif
7461 return 0;
7463 _ACEOF
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 emacs_cv_x11_version_5=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 emacs_cv_x11_version_5=no
7482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7485 if test $emacs_cv_x11_version_5 = yes; then
7486 echo "$as_me:$LINENO: result: 5 or newer" >&5
7487 echo "${ECHO_T}5 or newer" >&6
7488 HAVE_X11R5=yes
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_X11R5 1
7492 _ACEOF
7494 else
7495 HAVE_X11R5=no
7496 echo "$as_me:$LINENO: result: before 5" >&5
7497 echo "${ECHO_T}before 5" >&6
7501 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7502 if test x"${HAVE_X11R5}" = xyes; then
7503 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7504 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7505 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 cat >conftest.$ac_ext <<_ACEOF
7509 #line $LINENO "configure"
7510 #include "confdefs.h"
7512 #include <X11/Intrinsic.h>
7513 #include <X11/Xaw/Simple.h>
7514 #ifdef F77_DUMMY_MAIN
7515 # ifdef __cplusplus
7516 extern "C"
7517 # endif
7518 int F77_DUMMY_MAIN() { return 1; }
7519 #endif
7521 main ()
7525 return 0;
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 emacs_cv_x11_version_5_with_xaw=yes
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7544 emacs_cv_x11_version_5_with_xaw=no
7546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7549 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7550 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7551 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7552 USE_X_TOOLKIT=LUCID
7553 else
7554 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7555 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7556 USE_X_TOOLKIT=none
7558 else
7559 USE_X_TOOLKIT=none
7563 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7565 if test "${USE_X_TOOLKIT}" != "none"; then
7566 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7567 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7568 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <X11/Intrinsic.h>
7575 #ifdef F77_DUMMY_MAIN
7576 # ifdef __cplusplus
7577 extern "C"
7578 # endif
7579 int F77_DUMMY_MAIN() { return 1; }
7580 #endif
7582 main ()
7584 #if XtSpecificationRelease < 6
7585 fail;
7586 #endif
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 emacs_cv_x11_toolkit_version_6=yes
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 emacs_cv_x11_toolkit_version_6=no
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7613 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7614 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7615 echo "$as_me:$LINENO: result: 6 or newer" >&5
7616 echo "${ECHO_T}6 or newer" >&6
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_X11XTR6 1
7620 _ACEOF
7622 else
7623 echo "$as_me:$LINENO: result: before 6" >&5
7624 echo "${ECHO_T}before 6" >&6
7627 OLDLIBS="$LIBS"
7628 if test x$HAVE_X11XTR6 = xyes; then
7629 LIBS="-lXt -lSM -lICE $LIBS"
7630 else
7631 LIBS="-lXt $LIBS"
7634 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7635 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7636 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 ac_check_lib_save_LIBS=$LIBS
7640 LIBS="-lXmu $LIBS"
7641 cat >conftest.$ac_ext <<_ACEOF
7642 #line $LINENO "configure"
7643 #include "confdefs.h"
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char XmuConvertStandardSelection ();
7652 #ifdef F77_DUMMY_MAIN
7653 # ifdef __cplusplus
7654 extern "C"
7655 # endif
7656 int F77_DUMMY_MAIN() { return 1; }
7657 #endif
7659 main ()
7661 XmuConvertStandardSelection ();
7663 return 0;
7665 _ACEOF
7666 rm -f conftest.$ac_objext conftest$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 cat conftest.$ac_ext >&5
7682 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7688 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7689 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_LIBXMU 1
7692 _ACEOF
7694 LIBS="-lXmu $LIBS"
7698 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7701 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7702 if test "${HAVE_X11}" = "yes"; then
7703 if test "${USE_X_TOOLKIT}" != "none"; then
7705 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7706 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7707 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-lXext $LIBS"
7712 cat >conftest.$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 #include "confdefs.h"
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char XShapeQueryExtension ();
7723 #ifdef F77_DUMMY_MAIN
7724 # ifdef __cplusplus
7725 extern "C"
7726 # endif
7727 int F77_DUMMY_MAIN() { return 1; }
7728 #endif
7730 main ()
7732 XShapeQueryExtension ();
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_Xext_XShapeQueryExtension=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 ac_cv_lib_Xext_XShapeQueryExtension=no
7755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7759 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7760 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7761 cat >>confdefs.h <<_ACEOF
7762 #define HAVE_LIBXEXT 1
7763 _ACEOF
7765 LIBS="-lXext $LIBS"
7772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7773 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7774 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7775 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 #include "confdefs.h"
7781 #include <Xm/Xm.h>
7782 #ifdef F77_DUMMY_MAIN
7783 # ifdef __cplusplus
7784 extern "C"
7785 # endif
7786 int F77_DUMMY_MAIN() { return 1; }
7787 #endif
7789 main ()
7791 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7792 int x = 5;
7793 #else
7794 Motif version prior to 2.1.
7795 #endif
7797 return 0;
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802 (eval $ac_compile) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -s conftest.$ac_objext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 emacs_cv_motif_version_2_1=yes
7813 else
7814 echo "$as_me: failed program was:" >&5
7815 cat conftest.$ac_ext >&5
7816 emacs_cv_motif_version_2_1=no
7818 rm -f conftest.$ac_objext conftest.$ac_ext
7820 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7821 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7822 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7823 if test $emacs_cv_motif_version_2_1 = yes; then
7824 HAVE_LIBXP=no
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_MOTIF_2_1 1
7828 _ACEOF
7830 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7831 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7832 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835 ac_check_lib_save_LIBS=$LIBS
7836 LIBS="-lXp $LIBS"
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 #ifdef __cplusplus
7843 extern "C"
7844 #endif
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847 char XpCreateContext ();
7848 #ifdef F77_DUMMY_MAIN
7849 # ifdef __cplusplus
7850 extern "C"
7851 # endif
7852 int F77_DUMMY_MAIN() { return 1; }
7853 #endif
7855 main ()
7857 XpCreateContext ();
7859 return 0;
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_lib_Xp_XpCreateContext=yes
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7878 ac_cv_lib_Xp_XpCreateContext=no
7880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7884 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7885 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7886 HAVE_LIBXP=yes
7889 if test ${HAVE_LIBXP} = yes; then
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_LIBXP 1
7893 _ACEOF
7899 ### Is -lXaw3d available?
7900 HAVE_XAW3D=no
7901 if test "${HAVE_X11}" = "yes"; then
7902 if test "${USE_X_TOOLKIT}" != "none"; then
7903 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7904 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7905 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7906 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7910 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7911 else
7912 # Is the header compilable?
7913 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7914 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 $ac_includes_default
7919 #include <X11/Xaw3d/Scrollbar.h>
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_header_compiler=yes
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 ac_header_compiler=no
7939 rm -f conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6
7943 # Is the header present?
7944 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7945 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7947 #line $LINENO "configure"
7948 #include "confdefs.h"
7949 #include <X11/Xaw3d/Scrollbar.h>
7950 _ACEOF
7951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7953 ac_status=$?
7954 egrep -v '^ *\+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev/null; then
7959 if test -s conftest.err; then
7960 ac_cpp_err=$ac_c_preproc_warn_flag
7961 else
7962 ac_cpp_err=
7964 else
7965 ac_cpp_err=yes
7967 if test -z "$ac_cpp_err"; then
7968 ac_header_preproc=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7972 ac_header_preproc=no
7974 rm -f conftest.err conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc in
7980 yes:no )
7981 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7984 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7985 no:yes )
7986 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7987 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7989 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7992 esac
7993 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7994 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7995 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
8000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8001 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8004 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8005 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8006 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8007 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 ac_check_lib_save_LIBS=$LIBS
8011 LIBS="-lXaw3d $LIBS"
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 #include "confdefs.h"
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char XawScrollbarSetThumb ();
8023 #ifdef F77_DUMMY_MAIN
8024 # ifdef __cplusplus
8025 extern "C"
8026 # endif
8027 int F77_DUMMY_MAIN() { return 1; }
8028 #endif
8030 main ()
8032 XawScrollbarSetThumb ();
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -s conftest$ac_exeext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8050 else
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8059 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8060 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8061 HAVE_XAW3D=yes
8067 if test "${HAVE_XAW3D}" = "yes"; then
8069 cat >>confdefs.h <<\_ACEOF
8070 #define HAVE_XAW3D 1
8071 _ACEOF
8079 USE_TOOLKIT_SCROLL_BARS=no
8080 if test "${with_toolkit_scroll_bars}" != "no"; then
8081 if test "${USE_X_TOOLKIT}" != "none"; then
8082 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define USE_TOOLKIT_SCROLL_BARS 1
8085 _ACEOF
8087 HAVE_XAW3D=no
8088 USE_TOOLKIT_SCROLL_BARS=yes
8089 elif test "${HAVE_XAW3D}" = "yes"; then
8090 cat >>confdefs.h <<\_ACEOF
8091 #define USE_TOOLKIT_SCROLL_BARS 1
8092 _ACEOF
8094 USE_TOOLKIT_SCROLL_BARS=yes
8100 if test "${with_xim}" != "no"; then
8102 cat >>confdefs.h <<\_ACEOF
8103 #define USE_XIM 1
8104 _ACEOF
8108 ### Use -lXpm if available, unless `--with-xpm=no'.
8109 HAVE_XPM=no
8110 if test "${HAVE_X11}" = "yes"; then
8111 if test "${with_xpm}" != "no"; then
8112 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8113 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8114 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8115 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8120 else
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8123 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 $ac_includes_default
8128 #include <X11/xpm.h>
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_header_compiler=yes
8143 else
8144 echo "$as_me: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8146 ac_header_compiler=no
8148 rm -f conftest.$ac_objext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8150 echo "${ECHO_T}$ac_header_compiler" >&6
8152 # Is the header present?
8153 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8154 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 #include <X11/xpm.h>
8159 _ACEOF
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8162 ac_status=$?
8163 egrep -v '^ *\+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev/null; then
8168 if test -s conftest.err; then
8169 ac_cpp_err=$ac_c_preproc_warn_flag
8170 else
8171 ac_cpp_err=
8173 else
8174 ac_cpp_err=yes
8176 if test -z "$ac_cpp_err"; then
8177 ac_header_preproc=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8181 ac_header_preproc=no
8183 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc in
8189 yes:no )
8190 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8194 no:yes )
8195 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8201 esac
8202 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8203 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8204 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207 ac_cv_header_X11_xpm_h=$ac_header_preproc
8209 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8210 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8213 if test $ac_cv_header_X11_xpm_h = yes; then
8214 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8215 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8216 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 ac_check_lib_save_LIBS=$LIBS
8220 LIBS="-lXpm -lX11 $LIBS"
8221 cat >conftest.$ac_ext <<_ACEOF
8222 #line $LINENO "configure"
8223 #include "confdefs.h"
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char XpmReadFileToPixmap ();
8232 #ifdef F77_DUMMY_MAIN
8233 # ifdef __cplusplus
8234 extern "C"
8235 # endif
8236 int F77_DUMMY_MAIN() { return 1; }
8237 #endif
8239 main ()
8241 XpmReadFileToPixmap ();
8243 return 0;
8245 _ACEOF
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8268 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8269 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8270 HAVE_XPM=yes
8276 if test "${HAVE_XPM}" = "yes"; then
8277 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8278 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 #include "confdefs.h"
8282 #include "X11/xpm.h"
8283 #ifndef XpmReturnAllocPixels
8284 no_return_alloc_pixels
8285 #endif
8287 _ACEOF
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
8290 HAVE_XPM=no
8291 else
8292 HAVE_XPM=yes
8294 rm -f conftest*
8297 if test "${HAVE_XPM}" = "yes"; then
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8300 else
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8307 if test "${HAVE_XPM}" = "yes"; then
8309 cat >>confdefs.h <<\_ACEOF
8310 #define HAVE_XPM 1
8311 _ACEOF
8316 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8317 HAVE_JPEG=no
8318 if test "${HAVE_X11}" = "yes"; then
8319 if test "${with_jpeg}" != "no"; then
8320 if test "${ac_cv_header_jerror_h+set}" = set; then
8321 echo "$as_me:$LINENO: checking for jerror.h" >&5
8322 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8323 if test "${ac_cv_header_jerror_h+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8327 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8328 else
8329 # Is the header compilable?
8330 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8331 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 #include "confdefs.h"
8335 $ac_includes_default
8336 #include <jerror.h>
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_header_compiler=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 ac_header_compiler=no
8356 rm -f conftest.$ac_objext conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 echo "${ECHO_T}$ac_header_compiler" >&6
8360 # Is the header present?
8361 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8362 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 #include "confdefs.h"
8366 #include <jerror.h>
8367 _ACEOF
8368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8370 ac_status=$?
8371 egrep -v '^ *\+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev/null; then
8376 if test -s conftest.err; then
8377 ac_cpp_err=$ac_c_preproc_warn_flag
8378 else
8379 ac_cpp_err=
8381 else
8382 ac_cpp_err=yes
8384 if test -z "$ac_cpp_err"; then
8385 ac_header_preproc=yes
8386 else
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8389 ac_header_preproc=no
8391 rm -f conftest.err conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8393 echo "${ECHO_T}$ac_header_preproc" >&6
8395 # So? What about this header?
8396 case $ac_header_compiler:$ac_header_preproc in
8397 yes:no )
8398 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8399 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8401 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8402 no:yes )
8403 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8404 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8406 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8409 esac
8410 echo "$as_me:$LINENO: checking for jerror.h" >&5
8411 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8412 if test "${ac_cv_header_jerror_h+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 ac_cv_header_jerror_h=$ac_header_preproc
8417 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8421 if test $ac_cv_header_jerror_h = yes; then
8422 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8423 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8424 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 ac_check_lib_save_LIBS=$LIBS
8428 LIBS="-ljpeg $LIBS"
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char jpeg_destroy_compress ();
8440 #ifdef F77_DUMMY_MAIN
8441 # ifdef __cplusplus
8442 extern "C"
8443 # endif
8444 int F77_DUMMY_MAIN() { return 1; }
8445 #endif
8447 main ()
8449 jpeg_destroy_compress ();
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8476 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8477 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8478 HAVE_JPEG=yes
8487 if test "${HAVE_JPEG}" = "yes"; then
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_JPEG 1
8490 _ACEOF
8492 cat >conftest.$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 #include "confdefs.h"
8495 #include <jpeglib.h>
8496 version=JPEG_LIB_VERSION
8498 _ACEOF
8499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8500 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_JPEG 1
8503 _ACEOF
8505 else
8506 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8507 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8508 HAVE_JPEG=no
8510 rm -f conftest*
8515 ### Use -lpng if available, unless `--with-png=no'.
8516 HAVE_PNG=no
8517 if test "${HAVE_X11}" = "yes"; then
8518 if test "${with_png}" != "no"; then
8519 if test "${ac_cv_header_png_h+set}" = set; then
8520 echo "$as_me:$LINENO: checking for png.h" >&5
8521 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8522 if test "${ac_cv_header_png_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8526 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8527 else
8528 # Is the header compilable?
8529 echo "$as_me:$LINENO: checking png.h usability" >&5
8530 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 $ac_includes_default
8535 #include <png.h>
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8553 ac_header_compiler=no
8555 rm -f conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking png.h presence" >&5
8561 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 #include "confdefs.h"
8565 #include <png.h>
8566 _ACEOF
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8569 ac_status=$?
8570 egrep -v '^ *\+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev/null; then
8575 if test -s conftest.err; then
8576 ac_cpp_err=$ac_c_preproc_warn_flag
8577 else
8578 ac_cpp_err=
8580 else
8581 ac_cpp_err=yes
8583 if test -z "$ac_cpp_err"; then
8584 ac_header_preproc=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 ac_header_preproc=no
8590 rm -f conftest.err conftest.$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc in
8596 yes:no )
8597 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8600 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8601 no:yes )
8602 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8603 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8605 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8608 esac
8609 echo "$as_me:$LINENO: checking for png.h" >&5
8610 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8611 if test "${ac_cv_header_png_h+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 ac_cv_header_png_h=$ac_header_preproc
8616 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8617 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8620 if test $ac_cv_header_png_h = yes; then
8621 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8622 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8623 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 ac_check_lib_save_LIBS=$LIBS
8627 LIBS="-lpng -lz -lm $LIBS"
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char png_get_channels ();
8639 #ifdef F77_DUMMY_MAIN
8640 # ifdef __cplusplus
8641 extern "C"
8642 # endif
8643 int F77_DUMMY_MAIN() { return 1; }
8644 #endif
8646 main ()
8648 png_get_channels ();
8650 return 0;
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_png_png_get_channels=yes
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_cv_lib_png_png_get_channels=no
8671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8672 LIBS=$ac_check_lib_save_LIBS
8674 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8675 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8676 if test $ac_cv_lib_png_png_get_channels = yes; then
8677 HAVE_PNG=yes
8685 if test "${HAVE_PNG}" = "yes"; then
8687 cat >>confdefs.h <<\_ACEOF
8688 #define HAVE_PNG 1
8689 _ACEOF
8694 ### Use -ltiff if available, unless `--with-tiff=no'.
8695 HAVE_TIFF=no
8696 if test "${HAVE_X11}" = "yes"; then
8697 if test "${with_tiff}" != "no"; then
8698 if test "${ac_cv_header_tiffio_h+set}" = set; then
8699 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8700 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8701 if test "${ac_cv_header_tiffio_h+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8705 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8706 else
8707 # Is the header compilable?
8708 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8709 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8710 cat >conftest.$ac_ext <<_ACEOF
8711 #line $LINENO "configure"
8712 #include "confdefs.h"
8713 $ac_includes_default
8714 #include <tiffio.h>
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718 (eval $ac_compile) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_header_compiler=yes
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8732 ac_header_compiler=no
8734 rm -f conftest.$ac_objext conftest.$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736 echo "${ECHO_T}$ac_header_compiler" >&6
8738 # Is the header present?
8739 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8740 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 #include <tiffio.h>
8745 _ACEOF
8746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8748 ac_status=$?
8749 egrep -v '^ *\+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null; then
8754 if test -s conftest.err; then
8755 ac_cpp_err=$ac_c_preproc_warn_flag
8756 else
8757 ac_cpp_err=
8759 else
8760 ac_cpp_err=yes
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 ac_header_preproc=no
8769 rm -f conftest.err conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8771 echo "${ECHO_T}$ac_header_preproc" >&6
8773 # So? What about this header?
8774 case $ac_header_compiler:$ac_header_preproc in
8775 yes:no )
8776 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8777 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8779 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8780 no:yes )
8781 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8786 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8787 esac
8788 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8789 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8790 if test "${ac_cv_header_tiffio_h+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_cv_header_tiffio_h=$ac_header_preproc
8795 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8796 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8799 if test $ac_cv_header_tiffio_h = yes; then
8800 tifflibs="-lz -lm"
8801 # At least one tiff package requires the jpeg library.
8802 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8803 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8804 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8805 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 ac_check_lib_save_LIBS=$LIBS
8809 LIBS="-ltiff $tifflibs $LIBS"
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char TIFFGetVersion ();
8821 #ifdef F77_DUMMY_MAIN
8822 # ifdef __cplusplus
8823 extern "C"
8824 # endif
8825 int F77_DUMMY_MAIN() { return 1; }
8826 #endif
8828 main ()
8830 TIFFGetVersion ();
8832 return 0;
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_lib_tiff_TIFFGetVersion=yes
8848 else
8849 echo "$as_me: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 ac_cv_lib_tiff_TIFFGetVersion=no
8853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8857 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8858 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8859 HAVE_TIFF=yes
8867 if test "${HAVE_TIFF}" = "yes"; then
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_TIFF 1
8871 _ACEOF
8876 ### Use -lgif if available, unless `--with-gif=no'.
8877 HAVE_GIF=no
8878 if test "${HAVE_X11}" = "yes"; then
8879 if test "${with_gif}" != "no"; then
8880 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8881 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8882 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8887 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8888 else
8889 # Is the header compilable?
8890 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8891 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 #include "confdefs.h"
8895 $ac_includes_default
8896 #include <gif_lib.h>
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_header_compiler=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 ac_header_compiler=no
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6
8920 # Is the header present?
8921 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8922 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8923 cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <gif_lib.h>
8927 _ACEOF
8928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8930 ac_status=$?
8931 egrep -v '^ *\+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } >/dev/null; then
8936 if test -s conftest.err; then
8937 ac_cpp_err=$ac_c_preproc_warn_flag
8938 else
8939 ac_cpp_err=
8941 else
8942 ac_cpp_err=yes
8944 if test -z "$ac_cpp_err"; then
8945 ac_header_preproc=yes
8946 else
8947 echo "$as_me: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8949 ac_header_preproc=no
8951 rm -f conftest.err conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953 echo "${ECHO_T}$ac_header_preproc" >&6
8955 # So? What about this header?
8956 case $ac_header_compiler:$ac_header_preproc in
8957 yes:no )
8958 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8961 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8962 no:yes )
8963 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8964 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8966 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8969 esac
8970 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8971 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8972 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 ac_cv_header_gif_lib_h=$ac_header_preproc
8977 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8978 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8981 if test $ac_cv_header_gif_lib_h = yes; then
8982 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8983 # Earlier versions can crash Emacs.
8984 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8985 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8986 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 ac_check_lib_save_LIBS=$LIBS
8990 LIBS="-lungif $LIBS"
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char EGifPutExtensionLast ();
9002 #ifdef F77_DUMMY_MAIN
9003 # ifdef __cplusplus
9004 extern "C"
9005 # endif
9006 int F77_DUMMY_MAIN() { return 1; }
9007 #endif
9009 main ()
9011 EGifPutExtensionLast ();
9013 return 0;
9015 _ACEOF
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9029 else
9030 echo "$as_me: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 ac_cv_lib_ungif_EGifPutExtensionLast=no
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9039 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9040 HAVE_GIF=yes
9048 if test "${HAVE_GIF}" = "yes"; then
9050 cat >>confdefs.h <<\_ACEOF
9051 #define HAVE_GIF 1
9052 _ACEOF
9057 ### Use Mac OS X Carbon API to implement GUI.
9058 HAVE_CARBON=no
9059 if test "${with_carbon}" != "no"; then
9060 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9062 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9068 else
9069 # Is the header compilable?
9070 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9071 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 #include "confdefs.h"
9075 $ac_includes_default
9076 #include <Carbon/Carbon.h>
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_header_compiler=yes
9091 else
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 ac_header_compiler=no
9096 rm -f conftest.$ac_objext conftest.$ac_ext
9097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 echo "${ECHO_T}$ac_header_compiler" >&6
9100 # Is the header present?
9101 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9102 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9106 #include <Carbon/Carbon.h>
9107 _ACEOF
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9110 ac_status=$?
9111 egrep -v '^ *\+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev/null; then
9116 if test -s conftest.err; then
9117 ac_cpp_err=$ac_c_preproc_warn_flag
9118 else
9119 ac_cpp_err=
9121 else
9122 ac_cpp_err=yes
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc in
9137 yes:no )
9138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9142 no:yes )
9143 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9149 esac
9150 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9151 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9152 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9157 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9158 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9161 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9162 HAVE_CARBON=yes
9168 if test "${HAVE_CARBON}" = "yes"; then
9169 cat >>confdefs.h <<\_ACEOF
9170 #define HAVE_CARBON 1
9171 _ACEOF
9175 ### Use session management (-lSM -lICE) if available
9176 HAVE_X_SM=no
9177 if test "${HAVE_X11}" = "yes"; then
9178 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9179 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9180 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9181 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9185 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9186 else
9187 # Is the header compilable?
9188 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9189 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9192 #include "confdefs.h"
9193 $ac_includes_default
9194 #include <X11/SM/SMlib.h>
9195 _ACEOF
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198 (eval $ac_compile) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_header_compiler=yes
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 ac_header_compiler=no
9214 rm -f conftest.$ac_objext conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9216 echo "${ECHO_T}$ac_header_compiler" >&6
9218 # Is the header present?
9219 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9220 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9222 #line $LINENO "configure"
9223 #include "confdefs.h"
9224 #include <X11/SM/SMlib.h>
9225 _ACEOF
9226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9228 ac_status=$?
9229 egrep -v '^ *\+' conftest.er1 >conftest.err
9230 rm -f conftest.er1
9231 cat conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } >/dev/null; then
9234 if test -s conftest.err; then
9235 ac_cpp_err=$ac_c_preproc_warn_flag
9236 else
9237 ac_cpp_err=
9239 else
9240 ac_cpp_err=yes
9242 if test -z "$ac_cpp_err"; then
9243 ac_header_preproc=yes
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 ac_header_preproc=no
9249 rm -f conftest.err conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc in
9255 yes:no )
9256 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9260 no:yes )
9261 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9262 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9264 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9266 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9267 esac
9268 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9269 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9270 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9276 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9279 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9280 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9281 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9282 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285 ac_check_lib_save_LIBS=$LIBS
9286 LIBS="-lSM $LIBS"
9287 cat >conftest.$ac_ext <<_ACEOF
9288 #line $LINENO "configure"
9289 #include "confdefs.h"
9291 /* Override any gcc2 internal prototype to avoid an error. */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char SmcOpenConnection ();
9298 #ifdef F77_DUMMY_MAIN
9299 # ifdef __cplusplus
9300 extern "C"
9301 # endif
9302 int F77_DUMMY_MAIN() { return 1; }
9303 #endif
9305 main ()
9307 SmcOpenConnection ();
9309 return 0;
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_lib_SM_SmcOpenConnection=yes
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9328 ac_cv_lib_SM_SmcOpenConnection=no
9330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9333 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9334 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9335 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9336 HAVE_X_SM=yes
9337 else
9338 -lICE
9345 if test "${HAVE_X_SM}" = "yes"; then
9347 cat >>confdefs.h <<\_ACEOF
9348 #define HAVE_X_SM 1
9349 _ACEOF
9351 case "$LIBS" in
9352 *-lSM*) ;;
9353 *) LIBS="-lSM -lICE $LIBS" ;;
9354 esac
9358 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9359 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9360 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9361 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364 cat >conftest.$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9366 #include "confdefs.h"
9367 #include <netdb.h>
9368 #ifdef F77_DUMMY_MAIN
9369 # ifdef __cplusplus
9370 extern "C"
9371 # endif
9372 int F77_DUMMY_MAIN() { return 1; }
9373 #endif
9375 main ()
9377 return h_errno;
9379 return 0;
9381 _ACEOF
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384 (eval $ac_link) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 emacs_cv_netdb_declares_h_errno=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 emacs_cv_netdb_declares_h_errno=no
9400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9402 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9403 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9404 if test $emacs_cv_netdb_declares_h_errno = yes; then
9406 cat >>confdefs.h <<\_ACEOF
9407 #define HAVE_H_ERRNO 1
9408 _ACEOF
9412 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9413 # for constant arguments. Useless!
9414 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9415 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9416 if test "${ac_cv_working_alloca_h+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 cat >conftest.$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9421 #include "confdefs.h"
9422 #include <alloca.h>
9423 #ifdef F77_DUMMY_MAIN
9424 # ifdef __cplusplus
9425 extern "C"
9426 # endif
9427 int F77_DUMMY_MAIN() { return 1; }
9428 #endif
9430 main ()
9432 char *p = (char *) alloca (2 * sizeof (int));
9434 return 0;
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_working_alloca_h=yes
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 ac_cv_working_alloca_h=no
9455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9457 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9458 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9459 if test $ac_cv_working_alloca_h = yes; then
9461 cat >>confdefs.h <<\_ACEOF
9462 #define HAVE_ALLOCA_H 1
9463 _ACEOF
9467 echo "$as_me:$LINENO: checking for alloca" >&5
9468 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9469 if test "${ac_cv_func_alloca_works+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472 cat >conftest.$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9474 #include "confdefs.h"
9475 #ifdef __GNUC__
9476 # define alloca __builtin_alloca
9477 #else
9478 # ifdef _MSC_VER
9479 # include <malloc.h>
9480 # define alloca _alloca
9481 # else
9482 # if HAVE_ALLOCA_H
9483 # include <alloca.h>
9484 # else
9485 # ifdef _AIX
9486 #pragma alloca
9487 # else
9488 # ifndef alloca /* predefined by HP cc +Olibcalls */
9489 char *alloca ();
9490 # endif
9491 # endif
9492 # endif
9493 # endif
9494 #endif
9496 #ifdef F77_DUMMY_MAIN
9497 # ifdef __cplusplus
9498 extern "C"
9499 # endif
9500 int F77_DUMMY_MAIN() { return 1; }
9501 #endif
9503 main ()
9505 char *p = (char *) alloca (1);
9507 return 0;
9509 _ACEOF
9510 rm -f conftest.$ac_objext conftest$ac_exeext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9512 (eval $ac_link) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_func_alloca_works=yes
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 ac_cv_func_alloca_works=no
9528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9530 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9531 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9533 if test $ac_cv_func_alloca_works = yes; then
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_ALLOCA 1
9537 _ACEOF
9539 else
9540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9541 # that cause trouble. Some versions do not even contain alloca or
9542 # contain a buggy version. If you still want to use their alloca,
9543 # use ar to extract alloca.o from them instead of compiling alloca.c.
9545 ALLOCA=alloca.$ac_objext
9547 cat >>confdefs.h <<\_ACEOF
9548 #define C_ALLOCA 1
9549 _ACEOF
9552 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9553 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9554 if test "${ac_cv_os_cray+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 #line $LINENO "configure"
9559 #include "confdefs.h"
9560 #if defined(CRAY) && ! defined(CRAY2)
9561 webecray
9562 #else
9563 wenotbecray
9564 #endif
9566 _ACEOF
9567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9568 egrep "webecray" >/dev/null 2>&1; then
9569 ac_cv_os_cray=yes
9570 else
9571 ac_cv_os_cray=no
9573 rm -f conftest*
9576 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9577 echo "${ECHO_T}$ac_cv_os_cray" >&6
9578 if test $ac_cv_os_cray = yes; then
9579 for ac_func in _getb67 GETB67 getb67; do
9580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9581 echo "$as_me:$LINENO: checking for $ac_func" >&5
9582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_var+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 cat >conftest.$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char $ac_func (); below. */
9591 #include <assert.h>
9592 /* Override any gcc2 internal prototype to avoid an error. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 /* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9598 char $ac_func ();
9599 char (*f) ();
9601 #ifdef F77_DUMMY_MAIN
9602 # ifdef __cplusplus
9603 extern "C"
9604 # endif
9605 int F77_DUMMY_MAIN() { return 1; }
9606 #endif
9608 main ()
9610 /* The GNU C library defines this for functions which it implements
9611 to always fail with ENOSYS. Some functions are actually named
9612 something starting with __ and the normal name is an alias. */
9613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9614 choke me
9615 #else
9616 f = $ac_func;
9617 #endif
9620 return 0;
9622 _ACEOF
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9625 (eval $ac_link) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -s conftest$ac_exeext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 eval "$as_ac_var=yes"
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 eval "$as_ac_var=no"
9641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645 if test `eval echo '${'$as_ac_var'}'` = yes; then
9647 cat >>confdefs.h <<_ACEOF
9648 #define CRAY_STACKSEG_END $ac_func
9649 _ACEOF
9651 break
9654 done
9657 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9658 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9659 if test "${ac_cv_c_stack_direction+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 if test "$cross_compiling" = yes; then
9663 ac_cv_c_stack_direction=0
9664 else
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9669 find_stack_direction ()
9671 static char *addr = 0;
9672 auto char dummy;
9673 if (addr == 0)
9675 addr = &dummy;
9676 return find_stack_direction ();
9678 else
9679 return (&dummy > addr) ? 1 : -1;
9683 main ()
9685 exit (find_stack_direction () < 0);
9687 _ACEOF
9688 rm -f conftest$ac_exeext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_c_stack_direction=1
9700 else
9701 echo "$as_me: program exited with status $ac_status" >&5
9702 echo "$as_me: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 ( exit $ac_status )
9705 ac_cv_c_stack_direction=-1
9707 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9711 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9713 cat >>confdefs.h <<_ACEOF
9714 #define STACK_DIRECTION $ac_cv_c_stack_direction
9715 _ACEOF
9721 # fmod, logb, and frexp are found in -lm on most systems.
9722 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9724 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9725 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9726 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 ac_check_lib_save_LIBS=$LIBS
9730 LIBS="-lm $LIBS"
9731 cat >conftest.$ac_ext <<_ACEOF
9732 #line $LINENO "configure"
9733 #include "confdefs.h"
9735 /* Override any gcc2 internal prototype to avoid an error. */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9741 char sqrt ();
9742 #ifdef F77_DUMMY_MAIN
9743 # ifdef __cplusplus
9744 extern "C"
9745 # endif
9746 int F77_DUMMY_MAIN() { return 1; }
9747 #endif
9749 main ()
9751 sqrt ();
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_lib_m_sqrt=yes
9769 else
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9772 ac_cv_lib_m_sqrt=no
9774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9775 LIBS=$ac_check_lib_save_LIBS
9777 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9778 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9779 if test $ac_cv_lib_m_sqrt = yes; then
9780 cat >>confdefs.h <<_ACEOF
9781 #define HAVE_LIBM 1
9782 _ACEOF
9784 LIBS="-lm $LIBS"
9789 # Check for mail-locking functions in a "mail" library
9791 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9792 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9793 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-lmail $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 #line $LINENO "configure"
9800 #include "confdefs.h"
9802 /* Override any gcc2 internal prototype to avoid an error. */
9803 #ifdef __cplusplus
9804 extern "C"
9805 #endif
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808 char maillock ();
9809 #ifdef F77_DUMMY_MAIN
9810 # ifdef __cplusplus
9811 extern "C"
9812 # endif
9813 int F77_DUMMY_MAIN() { return 1; }
9814 #endif
9816 main ()
9818 maillock ();
9820 return 0;
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9835 ac_cv_lib_mail_maillock=yes
9836 else
9837 echo "$as_me: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 ac_cv_lib_mail_maillock=no
9841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9844 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9845 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9846 if test $ac_cv_lib_mail_maillock = yes; then
9847 cat >>confdefs.h <<_ACEOF
9848 #define HAVE_LIBMAIL 1
9849 _ACEOF
9851 LIBS="-lmail $LIBS"
9856 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9857 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9858 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-llockfile $LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9867 /* Override any gcc2 internal prototype to avoid an error. */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9873 char maillock ();
9874 #ifdef F77_DUMMY_MAIN
9875 # ifdef __cplusplus
9876 extern "C"
9877 # endif
9878 int F77_DUMMY_MAIN() { return 1; }
9879 #endif
9881 main ()
9883 maillock ();
9885 return 0;
9887 _ACEOF
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_lib_lockfile_maillock=yes
9901 else
9902 echo "$as_me: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 ac_cv_lib_lockfile_maillock=no
9906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9910 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9911 if test $ac_cv_lib_lockfile_maillock = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define HAVE_LIBLOCKFILE 1
9914 _ACEOF
9916 LIBS="-llockfile $LIBS"
9920 # If we have the shared liblockfile, assume we must use it for mail
9921 # locking (e.g. Debian). If we couldn't link against liblockfile
9922 # (no liblockfile.a installed), ensure that we don't need to.
9923 if test "$ac_cv_lib_lockfile_maillock" = no; then
9924 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9925 set dummy liblockfile.so; ac_word=$2
9926 echo "$as_me:$LINENO: checking for $ac_word" >&5
9927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9928 if test "${ac_cv_prog_liblockfile+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 if test -n "$liblockfile"; then
9932 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9933 else
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9941 ac_cv_prog_liblockfile="yes"
9942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 break 2
9945 done
9946 done
9948 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
9951 liblockfile=$ac_cv_prog_liblockfile
9952 if test -n "$liblockfile"; then
9953 echo "$as_me:$LINENO: result: $liblockfile" >&5
9954 echo "${ECHO_T}$liblockfile" >&6
9955 else
9956 echo "$as_me:$LINENO: result: no" >&5
9957 echo "${ECHO_T}no" >&6
9960 if test $ac_cv_prog_liblockfile = yes; then
9961 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9962 This probably means that movemail could lose mail.
9963 There may be a \`development' package to install containing liblockfile." >&5
9964 echo "$as_me: error: Shared liblockfile found but can't link against it.
9965 This probably means that movemail could lose mail.
9966 There may be a \`development' package to install containing liblockfile." >&2;}
9967 { (exit 1); exit 1; }; }
9968 else
9969 cat >>confdefs.h <<\_ACEOF
9970 #define LIBMAIL -llockfile
9971 _ACEOF
9974 else :
9977 for ac_func in touchlock
9979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9980 echo "$as_me:$LINENO: checking for $ac_func" >&5
9981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9982 if eval "test \"\${$as_ac_var+set}\" = set"; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 cat >conftest.$ac_ext <<_ACEOF
9986 #line $LINENO "configure"
9987 #include "confdefs.h"
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below. */
9990 #include <assert.h>
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char $ac_func ();
9998 char (*f) ();
10000 #ifdef F77_DUMMY_MAIN
10001 # ifdef __cplusplus
10002 extern "C"
10003 # endif
10004 int F77_DUMMY_MAIN() { return 1; }
10005 #endif
10007 main ()
10009 /* The GNU C library defines this for functions which it implements
10010 to always fail with ENOSYS. Some functions are actually named
10011 something starting with __ and the normal name is an alias. */
10012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10013 choke me
10014 #else
10015 f = $ac_func;
10016 #endif
10019 return 0;
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 eval "$as_ac_var=yes"
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10038 eval "$as_ac_var=no"
10040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10044 if test `eval echo '${'$as_ac_var'}'` = yes; then
10045 cat >>confdefs.h <<_ACEOF
10046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10047 _ACEOF
10050 done
10053 for ac_header in maillock.h
10055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10064 else
10065 # Is the header compilable?
10066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 #include "confdefs.h"
10071 $ac_includes_default
10072 #include <$ac_header>
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -s conftest.$ac_objext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_header_compiler=yes
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 ac_header_compiler=no
10092 rm -f conftest.$ac_objext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10094 echo "${ECHO_T}$ac_header_compiler" >&6
10096 # Is the header present?
10097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10099 cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 #include "confdefs.h"
10102 #include <$ac_header>
10103 _ACEOF
10104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10106 ac_status=$?
10107 egrep -v '^ *\+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } >/dev/null; then
10112 if test -s conftest.err; then
10113 ac_cpp_err=$ac_c_preproc_warn_flag
10114 else
10115 ac_cpp_err=
10117 else
10118 ac_cpp_err=yes
10120 if test -z "$ac_cpp_err"; then
10121 ac_header_preproc=yes
10122 else
10123 echo "$as_me: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 ac_header_preproc=no
10127 rm -f conftest.err conftest.$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10129 echo "${ECHO_T}$ac_header_preproc" >&6
10131 # So? What about this header?
10132 case $ac_header_compiler:$ac_header_preproc in
10133 yes:no )
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10138 no:yes )
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10145 esac
10146 echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 eval "$as_ac_Header=$ac_header_preproc"
10153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160 _ACEOF
10164 done
10222 for ac_func in gethostname getdomainname dup2 \
10223 rename closedir mkdir rmdir sysinfo \
10224 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10225 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10226 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10227 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10228 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10229 gai_strerror mkstemp getline getdelim
10231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10232 echo "$as_me:$LINENO: checking for $ac_func" >&5
10233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_var+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 cat >conftest.$ac_ext <<_ACEOF
10238 #line $LINENO "configure"
10239 #include "confdefs.h"
10240 /* System header to define __stub macros and hopefully few prototypes,
10241 which can conflict with char $ac_func (); below. */
10242 #include <assert.h>
10243 /* Override any gcc2 internal prototype to avoid an error. */
10244 #ifdef __cplusplus
10245 extern "C"
10246 #endif
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249 char $ac_func ();
10250 char (*f) ();
10252 #ifdef F77_DUMMY_MAIN
10253 # ifdef __cplusplus
10254 extern "C"
10255 # endif
10256 int F77_DUMMY_MAIN() { return 1; }
10257 #endif
10259 main ()
10261 /* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10265 choke me
10266 #else
10267 f = $ac_func;
10268 #endif
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext conftest$ac_exeext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 eval "$as_ac_var=yes"
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 eval "$as_ac_var=no"
10292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10296 if test `eval echo '${'$as_ac_var'}'` = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10299 _ACEOF
10302 done
10306 for ac_header in sys/un.h
10308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10310 echo "$as_me:$LINENO: checking for $ac_header" >&5
10311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10317 else
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 #include "confdefs.h"
10324 $ac_includes_default
10325 #include <$ac_header>
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_header_compiler=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 ac_header_compiler=no
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10347 echo "${ECHO_T}$ac_header_compiler" >&6
10349 # Is the header present?
10350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 #include "confdefs.h"
10355 #include <$ac_header>
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359 ac_status=$?
10360 egrep -v '^ *\+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev/null; then
10365 if test -s conftest.err; then
10366 ac_cpp_err=$ac_c_preproc_warn_flag
10367 else
10368 ac_cpp_err=
10370 else
10371 ac_cpp_err=yes
10373 if test -z "$ac_cpp_err"; then
10374 ac_header_preproc=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 ac_header_preproc=no
10380 rm -f conftest.err conftest.$ac_ext
10381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10382 echo "${ECHO_T}$ac_header_preproc" >&6
10384 # So? What about this header?
10385 case $ac_header_compiler:$ac_header_preproc in
10386 yes:no )
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10391 no:yes )
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10398 esac
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 eval "$as_ac_Header=$ac_header_preproc"
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10411 cat >>confdefs.h <<_ACEOF
10412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10413 _ACEOF
10417 done
10422 for ac_header in sys/time.h unistd.h
10424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10426 echo "$as_me:$LINENO: checking for $ac_header" >&5
10427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10433 else
10434 # Is the header compilable?
10435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10438 #line $LINENO "configure"
10439 #include "confdefs.h"
10440 $ac_includes_default
10441 #include <$ac_header>
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest.$ac_objext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_header_compiler=yes
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_header_compiler=no
10461 rm -f conftest.$ac_objext conftest.$ac_ext
10462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10463 echo "${ECHO_T}$ac_header_compiler" >&6
10465 # Is the header present?
10466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10468 cat >conftest.$ac_ext <<_ACEOF
10469 #line $LINENO "configure"
10470 #include "confdefs.h"
10471 #include <$ac_header>
10472 _ACEOF
10473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 ac_status=$?
10476 egrep -v '^ *\+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null; then
10481 if test -s conftest.err; then
10482 ac_cpp_err=$ac_c_preproc_warn_flag
10483 else
10484 ac_cpp_err=
10486 else
10487 ac_cpp_err=yes
10489 if test -z "$ac_cpp_err"; then
10490 ac_header_preproc=yes
10491 else
10492 echo "$as_me: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 ac_header_preproc=no
10496 rm -f conftest.err conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10498 echo "${ECHO_T}$ac_header_preproc" >&6
10500 # So? What about this header?
10501 case $ac_header_compiler:$ac_header_preproc in
10502 yes:no )
10503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10507 no:yes )
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10514 esac
10515 echo "$as_me:$LINENO: checking for $ac_header" >&5
10516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520 eval "$as_ac_Header=$ac_header_preproc"
10522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10527 cat >>confdefs.h <<_ACEOF
10528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10529 _ACEOF
10533 done
10536 for ac_func in alarm
10538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10539 echo "$as_me:$LINENO: checking for $ac_func" >&5
10540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10541 if eval "test \"\${$as_ac_var+set}\" = set"; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 cat >conftest.$ac_ext <<_ACEOF
10545 #line $LINENO "configure"
10546 #include "confdefs.h"
10547 /* System header to define __stub macros and hopefully few prototypes,
10548 which can conflict with char $ac_func (); below. */
10549 #include <assert.h>
10550 /* Override any gcc2 internal prototype to avoid an error. */
10551 #ifdef __cplusplus
10552 extern "C"
10553 #endif
10554 /* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10556 char $ac_func ();
10557 char (*f) ();
10559 #ifdef F77_DUMMY_MAIN
10560 # ifdef __cplusplus
10561 extern "C"
10562 # endif
10563 int F77_DUMMY_MAIN() { return 1; }
10564 #endif
10566 main ()
10568 /* The GNU C library defines this for functions which it implements
10569 to always fail with ENOSYS. Some functions are actually named
10570 something starting with __ and the normal name is an alias. */
10571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10572 choke me
10573 #else
10574 f = $ac_func;
10575 #endif
10578 return 0;
10580 _ACEOF
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583 (eval $ac_link) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 eval "$as_ac_var=yes"
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 eval "$as_ac_var=no"
10599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10603 if test `eval echo '${'$as_ac_var'}'` = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10606 _ACEOF
10609 done
10611 echo "$as_me:$LINENO: checking for working mktime" >&5
10612 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10613 if test "${ac_cv_func_working_mktime+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616 if test "$cross_compiling" = yes; then
10617 ac_cv_func_working_mktime=no
10618 else
10619 cat >conftest.$ac_ext <<_ACEOF
10620 #line $LINENO "configure"
10621 #include "confdefs.h"
10622 /* Test program from Paul Eggert and Tony Leneis. */
10623 #if TIME_WITH_SYS_TIME
10624 # include <sys/time.h>
10625 # include <time.h>
10626 #else
10627 # if HAVE_SYS_TIME_H
10628 # include <sys/time.h>
10629 # else
10630 # include <time.h>
10631 # endif
10632 #endif
10634 #if HAVE_UNISTD_H
10635 # include <unistd.h>
10636 #endif
10638 #if !HAVE_ALARM
10639 # define alarm(X) /* empty */
10640 #endif
10642 /* Work around redefinition to rpl_putenv by other config tests. */
10643 #undef putenv
10645 static time_t time_t_max;
10647 /* Values we'll use to set the TZ environment variable. */
10648 static const char *const tz_strings[] = {
10649 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10650 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10652 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10654 /* Fail if mktime fails to convert a date in the spring-forward gap.
10655 Based on a problem report from Andreas Jaeger. */
10656 static void
10657 spring_forward_gap ()
10659 /* glibc (up to about 1998-10-07) failed this test. */
10660 struct tm tm;
10662 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10663 instead of "TZ=America/Vancouver" in order to detect the bug even
10664 on systems that don't support the Olson extension, or don't have the
10665 full zoneinfo tables installed. */
10666 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10668 tm.tm_year = 98;
10669 tm.tm_mon = 3;
10670 tm.tm_mday = 5;
10671 tm.tm_hour = 2;
10672 tm.tm_min = 0;
10673 tm.tm_sec = 0;
10674 tm.tm_isdst = -1;
10675 if (mktime (&tm) == (time_t)-1)
10676 exit (1);
10679 static void
10680 mktime_test (now)
10681 time_t now;
10683 struct tm *lt;
10684 if ((lt = localtime (&now)) && mktime (lt) != now)
10685 exit (1);
10686 now = time_t_max - now;
10687 if ((lt = localtime (&now)) && mktime (lt) != now)
10688 exit (1);
10691 static void
10692 irix_6_4_bug ()
10694 /* Based on code from Ariel Faigon. */
10695 struct tm tm;
10696 tm.tm_year = 96;
10697 tm.tm_mon = 3;
10698 tm.tm_mday = 0;
10699 tm.tm_hour = 0;
10700 tm.tm_min = 0;
10701 tm.tm_sec = 0;
10702 tm.tm_isdst = -1;
10703 mktime (&tm);
10704 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10705 exit (1);
10708 static void
10709 bigtime_test (j)
10710 int j;
10712 struct tm tm;
10713 time_t now;
10714 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10715 now = mktime (&tm);
10716 if (now != (time_t) -1)
10718 struct tm *lt = localtime (&now);
10719 if (! (lt
10720 && lt->tm_year == tm.tm_year
10721 && lt->tm_mon == tm.tm_mon
10722 && lt->tm_mday == tm.tm_mday
10723 && lt->tm_hour == tm.tm_hour
10724 && lt->tm_min == tm.tm_min
10725 && lt->tm_sec == tm.tm_sec
10726 && lt->tm_yday == tm.tm_yday
10727 && lt->tm_wday == tm.tm_wday
10728 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10729 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10730 exit (1);
10735 main ()
10737 time_t t, delta;
10738 int i, j;
10740 /* This test makes some buggy mktime implementations loop.
10741 Give up after 60 seconds; a mktime slower than that
10742 isn't worth using anyway. */
10743 alarm (60);
10745 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10746 continue;
10747 time_t_max--;
10748 delta = time_t_max / 997; /* a suitable prime number */
10749 for (i = 0; i < N_STRINGS; i++)
10751 if (tz_strings[i])
10752 putenv (tz_strings[i]);
10754 for (t = 0; t <= time_t_max - delta; t += delta)
10755 mktime_test (t);
10756 mktime_test ((time_t) 60 * 60);
10757 mktime_test ((time_t) 60 * 60 * 24);
10759 for (j = 1; 0 < j; j *= 2)
10760 bigtime_test (j);
10761 bigtime_test (j - 1);
10763 irix_6_4_bug ();
10764 spring_forward_gap ();
10765 exit (0);
10767 _ACEOF
10768 rm -f conftest$ac_exeext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770 (eval $ac_link) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_func_working_mktime=yes
10780 else
10781 echo "$as_me: program exited with status $ac_status" >&5
10782 echo "$as_me: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10784 ( exit $ac_status )
10785 ac_cv_func_working_mktime=no
10787 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10791 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10792 if test $ac_cv_func_working_mktime = no; then
10793 LIBOBJS="$LIBOBJS mktime.$ac_objext"
10796 if test "$ac_cv_func_working_mktime" = no; then
10798 cat >>confdefs.h <<\_ACEOF
10799 #define BROKEN_MKTIME 1
10800 _ACEOF
10804 ac_have_func=no # yes means we've found a way to get the load average.
10806 ac_save_LIBS=$LIBS
10808 # Check for getloadavg, but be sure not to touch the cache variable.
10809 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10810 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10811 if test "${ac_cv_func_getloadavg+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10816 #include "confdefs.h"
10817 /* System header to define __stub macros and hopefully few prototypes,
10818 which can conflict with char getloadavg (); below. */
10819 #include <assert.h>
10820 /* Override any gcc2 internal prototype to avoid an error. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10826 char getloadavg ();
10827 char (*f) ();
10829 #ifdef F77_DUMMY_MAIN
10830 # ifdef __cplusplus
10831 extern "C"
10832 # endif
10833 int F77_DUMMY_MAIN() { return 1; }
10834 #endif
10836 main ()
10838 /* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10842 choke me
10843 #else
10844 f = getloadavg;
10845 #endif
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_func_getloadavg=yes
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 ac_cv_func_getloadavg=no
10869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10871 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10872 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10873 if test $ac_cv_func_getloadavg = yes; then
10874 exit 0
10875 else
10876 exit 1
10878 ) && ac_have_func=yes
10880 # On HPUX9, an unprivileged user can get load averages through this function.
10882 for ac_func in pstat_getdynamic
10884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 echo "$as_me:$LINENO: checking for $ac_func" >&5
10886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_var+set}\" = set"; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890 cat >conftest.$ac_ext <<_ACEOF
10891 #line $LINENO "configure"
10892 #include "confdefs.h"
10893 /* System header to define __stub macros and hopefully few prototypes,
10894 which can conflict with char $ac_func (); below. */
10895 #include <assert.h>
10896 /* Override any gcc2 internal prototype to avoid an error. */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10902 char $ac_func ();
10903 char (*f) ();
10905 #ifdef F77_DUMMY_MAIN
10906 # ifdef __cplusplus
10907 extern "C"
10908 # endif
10909 int F77_DUMMY_MAIN() { return 1; }
10910 #endif
10912 main ()
10914 /* The GNU C library defines this for functions which it implements
10915 to always fail with ENOSYS. Some functions are actually named
10916 something starting with __ and the normal name is an alias. */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 choke me
10919 #else
10920 f = $ac_func;
10921 #endif
10924 return 0;
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 eval "$as_ac_var=yes"
10940 else
10941 echo "$as_me: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10949 if test `eval echo '${'$as_ac_var'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10952 _ACEOF
10955 done
10958 # Solaris has libkstat which does not require root.
10960 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10961 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10962 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lkstat $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10969 #include "confdefs.h"
10971 /* Override any gcc2 internal prototype to avoid an error. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977 char kstat_open ();
10978 #ifdef F77_DUMMY_MAIN
10979 # ifdef __cplusplus
10980 extern "C"
10981 # endif
10982 int F77_DUMMY_MAIN() { return 1; }
10983 #endif
10985 main ()
10987 kstat_open ();
10989 return 0;
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_cv_lib_kstat_kstat_open=yes
11005 else
11006 echo "$as_me: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 ac_cv_lib_kstat_kstat_open=no
11010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11014 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11015 if test $ac_cv_lib_kstat_kstat_open = yes; then
11016 cat >>confdefs.h <<_ACEOF
11017 #define HAVE_LIBKSTAT 1
11018 _ACEOF
11020 LIBS="-lkstat $LIBS"
11024 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11026 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11027 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11028 # to get the right answer into the cache.
11029 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11030 if test $ac_have_func = no; then
11031 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11032 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11033 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036 ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-lelf $LIBS"
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11042 /* Override any gcc2 internal prototype to avoid an error. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 /* We use char because int might match the return type of a gcc2
11047 builtin and then its argument prototype would still apply. */
11048 char elf_begin ();
11049 #ifdef F77_DUMMY_MAIN
11050 # ifdef __cplusplus
11051 extern "C"
11052 # endif
11053 int F77_DUMMY_MAIN() { return 1; }
11054 #endif
11056 main ()
11058 elf_begin ();
11060 return 0;
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_lib_elf_elf_begin=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11079 ac_cv_lib_elf_elf_begin=no
11081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11085 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11086 if test $ac_cv_lib_elf_elf_begin = yes; then
11087 LIBS="-lelf $LIBS"
11091 if test $ac_have_func = no; then
11092 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11093 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11094 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097 ac_check_lib_save_LIBS=$LIBS
11098 LIBS="-lkvm $LIBS"
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 #include "confdefs.h"
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char kvm_open ();
11110 #ifdef F77_DUMMY_MAIN
11111 # ifdef __cplusplus
11112 extern "C"
11113 # endif
11114 int F77_DUMMY_MAIN() { return 1; }
11115 #endif
11117 main ()
11119 kvm_open ();
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_lib_kvm_kvm_open=yes
11137 else
11138 echo "$as_me: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 ac_cv_lib_kvm_kvm_open=no
11142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11145 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11146 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11147 if test $ac_cv_lib_kvm_kvm_open = yes; then
11148 LIBS="-lkvm $LIBS"
11151 # Check for the 4.4BSD definition of getloadavg.
11152 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11153 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11154 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157 ac_check_lib_save_LIBS=$LIBS
11158 LIBS="-lutil $LIBS"
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 #include "confdefs.h"
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 /* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11169 char getloadavg ();
11170 #ifdef F77_DUMMY_MAIN
11171 # ifdef __cplusplus
11172 extern "C"
11173 # endif
11174 int F77_DUMMY_MAIN() { return 1; }
11175 #endif
11177 main ()
11179 getloadavg ();
11181 return 0;
11183 _ACEOF
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_util_getloadavg=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 ac_cv_lib_util_getloadavg=no
11202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11206 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11207 if test $ac_cv_lib_util_getloadavg = yes; then
11208 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11213 if test $ac_have_func = no; then
11214 # There is a commonly available library for RS/6000 AIX.
11215 # Since it is not a standard part of AIX, it might be installed locally.
11216 ac_getloadavg_LIBS=$LIBS
11217 LIBS="-L/usr/local/lib $LIBS"
11218 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11219 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11220 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223 ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-lgetloadavg $LIBS"
11225 cat >conftest.$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11227 #include "confdefs.h"
11229 /* Override any gcc2 internal prototype to avoid an error. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11235 char getloadavg ();
11236 #ifdef F77_DUMMY_MAIN
11237 # ifdef __cplusplus
11238 extern "C"
11239 # endif
11240 int F77_DUMMY_MAIN() { return 1; }
11241 #endif
11243 main ()
11245 getloadavg ();
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_cv_lib_getloadavg_getloadavg=yes
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 ac_cv_lib_getloadavg_getloadavg=no
11268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11272 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11273 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11274 LIBS="-lgetloadavg $LIBS"
11275 else
11276 LIBS=$ac_getloadavg_LIBS
11281 # Make sure it is really in the library, if we think we found it,
11282 # otherwise set up the replacement function.
11284 for ac_func in getloadavg
11286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11289 if eval "test \"\${$as_ac_var+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 cat >conftest.$ac_ext <<_ACEOF
11293 #line $LINENO "configure"
11294 #include "confdefs.h"
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below. */
11297 #include <assert.h>
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11304 char $ac_func ();
11305 char (*f) ();
11307 #ifdef F77_DUMMY_MAIN
11308 # ifdef __cplusplus
11309 extern "C"
11310 # endif
11311 int F77_DUMMY_MAIN() { return 1; }
11312 #endif
11314 main ()
11316 /* The GNU C library defines this for functions which it implements
11317 to always fail with ENOSYS. Some functions are actually named
11318 something starting with __ and the normal name is an alias. */
11319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11320 choke me
11321 #else
11322 f = $ac_func;
11323 #endif
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 eval "$as_ac_var=yes"
11342 else
11343 echo "$as_me: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11345 eval "$as_ac_var=no"
11347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11351 if test `eval echo '${'$as_ac_var'}'` = yes; then
11352 cat >>confdefs.h <<_ACEOF
11353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11354 _ACEOF
11356 else
11357 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11359 cat >>confdefs.h <<\_ACEOF
11360 #define C_GETLOADAVG 1
11361 _ACEOF
11363 # Figure out what our getloadavg.c needs.
11364 ac_have_func=no
11365 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11366 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11367 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11368 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11372 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11373 else
11374 # Is the header compilable?
11375 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11376 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11377 cat >conftest.$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11379 #include "confdefs.h"
11380 $ac_includes_default
11381 #include <sys/dg_sys_info.h>
11382 _ACEOF
11383 rm -f conftest.$ac_objext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_header_compiler=yes
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 ac_header_compiler=no
11401 rm -f conftest.$ac_objext conftest.$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 echo "${ECHO_T}$ac_header_compiler" >&6
11405 # Is the header present?
11406 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11407 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 #include <sys/dg_sys_info.h>
11412 _ACEOF
11413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11415 ac_status=$?
11416 egrep -v '^ *\+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } >/dev/null; then
11421 if test -s conftest.err; then
11422 ac_cpp_err=$ac_c_preproc_warn_flag
11423 else
11424 ac_cpp_err=
11426 else
11427 ac_cpp_err=yes
11429 if test -z "$ac_cpp_err"; then
11430 ac_header_preproc=yes
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11434 ac_header_preproc=no
11436 rm -f conftest.err conftest.$ac_ext
11437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6
11440 # So? What about this header?
11441 case $ac_header_compiler:$ac_header_preproc in
11442 yes:no )
11443 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11447 no:yes )
11448 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11449 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11451 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11453 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11454 esac
11455 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11456 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11457 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11463 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11466 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11467 ac_have_func=yes
11469 cat >>confdefs.h <<\_ACEOF
11470 #define DGUX 1
11471 _ACEOF
11474 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11475 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11476 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-ldgc $LIBS"
11481 cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11485 /* Override any gcc2 internal prototype to avoid an error. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 /* We use char because int might match the return type of a gcc2
11490 builtin and then its argument prototype would still apply. */
11491 char dg_sys_info ();
11492 #ifdef F77_DUMMY_MAIN
11493 # ifdef __cplusplus
11494 extern "C"
11495 # endif
11496 int F77_DUMMY_MAIN() { return 1; }
11497 #endif
11499 main ()
11501 dg_sys_info ();
11503 return 0;
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_lib_dgc_dg_sys_info=yes
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 ac_cv_lib_dgc_dg_sys_info=no
11524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11528 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11529 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11530 cat >>confdefs.h <<_ACEOF
11531 #define HAVE_LIBDGC 1
11532 _ACEOF
11534 LIBS="-ldgc $LIBS"
11542 if test "${ac_cv_header_locale_h+set}" = set; then
11543 echo "$as_me:$LINENO: checking for locale.h" >&5
11544 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11545 if test "${ac_cv_header_locale_h+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11549 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11550 else
11551 # Is the header compilable?
11552 echo "$as_me:$LINENO: checking locale.h usability" >&5
11553 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11554 cat >conftest.$ac_ext <<_ACEOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11557 $ac_includes_default
11558 #include <locale.h>
11559 _ACEOF
11560 rm -f conftest.$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_header_compiler=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 ac_header_compiler=no
11578 rm -f conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6
11582 # Is the header present?
11583 echo "$as_me:$LINENO: checking locale.h presence" >&5
11584 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11586 #line $LINENO "configure"
11587 #include "confdefs.h"
11588 #include <locale.h>
11589 _ACEOF
11590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11592 ac_status=$?
11593 egrep -v '^ *\+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } >/dev/null; then
11598 if test -s conftest.err; then
11599 ac_cpp_err=$ac_c_preproc_warn_flag
11600 else
11601 ac_cpp_err=
11603 else
11604 ac_cpp_err=yes
11606 if test -z "$ac_cpp_err"; then
11607 ac_header_preproc=yes
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 ac_header_preproc=no
11613 rm -f conftest.err conftest.$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 echo "${ECHO_T}$ac_header_preproc" >&6
11617 # So? What about this header?
11618 case $ac_header_compiler:$ac_header_preproc in
11619 yes:no )
11620 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11621 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11624 no:yes )
11625 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11626 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11628 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11630 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11631 esac
11632 echo "$as_me:$LINENO: checking for locale.h" >&5
11633 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11634 if test "${ac_cv_header_locale_h+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637 ac_cv_header_locale_h=$ac_header_preproc
11639 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11640 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11646 for ac_func in setlocale
11648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11651 if eval "test \"\${$as_ac_var+set}\" = set"; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below. */
11659 #include <assert.h>
11660 /* Override any gcc2 internal prototype to avoid an error. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666 char $ac_func ();
11667 char (*f) ();
11669 #ifdef F77_DUMMY_MAIN
11670 # ifdef __cplusplus
11671 extern "C"
11672 # endif
11673 int F77_DUMMY_MAIN() { return 1; }
11674 #endif
11676 main ()
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11682 choke me
11683 #else
11684 f = $ac_func;
11685 #endif
11688 return 0;
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 eval "$as_ac_var=yes"
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11707 eval "$as_ac_var=no"
11709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11713 if test `eval echo '${'$as_ac_var'}'` = yes; then
11714 cat >>confdefs.h <<_ACEOF
11715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11716 _ACEOF
11719 done
11722 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11723 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11724 # Irix 4.0.5F has the header but not the library.
11725 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11726 ac_have_func=yes
11728 cat >>confdefs.h <<\_ACEOF
11729 #define SVR4 1
11730 _ACEOF
11734 if test $ac_have_func = no; then
11735 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11736 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11737 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11738 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11743 else
11744 # Is the header compilable?
11745 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11746 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11747 cat >conftest.$ac_ext <<_ACEOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750 $ac_includes_default
11751 #include <inq_stats/cpustats.h>
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_header_compiler=yes
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11769 ac_header_compiler=no
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773 echo "${ECHO_T}$ac_header_compiler" >&6
11775 # Is the header present?
11776 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11777 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11778 cat >conftest.$ac_ext <<_ACEOF
11779 #line $LINENO "configure"
11780 #include "confdefs.h"
11781 #include <inq_stats/cpustats.h>
11782 _ACEOF
11783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11785 ac_status=$?
11786 egrep -v '^ *\+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } >/dev/null; then
11791 if test -s conftest.err; then
11792 ac_cpp_err=$ac_c_preproc_warn_flag
11793 else
11794 ac_cpp_err=
11796 else
11797 ac_cpp_err=yes
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11804 ac_header_preproc=no
11806 rm -f conftest.err conftest.$ac_ext
11807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11808 echo "${ECHO_T}$ac_header_preproc" >&6
11810 # So? What about this header?
11811 case $ac_header_compiler:$ac_header_preproc in
11812 yes:no )
11813 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11814 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11816 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11817 no:yes )
11818 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11819 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11821 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11823 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11824 esac
11825 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11826 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11827 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11832 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11833 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11836 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11837 ac_have_func=yes
11839 cat >>confdefs.h <<\_ACEOF
11840 #define UMAX 1
11841 _ACEOF
11844 cat >>confdefs.h <<\_ACEOF
11845 #define UMAX4_3 1
11846 _ACEOF
11853 if test $ac_have_func = no; then
11854 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11855 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11856 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11857 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11861 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11862 else
11863 # Is the header compilable?
11864 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11865 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869 $ac_includes_default
11870 #include <sys/cpustats.h>
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_header_compiler=yes
11885 else
11886 echo "$as_me: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 ac_header_compiler=no
11890 rm -f conftest.$ac_objext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892 echo "${ECHO_T}$ac_header_compiler" >&6
11894 # Is the header present?
11895 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11896 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11897 cat >conftest.$ac_ext <<_ACEOF
11898 #line $LINENO "configure"
11899 #include "confdefs.h"
11900 #include <sys/cpustats.h>
11901 _ACEOF
11902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11904 ac_status=$?
11905 egrep -v '^ *\+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null; then
11910 if test -s conftest.err; then
11911 ac_cpp_err=$ac_c_preproc_warn_flag
11912 else
11913 ac_cpp_err=
11915 else
11916 ac_cpp_err=yes
11918 if test -z "$ac_cpp_err"; then
11919 ac_header_preproc=yes
11920 else
11921 echo "$as_me: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11923 ac_header_preproc=no
11925 rm -f conftest.err conftest.$ac_ext
11926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 echo "${ECHO_T}$ac_header_preproc" >&6
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc in
11931 yes:no )
11932 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11933 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11936 no:yes )
11937 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11938 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11940 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11942 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11943 esac
11944 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11945 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11946 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11951 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11952 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11955 if test $ac_cv_header_sys_cpustats_h = yes; then
11956 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11957 #define UMAX 1
11958 _ACEOF
11965 if test $ac_have_func = no; then
11967 for ac_header in mach/mach.h
11969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11971 echo "$as_me:$LINENO: checking for $ac_header" >&5
11972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11978 else
11979 # Is the header compilable?
11980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11985 $ac_includes_default
11986 #include <$ac_header>
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_header_compiler=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 ac_header_compiler=no
12006 rm -f conftest.$ac_objext conftest.$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12008 echo "${ECHO_T}$ac_header_compiler" >&6
12010 # Is the header present?
12011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12013 cat >conftest.$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12015 #include "confdefs.h"
12016 #include <$ac_header>
12017 _ACEOF
12018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12020 ac_status=$?
12021 egrep -v '^ *\+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } >/dev/null; then
12026 if test -s conftest.err; then
12027 ac_cpp_err=$ac_c_preproc_warn_flag
12028 else
12029 ac_cpp_err=
12031 else
12032 ac_cpp_err=yes
12034 if test -z "$ac_cpp_err"; then
12035 ac_header_preproc=yes
12036 else
12037 echo "$as_me: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12039 ac_header_preproc=no
12041 rm -f conftest.err conftest.$ac_ext
12042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12043 echo "${ECHO_T}$ac_header_preproc" >&6
12045 # So? What about this header?
12046 case $ac_header_compiler:$ac_header_preproc in
12047 yes:no )
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12052 no:yes )
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12059 esac
12060 echo "$as_me:$LINENO: checking for $ac_header" >&5
12061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 eval "$as_ac_Header=$ac_header_preproc"
12067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12074 _ACEOF
12078 done
12083 for ac_header in nlist.h
12085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12087 echo "$as_me:$LINENO: checking for $ac_header" >&5
12088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12094 else
12095 # Is the header compilable?
12096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12101 $ac_includes_default
12102 #include <$ac_header>
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_header_compiler=yes
12117 else
12118 echo "$as_me: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 ac_header_compiler=no
12122 rm -f conftest.$ac_objext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12124 echo "${ECHO_T}$ac_header_compiler" >&6
12126 # Is the header present?
12127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12131 #include "confdefs.h"
12132 #include <$ac_header>
12133 _ACEOF
12134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12136 ac_status=$?
12137 egrep -v '^ *\+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } >/dev/null; then
12142 if test -s conftest.err; then
12143 ac_cpp_err=$ac_c_preproc_warn_flag
12144 else
12145 ac_cpp_err=
12147 else
12148 ac_cpp_err=yes
12150 if test -z "$ac_cpp_err"; then
12151 ac_header_preproc=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 cat conftest.$ac_ext >&5
12155 ac_header_preproc=no
12157 rm -f conftest.err conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159 echo "${ECHO_T}$ac_header_preproc" >&6
12161 # So? What about this header?
12162 case $ac_header_compiler:$ac_header_preproc in
12163 yes:no )
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12168 no:yes )
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12175 esac
12176 echo "$as_me:$LINENO: checking for $ac_header" >&5
12177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 eval "$as_ac_Header=$ac_header_preproc"
12183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12190 _ACEOF
12191 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12192 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12193 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 #include "confdefs.h"
12199 #include <nlist.h>
12201 #ifdef F77_DUMMY_MAIN
12202 # ifdef __cplusplus
12203 extern "C"
12204 # endif
12205 int F77_DUMMY_MAIN() { return 1; }
12206 #endif
12208 main ()
12210 static struct nlist ac_aggr;
12211 if (ac_aggr.n_un.n_name)
12212 return 0;
12214 return 0;
12216 _ACEOF
12217 rm -f conftest.$ac_objext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_member_struct_nlist_n_un_n_name=yes
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12233 ac_cv_member_struct_nlist_n_un_n_name=no
12235 rm -f conftest.$ac_objext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12238 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12239 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12243 _ACEOF
12246 cat >>confdefs.h <<\_ACEOF
12247 #define NLIST_NAME_UNION 1
12248 _ACEOF
12255 done
12258 done
12261 # Some definitions of getloadavg require that the program be installed setgid.
12262 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12263 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12264 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12270 #include "$srcdir/getloadavg.c"
12271 #ifdef LDAV_PRIVILEGED
12272 Yowza Am I SETGID yet
12273 #endif
12274 _ACEOF
12275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12276 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12277 ac_cv_func_getloadavg_setgid=yes
12278 else
12279 ac_cv_func_getloadavg_setgid=no
12281 rm -f conftest*
12284 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12285 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12286 if test $ac_cv_func_getloadavg_setgid = yes; then
12287 NEED_SETGID=true
12289 cat >>confdefs.h <<\_ACEOF
12290 #define GETLOADAVG_PRIVILEGED 1
12291 _ACEOF
12293 else
12294 NEED_SETGID=false
12297 if test $ac_cv_func_getloadavg_setgid = yes; then
12298 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12299 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12300 if test "${ac_cv_group_kmem+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12304 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12305 # If we got an error (system does not support symlinks), try without -L.
12306 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12307 ac_cv_group_kmem=`echo $ac_ls_output \
12308 | sed -ne 's/[ ][ ]*/ /g;
12309 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12310 / /s/.* //;p;'`
12313 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12314 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12315 KMEM_GROUP=$ac_cv_group_kmem
12317 if test "x$ac_save_LIBS" = x; then
12318 GETLOADAVG_LIBS=$LIBS
12319 else
12320 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12322 LIBS=$ac_save_LIBS
12326 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12327 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12328 if test "${ac_cv_sys_largefile_source+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 while :; do
12332 ac_cv_sys_largefile_source=no
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12335 #include "confdefs.h"
12336 #include <stdio.h>
12337 #ifdef F77_DUMMY_MAIN
12338 # ifdef __cplusplus
12339 extern "C"
12340 # endif
12341 int F77_DUMMY_MAIN() { return 1; }
12342 #endif
12344 main ()
12346 return !fseeko;
12348 return 0;
12350 _ACEOF
12351 rm -f conftest.$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353 (eval $ac_compile) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 break
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 cat conftest.$ac_ext >&5
12368 rm -f conftest.$ac_objext conftest.$ac_ext
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12372 #define _LARGEFILE_SOURCE 1
12373 #include <stdio.h>
12374 #ifdef F77_DUMMY_MAIN
12375 # ifdef __cplusplus
12376 extern "C"
12377 # endif
12378 int F77_DUMMY_MAIN() { return 1; }
12379 #endif
12381 main ()
12383 return !fseeko;
12385 return 0;
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_sys_largefile_source=1; break
12401 else
12402 echo "$as_me: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12405 rm -f conftest.$ac_objext conftest.$ac_ext
12406 break
12407 done
12409 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12410 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12411 if test "$ac_cv_sys_largefile_source" != no; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12415 _ACEOF
12418 rm -f conftest*
12420 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12421 # in glibc 2.1.3, but that breaks too many other things.
12422 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12423 echo "$as_me:$LINENO: checking for fseeko" >&5
12424 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12425 if test "${ac_cv_func_fseeko+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 cat >conftest.$ac_ext <<_ACEOF
12429 #line $LINENO "configure"
12430 #include "confdefs.h"
12431 #include <stdio.h>
12432 #ifdef F77_DUMMY_MAIN
12433 # ifdef __cplusplus
12434 extern "C"
12435 # endif
12436 int F77_DUMMY_MAIN() { return 1; }
12437 #endif
12439 main ()
12441 return fseeko && fseeko (stdin, 0, 0);
12443 return 0;
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_func_fseeko=yes
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12462 ac_cv_func_fseeko=no
12464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12466 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12467 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12468 if test $ac_cv_func_fseeko = yes; then
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_FSEEKO 1
12472 _ACEOF
12477 # UNIX98 PTYs.
12479 for ac_func in grantpt
12481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12482 echo "$as_me:$LINENO: checking for $ac_func" >&5
12483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12484 if eval "test \"\${$as_ac_var+set}\" = set"; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 #include "confdefs.h"
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char $ac_func (); below. */
12492 #include <assert.h>
12493 /* Override any gcc2 internal prototype to avoid an error. */
12494 #ifdef __cplusplus
12495 extern "C"
12496 #endif
12497 /* We use char because int might match the return type of a gcc2
12498 builtin and then its argument prototype would still apply. */
12499 char $ac_func ();
12500 char (*f) ();
12502 #ifdef F77_DUMMY_MAIN
12503 # ifdef __cplusplus
12504 extern "C"
12505 # endif
12506 int F77_DUMMY_MAIN() { return 1; }
12507 #endif
12509 main ()
12511 /* The GNU C library defines this for functions which it implements
12512 to always fail with ENOSYS. Some functions are actually named
12513 something starting with __ and the normal name is an alias. */
12514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12515 choke me
12516 #else
12517 f = $ac_func;
12518 #endif
12521 return 0;
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 eval "$as_ac_var=yes"
12537 else
12538 echo "$as_me: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12540 eval "$as_ac_var=no"
12542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12546 if test `eval echo '${'$as_ac_var'}'` = yes; then
12547 cat >>confdefs.h <<_ACEOF
12548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12549 _ACEOF
12552 done
12555 # PTY-related GNU extensions.
12557 for ac_func in getpt
12559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12560 echo "$as_me:$LINENO: checking for $ac_func" >&5
12561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12562 if eval "test \"\${$as_ac_var+set}\" = set"; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565 cat >conftest.$ac_ext <<_ACEOF
12566 #line $LINENO "configure"
12567 #include "confdefs.h"
12568 /* System header to define __stub macros and hopefully few prototypes,
12569 which can conflict with char $ac_func (); below. */
12570 #include <assert.h>
12571 /* Override any gcc2 internal prototype to avoid an error. */
12572 #ifdef __cplusplus
12573 extern "C"
12574 #endif
12575 /* We use char because int might match the return type of a gcc2
12576 builtin and then its argument prototype would still apply. */
12577 char $ac_func ();
12578 char (*f) ();
12580 #ifdef F77_DUMMY_MAIN
12581 # ifdef __cplusplus
12582 extern "C"
12583 # endif
12584 int F77_DUMMY_MAIN() { return 1; }
12585 #endif
12587 main ()
12589 /* The GNU C library defines this for functions which it implements
12590 to always fail with ENOSYS. Some functions are actually named
12591 something starting with __ and the normal name is an alias. */
12592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12593 choke me
12594 #else
12595 f = $ac_func;
12596 #endif
12599 return 0;
12601 _ACEOF
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604 (eval $ac_link) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 eval "$as_ac_var=yes"
12615 else
12616 echo "$as_me: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 eval "$as_ac_var=no"
12620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12624 if test `eval echo '${'$as_ac_var'}'` = yes; then
12625 cat >>confdefs.h <<_ACEOF
12626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627 _ACEOF
12630 done
12633 # Check this now, so that we will NOT find the above functions in ncurses.
12634 # That is because we have not set up to link ncurses in lib-src.
12635 # It's better to believe a function is not available
12636 # than to expect to find it in ncurses.
12638 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12639 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12640 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-lncurses $LIBS"
12645 cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12647 #include "confdefs.h"
12649 /* Override any gcc2 internal prototype to avoid an error. */
12650 #ifdef __cplusplus
12651 extern "C"
12652 #endif
12653 /* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
12655 char tparm ();
12656 #ifdef F77_DUMMY_MAIN
12657 # ifdef __cplusplus
12658 extern "C"
12659 # endif
12660 int F77_DUMMY_MAIN() { return 1; }
12661 #endif
12663 main ()
12665 tparm ();
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_cv_lib_ncurses_tparm=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ac_cv_lib_ncurses_tparm=no
12688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12691 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12692 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12693 if test $ac_cv_lib_ncurses_tparm = yes; then
12694 cat >>confdefs.h <<_ACEOF
12695 #define HAVE_LIBNCURSES 1
12696 _ACEOF
12698 LIBS="-lncurses $LIBS"
12703 # Do we need the Hesiod library to provide the support routines?
12704 if test "$with_hesiod" = yes ; then
12705 # Don't set $LIBS here -- see comments above.
12706 resolv=no
12707 echo "$as_me:$LINENO: checking for res_send" >&5
12708 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12709 if test "${ac_cv_func_res_send+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 cat >conftest.$ac_ext <<_ACEOF
12713 #line $LINENO "configure"
12714 #include "confdefs.h"
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char res_send (); below. */
12717 #include <assert.h>
12718 /* Override any gcc2 internal prototype to avoid an error. */
12719 #ifdef __cplusplus
12720 extern "C"
12721 #endif
12722 /* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12724 char res_send ();
12725 char (*f) ();
12727 #ifdef F77_DUMMY_MAIN
12728 # ifdef __cplusplus
12729 extern "C"
12730 # endif
12731 int F77_DUMMY_MAIN() { return 1; }
12732 #endif
12734 main ()
12736 /* The GNU C library defines this for functions which it implements
12737 to always fail with ENOSYS. Some functions are actually named
12738 something starting with __ and the normal name is an alias. */
12739 #if defined (__stub_res_send) || defined (__stub___res_send)
12740 choke me
12741 #else
12742 f = res_send;
12743 #endif
12746 return 0;
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751 (eval $ac_link) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_func_res_send=yes
12762 else
12763 echo "$as_me: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 ac_cv_func_res_send=no
12767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12770 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12771 if test $ac_cv_func_res_send = yes; then
12773 else
12774 echo "$as_me:$LINENO: checking for __res_send" >&5
12775 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12776 if test "${ac_cv_func___res_send+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12781 #include "confdefs.h"
12782 /* System header to define __stub macros and hopefully few prototypes,
12783 which can conflict with char __res_send (); below. */
12784 #include <assert.h>
12785 /* Override any gcc2 internal prototype to avoid an error. */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char __res_send ();
12792 char (*f) ();
12794 #ifdef F77_DUMMY_MAIN
12795 # ifdef __cplusplus
12796 extern "C"
12797 # endif
12798 int F77_DUMMY_MAIN() { return 1; }
12799 #endif
12801 main ()
12803 /* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
12806 #if defined (__stub___res_send) || defined (__stub_____res_send)
12807 choke me
12808 #else
12809 f = __res_send;
12810 #endif
12813 return 0;
12815 _ACEOF
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_func___res_send=yes
12829 else
12830 echo "$as_me: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12832 ac_cv_func___res_send=no
12834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12836 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12837 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12838 if test $ac_cv_func___res_send = yes; then
12840 else
12841 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12842 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12843 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-lresolv $LIBS"
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12850 #include "confdefs.h"
12852 /* Override any gcc2 internal prototype to avoid an error. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char res_send ();
12859 #ifdef F77_DUMMY_MAIN
12860 # ifdef __cplusplus
12861 extern "C"
12862 # endif
12863 int F77_DUMMY_MAIN() { return 1; }
12864 #endif
12866 main ()
12868 res_send ();
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -s conftest$ac_exeext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 ac_cv_lib_resolv_res_send=yes
12886 else
12887 echo "$as_me: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 ac_cv_lib_resolv_res_send=no
12891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12894 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12895 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12896 if test $ac_cv_lib_resolv_res_send = yes; then
12897 resolv=yes
12898 else
12899 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12900 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12901 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-lresolv $LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 #include "confdefs.h"
12910 /* Override any gcc2 internal prototype to avoid an error. */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 /* We use char because int might match the return type of a gcc2
12915 builtin and then its argument prototype would still apply. */
12916 char __res_send ();
12917 #ifdef F77_DUMMY_MAIN
12918 # ifdef __cplusplus
12919 extern "C"
12920 # endif
12921 int F77_DUMMY_MAIN() { return 1; }
12922 #endif
12924 main ()
12926 __res_send ();
12928 return 0;
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_lib_resolv___res_send=yes
12944 else
12945 echo "$as_me: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12947 ac_cv_lib_resolv___res_send=no
12949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12953 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12954 if test $ac_cv_lib_resolv___res_send = yes; then
12955 resolv=yes
12964 if test "$resolv" = yes ; then
12965 RESOLVLIB=-lresolv
12967 cat >>confdefs.h <<\_ACEOF
12968 #define HAVE_LIBRESOLV 1
12969 _ACEOF
12971 else
12972 RESOLVLIB=
12974 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12975 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12976 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char hes_getmailhost (); below. */
12984 #include <assert.h>
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 /* We use char because int might match the return type of a gcc2
12990 builtin and then its argument prototype would still apply. */
12991 char hes_getmailhost ();
12992 char (*f) ();
12994 #ifdef F77_DUMMY_MAIN
12995 # ifdef __cplusplus
12996 extern "C"
12997 # endif
12998 int F77_DUMMY_MAIN() { return 1; }
12999 #endif
13001 main ()
13003 /* The GNU C library defines this for functions which it implements
13004 to always fail with ENOSYS. Some functions are actually named
13005 something starting with __ and the normal name is an alias. */
13006 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13007 choke me
13008 #else
13009 f = hes_getmailhost;
13010 #endif
13013 return 0;
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -s conftest$ac_exeext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_cv_func_hes_getmailhost=yes
13029 else
13030 echo "$as_me: failed program was:" >&5
13031 cat conftest.$ac_ext >&5
13032 ac_cv_func_hes_getmailhost=no
13034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13037 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13038 if test $ac_cv_func_hes_getmailhost = yes; then
13040 else
13041 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13042 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13043 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046 ac_check_lib_save_LIBS=$LIBS
13047 LIBS="-lhesiod $RESOLVLIB $LIBS"
13048 cat >conftest.$ac_ext <<_ACEOF
13049 #line $LINENO "configure"
13050 #include "confdefs.h"
13052 /* Override any gcc2 internal prototype to avoid an error. */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 /* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13058 char hes_getmailhost ();
13059 #ifdef F77_DUMMY_MAIN
13060 # ifdef __cplusplus
13061 extern "C"
13062 # endif
13063 int F77_DUMMY_MAIN() { return 1; }
13064 #endif
13066 main ()
13068 hes_getmailhost ();
13070 return 0;
13072 _ACEOF
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_lib_hesiod_hes_getmailhost=yes
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 cat conftest.$ac_ext >&5
13089 ac_cv_lib_hesiod_hes_getmailhost=no
13091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13095 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13096 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_LIBHESIOD 1
13100 _ACEOF
13102 else
13110 # These tell us which Kerberos-related libraries to use.
13111 if test "${with_kerberos+set}" = set; then
13113 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13114 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13115 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-lcom_err $LIBS"
13120 cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 #include "confdefs.h"
13124 /* Override any gcc2 internal prototype to avoid an error. */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 /* We use char because int might match the return type of a gcc2
13129 builtin and then its argument prototype would still apply. */
13130 char com_err ();
13131 #ifdef F77_DUMMY_MAIN
13132 # ifdef __cplusplus
13133 extern "C"
13134 # endif
13135 int F77_DUMMY_MAIN() { return 1; }
13136 #endif
13138 main ()
13140 com_err ();
13142 return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_com_err_com_err=yes
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 ac_cv_lib_com_err_com_err=no
13163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13166 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13167 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13168 if test $ac_cv_lib_com_err_com_err = yes; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_LIBCOM_ERR 1
13171 _ACEOF
13173 LIBS="-lcom_err $LIBS"
13178 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13179 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13180 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-lk5crypto $LIBS"
13185 cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13189 /* Override any gcc2 internal prototype to avoid an error. */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char mit_des_cbc_encrypt ();
13196 #ifdef F77_DUMMY_MAIN
13197 # ifdef __cplusplus
13198 extern "C"
13199 # endif
13200 int F77_DUMMY_MAIN() { return 1; }
13201 #endif
13203 main ()
13205 mit_des_cbc_encrypt ();
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13231 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13232 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13233 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_LIBK5CRYPTO 1
13236 _ACEOF
13238 LIBS="-lk5crypto $LIBS"
13243 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13244 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13245 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lcrypto $LIBS"
13250 cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13252 #include "confdefs.h"
13254 /* Override any gcc2 internal prototype to avoid an error. */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char mit_des_cbc_encrypt ();
13261 #ifdef F77_DUMMY_MAIN
13262 # ifdef __cplusplus
13263 extern "C"
13264 # endif
13265 int F77_DUMMY_MAIN() { return 1; }
13266 #endif
13268 main ()
13270 mit_des_cbc_encrypt ();
13272 return 0;
13274 _ACEOF
13275 rm -f conftest.$ac_objext conftest$ac_exeext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13277 (eval $ac_link) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13288 else
13289 echo "$as_me: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13291 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13297 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13298 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_LIBCRYPTO 1
13301 _ACEOF
13303 LIBS="-lcrypto $LIBS"
13308 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13309 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13310 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313 ac_check_lib_save_LIBS=$LIBS
13314 LIBS="-lkrb5 $LIBS"
13315 cat >conftest.$ac_ext <<_ACEOF
13316 #line $LINENO "configure"
13317 #include "confdefs.h"
13319 /* Override any gcc2 internal prototype to avoid an error. */
13320 #ifdef __cplusplus
13321 extern "C"
13322 #endif
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char krb5_init_context ();
13326 #ifdef F77_DUMMY_MAIN
13327 # ifdef __cplusplus
13328 extern "C"
13329 # endif
13330 int F77_DUMMY_MAIN() { return 1; }
13331 #endif
13333 main ()
13335 krb5_init_context ();
13337 return 0;
13339 _ACEOF
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_lib_krb5_krb5_init_context=yes
13353 else
13354 echo "$as_me: failed program was:" >&5
13355 cat conftest.$ac_ext >&5
13356 ac_cv_lib_krb5_krb5_init_context=no
13358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13359 LIBS=$ac_check_lib_save_LIBS
13361 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13362 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13363 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_LIBKRB5 1
13366 _ACEOF
13368 LIBS="-lkrb5 $LIBS"
13372 if test "${with_kerberos5+set}" != set; then
13374 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13375 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13376 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-ldes425 $LIBS"
13381 cat >conftest.$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 #include "confdefs.h"
13385 /* Override any gcc2 internal prototype to avoid an error. */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 /* We use char because int might match the return type of a gcc2
13390 builtin and then its argument prototype would still apply. */
13391 char des_cbc_encrypt ();
13392 #ifdef F77_DUMMY_MAIN
13393 # ifdef __cplusplus
13394 extern "C"
13395 # endif
13396 int F77_DUMMY_MAIN() { return 1; }
13397 #endif
13399 main ()
13401 des_cbc_encrypt ();
13403 return 0;
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_lib_des425_des_cbc_encrypt=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13422 ac_cv_lib_des425_des_cbc_encrypt=no
13424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13428 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13429 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_LIBDES425 1
13432 _ACEOF
13434 LIBS="-ldes425 $LIBS"
13436 else
13438 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13439 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13440 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 ac_check_lib_save_LIBS=$LIBS
13444 LIBS="-ldes $LIBS"
13445 cat >conftest.$ac_ext <<_ACEOF
13446 #line $LINENO "configure"
13447 #include "confdefs.h"
13449 /* Override any gcc2 internal prototype to avoid an error. */
13450 #ifdef __cplusplus
13451 extern "C"
13452 #endif
13453 /* We use char because int might match the return type of a gcc2
13454 builtin and then its argument prototype would still apply. */
13455 char des_cbc_encrypt ();
13456 #ifdef F77_DUMMY_MAIN
13457 # ifdef __cplusplus
13458 extern "C"
13459 # endif
13460 int F77_DUMMY_MAIN() { return 1; }
13461 #endif
13463 main ()
13465 des_cbc_encrypt ();
13467 return 0;
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_lib_des_des_cbc_encrypt=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 ac_cv_lib_des_des_cbc_encrypt=no
13488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS
13491 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13492 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13493 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_LIBDES 1
13496 _ACEOF
13498 LIBS="-ldes $LIBS"
13505 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13506 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13507 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 ac_check_lib_save_LIBS=$LIBS
13511 LIBS="-lkrb4 $LIBS"
13512 cat >conftest.$ac_ext <<_ACEOF
13513 #line $LINENO "configure"
13514 #include "confdefs.h"
13516 /* Override any gcc2 internal prototype to avoid an error. */
13517 #ifdef __cplusplus
13518 extern "C"
13519 #endif
13520 /* We use char because int might match the return type of a gcc2
13521 builtin and then its argument prototype would still apply. */
13522 char krb_get_cred ();
13523 #ifdef F77_DUMMY_MAIN
13524 # ifdef __cplusplus
13525 extern "C"
13526 # endif
13527 int F77_DUMMY_MAIN() { return 1; }
13528 #endif
13530 main ()
13532 krb_get_cred ();
13534 return 0;
13536 _ACEOF
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_lib_krb4_krb_get_cred=yes
13550 else
13551 echo "$as_me: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13553 ac_cv_lib_krb4_krb_get_cred=no
13555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13558 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13559 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13560 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13561 cat >>confdefs.h <<_ACEOF
13562 #define HAVE_LIBKRB4 1
13563 _ACEOF
13565 LIBS="-lkrb4 $LIBS"
13567 else
13569 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13570 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13571 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574 ac_check_lib_save_LIBS=$LIBS
13575 LIBS="-lkrb $LIBS"
13576 cat >conftest.$ac_ext <<_ACEOF
13577 #line $LINENO "configure"
13578 #include "confdefs.h"
13580 /* Override any gcc2 internal prototype to avoid an error. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 /* We use char because int might match the return type of a gcc2
13585 builtin and then its argument prototype would still apply. */
13586 char krb_get_cred ();
13587 #ifdef F77_DUMMY_MAIN
13588 # ifdef __cplusplus
13589 extern "C"
13590 # endif
13591 int F77_DUMMY_MAIN() { return 1; }
13592 #endif
13594 main ()
13596 krb_get_cred ();
13598 return 0;
13600 _ACEOF
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -s conftest$ac_exeext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_lib_krb_krb_get_cred=yes
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 ac_cv_lib_krb_krb_get_cred=no
13619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_check_lib_save_LIBS
13622 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13623 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13624 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13625 cat >>confdefs.h <<_ACEOF
13626 #define HAVE_LIBKRB 1
13627 _ACEOF
13629 LIBS="-lkrb $LIBS"
13637 if test "${with_kerberos5+set}" = set; then
13639 for ac_header in krb5.h
13641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13643 echo "$as_me:$LINENO: checking for $ac_header" >&5
13644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13650 else
13651 # Is the header compilable?
13652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13654 cat >conftest.$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13656 #include "confdefs.h"
13657 $ac_includes_default
13658 #include <$ac_header>
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_header_compiler=yes
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 cat conftest.$ac_ext >&5
13676 ac_header_compiler=no
13678 rm -f conftest.$ac_objext conftest.$ac_ext
13679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13680 echo "${ECHO_T}$ac_header_compiler" >&6
13682 # Is the header present?
13683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 #include <$ac_header>
13689 _ACEOF
13690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13692 ac_status=$?
13693 egrep -v '^ *\+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } >/dev/null; then
13698 if test -s conftest.err; then
13699 ac_cpp_err=$ac_c_preproc_warn_flag
13700 else
13701 ac_cpp_err=
13703 else
13704 ac_cpp_err=yes
13706 if test -z "$ac_cpp_err"; then
13707 ac_header_preproc=yes
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 ac_header_preproc=no
13713 rm -f conftest.err conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13715 echo "${ECHO_T}$ac_header_preproc" >&6
13717 # So? What about this header?
13718 case $ac_header_compiler:$ac_header_preproc in
13719 yes:no )
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13724 no:yes )
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13731 esac
13732 echo "$as_me:$LINENO: checking for $ac_header" >&5
13733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737 eval "$as_ac_Header=$ac_header_preproc"
13739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13746 _ACEOF
13750 done
13752 else
13754 for ac_header in des.h
13756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13758 echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13765 else
13766 # Is the header compilable?
13767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13769 cat >conftest.$ac_ext <<_ACEOF
13770 #line $LINENO "configure"
13771 #include "confdefs.h"
13772 $ac_includes_default
13773 #include <$ac_header>
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777 (eval $ac_compile) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -s conftest.$ac_objext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_header_compiler=yes
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13791 ac_header_compiler=no
13793 rm -f conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6
13797 # Is the header present?
13798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13800 cat >conftest.$ac_ext <<_ACEOF
13801 #line $LINENO "configure"
13802 #include "confdefs.h"
13803 #include <$ac_header>
13804 _ACEOF
13805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13807 ac_status=$?
13808 egrep -v '^ *\+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } >/dev/null; then
13813 if test -s conftest.err; then
13814 ac_cpp_err=$ac_c_preproc_warn_flag
13815 else
13816 ac_cpp_err=
13818 else
13819 ac_cpp_err=yes
13821 if test -z "$ac_cpp_err"; then
13822 ac_header_preproc=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13826 ac_header_preproc=no
13828 rm -f conftest.err conftest.$ac_ext
13829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13830 echo "${ECHO_T}$ac_header_preproc" >&6
13832 # So? What about this header?
13833 case $ac_header_compiler:$ac_header_preproc in
13834 yes:no )
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13839 no:yes )
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13846 esac
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 eval "$as_ac_Header=$ac_header_preproc"
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h <<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13861 _ACEOF
13863 else
13865 for ac_header in kerberosIV/des.h
13867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13869 echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13876 else
13877 # Is the header compilable?
13878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13880 cat >conftest.$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13882 #include "confdefs.h"
13883 $ac_includes_default
13884 #include <$ac_header>
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_header_compiler=yes
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 ac_header_compiler=no
13904 rm -f conftest.$ac_objext conftest.$ac_ext
13905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13906 echo "${ECHO_T}$ac_header_compiler" >&6
13908 # Is the header present?
13909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13911 cat >conftest.$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 #include "confdefs.h"
13914 #include <$ac_header>
13915 _ACEOF
13916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13918 ac_status=$?
13919 egrep -v '^ *\+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev/null; then
13924 if test -s conftest.err; then
13925 ac_cpp_err=$ac_c_preproc_warn_flag
13926 else
13927 ac_cpp_err=
13929 else
13930 ac_cpp_err=yes
13932 if test -z "$ac_cpp_err"; then
13933 ac_header_preproc=yes
13934 else
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 ac_header_preproc=no
13939 rm -f conftest.err conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 echo "${ECHO_T}$ac_header_preproc" >&6
13943 # So? What about this header?
13944 case $ac_header_compiler:$ac_header_preproc in
13945 yes:no )
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13950 no:yes )
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13957 esac
13958 echo "$as_me:$LINENO: checking for $ac_header" >&5
13959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 eval "$as_ac_Header=$ac_header_preproc"
13965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13970 cat >>confdefs.h <<_ACEOF
13971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13972 _ACEOF
13974 else
13976 for ac_header in kerberos/des.h
13978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo "$as_me:$LINENO: checking for $ac_header" >&5
13981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13987 else
13988 # Is the header compilable?
13989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13991 cat >conftest.$ac_ext <<_ACEOF
13992 #line $LINENO "configure"
13993 #include "confdefs.h"
13994 $ac_includes_default
13995 #include <$ac_header>
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_header_compiler=yes
14010 else
14011 echo "$as_me: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14013 ac_header_compiler=no
14015 rm -f conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 #line $LINENO "configure"
14024 #include "confdefs.h"
14025 #include <$ac_header>
14026 _ACEOF
14027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14029 ac_status=$?
14030 egrep -v '^ *\+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } >/dev/null; then
14035 if test -s conftest.err; then
14036 ac_cpp_err=$ac_c_preproc_warn_flag
14037 else
14038 ac_cpp_err=
14040 else
14041 ac_cpp_err=yes
14043 if test -z "$ac_cpp_err"; then
14044 ac_header_preproc=yes
14045 else
14046 echo "$as_me: failed program was:" >&5
14047 cat conftest.$ac_ext >&5
14048 ac_header_preproc=no
14050 rm -f conftest.err conftest.$ac_ext
14051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14052 echo "${ECHO_T}$ac_header_preproc" >&6
14054 # So? What about this header?
14055 case $ac_header_compiler:$ac_header_preproc in
14056 yes:no )
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14061 no:yes )
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14068 esac
14069 echo "$as_me:$LINENO: checking for $ac_header" >&5
14070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 eval "$as_ac_Header=$ac_header_preproc"
14076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14081 cat >>confdefs.h <<_ACEOF
14082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14083 _ACEOF
14087 done
14091 done
14095 done
14098 for ac_header in krb.h
14100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14102 echo "$as_me:$LINENO: checking for $ac_header" >&5
14103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14109 else
14110 # Is the header compilable?
14111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14113 cat >conftest.$ac_ext <<_ACEOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116 $ac_includes_default
14117 #include <$ac_header>
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14121 (eval $ac_compile) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -s conftest.$ac_objext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_header_compiler=yes
14132 else
14133 echo "$as_me: failed program was:" >&5
14134 cat conftest.$ac_ext >&5
14135 ac_header_compiler=no
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 echo "${ECHO_T}$ac_header_compiler" >&6
14141 # Is the header present?
14142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 #include "confdefs.h"
14147 #include <$ac_header>
14148 _ACEOF
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 ac_status=$?
14152 egrep -v '^ *\+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null; then
14157 if test -s conftest.err; then
14158 ac_cpp_err=$ac_c_preproc_warn_flag
14159 else
14160 ac_cpp_err=
14162 else
14163 ac_cpp_err=yes
14165 if test -z "$ac_cpp_err"; then
14166 ac_header_preproc=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 cat conftest.$ac_ext >&5
14170 ac_header_preproc=no
14172 rm -f conftest.err conftest.$ac_ext
14173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14174 echo "${ECHO_T}$ac_header_preproc" >&6
14176 # So? What about this header?
14177 case $ac_header_compiler:$ac_header_preproc in
14178 yes:no )
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14183 no:yes )
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14190 esac
14191 echo "$as_me:$LINENO: checking for $ac_header" >&5
14192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196 eval "$as_ac_Header=$ac_header_preproc"
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14203 cat >>confdefs.h <<_ACEOF
14204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14205 _ACEOF
14207 else
14209 for ac_header in kerberosIV/krb.h
14211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14220 else
14221 # Is the header compilable?
14222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14224 cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 #include "confdefs.h"
14227 $ac_includes_default
14228 #include <$ac_header>
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_header_compiler=yes
14243 else
14244 echo "$as_me: failed program was:" >&5
14245 cat conftest.$ac_ext >&5
14246 ac_header_compiler=no
14248 rm -f conftest.$ac_objext conftest.$ac_ext
14249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14250 echo "${ECHO_T}$ac_header_compiler" >&6
14252 # Is the header present?
14253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 #include "confdefs.h"
14258 #include <$ac_header>
14259 _ACEOF
14260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14262 ac_status=$?
14263 egrep -v '^ *\+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } >/dev/null; then
14268 if test -s conftest.err; then
14269 ac_cpp_err=$ac_c_preproc_warn_flag
14270 else
14271 ac_cpp_err=
14273 else
14274 ac_cpp_err=yes
14276 if test -z "$ac_cpp_err"; then
14277 ac_header_preproc=yes
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 ac_header_preproc=no
14283 rm -f conftest.err conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14285 echo "${ECHO_T}$ac_header_preproc" >&6
14287 # So? What about this header?
14288 case $ac_header_compiler:$ac_header_preproc in
14289 yes:no )
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14294 no:yes )
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14301 esac
14302 echo "$as_me:$LINENO: checking for $ac_header" >&5
14303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307 eval "$as_ac_Header=$ac_header_preproc"
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14314 cat >>confdefs.h <<_ACEOF
14315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14316 _ACEOF
14318 else
14320 for ac_header in kerberos/krb.h
14322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo "$as_me:$LINENO: checking for $ac_header" >&5
14325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14331 else
14332 # Is the header compilable?
14333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 #include "confdefs.h"
14338 $ac_includes_default
14339 #include <$ac_header>
14340 _ACEOF
14341 rm -f conftest.$ac_objext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_header_compiler=yes
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 ac_header_compiler=no
14359 rm -f conftest.$ac_objext conftest.$ac_ext
14360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14361 echo "${ECHO_T}$ac_header_compiler" >&6
14363 # Is the header present?
14364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14368 #include "confdefs.h"
14369 #include <$ac_header>
14370 _ACEOF
14371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14373 ac_status=$?
14374 egrep -v '^ *\+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null; then
14379 if test -s conftest.err; then
14380 ac_cpp_err=$ac_c_preproc_warn_flag
14381 else
14382 ac_cpp_err=
14384 else
14385 ac_cpp_err=yes
14387 if test -z "$ac_cpp_err"; then
14388 ac_header_preproc=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 cat conftest.$ac_ext >&5
14392 ac_header_preproc=no
14394 rm -f conftest.err conftest.$ac_ext
14395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396 echo "${ECHO_T}$ac_header_preproc" >&6
14398 # So? What about this header?
14399 case $ac_header_compiler:$ac_header_preproc in
14400 yes:no )
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14405 no:yes )
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14412 esac
14413 echo "$as_me:$LINENO: checking for $ac_header" >&5
14414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418 eval "$as_ac_Header=$ac_header_preproc"
14420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14425 cat >>confdefs.h <<_ACEOF
14426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14427 _ACEOF
14431 done
14435 done
14439 done
14443 for ac_header in com_err.h
14445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14447 echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14454 else
14455 # Is the header compilable?
14456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14458 cat >conftest.$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14460 #include "confdefs.h"
14461 $ac_includes_default
14462 #include <$ac_header>
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_header_compiler=yes
14477 else
14478 echo "$as_me: failed program was:" >&5
14479 cat conftest.$ac_ext >&5
14480 ac_header_compiler=no
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14484 echo "${ECHO_T}$ac_header_compiler" >&6
14486 # Is the header present?
14487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 #include "confdefs.h"
14492 #include <$ac_header>
14493 _ACEOF
14494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14496 ac_status=$?
14497 egrep -v '^ *\+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } >/dev/null; then
14502 if test -s conftest.err; then
14503 ac_cpp_err=$ac_c_preproc_warn_flag
14504 else
14505 ac_cpp_err=
14507 else
14508 ac_cpp_err=yes
14510 if test -z "$ac_cpp_err"; then
14511 ac_header_preproc=yes
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14515 ac_header_preproc=no
14517 rm -f conftest.err conftest.$ac_ext
14518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 echo "${ECHO_T}$ac_header_preproc" >&6
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc in
14523 yes:no )
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14528 no:yes )
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14535 esac
14536 echo "$as_me:$LINENO: checking for $ac_header" >&5
14537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541 eval "$as_ac_Header=$ac_header_preproc"
14543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14548 cat >>confdefs.h <<_ACEOF
14549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14550 _ACEOF
14554 done
14558 # Solaris requires -lintl if you want strerror (which calls dgettext)
14559 # to return localized messages.
14561 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14562 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14563 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566 ac_check_lib_save_LIBS=$LIBS
14567 LIBS="-lintl $LIBS"
14568 cat >conftest.$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14570 #include "confdefs.h"
14572 /* Override any gcc2 internal prototype to avoid an error. */
14573 #ifdef __cplusplus
14574 extern "C"
14575 #endif
14576 /* We use char because int might match the return type of a gcc2
14577 builtin and then its argument prototype would still apply. */
14578 char dgettext ();
14579 #ifdef F77_DUMMY_MAIN
14580 # ifdef __cplusplus
14581 extern "C"
14582 # endif
14583 int F77_DUMMY_MAIN() { return 1; }
14584 #endif
14586 main ()
14588 dgettext ();
14590 return 0;
14592 _ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14595 (eval $ac_link) 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14605 ac_cv_lib_intl_dgettext=yes
14606 else
14607 echo "$as_me: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14609 ac_cv_lib_intl_dgettext=no
14611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14612 LIBS=$ac_check_lib_save_LIBS
14614 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14615 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14616 if test $ac_cv_lib_intl_dgettext = yes; then
14617 cat >>confdefs.h <<_ACEOF
14618 #define HAVE_LIBINTL 1
14619 _ACEOF
14621 LIBS="-lintl $LIBS"
14626 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14627 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14628 if test "${emacs_cv_localtime_cache+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631 if test x$ac_cv_func_tzset = xyes; then
14632 if test "$cross_compiling" = yes; then
14633 # If we have tzset, assume the worst when cross-compiling.
14634 emacs_cv_localtime_cache=yes
14635 else
14636 cat >conftest.$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 #include "confdefs.h"
14639 #include <time.h>
14640 extern char **environ;
14641 unset_TZ ()
14643 char **from, **to;
14644 for (to = from = environ; (*to = *from); from++)
14645 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14646 to++;
14648 char TZ_GMT0[] = "TZ=GMT0";
14649 char TZ_PST8[] = "TZ=PST8";
14650 main()
14652 time_t now = time ((time_t *) 0);
14653 int hour_GMT0, hour_unset;
14654 if (putenv (TZ_GMT0) != 0)
14655 exit (1);
14656 hour_GMT0 = localtime (&now)->tm_hour;
14657 unset_TZ ();
14658 hour_unset = localtime (&now)->tm_hour;
14659 if (putenv (TZ_PST8) != 0)
14660 exit (1);
14661 if (localtime (&now)->tm_hour == hour_GMT0)
14662 exit (1);
14663 unset_TZ ();
14664 if (localtime (&now)->tm_hour != hour_unset)
14665 exit (1);
14666 exit (0);
14668 _ACEOF
14669 rm -f conftest$ac_exeext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14671 (eval $ac_link) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 emacs_cv_localtime_cache=no
14681 else
14682 echo "$as_me: program exited with status $ac_status" >&5
14683 echo "$as_me: failed program was:" >&5
14684 cat conftest.$ac_ext >&5
14685 ( exit $ac_status )
14686 emacs_cv_localtime_cache=yes
14688 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14690 else
14691 # If we lack tzset, report that localtime does not cache TZ,
14692 # since we can't invalidate the cache if we don't have tzset.
14693 emacs_cv_localtime_cache=no
14696 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14697 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14698 if test $emacs_cv_localtime_cache = yes; then
14700 cat >>confdefs.h <<\_ACEOF
14701 #define LOCALTIME_CACHE 1
14702 _ACEOF
14706 if test "x$HAVE_TIMEVAL" = xyes; then
14708 for ac_func in gettimeofday
14710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14711 echo "$as_me:$LINENO: checking for $ac_func" >&5
14712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14713 if eval "test \"\${$as_ac_var+set}\" = set"; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716 cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 #include "confdefs.h"
14719 /* System header to define __stub macros and hopefully few prototypes,
14720 which can conflict with char $ac_func (); below. */
14721 #include <assert.h>
14722 /* Override any gcc2 internal prototype to avoid an error. */
14723 #ifdef __cplusplus
14724 extern "C"
14725 #endif
14726 /* We use char because int might match the return type of a gcc2
14727 builtin and then its argument prototype would still apply. */
14728 char $ac_func ();
14729 char (*f) ();
14731 #ifdef F77_DUMMY_MAIN
14732 # ifdef __cplusplus
14733 extern "C"
14734 # endif
14735 int F77_DUMMY_MAIN() { return 1; }
14736 #endif
14738 main ()
14740 /* The GNU C library defines this for functions which it implements
14741 to always fail with ENOSYS. Some functions are actually named
14742 something starting with __ and the normal name is an alias. */
14743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14744 choke me
14745 #else
14746 f = $ac_func;
14747 #endif
14750 return 0;
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 eval "$as_ac_var=yes"
14766 else
14767 echo "$as_me: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 eval "$as_ac_var=no"
14771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14775 if test `eval echo '${'$as_ac_var'}'` = yes; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14778 _ACEOF
14781 done
14783 if test $ac_cv_func_gettimeofday = yes; then
14784 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14785 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14786 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789 cat >conftest.$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14791 #include "confdefs.h"
14793 #ifdef TIME_WITH_SYS_TIME
14794 #include <sys/time.h>
14795 #include <time.h>
14796 #else
14797 #ifdef HAVE_SYS_TIME_H
14798 #include <sys/time.h>
14799 #else
14800 #include <time.h>
14801 #endif
14802 #endif
14803 #ifdef F77_DUMMY_MAIN
14804 # ifdef __cplusplus
14805 extern "C"
14806 # endif
14807 int F77_DUMMY_MAIN() { return 1; }
14808 #endif
14810 main ()
14812 struct timeval time;
14813 gettimeofday (&time, 0);
14815 return 0;
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 emacs_cv_gettimeofday_two_arguments=yes
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 emacs_cv_gettimeofday_two_arguments=no
14836 rm -f conftest.$ac_objext conftest.$ac_ext
14838 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14839 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14840 if test $emacs_cv_gettimeofday_two_arguments = no; then
14842 cat >>confdefs.h <<\_ACEOF
14843 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14844 _ACEOF
14850 if test "$ac_cv_func_gettimeofday" = yes; then
14851 echo "$as_me:$LINENO: checking for struct timezone" >&5
14852 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14853 if test "${emacs_cv_struct_timezone+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856 cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 #include "confdefs.h"
14859 #include <sys/time.h>
14860 #ifdef F77_DUMMY_MAIN
14861 # ifdef __cplusplus
14862 extern "C"
14863 # endif
14864 int F77_DUMMY_MAIN() { return 1; }
14865 #endif
14867 main ()
14869 struct timezone tz;
14871 return 0;
14873 _ACEOF
14874 rm -f conftest.$ac_objext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14876 (eval $ac_compile) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 if test "$cross_compiling" = yes; then
14887 emacs_cv_struct_timezone=yes
14888 else
14889 cat >conftest.$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14893 #ifdef TIME_WITH_SYS_TIME
14894 #include <sys/time.h>
14895 #include <time.h>
14896 #else
14897 #ifdef HAVE_SYS_TIME_H
14898 #include <sys/time.h>
14899 #else
14900 #include <time.h>
14901 #endif
14902 #endif
14903 main () {
14904 struct timeval time;
14905 struct timezone dummy;
14906 exit (gettimeofday (&time, &dummy));
14908 _ACEOF
14909 rm -f conftest$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 emacs_cv_struct_timezone=yes
14921 else
14922 echo "$as_me: program exited with status $ac_status" >&5
14923 echo "$as_me: failed program was:" >&5
14924 cat conftest.$ac_ext >&5
14925 ( exit $ac_status )
14926 emacs_cv_struct_timezone=no
14928 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 cat conftest.$ac_ext >&5
14933 emacs_cv_struct_timezone=no
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14937 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14938 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14941 ok_so_far=yes
14942 echo "$as_me:$LINENO: checking for socket" >&5
14943 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14944 if test "${ac_cv_func_socket+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 cat >conftest.$ac_ext <<_ACEOF
14948 #line $LINENO "configure"
14949 #include "confdefs.h"
14950 /* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char socket (); below. */
14952 #include <assert.h>
14953 /* Override any gcc2 internal prototype to avoid an error. */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char socket ();
14960 char (*f) ();
14962 #ifdef F77_DUMMY_MAIN
14963 # ifdef __cplusplus
14964 extern "C"
14965 # endif
14966 int F77_DUMMY_MAIN() { return 1; }
14967 #endif
14969 main ()
14971 /* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974 #if defined (__stub_socket) || defined (__stub___socket)
14975 choke me
14976 #else
14977 f = socket;
14978 #endif
14981 return 0;
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_func_socket=yes
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 cat conftest.$ac_ext >&5
15000 ac_cv_func_socket=no
15002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15004 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15005 echo "${ECHO_T}$ac_cv_func_socket" >&6
15006 if test $ac_cv_func_socket = yes; then
15008 else
15009 ok_so_far=no
15012 if test $ok_so_far = yes; then
15013 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15014 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15015 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15016 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15020 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15021 else
15022 # Is the header compilable?
15023 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15024 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15026 #line $LINENO "configure"
15027 #include "confdefs.h"
15028 $ac_includes_default
15029 #include <netinet/in.h>
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033 (eval $ac_compile) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_header_compiler=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 cat conftest.$ac_ext >&5
15047 ac_header_compiler=no
15049 rm -f conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15051 echo "${ECHO_T}$ac_header_compiler" >&6
15053 # Is the header present?
15054 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15055 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15056 cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 #include "confdefs.h"
15059 #include <netinet/in.h>
15060 _ACEOF
15061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15063 ac_status=$?
15064 egrep -v '^ *\+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } >/dev/null; then
15069 if test -s conftest.err; then
15070 ac_cpp_err=$ac_c_preproc_warn_flag
15071 else
15072 ac_cpp_err=
15074 else
15075 ac_cpp_err=yes
15077 if test -z "$ac_cpp_err"; then
15078 ac_header_preproc=yes
15079 else
15080 echo "$as_me: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 ac_header_preproc=no
15084 rm -f conftest.err conftest.$ac_ext
15085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086 echo "${ECHO_T}$ac_header_preproc" >&6
15088 # So? What about this header?
15089 case $ac_header_compiler:$ac_header_preproc in
15090 yes:no )
15091 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15092 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15094 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15095 no:yes )
15096 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15097 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15099 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15101 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15102 esac
15103 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15104 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15105 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 ac_cv_header_netinet_in_h=$ac_header_preproc
15110 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15111 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15114 if test $ac_cv_header_netinet_in_h = yes; then
15116 else
15117 ok_so_far=no
15122 if test $ok_so_far = yes; then
15123 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15124 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15125 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15126 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15130 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15131 else
15132 # Is the header compilable?
15133 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15134 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15136 #line $LINENO "configure"
15137 #include "confdefs.h"
15138 $ac_includes_default
15139 #include <arpa/inet.h>
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143 (eval $ac_compile) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_header_compiler=yes
15154 else
15155 echo "$as_me: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15157 ac_header_compiler=no
15159 rm -f conftest.$ac_objext conftest.$ac_ext
15160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15161 echo "${ECHO_T}$ac_header_compiler" >&6
15163 # Is the header present?
15164 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15165 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15166 cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 #include "confdefs.h"
15169 #include <arpa/inet.h>
15170 _ACEOF
15171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15173 ac_status=$?
15174 egrep -v '^ *\+' conftest.er1 >conftest.err
15175 rm -f conftest.er1
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } >/dev/null; then
15179 if test -s conftest.err; then
15180 ac_cpp_err=$ac_c_preproc_warn_flag
15181 else
15182 ac_cpp_err=
15184 else
15185 ac_cpp_err=yes
15187 if test -z "$ac_cpp_err"; then
15188 ac_header_preproc=yes
15189 else
15190 echo "$as_me: failed program was:" >&5
15191 cat conftest.$ac_ext >&5
15192 ac_header_preproc=no
15194 rm -f conftest.err conftest.$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15196 echo "${ECHO_T}$ac_header_preproc" >&6
15198 # So? What about this header?
15199 case $ac_header_compiler:$ac_header_preproc in
15200 yes:no )
15201 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15202 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15204 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15205 no:yes )
15206 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15207 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15209 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15211 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15212 esac
15213 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15214 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15215 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218 ac_cv_header_arpa_inet_h=$ac_header_preproc
15220 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15221 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15224 if test $ac_cv_header_arpa_inet_h = yes; then
15226 else
15227 ok_so_far=no
15232 if test $ok_so_far = yes; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_INET_SOCKETS 1
15236 _ACEOF
15240 if test -f /usr/lpp/X11/bin/smt.exp; then
15242 cat >>confdefs.h <<\_ACEOF
15243 #define HAVE_AIX_SMT_EXP 1
15244 _ACEOF
15248 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15249 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15250 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15251 echo "$as_me:$LINENO: result: yes" >&5
15252 echo "${ECHO_T}yes" >&6
15254 cat >>confdefs.h <<\_ACEOF
15255 #define HAVE_DEV_PTMX 1
15256 _ACEOF
15258 else
15259 echo "$as_me:$LINENO: result: no" >&5
15260 echo "${ECHO_T}no" >&6
15263 echo "$as_me:$LINENO: checking for pid_t" >&5
15264 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15265 if test "${ac_cv_type_pid_t+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268 cat >conftest.$ac_ext <<_ACEOF
15269 #line $LINENO "configure"
15270 #include "confdefs.h"
15271 $ac_includes_default
15272 #ifdef F77_DUMMY_MAIN
15273 # ifdef __cplusplus
15274 extern "C"
15275 # endif
15276 int F77_DUMMY_MAIN() { return 1; }
15277 #endif
15279 main ()
15281 if ((pid_t *) 0)
15282 return 0;
15283 if (sizeof (pid_t))
15284 return 0;
15286 return 0;
15288 _ACEOF
15289 rm -f conftest.$ac_objext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15291 (eval $ac_compile) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_cv_type_pid_t=yes
15302 else
15303 echo "$as_me: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15305 ac_cv_type_pid_t=no
15307 rm -f conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15310 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15311 if test $ac_cv_type_pid_t = yes; then
15313 else
15315 cat >>confdefs.h <<_ACEOF
15316 #define pid_t int
15317 _ACEOF
15323 for ac_header in unistd.h vfork.h
15325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15327 echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334 else
15335 # Is the header compilable?
15336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15338 cat >conftest.$ac_ext <<_ACEOF
15339 #line $LINENO "configure"
15340 #include "confdefs.h"
15341 $ac_includes_default
15342 #include <$ac_header>
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -s conftest.$ac_objext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_header_compiler=yes
15357 else
15358 echo "$as_me: failed program was:" >&5
15359 cat conftest.$ac_ext >&5
15360 ac_header_compiler=no
15362 rm -f conftest.$ac_objext conftest.$ac_ext
15363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15364 echo "${ECHO_T}$ac_header_compiler" >&6
15366 # Is the header present?
15367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15370 #line $LINENO "configure"
15371 #include "confdefs.h"
15372 #include <$ac_header>
15373 _ACEOF
15374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15376 ac_status=$?
15377 egrep -v '^ *\+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } >/dev/null; then
15382 if test -s conftest.err; then
15383 ac_cpp_err=$ac_c_preproc_warn_flag
15384 else
15385 ac_cpp_err=
15387 else
15388 ac_cpp_err=yes
15390 if test -z "$ac_cpp_err"; then
15391 ac_header_preproc=yes
15392 else
15393 echo "$as_me: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15395 ac_header_preproc=no
15397 rm -f conftest.err conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc in
15403 yes:no )
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15408 no:yes )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15415 esac
15416 echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421 eval "$as_ac_Header=$ac_header_preproc"
15423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15428 cat >>confdefs.h <<_ACEOF
15429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15430 _ACEOF
15434 done
15438 for ac_func in fork vfork
15440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15441 echo "$as_me:$LINENO: checking for $ac_func" >&5
15442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15443 if eval "test \"\${$as_ac_var+set}\" = set"; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 #include "confdefs.h"
15449 /* System header to define __stub macros and hopefully few prototypes,
15450 which can conflict with char $ac_func (); below. */
15451 #include <assert.h>
15452 /* Override any gcc2 internal prototype to avoid an error. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15458 char $ac_func ();
15459 char (*f) ();
15461 #ifdef F77_DUMMY_MAIN
15462 # ifdef __cplusplus
15463 extern "C"
15464 # endif
15465 int F77_DUMMY_MAIN() { return 1; }
15466 #endif
15468 main ()
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15474 choke me
15475 #else
15476 f = $ac_func;
15477 #endif
15480 return 0;
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15485 (eval $ac_link) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -s conftest$ac_exeext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 eval "$as_ac_var=yes"
15496 else
15497 echo "$as_me: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 eval "$as_ac_var=no"
15501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15505 if test `eval echo '${'$as_ac_var'}'` = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15508 _ACEOF
15511 done
15513 ac_cv_func_fork_works=$ac_cv_func_fork
15514 if test "x$ac_cv_func_fork" = xyes; then
15515 echo "$as_me:$LINENO: checking for working fork" >&5
15516 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15517 if test "${ac_cv_func_fork_works+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520 if test "$cross_compiling" = yes; then
15521 ac_cv_func_fork_works=cross
15522 else
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* By Ruediger Kuhlmann. */
15525 #include <sys/types.h>
15526 #if HAVE_UNISTD_H
15527 # include <unistd.h>
15528 #endif
15529 /* Some systems only have a dummy stub for fork() */
15530 int main ()
15532 if (fork() < 0)
15533 exit (1);
15534 exit (0);
15536 _ACEOF
15537 rm -f conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_func_fork_works=yes
15549 else
15550 echo "$as_me: program exited with status $ac_status" >&5
15551 echo "$as_me: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15553 ( exit $ac_status )
15554 ac_cv_func_fork_works=no
15556 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15559 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15560 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15563 if test "x$ac_cv_func_fork_works" = xcross; then
15564 case $host in
15565 *-*-amigaos* | *-*-msdosdjgpp*)
15566 # Override, as these systems have only a dummy fork() stub
15567 ac_cv_func_fork_works=no
15570 ac_cv_func_fork_works=yes
15572 esac
15573 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15574 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15576 ac_cv_func_vfork_works=$ac_cv_func_vfork
15577 if test "x$ac_cv_func_vfork" = xyes; then
15578 echo "$as_me:$LINENO: checking for working vfork" >&5
15579 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15580 if test "${ac_cv_func_vfork_works+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583 if test "$cross_compiling" = yes; then
15584 ac_cv_func_vfork_works=cross
15585 else
15586 cat >conftest.$ac_ext <<_ACEOF
15587 #line $LINENO "configure"
15588 #include "confdefs.h"
15589 /* Thanks to Paul Eggert for this test. */
15590 #include <stdio.h>
15591 #include <sys/types.h>
15592 #include <sys/stat.h>
15593 #if HAVE_UNISTD_H
15594 # include <unistd.h>
15595 #endif
15596 #if HAVE_VFORK_H
15597 # include <vfork.h>
15598 #endif
15599 /* On some sparc systems, changes by the child to local and incoming
15600 argument registers are propagated back to the parent. The compiler
15601 is told about this with #include <vfork.h>, but some compilers
15602 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15603 static variable whose address is put into a register that is
15604 clobbered by the vfork. */
15605 static
15606 #ifdef __cplusplus
15607 sparc_address_test (int arg)
15608 # else
15609 sparc_address_test (arg) int arg;
15610 #endif
15612 static pid_t child;
15613 if (!child) {
15614 child = vfork ();
15615 if (child < 0) {
15616 perror ("vfork");
15617 _exit(2);
15619 if (!child) {
15620 arg = getpid();
15621 write(-1, "", 0);
15622 _exit (arg);
15628 main ()
15630 pid_t parent = getpid ();
15631 pid_t child;
15633 sparc_address_test ();
15635 child = vfork ();
15637 if (child == 0) {
15638 /* Here is another test for sparc vfork register problems. This
15639 test uses lots of local variables, at least as many local
15640 variables as main has allocated so far including compiler
15641 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15642 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15643 reuse the register of parent for one of the local variables,
15644 since it will think that parent can't possibly be used any more
15645 in this routine. Assigning to the local variable will thus
15646 munge parent in the parent process. */
15647 pid_t
15648 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15649 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15650 /* Convince the compiler that p..p7 are live; otherwise, it might
15651 use the same hardware register for all 8 local variables. */
15652 if (p != p1 || p != p2 || p != p3 || p != p4
15653 || p != p5 || p != p6 || p != p7)
15654 _exit(1);
15656 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15657 from child file descriptors. If the child closes a descriptor
15658 before it execs or exits, this munges the parent's descriptor
15659 as well. Test for this by closing stdout in the child. */
15660 _exit(close(fileno(stdout)) != 0);
15661 } else {
15662 int status;
15663 struct stat st;
15665 while (wait(&status) != child)
15667 exit(
15668 /* Was there some problem with vforking? */
15669 child < 0
15671 /* Did the child fail? (This shouldn't happen.) */
15672 || status
15674 /* Did the vfork/compiler bug occur? */
15675 || parent != getpid()
15677 /* Did the file descriptor bug occur? */
15678 || fstat(fileno(stdout), &st) != 0
15682 _ACEOF
15683 rm -f conftest$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_func_vfork_works=yes
15695 else
15696 echo "$as_me: program exited with status $ac_status" >&5
15697 echo "$as_me: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15699 ( exit $ac_status )
15700 ac_cv_func_vfork_works=no
15702 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15705 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15706 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15709 if test "x$ac_cv_func_fork_works" = xcross; then
15710 ac_cv_func_vfork_works=ac_cv_func_vfork
15711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15712 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15715 if test "x$ac_cv_func_vfork_works" = xyes; then
15717 cat >>confdefs.h <<\_ACEOF
15718 #define HAVE_WORKING_VFORK 1
15719 _ACEOF
15721 else
15723 cat >>confdefs.h <<\_ACEOF
15724 #define vfork fork
15725 _ACEOF
15728 if test "x$ac_cv_func_fork_works" = xyes; then
15730 cat >>confdefs.h <<\_ACEOF
15731 #define HAVE_WORKING_FORK 1
15732 _ACEOF
15737 # Fixme: This should be replaced when we have autoconf 2.14.
15738 echo "$as_me:$LINENO: checking for size_t" >&5
15739 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15740 if test "${ac_cv_type_size_t+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743 cat >conftest.$ac_ext <<_ACEOF
15744 #line $LINENO "configure"
15745 #include "confdefs.h"
15746 $ac_includes_default
15747 #ifdef F77_DUMMY_MAIN
15748 # ifdef __cplusplus
15749 extern "C"
15750 # endif
15751 int F77_DUMMY_MAIN() { return 1; }
15752 #endif
15754 main ()
15756 if ((size_t *) 0)
15757 return 0;
15758 if (sizeof (size_t))
15759 return 0;
15761 return 0;
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_type_size_t=yes
15777 else
15778 echo "$as_me: failed program was:" >&5
15779 cat conftest.$ac_ext >&5
15780 ac_cv_type_size_t=no
15782 rm -f conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15785 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15786 if test $ac_cv_type_size_t = yes; then
15788 else
15790 cat >>confdefs.h <<_ACEOF
15791 #define size_t unsigned
15792 _ACEOF
15797 # Set up the CFLAGS for real compilation, so we can substitute it.
15798 CFLAGS="$REAL_CFLAGS"
15799 CPPFLAGS="$REAL_CPPFLAGS"
15801 #### Find out which version of Emacs this is.
15802 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15803 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15804 if test x"${version}" = x; then
15805 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15806 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15807 { (exit 1); exit 1; }; }
15810 ### Specify what sort of things we'll be editing into Makefile and config.h.
15811 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15846 cat >>confdefs.h <<_ACEOF
15847 #define EMACS_CONFIGURATION "${canonical}"
15848 _ACEOF
15851 cat >>confdefs.h <<_ACEOF
15852 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15853 _ACEOF
15856 cat >>confdefs.h <<_ACEOF
15857 #define config_machfile "${machfile}"
15858 _ACEOF
15861 cat >>confdefs.h <<_ACEOF
15862 #define config_opsysfile "${opsysfile}"
15863 _ACEOF
15866 cat >>confdefs.h <<_ACEOF
15867 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15868 _ACEOF
15871 cat >>confdefs.h <<_ACEOF
15872 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15873 _ACEOF
15876 cat >>confdefs.h <<_ACEOF
15877 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15878 _ACEOF
15881 cat >>confdefs.h <<_ACEOF
15882 #define UNEXEC_SRC ${UNEXEC_SRC}
15883 _ACEOF
15886 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_X_WINDOWS 1
15890 _ACEOF
15893 if test "${USE_X_TOOLKIT}" != "none" ; then
15895 cat >>confdefs.h <<\_ACEOF
15896 #define USE_X_TOOLKIT 1
15897 _ACEOF
15900 if test "${HAVE_X11}" = "yes" ; then
15902 cat >>confdefs.h <<\_ACEOF
15903 #define HAVE_X11 1
15904 _ACEOF
15907 if test "${HAVE_XFREE386}" = "yes" ; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_XFREE386 1
15911 _ACEOF
15914 if test "${HAVE_MENUS}" = "yes" ; then
15916 cat >>confdefs.h <<\_ACEOF
15917 #define HAVE_MENUS 1
15918 _ACEOF
15921 if test "${GNU_MALLOC}" = "yes" ; then
15923 cat >>confdefs.h <<\_ACEOF
15924 #define GNU_MALLOC 1
15925 _ACEOF
15928 if test "${REL_ALLOC}" = "yes" ; then
15930 cat >>confdefs.h <<\_ACEOF
15931 #define REL_ALLOC 1
15932 _ACEOF
15937 for ac_header in nlist.h
15939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15941 echo "$as_me:$LINENO: checking for $ac_header" >&5
15942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15948 else
15949 # Is the header compilable?
15950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15952 cat >conftest.$ac_ext <<_ACEOF
15953 #line $LINENO "configure"
15954 #include "confdefs.h"
15955 $ac_includes_default
15956 #include <$ac_header>
15957 _ACEOF
15958 rm -f conftest.$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
15964 { ac_try='test -s conftest.$ac_objext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler=yes
15971 else
15972 echo "$as_me: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15974 ac_header_compiler=no
15976 rm -f conftest.$ac_objext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6
15980 # Is the header present?
15981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15985 #include "confdefs.h"
15986 #include <$ac_header>
15987 _ACEOF
15988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15990 ac_status=$?
15991 egrep -v '^ *\+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } >/dev/null; then
15996 if test -s conftest.err; then
15997 ac_cpp_err=$ac_c_preproc_warn_flag
15998 else
15999 ac_cpp_err=
16001 else
16002 ac_cpp_err=yes
16004 if test -z "$ac_cpp_err"; then
16005 ac_header_preproc=yes
16006 else
16007 echo "$as_me: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16009 ac_header_preproc=no
16011 rm -f conftest.err conftest.$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc in
16017 yes:no )
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16022 no:yes )
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16029 esac
16030 echo "$as_me:$LINENO: checking for $ac_header" >&5
16031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035 eval "$as_ac_Header=$ac_header_preproc"
16037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16042 cat >>confdefs.h <<_ACEOF
16043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16044 _ACEOF
16046 cat >>confdefs.h <<\_ACEOF
16047 #define NLIST_STRUCT 1
16048 _ACEOF
16052 done
16059 #### Report on what we decided to do.
16060 echo "
16061 Configured for \`${canonical}'.
16063 Where should the build process find the source code? ${srcdir}
16064 What operating system and machine description files should Emacs use?
16065 \`${opsysfile}' and \`${machfile}'
16066 What compiler should emacs be built with? ${CC} ${CFLAGS}
16067 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16068 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16069 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16070 What window system should Emacs use? ${window_system}
16071 What toolkit should Emacs use? ${USE_X_TOOLKIT}
16072 Should Emacs use a shared game state directory? ${gamedir}"
16074 if test -n "${x_includes}"; then
16075 echo " Where do we find X Windows header files? ${x_includes}"
16076 else
16077 echo " Where do we find X Windows header files? Standard dirs"
16079 if test -n "${x_libraries}"; then
16080 echo " Where do we find X Windows libraries? ${x_libraries}"
16081 else
16082 echo " Where do we find X Windows libraries? Standard dirs"
16085 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16086 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16087 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16088 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16089 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16090 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16091 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16092 echo
16094 # Remove any trailing slashes in these variables.
16095 test "${prefix}" != NONE &&
16096 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16097 test "${exec_prefix}" != NONE &&
16098 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16100 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16101 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16102 ## from Makefile.c can correctly provide the arg `-traditional' to the
16103 ## C preprocessor.
16105 cat >conftest.$ac_ext <<_ACEOF
16106 #line $LINENO "configure"
16107 #include "confdefs.h"
16108 yes..yes
16109 _ACEOF
16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16111 egrep "yes..yes" >/dev/null 2>&1; then
16112 CPP_NEED_TRADITIONAL=no
16113 else
16114 CPP_NEED_TRADITIONAL=yes
16116 rm -f conftest*
16119 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
16120 ac_config_commands="$ac_config_commands default"
16121 cat >confcache <<\_ACEOF
16122 # This file is a shell script that caches the results of configure
16123 # tests run on this system so they can be shared between configure
16124 # scripts and configure runs, see configure's option --config-cache.
16125 # It is not useful on other systems. If it contains results you don't
16126 # want to keep, you may remove or edit it.
16128 # config.status only pays attention to the cache file if you give it
16129 # the --recheck option to rerun configure.
16131 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16133 # following values.
16135 _ACEOF
16137 # The following way of writing the cache mishandles newlines in values,
16138 # but we know of no workaround that is simple, portable, and efficient.
16139 # So, don't put newlines in cache variables' values.
16140 # Ultrix sh set writes to stderr and can't be redirected directly,
16141 # and sets the high bit in the cache file unless we assign to the vars.
16143 (set) 2>&1 |
16144 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16145 *ac_space=\ *)
16146 # `set' does not quote correctly, so add quotes (double-quote
16147 # substitution turns \\\\ into \\, and sed turns \\ into \).
16148 sed -n \
16149 "s/'/'\\\\''/g;
16150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16153 # `set' quotes correctly as required by POSIX, so do not add quotes.
16154 sed -n \
16155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16157 esac;
16159 sed '
16160 t clear
16161 : clear
16162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16163 t end
16164 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16165 : end' >>confcache
16166 if cmp -s $cache_file confcache; then :; else
16167 if test -w $cache_file; then
16168 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16169 cat confcache >$cache_file
16170 else
16171 echo "not updating unwritable cache $cache_file"
16174 rm -f confcache
16176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16177 # Let make expand exec_prefix.
16178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16180 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16181 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16182 # trailing colons and then remove the whole line if VPATH becomes empty
16183 # (actually we leave an empty line to preserve line numbers).
16184 if test "x$srcdir" = x.; then
16185 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16186 s/:*\$(srcdir):*/:/;
16187 s/:*\${srcdir}:*/:/;
16188 s/:*@srcdir@:*/:/;
16189 s/^\([^=]*=[ ]*\):*/\1/;
16190 s/:*$//;
16191 s/^[^=]*=[ ]*$//;
16195 DEFS=-DHAVE_CONFIG_H
16198 : ${CONFIG_STATUS=./config.status}
16199 ac_clean_files_save=$ac_clean_files
16200 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16201 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16202 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16203 cat >$CONFIG_STATUS <<_ACEOF
16204 #! $SHELL
16205 # Generated by $as_me.
16206 # Run this file to recreate the current configuration.
16207 # Compiler output produced by configure, useful for debugging
16208 # configure, is in config.log if it exists.
16210 debug=false
16211 SHELL=\${CONFIG_SHELL-$SHELL}
16212 _ACEOF
16214 cat >>$CONFIG_STATUS <<\_ACEOF
16216 ## --------------------- ##
16217 ## M4sh Initialization. ##
16218 ## --------------------- ##
16220 # Be Bourne compatible
16221 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16222 emulate sh
16223 NULLCMD=:
16224 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16225 set -o posix
16228 # NLS nuisances.
16229 # Support unset when possible.
16230 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16231 as_unset=unset
16232 else
16233 as_unset=false
16236 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16237 { $as_unset LANG || test "${LANG+set}" != set; } ||
16238 { LANG=C; export LANG; }
16239 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16240 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16241 { LC_ALL=C; export LC_ALL; }
16242 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16243 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16244 { LC_TIME=C; export LC_TIME; }
16245 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16246 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16247 { LC_CTYPE=C; export LC_CTYPE; }
16248 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16249 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16250 { LANGUAGE=C; export LANGUAGE; }
16251 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16252 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16253 { LC_COLLATE=C; export LC_COLLATE; }
16254 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16255 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16256 { LC_NUMERIC=C; export LC_NUMERIC; }
16257 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16258 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16259 { LC_MESSAGES=C; export LC_MESSAGES; }
16262 # Name of the executable.
16263 as_me=`(basename "$0") 2>/dev/null ||
16264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16265 X"$0" : 'X\(//\)$' \| \
16266 X"$0" : 'X\(/\)$' \| \
16267 . : '\(.\)' 2>/dev/null ||
16268 echo X/"$0" |
16269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16270 /^X\/\(\/\/\)$/{ s//\1/; q; }
16271 /^X\/\(\/\).*/{ s//\1/; q; }
16272 s/.*/./; q'`
16274 # PATH needs CR, and LINENO needs CR and PATH.
16275 # Avoid depending upon Character Ranges.
16276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16279 as_cr_digits='0123456789'
16280 as_cr_alnum=$as_cr_Letters$as_cr_digits
16282 # The user is always right.
16283 if test "${PATH_SEPARATOR+set}" != set; then
16284 echo "#! /bin/sh" >conftest.sh
16285 echo "exit 0" >>conftest.sh
16286 chmod +x conftest.sh
16287 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16288 PATH_SEPARATOR=';'
16289 else
16290 PATH_SEPARATOR=:
16292 rm -f conftest.sh
16296 as_lineno_1=$LINENO
16297 as_lineno_2=$LINENO
16298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16299 test "x$as_lineno_1" != "x$as_lineno_2" &&
16300 test "x$as_lineno_3" = "x$as_lineno_2" || {
16301 # Find who we are. Look in the path if we contain no path at all
16302 # relative or not.
16303 case $0 in
16304 *[\\/]* ) as_myself=$0 ;;
16305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16306 for as_dir in $PATH
16308 IFS=$as_save_IFS
16309 test -z "$as_dir" && as_dir=.
16310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16311 done
16314 esac
16315 # We did not find ourselves, most probably we were run as `sh COMMAND'
16316 # in which case we are not to be found in the path.
16317 if test "x$as_myself" = x; then
16318 as_myself=$0
16320 if test ! -f "$as_myself"; then
16321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16323 { (exit 1); exit 1; }; }
16325 case $CONFIG_SHELL in
16327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16330 IFS=$as_save_IFS
16331 test -z "$as_dir" && as_dir=.
16332 for as_base in sh bash ksh sh5; do
16333 case $as_dir in
16335 if ("$as_dir/$as_base" -c '
16336 as_lineno_1=$LINENO
16337 as_lineno_2=$LINENO
16338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16339 test "x$as_lineno_1" != "x$as_lineno_2" &&
16340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16341 CONFIG_SHELL=$as_dir/$as_base
16342 export CONFIG_SHELL
16343 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16344 fi;;
16345 esac
16346 done
16347 done
16349 esac
16351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16352 # uniformly replaced by the line number. The first 'sed' inserts a
16353 # line-number line before each line; the second 'sed' does the real
16354 # work. The second script uses 'N' to pair each line-number line
16355 # with the numbered line, and appends trailing '-' during
16356 # substitution so that $LINENO is not a special case at line end.
16357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16358 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16359 sed '=' <$as_myself |
16360 sed '
16362 s,$,-,
16363 : loop
16364 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16365 t loop
16366 s,-$,,
16367 s,^['$as_cr_digits']*\n,,
16368 ' >$as_me.lineno &&
16369 chmod +x $as_me.lineno ||
16370 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16371 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16372 { (exit 1); exit 1; }; }
16374 # Don't try to exec as it changes $[0], causing all sort of problems
16375 # (the dirname of $[0] is not the place where we might find the
16376 # original and so on. Autoconf is especially sensible to this).
16377 . ./$as_me.lineno
16378 # Exit status is that of the last command.
16379 exit
16383 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16384 *c*,-n*) ECHO_N= ECHO_C='
16385 ' ECHO_T=' ' ;;
16386 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16387 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16388 esac
16390 if expr a : '\(a\)' >/dev/null 2>&1; then
16391 as_expr=expr
16392 else
16393 as_expr=false
16396 rm -f conf$$ conf$$.exe conf$$.file
16397 echo >conf$$.file
16398 if ln -s conf$$.file conf$$ 2>/dev/null; then
16399 # We could just check for DJGPP; but this test a) works b) is more generic
16400 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16401 if test -f conf$$.exe; then
16402 # Don't use ln at all; we don't have any links
16403 as_ln_s='cp -p'
16404 else
16405 as_ln_s='ln -s'
16407 elif ln conf$$.file conf$$ 2>/dev/null; then
16408 as_ln_s=ln
16409 else
16410 as_ln_s='cp -p'
16412 rm -f conf$$ conf$$.exe conf$$.file
16414 as_executable_p="test -f"
16416 # Sed expression to map a string onto a valid CPP name.
16417 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16419 # Sed expression to map a string onto a valid variable name.
16420 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16423 # IFS
16424 # We need space, tab and new line, in precisely that order.
16425 as_nl='
16427 IFS=" $as_nl"
16429 # CDPATH.
16430 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16432 exec 6>&1
16434 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16435 # report actual input values of CONFIG_FILES etc. instead of their
16436 # values after options handling. Logging --version etc. is OK.
16437 exec 5>>config.log
16439 echo
16440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16441 ## Running $as_me. ##
16442 _ASBOX
16443 } >&5
16444 cat >&5 <<_CSEOF
16446 This file was extended by $as_me, which was
16447 generated by GNU Autoconf 2.53. Invocation command line was
16449 CONFIG_FILES = $CONFIG_FILES
16450 CONFIG_HEADERS = $CONFIG_HEADERS
16451 CONFIG_LINKS = $CONFIG_LINKS
16452 CONFIG_COMMANDS = $CONFIG_COMMANDS
16453 $ $0 $@
16455 _CSEOF
16456 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16457 echo >&5
16458 _ACEOF
16460 # Files that config.status was made for.
16461 if test -n "$ac_config_files"; then
16462 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16465 if test -n "$ac_config_headers"; then
16466 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16469 if test -n "$ac_config_links"; then
16470 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16473 if test -n "$ac_config_commands"; then
16474 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16477 cat >>$CONFIG_STATUS <<\_ACEOF
16479 ac_cs_usage="\
16480 \`$as_me' instantiates files from templates according to the
16481 current configuration.
16483 Usage: $0 [OPTIONS] [FILE]...
16485 -h, --help print this help, then exit
16486 -V, --version print version number, then exit
16487 -d, --debug don't remove temporary files
16488 --recheck update $as_me by reconfiguring in the same conditions
16489 --file=FILE[:TEMPLATE]
16490 instantiate the configuration file FILE
16491 --header=FILE[:TEMPLATE]
16492 instantiate the configuration header FILE
16494 Configuration files:
16495 $config_files
16497 Configuration headers:
16498 $config_headers
16500 Configuration commands:
16501 $config_commands
16503 Report bugs to <bug-autoconf@gnu.org>."
16504 _ACEOF
16506 cat >>$CONFIG_STATUS <<_ACEOF
16507 ac_cs_version="\\
16508 config.status
16509 configured by $0, generated by GNU Autoconf 2.53,
16510 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16512 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16513 Free Software Foundation, Inc.
16514 This config.status script is free software; the Free Software Foundation
16515 gives unlimited permission to copy, distribute and modify it."
16516 srcdir=$srcdir
16517 INSTALL="$INSTALL"
16518 _ACEOF
16520 cat >>$CONFIG_STATUS <<\_ACEOF
16521 # If no file are specified by the user, then we need to provide default
16522 # value. By we need to know if files were specified by the user.
16523 ac_need_defaults=:
16524 while test $# != 0
16526 case $1 in
16527 --*=*)
16528 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16529 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16530 shift
16531 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16532 shift
16534 -*);;
16535 *) # This is not an option, so the user has probably given explicit
16536 # arguments.
16537 ac_need_defaults=false;;
16538 esac
16540 case $1 in
16541 # Handling of the options.
16542 _ACEOF
16543 cat >>$CONFIG_STATUS <<_ACEOF
16544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16545 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16546 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16547 _ACEOF
16548 cat >>$CONFIG_STATUS <<\_ACEOF
16549 --version | --vers* | -V )
16550 echo "$ac_cs_version"; exit 0 ;;
16551 --he | --h)
16552 # Conflict between --help and --header
16553 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16554 Try \`$0 --help' for more information." >&5
16555 echo "$as_me: error: ambiguous option: $1
16556 Try \`$0 --help' for more information." >&2;}
16557 { (exit 1); exit 1; }; };;
16558 --help | --hel | -h )
16559 echo "$ac_cs_usage"; exit 0 ;;
16560 --debug | --d* | -d )
16561 debug=: ;;
16562 --file | --fil | --fi | --f )
16563 shift
16564 CONFIG_FILES="$CONFIG_FILES $1"
16565 ac_need_defaults=false;;
16566 --header | --heade | --head | --hea )
16567 shift
16568 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16569 ac_need_defaults=false;;
16571 # This is an error.
16572 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16573 Try \`$0 --help' for more information." >&5
16574 echo "$as_me: error: unrecognized option: $1
16575 Try \`$0 --help' for more information." >&2;}
16576 { (exit 1); exit 1; }; } ;;
16578 *) ac_config_targets="$ac_config_targets $1" ;;
16580 esac
16581 shift
16582 done
16584 _ACEOF
16586 cat >>$CONFIG_STATUS <<_ACEOF
16588 # INIT-COMMANDS section.
16591 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16593 _ACEOF
16597 cat >>$CONFIG_STATUS <<\_ACEOF
16598 for ac_config_target in $ac_config_targets
16600 case "$ac_config_target" in
16601 # Handling of arguments.
16602 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16603 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16604 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16605 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16606 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16607 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16608 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16609 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
16610 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
16611 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16612 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16613 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16614 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16615 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16616 { (exit 1); exit 1; }; };;
16617 esac
16618 done
16620 # If the user did not use the arguments to specify the items to instantiate,
16621 # then the envvar interface is used. Set only those that are not.
16622 # We use the long form for the default assignment because of an extremely
16623 # bizarre bug on SunOS 4.1.3.
16624 if $ac_need_defaults; then
16625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16630 # Create a temporary directory, and hook for its removal unless debugging.
16631 $debug ||
16633 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16634 trap '{ (exit 1); exit 1; }' 1 2 13 15
16637 # Create a (secure) tmp directory for tmp files.
16638 : ${TMPDIR=/tmp}
16640 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16641 test -n "$tmp" && test -d "$tmp"
16642 } ||
16644 tmp=$TMPDIR/cs$$-$RANDOM
16645 (umask 077 && mkdir $tmp)
16646 } ||
16648 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16649 { (exit 1); exit 1; }
16652 _ACEOF
16654 cat >>$CONFIG_STATUS <<_ACEOF
16657 # CONFIG_FILES section.
16660 # No need to generate the scripts if there are no CONFIG_FILES.
16661 # This happens for instance when ./config.status config.h
16662 if test -n "\$CONFIG_FILES"; then
16663 # Protect against being on the right side of a sed subst in config.status.
16664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16666 s,@SHELL@,$SHELL,;t t
16667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16673 s,@exec_prefix@,$exec_prefix,;t t
16674 s,@prefix@,$prefix,;t t
16675 s,@program_transform_name@,$program_transform_name,;t t
16676 s,@bindir@,$bindir,;t t
16677 s,@sbindir@,$sbindir,;t t
16678 s,@libexecdir@,$libexecdir,;t t
16679 s,@datadir@,$datadir,;t t
16680 s,@sysconfdir@,$sysconfdir,;t t
16681 s,@sharedstatedir@,$sharedstatedir,;t t
16682 s,@localstatedir@,$localstatedir,;t t
16683 s,@libdir@,$libdir,;t t
16684 s,@includedir@,$includedir,;t t
16685 s,@oldincludedir@,$oldincludedir,;t t
16686 s,@infodir@,$infodir,;t t
16687 s,@mandir@,$mandir,;t t
16688 s,@build_alias@,$build_alias,;t t
16689 s,@host_alias@,$host_alias,;t t
16690 s,@target_alias@,$target_alias,;t t
16691 s,@DEFS@,$DEFS,;t t
16692 s,@ECHO_C@,$ECHO_C,;t t
16693 s,@ECHO_N@,$ECHO_N,;t t
16694 s,@ECHO_T@,$ECHO_T,;t t
16695 s,@LIBS@,$LIBS,;t t
16696 s,@build@,$build,;t t
16697 s,@build_cpu@,$build_cpu,;t t
16698 s,@build_vendor@,$build_vendor,;t t
16699 s,@build_os@,$build_os,;t t
16700 s,@host@,$host,;t t
16701 s,@host_cpu@,$host_cpu,;t t
16702 s,@host_vendor@,$host_vendor,;t t
16703 s,@host_os@,$host_os,;t t
16704 s,@CC@,$CC,;t t
16705 s,@CFLAGS@,$CFLAGS,;t t
16706 s,@LDFLAGS@,$LDFLAGS,;t t
16707 s,@CPPFLAGS@,$CPPFLAGS,;t t
16708 s,@ac_ct_CC@,$ac_ct_CC,;t t
16709 s,@EXEEXT@,$EXEEXT,;t t
16710 s,@OBJEXT@,$OBJEXT,;t t
16711 s,@LN_S@,$LN_S,;t t
16712 s,@CPP@,$CPP,;t t
16713 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16714 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16715 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16716 s,@YACC@,$YACC,;t t
16717 s,@RANLIB@,$RANLIB,;t t
16718 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16719 s,@LIBSOUND@,$LIBSOUND,;t t
16720 s,@SET_MAKE@,$SET_MAKE,;t t
16721 s,@ALLOCA@,$ALLOCA,;t t
16722 s,@liblockfile@,$liblockfile,;t t
16723 s,@LIBOBJS@,$LIBOBJS,;t t
16724 s,@NEED_SETGID@,$NEED_SETGID,;t t
16725 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16726 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16727 s,@version@,$version,;t t
16728 s,@configuration@,$configuration,;t t
16729 s,@canonical@,$canonical,;t t
16730 s,@srcdir@,$srcdir,;t t
16731 s,@lispdir@,$lispdir,;t t
16732 s,@locallisppath@,$locallisppath,;t t
16733 s,@lisppath@,$lisppath,;t t
16734 s,@x_default_search_path@,$x_default_search_path,;t t
16735 s,@etcdir@,$etcdir,;t t
16736 s,@archlibdir@,$archlibdir,;t t
16737 s,@docdir@,$docdir,;t t
16738 s,@bitmapdir@,$bitmapdir,;t t
16739 s,@gamedir@,$gamedir,;t t
16740 s,@gameuser@,$gameuser,;t t
16741 s,@c_switch_system@,$c_switch_system,;t t
16742 s,@c_switch_machine@,$c_switch_machine,;t t
16743 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16744 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16745 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16746 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16747 s,@machfile@,$machfile,;t t
16748 s,@opsysfile@,$opsysfile,;t t
16749 CEOF
16751 _ACEOF
16753 cat >>$CONFIG_STATUS <<\_ACEOF
16754 # Split the substitutions into bite-sized pieces for seds with
16755 # small command number limits, like on Digital OSF/1 and HP-UX.
16756 ac_max_sed_lines=48
16757 ac_sed_frag=1 # Number of current file.
16758 ac_beg=1 # First line for current file.
16759 ac_end=$ac_max_sed_lines # Line after last line for current file.
16760 ac_more_lines=:
16761 ac_sed_cmds=
16762 while $ac_more_lines; do
16763 if test $ac_beg -gt 1; then
16764 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16765 else
16766 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16768 if test ! -s $tmp/subs.frag; then
16769 ac_more_lines=false
16770 else
16771 # The purpose of the label and of the branching condition is to
16772 # speed up the sed processing (if there are no `@' at all, there
16773 # is no need to browse any of the substitutions).
16774 # These are the two extra sed commands mentioned above.
16775 (echo ':t
16776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16777 if test -z "$ac_sed_cmds"; then
16778 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16779 else
16780 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16782 ac_sed_frag=`expr $ac_sed_frag + 1`
16783 ac_beg=$ac_end
16784 ac_end=`expr $ac_end + $ac_max_sed_lines`
16786 done
16787 if test -z "$ac_sed_cmds"; then
16788 ac_sed_cmds=cat
16790 fi # test -n "$CONFIG_FILES"
16792 _ACEOF
16793 cat >>$CONFIG_STATUS <<\_ACEOF
16794 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16796 case $ac_file in
16797 - | *:- | *:-:* ) # input from stdin
16798 cat >$tmp/stdin
16799 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16801 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16803 * ) ac_file_in=$ac_file.in ;;
16804 esac
16806 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16807 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16809 X"$ac_file" : 'X\(//\)[^/]' \| \
16810 X"$ac_file" : 'X\(//\)$' \| \
16811 X"$ac_file" : 'X\(/\)' \| \
16812 . : '\(.\)' 2>/dev/null ||
16813 echo X"$ac_file" |
16814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16816 /^X\(\/\/\)$/{ s//\1/; q; }
16817 /^X\(\/\).*/{ s//\1/; q; }
16818 s/.*/./; q'`
16819 { case "$ac_dir" in
16820 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16821 *) as_incr_dir=.;;
16822 esac
16823 as_dummy="$ac_dir"
16824 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16825 case $as_mkdir_dir in
16826 # Skip DOS drivespec
16827 ?:) as_incr_dir=$as_mkdir_dir ;;
16829 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16830 test -d "$as_incr_dir" ||
16831 mkdir "$as_incr_dir" ||
16832 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16833 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16834 { (exit 1); exit 1; }; }
16836 esac
16837 done; }
16839 ac_builddir=.
16841 if test "$ac_dir" != .; then
16842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16843 # A "../" for each directory in $ac_dir_suffix.
16844 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16845 else
16846 ac_dir_suffix= ac_top_builddir=
16849 case $srcdir in
16850 .) # No --srcdir option. We are building in place.
16851 ac_srcdir=.
16852 if test -z "$ac_top_builddir"; then
16853 ac_top_srcdir=.
16854 else
16855 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16856 fi ;;
16857 [\\/]* | ?:[\\/]* ) # Absolute path.
16858 ac_srcdir=$srcdir$ac_dir_suffix;
16859 ac_top_srcdir=$srcdir ;;
16860 *) # Relative path.
16861 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16862 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16863 esac
16864 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16865 # absolute.
16866 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16867 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16868 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16869 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16872 case $INSTALL in
16873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16874 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16875 esac
16877 if test x"$ac_file" != x-; then
16878 { echo "$as_me:$LINENO: creating $ac_file" >&5
16879 echo "$as_me: creating $ac_file" >&6;}
16880 rm -f "$ac_file"
16882 # Let's still pretend it is `configure' which instantiates (i.e., don't
16883 # use $as_me), people would be surprised to read:
16884 # /* config.h. Generated by config.status. */
16885 if test x"$ac_file" = x-; then
16886 configure_input=
16887 else
16888 configure_input="$ac_file. "
16890 configure_input=$configure_input"Generated from `echo $ac_file_in |
16891 sed 's,.*/,,'` by configure."
16893 # First look for the input files in the build tree, otherwise in the
16894 # src tree.
16895 ac_file_inputs=`IFS=:
16896 for f in $ac_file_in; do
16897 case $f in
16898 -) echo $tmp/stdin ;;
16899 [\\/$]*)
16900 # Absolute (can't be DOS-style, as IFS=:)
16901 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16902 echo "$as_me: error: cannot find input file: $f" >&2;}
16903 { (exit 1); exit 1; }; }
16904 echo $f;;
16905 *) # Relative
16906 if test -f "$f"; then
16907 # Build tree
16908 echo $f
16909 elif test -f "$srcdir/$f"; then
16910 # Source tree
16911 echo $srcdir/$f
16912 else
16913 # /dev/null tree
16914 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16915 echo "$as_me: error: cannot find input file: $f" >&2;}
16916 { (exit 1); exit 1; }; }
16917 fi;;
16918 esac
16919 done` || { (exit 1); exit 1; }
16920 _ACEOF
16921 cat >>$CONFIG_STATUS <<_ACEOF
16922 sed "$ac_vpsub
16923 $extrasub
16924 _ACEOF
16925 cat >>$CONFIG_STATUS <<\_ACEOF
16927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16928 s,@configure_input@,$configure_input,;t t
16929 s,@srcdir@,$ac_srcdir,;t t
16930 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16931 s,@top_srcdir@,$ac_top_srcdir,;t t
16932 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16933 s,@builddir@,$ac_builddir,;t t
16934 s,@abs_builddir@,$ac_abs_builddir,;t t
16935 s,@top_builddir@,$ac_top_builddir,;t t
16936 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16937 s,@INSTALL@,$ac_INSTALL,;t t
16938 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16939 rm -f $tmp/stdin
16940 if test x"$ac_file" != x-; then
16941 mv $tmp/out $ac_file
16942 else
16943 cat $tmp/out
16944 rm -f $tmp/out
16947 done
16948 _ACEOF
16949 cat >>$CONFIG_STATUS <<\_ACEOF
16952 # CONFIG_HEADER section.
16955 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16956 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16958 # ac_d sets the value in "#define NAME VALUE" lines.
16959 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16960 ac_dB='[ ].*$,\1#\2'
16961 ac_dC=' '
16962 ac_dD=',;t'
16963 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16964 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16965 ac_uB='$,\1#\2define\3'
16966 ac_uC=' '
16967 ac_uD=',;t'
16969 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16971 case $ac_file in
16972 - | *:- | *:-:* ) # input from stdin
16973 cat >$tmp/stdin
16974 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16976 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16978 * ) ac_file_in=$ac_file.in ;;
16979 esac
16981 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16982 echo "$as_me: creating $ac_file" >&6;}
16984 # First look for the input files in the build tree, otherwise in the
16985 # src tree.
16986 ac_file_inputs=`IFS=:
16987 for f in $ac_file_in; do
16988 case $f in
16989 -) echo $tmp/stdin ;;
16990 [\\/$]*)
16991 # Absolute (can't be DOS-style, as IFS=:)
16992 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16993 echo "$as_me: error: cannot find input file: $f" >&2;}
16994 { (exit 1); exit 1; }; }
16995 echo $f;;
16996 *) # Relative
16997 if test -f "$f"; then
16998 # Build tree
16999 echo $f
17000 elif test -f "$srcdir/$f"; then
17001 # Source tree
17002 echo $srcdir/$f
17003 else
17004 # /dev/null tree
17005 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17006 echo "$as_me: error: cannot find input file: $f" >&2;}
17007 { (exit 1); exit 1; }; }
17008 fi;;
17009 esac
17010 done` || { (exit 1); exit 1; }
17011 # Remove the trailing spaces.
17012 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17014 _ACEOF
17016 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17017 # `conftest.undefs', that substitutes the proper values into
17018 # config.h.in to produce config.h. The first handles `#define'
17019 # templates, and the second `#undef' templates.
17020 # And first: Protect against being on the right side of a sed subst in
17021 # config.status. Protect against being in an unquoted here document
17022 # in config.status.
17023 rm -f conftest.defines conftest.undefs
17024 # Using a here document instead of a string reduces the quoting nightmare.
17025 # Putting comments in sed scripts is not portable.
17027 # `end' is used to avoid that the second main sed command (meant for
17028 # 0-ary CPP macros) applies to n-ary macro definitions.
17029 # See the Autoconf documentation for `clear'.
17030 cat >confdef2sed.sed <<\_ACEOF
17031 s/[\\&,]/\\&/g
17032 s,[\\$`],\\&,g
17033 t clear
17034 : clear
17035 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17036 t end
17037 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17038 : end
17039 _ACEOF
17040 # If some macros were called several times there might be several times
17041 # the same #defines, which is useless. Nevertheless, we may not want to
17042 # sort them, since we want the *last* AC-DEFINE to be honored.
17043 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17044 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17045 rm -f confdef2sed.sed
17047 # This sed command replaces #undef with comments. This is necessary, for
17048 # example, in the case of _POSIX_SOURCE, which is predefined and required
17049 # on some systems where configure will not decide to define it.
17050 cat >>conftest.undefs <<\_ACEOF
17051 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17052 _ACEOF
17054 # Break up conftest.defines because some shells have a limit on the size
17055 # of here documents, and old seds have small limits too (100 cmds).
17056 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17057 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17058 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17059 echo ' :' >>$CONFIG_STATUS
17060 rm -f conftest.tail
17061 while grep . conftest.defines >/dev/null
17063 # Write a limited-size here document to $tmp/defines.sed.
17064 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17065 # Speed up: don't consider the non `#define' lines.
17066 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17067 # Work around the forget-to-reset-the-flag bug.
17068 echo 't clr' >>$CONFIG_STATUS
17069 echo ': clr' >>$CONFIG_STATUS
17070 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17071 echo 'CEOF
17072 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17073 rm -f $tmp/in
17074 mv $tmp/out $tmp/in
17075 ' >>$CONFIG_STATUS
17076 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17077 rm -f conftest.defines
17078 mv conftest.tail conftest.defines
17079 done
17080 rm -f conftest.defines
17081 echo ' fi # egrep' >>$CONFIG_STATUS
17082 echo >>$CONFIG_STATUS
17084 # Break up conftest.undefs because some shells have a limit on the size
17085 # of here documents, and old seds have small limits too (100 cmds).
17086 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17087 rm -f conftest.tail
17088 while grep . conftest.undefs >/dev/null
17090 # Write a limited-size here document to $tmp/undefs.sed.
17091 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17092 # Speed up: don't consider the non `#undef'
17093 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17094 # Work around the forget-to-reset-the-flag bug.
17095 echo 't clr' >>$CONFIG_STATUS
17096 echo ': clr' >>$CONFIG_STATUS
17097 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17098 echo 'CEOF
17099 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17100 rm -f $tmp/in
17101 mv $tmp/out $tmp/in
17102 ' >>$CONFIG_STATUS
17103 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17104 rm -f conftest.undefs
17105 mv conftest.tail conftest.undefs
17106 done
17107 rm -f conftest.undefs
17109 cat >>$CONFIG_STATUS <<\_ACEOF
17110 # Let's still pretend it is `configure' which instantiates (i.e., don't
17111 # use $as_me), people would be surprised to read:
17112 # /* config.h. Generated by config.status. */
17113 if test x"$ac_file" = x-; then
17114 echo "/* Generated by configure. */" >$tmp/config.h
17115 else
17116 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17118 cat $tmp/in >>$tmp/config.h
17119 rm -f $tmp/in
17120 if test x"$ac_file" != x-; then
17121 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17122 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17123 echo "$as_me: $ac_file is unchanged" >&6;}
17124 else
17125 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17127 X"$ac_file" : 'X\(//\)[^/]' \| \
17128 X"$ac_file" : 'X\(//\)$' \| \
17129 X"$ac_file" : 'X\(/\)' \| \
17130 . : '\(.\)' 2>/dev/null ||
17131 echo X"$ac_file" |
17132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17134 /^X\(\/\/\)$/{ s//\1/; q; }
17135 /^X\(\/\).*/{ s//\1/; q; }
17136 s/.*/./; q'`
17137 { case "$ac_dir" in
17138 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17139 *) as_incr_dir=.;;
17140 esac
17141 as_dummy="$ac_dir"
17142 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17143 case $as_mkdir_dir in
17144 # Skip DOS drivespec
17145 ?:) as_incr_dir=$as_mkdir_dir ;;
17147 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17148 test -d "$as_incr_dir" ||
17149 mkdir "$as_incr_dir" ||
17150 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17151 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17152 { (exit 1); exit 1; }; }
17154 esac
17155 done; }
17157 rm -f $ac_file
17158 mv $tmp/config.h $ac_file
17160 else
17161 cat $tmp/config.h
17162 rm -f $tmp/config.h
17164 done
17165 _ACEOF
17166 cat >>$CONFIG_STATUS <<\_ACEOF
17169 # CONFIG_COMMANDS section.
17171 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17172 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17173 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17174 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17175 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$ac_dest" : 'X\(//\)[^/]' \| \
17177 X"$ac_dest" : 'X\(//\)$' \| \
17178 X"$ac_dest" : 'X\(/\)' \| \
17179 . : '\(.\)' 2>/dev/null ||
17180 echo X"$ac_dest" |
17181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17183 /^X\(\/\/\)$/{ s//\1/; q; }
17184 /^X\(\/\).*/{ s//\1/; q; }
17185 s/.*/./; q'`
17186 ac_builddir=.
17188 if test "$ac_dir" != .; then
17189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17190 # A "../" for each directory in $ac_dir_suffix.
17191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17192 else
17193 ac_dir_suffix= ac_top_builddir=
17196 case $srcdir in
17197 .) # No --srcdir option. We are building in place.
17198 ac_srcdir=.
17199 if test -z "$ac_top_builddir"; then
17200 ac_top_srcdir=.
17201 else
17202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17203 fi ;;
17204 [\\/]* | ?:[\\/]* ) # Absolute path.
17205 ac_srcdir=$srcdir$ac_dir_suffix;
17206 ac_top_srcdir=$srcdir ;;
17207 *) # Relative path.
17208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17209 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17210 esac
17211 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17212 # absolute.
17213 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17214 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17215 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17216 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17219 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17220 echo "$as_me: executing $ac_dest commands" >&6;}
17221 case $ac_dest in
17222 default )
17224 ### Make the necessary directories, if they don't exist.
17225 for dir in etc lisp ; do
17226 test -d ${dir} || mkdir ${dir}
17227 done
17229 # Build src/Makefile from ${srcdir}/src/Makefile.c
17230 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17231 # This must be done after src/config.h is built, since we rely on that file.
17233 # Now get this: Some word that is part of the ${srcdir} directory name
17234 # or the ${configuration} value might, just might, happen to be an
17235 # identifier like `sun4' or `i386' or something, and be predefined by
17236 # the C preprocessor to some helpful value like 1, or maybe the empty
17237 # string. Needless to say consequent macro substitutions are less
17238 # than conducive to the makefile finding the correct directory.
17239 undefs="`echo $top_srcdir $configuration $canonical |
17240 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17241 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17244 echo creating src/epaths.h
17245 ${MAKE-make} epaths-force
17247 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17248 # `..' to `. .' unless invoked with -traditional
17250 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
17251 CPPFLAGS="$CPPFLAGS -traditional"
17254 echo creating lib-src/Makefile
17255 ( cd lib-src
17256 rm -f junk.c junk1.c junk2.c
17257 sed -e '/start of cpp stuff/q' \
17258 < Makefile.c > junk1.c
17259 sed -e '1,/start of cpp stuff/d'\
17260 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17261 < Makefile.c > junk.c
17262 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17263 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17264 cat junk1.c junk2.c > Makefile.new
17265 rm -f junk.c junk1.c junk2.c
17266 chmod 444 Makefile.new
17267 mv -f Makefile.new Makefile
17270 echo creating src/Makefile
17271 ( cd src
17272 rm -f junk.c junk1.c junk2.c
17273 sed -e '/start of cpp stuff/q' \
17274 < Makefile.c > junk1.c
17275 sed -e '1,/start of cpp stuff/d'\
17276 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17277 < Makefile.c > junk.c
17278 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17279 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17280 cat junk1.c junk2.c > Makefile.new
17281 rm -f junk.c junk1.c junk2.c
17282 chmod 444 Makefile.new
17283 mv -f Makefile.new Makefile
17286 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17287 echo creating src/.gdbinit
17288 echo source $srcdir/src/.gdbinit > src/.gdbinit
17291 # This is how we know whether to re-run configure in certain cases.
17292 touch src/config.stamp
17295 esac
17296 done
17297 _ACEOF
17299 cat >>$CONFIG_STATUS <<\_ACEOF
17301 { (exit 0); exit 0; }
17302 _ACEOF
17303 chmod +x $CONFIG_STATUS
17304 ac_clean_files=$ac_clean_files_save
17307 # configure is writing to config.log, and then calls config.status.
17308 # config.status does its own redirection, appending to config.log.
17309 # Unfortunately, on DOS this fails, as config.log is still kept open
17310 # by configure, so config.status won't be able to write to it; its
17311 # output is simply discarded. So we exec the FD to /dev/null,
17312 # effectively closing config.log, so it can be properly (re)opened and
17313 # appended to by config.status. When coming back to configure, we
17314 # need to make the FD available again.
17315 if test "$no_create" != yes; then
17316 ac_cs_success=:
17317 exec 5>/dev/null
17318 $SHELL $CONFIG_STATUS || ac_cs_success=false
17319 exec 5>>config.log
17320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17321 # would make configure fail if this is the last instruction.
17322 $ac_cs_success || { (exit 1); exit 1; }