* configure.in: Use -Wno-pointer-sign if available.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd "$ac_popdir"
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1723 ;;
1724
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1729
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1733
1734 fi
1735
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1752 ;;
1753
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1766 ;;
1767
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1775 ;;
1776
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1780 ;;
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1785 ;;
1786
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1802 ;;
1803
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1812 ;;
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1815 ;;
1816
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1832 ;;
1833
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1836 ;;
1837
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1840 ;;
1841
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1845 ;;
1846
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1850 ;;
1851
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1855 ;;
1856
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1860 ;;
1861
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1865 ;;
1866
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1870 ;;
1871
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1875 ;;
1876
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1880 ;;
1881
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1883
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1890 ;;
1891
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1899 ;;
1900
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1904 ;;
1905
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1911 ;;
1912
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1916 ;;
1917
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1921 ;;
1922
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1931 ;;
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1936 ;;
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1939 ;;
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1942 ;;
1943
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1949 ;;
1950
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1954 ;;
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1957 ;;
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1960 ;;
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1963 ;;
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1966 ;;
1967
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1976 fi
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1981 fi
1982 fi
1983 ;;
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1990 ;;
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1993 ;;
1994
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1998 ;;
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2001 ;;
2002
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2006 ;;
2007
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2011 ;;
2012
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2015
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2019 ;;
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2022 ;;
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2025 ;;
2026
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2036 ;;
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2040 ;;
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2045 ;;
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2049 ;;
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2052 ;;
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2056 ;;
2057
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2061 ;;
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2078 ;;
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2081 ;;
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2084 ;;
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2087 ;;
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2090 ;;
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2093 ;;
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2096 ;;
2097
2098 hppa*-*-linux-gnu* )
2099 machine=hp800 opsys=gnu-linux
2100 ;;
2101
2102 ## HP 9000 series 700 and 800, running HP/UX
2103 hppa*-hp-hpux* )
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2109 *.08.* ) machine=hp800 opsys=hpux8 ;;
2110 *.09.* ) machine=hp800 opsys=hpux9 ;;
2111 *) machine=hp800 opsys=hpux10 ;;
2112 esac
2113 ;;
2114 hppa*-*-nextstep* )
2115 machine=hp800 opsys=nextstep
2116 ;;
2117
2118 ## Orion machines
2119 orion-orion-bsd* )
2120 machine=orion opsys=bsd4-2
2121 ;;
2122 clipper-orion-bsd* )
2123 machine=orion105 opsys=bsd4-2
2124 ;;
2125
2126 ## IBM machines
2127 i[3456]86-ibm-aix1.1* )
2128 machine=ibmps2-aix opsys=usg5-2-2
2129 ;;
2130 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2131 machine=ibmps2-aix opsys=usg5-3
2132 ;;
2133 i370-ibm-aix*)
2134 machine=ibm370aix opsys=usg5-3
2135 ;;
2136 s390-*-linux-gnu* )
2137 machine=ibms390 opsys=gnu-linux
2138 ;;
2139 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2140 machine=ibmrs6000 opsys=aix3-1
2141 ;;
2142 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2143 machine=ibmrs6000 opsys=aix3-2-5
2144 ;;
2145 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2146 machine=ibmrs6000 opsys=aix4-1
2147 ;;
2148 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2149 machine=ibmrs6000 opsys=aix4-2
2150 ;;
2151 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2152 machine=ibmrs6000 opsys=aix4-2
2153 ;;
2154 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2155 machine=ibmrs6000 opsys=aix4
2156 ;;
2157 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2158 machine=ibmrs6000 opsys=aix4-1
2159 ;;
2160 rs6000-ibm-aix* | powerpc-ibm-aix* )
2161 machine=ibmrs6000 opsys=aix3-2
2162 ;;
2163 romp-ibm-bsd4.3* )
2164 machine=ibmrt opsys=bsd4-3
2165 ;;
2166 romp-ibm-bsd4.2* )
2167 machine=ibmrt opsys=bsd4-2
2168 ;;
2169 romp-ibm-aos4.3* )
2170 machine=ibmrt opsys=bsd4-3
2171 ;;
2172 romp-ibm-aos4.2* )
2173 machine=ibmrt opsys=bsd4-2
2174 ;;
2175 romp-ibm-aos* )
2176 machine=ibmrt opsys=bsd4-3
2177 ;;
2178 romp-ibm-bsd* )
2179 machine=ibmrt opsys=bsd4-3
2180 ;;
2181 romp-ibm-aix* )
2182 machine=ibmrt-aix opsys=usg5-2-2
2183 ;;
2184
2185 ## Integrated Solutions `Optimum V'
2186 m68*-isi-bsd4.2* )
2187 machine=isi-ov opsys=bsd4-2
2188 ;;
2189 m68*-isi-bsd4.3* )
2190 machine=isi-ov opsys=bsd4-3
2191 ;;
2192
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i[3456]86-intsys-sysv* )
2195 machine=is386 opsys=usg5-2-2
2196 ;;
2197
2198 ## Prime EXL
2199 i[3456]86-prime-sysv* )
2200 machine=i386 opsys=usg5-3
2201 ;;
2202
2203 ## Sequent Symmetry running Dynix
2204 i[3456]86-sequent-bsd* )
2205 machine=symmetry opsys=bsd4-3
2206 ;;
2207
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2210 machine=sequent-ptx opsys=ptx4
2211 NON_GNU_CPP=/lib/cpp
2212 ;;
2213
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i[3456]86-sequent-ptx* )
2217 machine=sequent-ptx opsys=ptx
2218 NON_GNU_CPP="/lib/cpp"
2219 ;;
2220
2221 ## ncr machine running svr4.3.
2222 i[3456]86-ncr-sysv4.3 )
2223 machine=ncr386 opsys=usg5-4-3
2224 ;;
2225
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i[3456]86-ncr-sysv* )
2229 machine=ncr386 opsys=usg5-4-2
2230 ;;
2231
2232 ## Intel Paragon OSF/1
2233 i860-intel-osf1* )
2234 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2235 ;;
2236
2237 ## Intel 860
2238 i860-*-sysv4* )
2239 machine=i860 opsys=usg5-4
2240 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2242 ;;
2243
2244 ## Macintosh PowerPC
2245 powerpc*-*-linux-gnu* )
2246 machine=macppc opsys=gnu-linux
2247 ;;
2248
2249 ## Masscomp machines
2250 m68*-masscomp-rtu* )
2251 machine=masscomp opsys=rtu
2252 ;;
2253
2254 ## Megatest machines
2255 m68*-megatest-bsd* )
2256 machine=mega68 opsys=bsd4-2
2257 ;;
2258
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2262
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2270 mips-mips-usg* )
2271 machine=mips4
2272 ## Fall through to the general code at the bottom to decide on the OS.
2273 ;;
2274 mips-mips-riscos4* )
2275 machine=mips4 opsys=bsd4-3
2276 NON_GNU_CC="cc -systype bsd43"
2277 NON_GNU_CPP="cc -systype bsd43 -E"
2278 ;;
2279 mips-mips-riscos5* )
2280 machine=mips4 opsys=riscos5
2281 NON_GNU_CC="cc -systype bsd43"
2282 NON_GNU_CPP="cc -systype bsd43 -E"
2283 ;;
2284 mips-mips-bsd* )
2285 machine=mips opsys=bsd4-3
2286 ;;
2287 mips-mips-* )
2288 machine=mips opsys=usg5-2-2
2289 ;;
2290
2291 ## NeXT
2292 m68*-next-* | m68k-*-nextstep* )
2293 machine=m68k opsys=nextstep
2294 ;;
2295
2296 ## The complete machine from National Semiconductor
2297 ns32k-ns-genix* )
2298 machine=ns32000 opsys=usg5-2
2299 ;;
2300
2301 ## NCR machines
2302 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2303 machine=tower32 opsys=usg5-2-2
2304 ;;
2305 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2306 machine=tower32v3 opsys=usg5-3
2307 ;;
2308
2309 ## NEC EWS4800
2310 mips-nec-sysv4*)
2311 machine=ews4800 opsys=ux4800
2312 ;;
2313
2314 ## Nixdorf Targon 31
2315 m68*-nixdorf-sysv* )
2316 machine=targon31 opsys=usg5-2-2
2317 ;;
2318
2319 ## Nu (TI or LMI)
2320 m68*-nu-sysv* )
2321 machine=nu opsys=usg5-2
2322 ;;
2323
2324 ## Plexus
2325 m68*-plexus-sysv* )
2326 machine=plexus opsys=usg5-2
2327 ;;
2328
2329 ## Pyramid machines
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd* )
2333 machine=pyramid opsys=bsd4-2
2334 ;;
2335
2336 ## Sequent Balance
2337 ns32k-sequent-bsd4.2* )
2338 machine=sequent opsys=bsd4-2
2339 ;;
2340 ns32k-sequent-bsd4.3* )
2341 machine=sequent opsys=bsd4-3
2342 ;;
2343
2344 ## Siemens Nixdorf
2345 mips-siemens-sysv* | mips-sni-sysv*)
2346 machine=mips-siemens opsys=usg5-4
2347 NON_GNU_CC=/usr/ccs/bin/cc
2348 NON_GNU_CPP=/usr/ccs/lib/cpp
2349 ;;
2350
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2353 m68*-sgi-iris3.5* )
2354 machine=irist opsys=iris3-5
2355 ;;
2356 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2357 machine=irist opsys=iris3-6
2358 ;;
2359 ## Iris 4D
2360 mips-sgi-irix3* )
2361 machine=iris4d opsys=irix3-3
2362 ;;
2363 mips-sgi-irix4* )
2364 machine=iris4d opsys=irix4-0
2365 ;;
2366 mips-sgi-irix6.5 )
2367 machine=iris4d opsys=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2373 ;;
2374 mips-sgi-irix6* )
2375 machine=iris4d opsys=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS=-32
2381 ;;
2382 mips-sgi-irix5.[01]* )
2383 machine=iris4d opsys=irix5-0
2384 ;;
2385 mips-sgi-irix5* | mips-sgi-irix* )
2386 machine=iris4d opsys=irix5-2
2387 ;;
2388
2389 ## SONY machines
2390 m68*-sony-bsd4.2* )
2391 machine=news opsys=bsd4-2
2392 ;;
2393 m68*-sony-bsd4.3* )
2394 machine=news opsys=bsd4-3
2395 ;;
2396 m68*-sony-newsos3* | m68*-sony-news3*)
2397 machine=news opsys=bsd4-3
2398 ;;
2399 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2400 machine=news-risc opsys=bsd4-3
2401 ;;
2402 mips-sony-newsos6* )
2403 machine=news-r6 opsys=newsos6
2404 ;;
2405 mips-sony-news* )
2406 machine=news-risc opsys=newsos5
2407 ;;
2408
2409 ## Stride
2410 m68*-stride-sysv* )
2411 machine=stride opsys=usg5-2
2412 ;;
2413
2414 ## Suns
2415 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2416 machine=sparc opsys=gnu-linux
2417 ;;
2418
2419 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2420 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2421 | rs6000-*-solaris2*)
2422 case "${canonical}" in
2423 m68*-sunos1* ) machine=sun1 ;;
2424 m68*-sunos2* ) machine=sun2 ;;
2425 m68* ) machine=sun3 ;;
2426 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2427 i[3456]86-*-* ) machine=intel386 ;;
2428 powerpcle* ) machine=powerpcle ;;
2429 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2430 sparc* ) machine=sparc ;;
2431 * ) unported=yes ;;
2432 esac
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2436 *-sunos4.0* ) opsys=sunos4-0 ;;
2437 *-sunos4.1.[3-9]*noshare )
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2440 opsys=sunos413
2441 NON_GNU_CPP=/usr/lib/cpp
2442 NON_GCC_TEST_OPTIONS=-Bstatic
2443 GCC_TEST_OPTIONS=-static
2444 ;;
2445 *-sunos4.1.[3-9]* | *-sunos4shr*)
2446 opsys=sunos4shr
2447 NON_GNU_CPP=/usr/lib/cpp
2448 ;;
2449 *-sunos4* | *-sunos )
2450 opsys=sunos4-1
2451 NON_GCC_TEST_OPTIONS=-Bstatic
2452 GCC_TEST_OPTIONS=-static
2453 ;;
2454 *-sunos5.3* | *-solaris2.3* )
2455 opsys=sol2-3
2456 NON_GNU_CPP=/usr/ccs/lib/cpp
2457 ;;
2458 *-sunos5.4* | *-solaris2.4* )
2459 opsys=sol2-4
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2462 ;;
2463 *-sunos5.5* | *-solaris2.5* )
2464 opsys=sol2-5
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2466 RANLIB="ar -ts"
2467 ;;
2468 *-sunos5.6* | *-solaris2.6* )
2469 opsys=sol2-6
2470 NON_GNU_CPP=/usr/ccs/lib/cpp
2471 RANLIB="ar -ts"
2472 ;;
2473 *-sunos5* | *-solaris* )
2474 opsys=sol2-6
2475 NON_GNU_CPP=/usr/ccs/lib/cpp
2476 ;;
2477 * ) opsys=bsd4-2 ;;
2478 esac
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* | *-sunos5* )
2482 if [ "x$CC" = x/usr/ucb/cc ]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2485 unset CC
2486 fi
2487 ;;
2488 *) ;;
2489 esac
2490 ;;
2491 sparc-*-nextstep* )
2492 machine=sparc opsys=nextstep
2493 ;;
2494
2495 ## Tadpole 68k
2496 m68*-tadpole-sysv* )
2497 machine=tad68k opsys=usg5-3
2498 ;;
2499
2500 ## Tahoe machines
2501 tahoe-tahoe-bsd4.2* )
2502 machine=tahoe opsys=bsd4-2
2503 ;;
2504 tahoe-tahoe-bsd4.3* )
2505 machine=tahoe opsys=bsd4-3
2506 ;;
2507
2508 ## Tandem Integrity S2
2509 mips-tandem-sysv* )
2510 machine=tandem-s2 opsys=usg5-3
2511 ;;
2512
2513 ## Tektronix XD88
2514 m88k-tektronix-sysv3* )
2515 machine=tekxd88 opsys=usg5-3
2516 ;;
2517
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd* )
2520 machine=ns16000 opsys=bsd4-2
2521 ;;
2522 ## Tektronix 4300
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68*-tektronix-bsd* )
2525 machine=tek4300 opsys=bsd4-3
2526 ;;
2527
2528 ## Titan P2 or P3
2529 ## We seem to have lost the machine-description file titan.h!
2530 titan-titan-sysv* )
2531 machine=titan opsys=usg5-3
2532 ;;
2533
2534 ## Ustation E30 (SS5E)
2535 m68*-unisys-uniplus* )
2536 machine=ustation opsystem=unipl5-2
2537 ;;
2538
2539 ## Vaxen.
2540 vax-dec-* )
2541 machine=vax
2542 case "${canonical}" in
2543 *-bsd4.1* ) opsys=bsd4-1 ;;
2544 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2545 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2546 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2547 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2548 *-vms* ) opsys=vms ;;
2549 * ) unported=yes
2550 esac
2551 ;;
2552
2553 ## Whitechapel MG1
2554 ns16k-whitechapel-* )
2555 machine=mg1
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2558 ;;
2559
2560 ## Wicat
2561 m68*-wicat-sysv* )
2562 machine=wicat opsys=usg5-2
2563 ;;
2564
2565 ## IA-64
2566 ia64*-*-linux* )
2567 machine=ia64 opsys=gnu-linux
2568 ;;
2569
2570 ## Intel 386 machines where we don't care about the manufacturer
2571 i[3456]86-*-* )
2572 machine=intel386
2573 case "${canonical}" in
2574 *-cygwin ) opsys=cygwin ;;
2575 *-darwin* ) opsys=darwin
2576 CPP="${CC-cc} -E -no-cpp-precomp"
2577 ;;
2578 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2579 *-isc2.2* ) opsys=isc2-2 ;;
2580 *-isc4.0* ) opsys=isc4-0 ;;
2581 *-isc4.* ) opsys=isc4-1
2582 GCC_TEST_OPTIONS=-posix
2583 NON_GCC_TEST_OPTIONS=-Xp
2584 ;;
2585 *-isc* ) opsys=isc3-0 ;;
2586 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2587 *-esix* ) opsys=esix ;;
2588 *-xenix* ) opsys=xenix ;;
2589 *-linux-gnu* ) opsys=gnu-linux ;;
2590 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2591 *-sco3.2v5* ) opsys=sco5
2592 NON_GNU_CPP=/lib/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS=" "
2596 ;;
2597 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2598 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2599 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2600 *-386bsd* ) opsys=386bsd ;;
2601 *-nextstep* ) opsys=nextstep ;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2603 esac
2604 ;;
2605
2606 ## m68k Linux-based GNU system
2607 m68k-*-linux-gnu* )
2608 machine=m68k opsys=gnu-linux
2609 ;;
2610
2611 ## Mips Linux-based GNU system
2612 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2613 machine=mips opsys=gnu-linux
2614 ;;
2615
2616 ## UXP/DS
2617 sparc-fujitsu-sysv4* )
2618 machine=sparc opsys=uxpds
2619 NON_GNU_CPP=/usr/ccs/lib/cpp
2620 RANLIB="ar -ts"
2621 ;;
2622
2623 ## UXP/V
2624 f301-fujitsu-uxpv4.1)
2625 machine=f301 opsys=uxpv
2626 ;;
2627
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin* )
2630 machine=powermac opsys=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw/include && test -d /sw/lib; then
2635 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2636 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2638 fi
2639 ;;
2640
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-*-linux-gnu* )
2643 machine=amdx86-64 opsys=gnu-linux
2644 ;;
2645
2646 * )
2647 unported=yes
2648 ;;
2649 esac
2650
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2656 ### above.
2657 if test x"${opsys}" = x; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys=gnu ;;
2660 *-bsd4.[01] ) opsys=bsd4-1 ;;
2661 *-bsd4.2 ) opsys=bsd4-2 ;;
2662 *-bsd4.3 ) opsys=bsd4-3 ;;
2663 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2664 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2665 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2666 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2667 *-sysv4.2uw* ) opsys=unixware ;;
2668 *-sysv5uw* ) opsys=unixware ;;
2669 *-sysv5OpenUNIX* ) opsys=unixware ;;
2670 *-sysv4.1* | *-sysvr4.1* )
2671 NON_GNU_CPP=/usr/lib/cpp
2672 opsys=usg5-4 ;;
2673 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2674 if [ x$NON_GNU_CPP = x ]; then
2675 if [ -f /usr/ccs/lib/cpp ]; then
2676 NON_GNU_CPP=/usr/ccs/lib/cpp
2677 else
2678 NON_GNU_CPP=/lib/cpp
2679 fi
2680 fi
2681 opsys=usg5-4-2 ;;
2682 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2683 * )
2684 unported=yes
2685 ;;
2686 esac
2687 fi
2688
2689
2690
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2697 fi
2698
2699 machfile="m/${machine}.h"
2700 opsysfile="s/${opsys}.h"
2701
2702
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified=yes
2705
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS="$CFLAGS"
2708
2709 case ${with_gcc} in
2710 "yes" ) CC="gcc" GCC=yes ;;
2711 "no" ) : ${CC=cc} ;;
2712 * )
2713 esac
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2753 fi
2754
2755 fi
2756 if test -z "$ac_cv_prog_CC"; then
2757 ac_ct_CC=$CC
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779 done
2780 done
2781
2782 fi
2783 fi
2784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2788 else
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791 fi
2792
2793 CC=$ac_ct_CC
2794 else
2795 CC="$ac_cv_prog_CC"
2796 fi
2797
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cc; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2830 else
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2833 fi
2834
2835 fi
2836 if test -z "$ac_cv_prog_CC"; then
2837 ac_ct_CC=$CC
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859 done
2860 done
2861
2862 fi
2863 fi
2864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873 CC=$ac_ct_CC
2874 else
2875 CC="$ac_cv_prog_CC"
2876 fi
2877
2878 fi
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2901 fi
2902 ac_cv_prog_CC="cc"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy $ac_cv_prog_CC
2912 shift
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2917 shift
2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919 fi
2920 fi
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2927 else
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2930 fi
2931
2932 fi
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in cl
2936 do
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2967 else
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2970 fi
2971
2972 test -n "$CC" && break
2973 done
2974 fi
2975 if test -z "$CC"; then
2976 ac_ct_CC=$CC
2977 for ac_prog in cl
2978 do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002
3003 fi
3004 fi
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3012 fi
3013
3014 test -n "$ac_ct_CC" && break
3015 done
3016
3017 CC=$ac_ct_CC
3018 fi
3019
3020 fi
3021
3022
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3028
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev/null >&5) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev/null >&5) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev/null >&5) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3079 # resort.
3080
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3083 ac_cv_exeext=
3084 # b.out is created by i960 compilers.
3085 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3086 do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3090 ;;
3091 conftest.$ac_ext )
3092 # This is the source file.
3093 ;;
3094 [ab].out )
3095 # We found the default executable, but exeext='' is most
3096 # certainly right.
3097 break;;
3098 *.* )
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3103 export ac_cv_exeext
3104 break;;
3105 * )
3106 break;;
3107 esac
3108 done
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3118 fi
3119
3120 ac_exeext=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3123
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 cross_compiling=no
3138 else
3139 if test "$cross_compiling" = maybe; then
3140 cross_compiling=yes
3141 else
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3149 fi
3150 fi
3151 fi
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3154
3155 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3156 ac_clean_files=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3163
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3174 # `rm'.
3175 for ac_file in conftest.exe conftest conftest.*; do
3176 test -f "$ac_file" || continue
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3179 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 export ac_cv_exeext
3181 break;;
3182 * ) break;;
3183 esac
3184 done
3185 else
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3191 fi
3192
3193 rm -f conftest$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3196
3197 rm -f conftest.$ac_ext
3198 EXEEXT=$ac_cv_exeext
3199 ac_exeext=$EXEEXT
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 break;;
3231 esac
3232 done
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245 fi
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT=$ac_cv_objext
3249 ac_objext=$OBJEXT
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265 #ifndef __GNUC__
3266 choke me
3267 #endif
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_compiler_gnu=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 ac_compiler_gnu=no
3300 fi
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304 fi
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 CFLAGS="-g"
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_prog_cc_g=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 ac_cv_prog_cc_g=no
3358 fi
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3367 CFLAGS="-g -O2"
3368 else
3369 CFLAGS="-g"
3370 fi
3371 else
3372 if test "$GCC" = yes; then
3373 CFLAGS="-O2"
3374 else
3375 CFLAGS=
3376 fi
3377 fi
3378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 ac_cv_prog_cc_stdc=no
3384 ac_save_CC=$CC
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <stdarg.h>
3392 #include <stdio.h>
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3399 char **p;
3400 int i;
3401 {
3402 return p[i];
3403 }
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3405 {
3406 char *s;
3407 va_list v;
3408 va_start (v,p);
3409 s = g (p, va_arg (v,int));
3410 va_end (v);
3411 return s;
3412 }
3413
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std1 is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std1. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422
3423 int test (int i, double x);
3424 struct s1 {int (*f) (int a);};
3425 struct s2 {int (*f) (double a);};
3426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3427 int argc;
3428 char **argv;
3429 int
3430 main ()
3431 {
3432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 # Don't try gcc -ansi; that turns off useful extensions and
3438 # breaks some systems' header files.
3439 # AIX -qlanglvl=ansi
3440 # Ultrix and OSF/1 -std1
3441 # HP-UX 10.20 and later -Ae
3442 # HP-UX older versions -Aa -D_HPUX_SOURCE
3443 # SVR4 -Xc -D__EXTENSIONS__
3444 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 do
3446 CC="$ac_save_CC $ac_arg"
3447 rm -f conftest.$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_prog_cc_stdc=$ac_arg
3469 break
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 fi
3475 rm -f conftest.err conftest.$ac_objext
3476 done
3477 rm -f conftest.$ac_ext conftest.$ac_objext
3478 CC=$ac_save_CC
3479
3480 fi
3481
3482 case "x$ac_cv_prog_cc_stdc" in
3483 x|xno)
3484 echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6 ;;
3486 *)
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3489 CC="$CC $ac_cv_prog_cc_stdc" ;;
3490 esac
3491
3492 # Some people use a C++ compiler to compile C. Since we use `exit',
3493 # in C++ we need to declare it. In case someone uses the same compiler
3494 # for both compiling C and C++ we need to have the C++ compiler decide
3495 # the declaration of exit, since it's the most demanding environment.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #ifndef __cplusplus
3498 choke me
3499 #endif
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 for ac_declaration in \
3523 '' \
3524 'extern "C" void std::exit (int) throw (); using std::exit;' \
3525 'extern "C" void std::exit (int); using std::exit;' \
3526 'extern "C" void exit (int) throw ();' \
3527 'extern "C" void exit (int);' \
3528 'void exit (int);'
3529 do
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 $ac_declaration
3537 #include <stdlib.h>
3538 int
3539 main ()
3540 {
3541 exit (42);
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 :
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 continue
3573 fi
3574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 $ac_declaration
3582 int
3583 main ()
3584 {
3585 exit (42);
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 break
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 fi
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 done
3619 rm -f conftest*
3620 if test -n "$ac_declaration"; then
3621 echo '#ifdef __cplusplus' >>confdefs.h
3622 echo $ac_declaration >>confdefs.h
3623 echo '#endif' >>confdefs.h
3624 fi
3625
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 fi
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638
3639 # On Suns, sometimes $CPP names a directory.
3640 if test -n "$CPP" && test -d "$CPP"; then
3641 CPP=
3642 fi
3643
3644 #### Some systems specify a CPP to use unless we are using GCC.
3645 #### Now that we know whether we are using GCC, we can decide whether
3646 #### to use that one.
3647 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3648 then
3649 CPP="$NON_GNU_CPP"
3650 fi
3651
3652 #### Some systems specify a CC to use unless we are using GCC.
3653 #### Now that we know whether we are using GCC, we can decide whether
3654 #### to use that one.
3655 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3656 test x$cc_specified != xyes
3657 then
3658 CC="$NON_GNU_CC"
3659 fi
3660
3661 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3662 then
3663 CC="$CC $GCC_TEST_OPTIONS"
3664 fi
3665
3666 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3667 then
3668 CC="$CC $NON_GCC_TEST_OPTIONS"
3669 fi
3670
3671 ### Use -Wno-pointer-sign if the compiler supports it
3672 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3673 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3674 SAVE_CFLAGS="$CFLAGS"
3675 CFLAGS="$CFLAGS -Wno-pointer-sign"
3676
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 has_option=yes
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 has_option=no
3719 fi
3720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 if test $has_option = yes; then
3722 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
3723 fi
3724 echo "$as_me:$LINENO: result: $has_option" >&5
3725 echo "${ECHO_T}$has_option" >&6
3726 CFLAGS="$SAVE_CFLAGS"
3727 unset has_option
3728 unset SAVE_CFLAGS
3729
3730 #### Some other nice autoconf tests.
3731
3732 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3734 LN_S=$as_ln_s
3735 if test "$LN_S" = "ln -s"; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3740 echo "${ECHO_T}no, using $LN_S" >&6
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752 CPP=
3753 fi
3754 if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 do
3761 ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3763 do
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781 Syntax error
3782 _ACEOF
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null; then
3791 if test -s conftest.err; then
3792 ac_cpp_err=$ac_c_preproc_warn_flag
3793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3794 else
3795 ac_cpp_err=
3796 fi
3797 else
3798 ac_cpp_err=yes
3799 fi
3800 if test -z "$ac_cpp_err"; then
3801 :
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 # Broken: fails on valid input.
3807 continue
3808 fi
3809 rm -f conftest.err conftest.$ac_ext
3810
3811 # OK, works on sane cases. Now check whether non-existent headers
3812 # can be detected and how.
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3820 _ACEOF
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev/null; then
3829 if test -s conftest.err; then
3830 ac_cpp_err=$ac_c_preproc_warn_flag
3831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3832 else
3833 ac_cpp_err=
3834 fi
3835 else
3836 ac_cpp_err=yes
3837 fi
3838 if test -z "$ac_cpp_err"; then
3839 # Broken: success on invalid input.
3840 continue
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 # Passes both tests.
3846 ac_preproc_ok=:
3847 break
3848 fi
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855 break
3856 fi
3857
3858 done
3859 ac_cv_prog_CPP=$CPP
3860
3861 fi
3862 CPP=$ac_cv_prog_CPP
3863 else
3864 ac_cv_prog_CPP=$CPP
3865 fi
3866 echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888 Syntax error
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev/null; then
3898 if test -s conftest.err; then
3899 ac_cpp_err=$ac_c_preproc_warn_flag
3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 else
3902 ac_cpp_err=
3903 fi
3904 else
3905 ac_cpp_err=yes
3906 fi
3907 if test -z "$ac_cpp_err"; then
3908 :
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 # Broken: fails on valid input.
3914 continue
3915 fi
3916 rm -f conftest.err conftest.$ac_ext
3917
3918 # OK, works on sane cases. Now check whether non-existent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3927 _ACEOF
3928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null; then
3936 if test -s conftest.err; then
3937 ac_cpp_err=$ac_c_preproc_warn_flag
3938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3939 else
3940 ac_cpp_err=
3941 fi
3942 else
3943 ac_cpp_err=yes
3944 fi
3945 if test -z "$ac_cpp_err"; then
3946 # Broken: success on invalid input.
3947 continue
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3955 fi
3956 rm -f conftest.err conftest.$ac_ext
3957
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then
3962 :
3963 else
3964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3969 fi
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977 # Find a good install program. We prefer a C program (faster),
3978 # so one script is as good as another. But avoid the broken or
3979 # incompatible versions:
3980 # SysV /etc/install, /usr/sbin/install
3981 # SunOS /usr/etc/install
3982 # IRIX /sbin/install
3983 # AIX /bin/install
3984 # AmigaOS /C/install, which installs bootblocks on floppy discs
3985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3988 # OS/2's system install, which has a completely different semantic
3989 # ./install, which can be erroneously created by make from ./install.sh.
3990 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3992 if test -z "$INSTALL"; then
3993 if test "${ac_cv_path_install+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 # Account for people who put trailing slashes in PATH elements.
4002 case $as_dir/ in
4003 ./ | .// | /cC/* | \
4004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4006 /usr/ucb/* ) ;;
4007 *)
4008 # OSF1 and SCO ODT 3.0 have their own names for install.
4009 # Don't use installbsd from OSF since it installs stuff as root
4010 # by default.
4011 for ac_prog in ginstall scoinst install; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4014 if test $ac_prog = install &&
4015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4016 # AIX install. It has an incompatible calling convention.
4017 :
4018 elif test $ac_prog = install &&
4019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4020 # program-specific install script used by HP pwplus--don't use.
4021 :
4022 else
4023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4024 break 3
4025 fi
4026 fi
4027 done
4028 done
4029 ;;
4030 esac
4031 done
4032
4033
4034 fi
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL=$ac_cv_path_install
4037 else
4038 # As a last resort, use the slow shell script. We don't cache a
4039 # path for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the path is relative.
4042 INSTALL=$ac_install_sh
4043 fi
4044 fi
4045 echo "$as_me:$LINENO: result: $INSTALL" >&5
4046 echo "${ECHO_T}$INSTALL" >&6
4047
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4051
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4053
4054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4055
4056 if test "x$RANLIB" = x; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_RANLIB+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 if test -n "$RANLIB"; then
4066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081
4082 fi
4083 fi
4084 RANLIB=$ac_cv_prog_RANLIB
4085 if test -n "$RANLIB"; then
4086 echo "$as_me:$LINENO: result: $RANLIB" >&5
4087 echo "${ECHO_T}$RANLIB" >&6
4088 else
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093 fi
4094 if test -z "$ac_cv_prog_RANLIB"; then
4095 ac_ct_RANLIB=$RANLIB
4096 # Extract the first word of "ranlib", so it can be a program name with args.
4097 set dummy ranlib; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 if test -n "$ac_ct_RANLIB"; then
4104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_ac_ct_RANLIB="ranlib"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119
4120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4121 fi
4122 fi
4123 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4124 if test -n "$ac_ct_RANLIB"; then
4125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4127 else
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132 RANLIB=$ac_ct_RANLIB
4133 else
4134 RANLIB="$ac_cv_prog_RANLIB"
4135 fi
4136
4137 fi
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 case $INSTALL_INFO in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4148 ;;
4149 *)
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163
4164 ;;
4165 esac
4166 fi
4167 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4168
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175 fi
4176
4177 # Extract the first word of "install-info", so it can be a program name with args.
4178 set dummy install-info; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 case $INSTALL_INFO in
4185 [\\/]* | ?:[\\/]*)
4186 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4187 ;;
4188 *)
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in /usr/sbin
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202
4203 ;;
4204 esac
4205 fi
4206 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4207
4208 if test -n "$INSTALL_INFO"; then
4209 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4210 echo "${ECHO_T}$INSTALL_INFO" >&6
4211 else
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4214 fi
4215
4216 # Extract the first word of "install-info", so it can be a program name with args.
4217 set dummy install-info; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 case $INSTALL_INFO in
4224 [\\/]* | ?:[\\/]*)
4225 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4226 ;;
4227 *)
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in /sbin
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241
4242 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4243 ;;
4244 esac
4245 fi
4246 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4247
4248 if test -n "$INSTALL_INFO"; then
4249 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4250 echo "${ECHO_T}$INSTALL_INFO" >&6
4251 else
4252 echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4254 fi
4255
4256 # Extract the first word of "gzip", so it can be a program name with args.
4257 set dummy gzip; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 case $GZIP_PROG in
4264 [\\/]* | ?:[\\/]*)
4265 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4266 ;;
4267 *)
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279 done
4280 done
4281
4282 ;;
4283 esac
4284 fi
4285 GZIP_PROG=$ac_cv_path_GZIP_PROG
4286
4287 if test -n "$GZIP_PROG"; then
4288 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4289 echo "${ECHO_T}$GZIP_PROG" >&6
4290 else
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4293 fi
4294
4295
4296
4297 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4298 then
4299 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4300 fi
4301
4302 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4303 then
4304 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4305 fi
4306
4307
4308 late_LDFLAGS=$LDFLAGS
4309 if test "$GCC" = yes; then
4310 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4311 else
4312 LDFLAGS="$LDFLAGS -znocombreloc"
4313 fi
4314
4315 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4316 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4317 cat >conftest.$ac_ext <<_ACEOF
4318 main(){return 0;}
4319 _ACEOF
4320 rm -f conftest.$ac_objext conftest$ac_exeext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4322 (eval $ac_link) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 LDFLAGS=$late_LDFLAGS
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351 rm -f conftest.err conftest.$ac_objext \
4352 conftest$ac_exeext conftest.$ac_ext
4353
4354
4355 echo "$as_me:$LINENO: checking for egrep" >&5
4356 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4357 if test "${ac_cv_prog_egrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4361 then ac_cv_prog_egrep='grep -E'
4362 else ac_cv_prog_egrep='egrep'
4363 fi
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4366 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4367 EGREP=$ac_cv_prog_egrep
4368
4369
4370
4371 echo "$as_me:$LINENO: checking for AIX" >&5
4372 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h. */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #ifdef _AIX
4380 yes
4381 #endif
4382
4383 _ACEOF
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 $EGREP "yes" >/dev/null 2>&1; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388 cat >>confdefs.h <<\_ACEOF
4389 #define _ALL_SOURCE 1
4390 _ACEOF
4391
4392 else
4393 echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4395 fi
4396 rm -f conftest*
4397
4398
4399
4400
4401 #### Extract some information from the operating system and machine files.
4402
4403 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4404 - which libraries the lib-src programs will want, and
4405 - whether the GNU malloc routines are usable..." >&5
4406 echo "$as_me: checking the machine- and system-dependent files to find out
4407 - which libraries the lib-src programs will want, and
4408 - whether the GNU malloc routines are usable..." >&6;}
4409
4410 ### First figure out CFLAGS (which we use for running the compiler here)
4411 ### and REAL_CFLAGS (which we use for real compilation).
4412 ### The two are the same except on a few systems, where they are made
4413 ### different to work around various lossages. For example,
4414 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4415 ### as implying static linking.
4416
4417 ### If the CFLAGS env var is specified, we use that value
4418 ### instead of the default.
4419
4420 ### It's not important that this name contain the PID; you can't run
4421 ### two configures in the same directory and have anything work
4422 ### anyway.
4423 tempcname="conftest.c"
4424
4425 echo '
4426 #include "'${srcdir}'/src/'${opsysfile}'"
4427 #include "'${srcdir}'/src/'${machfile}'"
4428 #ifndef LIBS_MACHINE
4429 #define LIBS_MACHINE
4430 #endif
4431 #ifndef LIBS_SYSTEM
4432 #define LIBS_SYSTEM
4433 #endif
4434 #ifndef C_SWITCH_SYSTEM
4435 #define C_SWITCH_SYSTEM
4436 #endif
4437 #ifndef C_SWITCH_MACHINE
4438 #define C_SWITCH_MACHINE
4439 #endif
4440 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4441 configure___ c_switch_system=C_SWITCH_SYSTEM
4442 configure___ c_switch_machine=C_SWITCH_MACHINE
4443
4444 #ifndef LIB_X11_LIB
4445 #define LIB_X11_LIB -lX11
4446 #endif
4447
4448 #ifndef LIBX11_MACHINE
4449 #define LIBX11_MACHINE
4450 #endif
4451
4452 #ifndef LIBX11_SYSTEM
4453 #define LIBX11_SYSTEM
4454 #endif
4455 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4456
4457 #ifdef UNEXEC
4458 configure___ unexec=UNEXEC
4459 #else
4460 configure___ unexec=unexec.o
4461 #endif
4462
4463 #ifdef SYSTEM_MALLOC
4464 configure___ system_malloc=yes
4465 #else
4466 configure___ system_malloc=no
4467 #endif
4468
4469 #ifdef USE_MMAP_FOR_BUFFERS
4470 configure___ use_mmap_for_buffers=yes
4471 #else
4472 configure___ use_mmap_for_buffers=no
4473 #endif
4474
4475 #ifndef C_DEBUG_SWITCH
4476 #define C_DEBUG_SWITCH -g
4477 #endif
4478
4479 #ifndef C_OPTIMIZE_SWITCH
4480 #ifdef __GNUC__
4481 #define C_OPTIMIZE_SWITCH -O2
4482 #else
4483 #define C_OPTIMIZE_SWITCH -O
4484 #endif
4485 #endif
4486
4487 #ifndef C_WARNINGS_SWITCH
4488 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4489 #endif
4490
4491 #ifndef LD_SWITCH_MACHINE
4492 #define LD_SWITCH_MACHINE
4493 #endif
4494
4495 #ifndef LD_SWITCH_SYSTEM
4496 #define LD_SWITCH_SYSTEM
4497 #endif
4498
4499 #ifndef LD_SWITCH_X_SITE_AUX
4500 #define LD_SWITCH_X_SITE_AUX
4501 #endif
4502
4503 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4504 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4505
4506 #ifdef THIS_IS_CONFIGURE
4507
4508 /* Get the CFLAGS for tests in configure. */
4509 #ifdef __GNUC__
4510 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4511 #else
4512 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4513 #endif
4514
4515 #else /* not THIS_IS_CONFIGURE */
4516
4517 /* Get the CFLAGS for real compilation. */
4518 #ifdef __GNUC__
4519 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4520 #else
4521 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4522 #endif
4523
4524 #endif /* not THIS_IS_CONFIGURE */
4525 ' > ${tempcname}
4526
4527 # The value of CPP is a quoted variable reference, so we need to do this
4528 # to get its actual value...
4529 CPP=`eval "echo $CPP"`
4530 eval `${CPP} -Isrc ${tempcname} \
4531 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4532 if test "x$SPECIFIED_CFLAGS" = x; then
4533 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4534 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4535 else
4536 REAL_CFLAGS="$CFLAGS"
4537 fi
4538 rm ${tempcname}
4539
4540 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4541
4542 ### Make sure subsequent tests use flags consistent with the build flags.
4543
4544 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4545 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4546 else
4547 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4548 fi
4549
4550
4551
4552
4553 cat >>confdefs.h <<\_ACEOF
4554 #define _GNU_SOURCE 1
4555 _ACEOF
4556
4557
4558
4559 # Check whether --enable-largefile or --disable-largefile was given.
4560 if test "${enable_largefile+set}" = set; then
4561 enableval="$enable_largefile"
4562
4563 fi;
4564 if test "$enable_largefile" != no; then
4565
4566 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 ac_cv_sys_largefile_CC=no
4572 if test "$GCC" != yes; then
4573 ac_save_CC=$CC
4574 while :; do
4575 # IRIX 6.2 and later do not support large files by default,
4576 # so use the C compiler's -n32 option if that helps.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 /* Check that off_t can represent 2**63 - 1 correctly.
4585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586 since some C++ compilers masquerading as C compilers
4587 incorrectly reject 9223372036854775807. */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590 && LARGE_OFF_T % 2147483647 == 1)
4591 ? 1 : -1];
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 break
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 fi
4627 rm -f conftest.err conftest.$ac_objext
4628 CC="$CC -n32"
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_sys_largefile_CC=' -n32'; break
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 fi
4656 rm -f conftest.err conftest.$ac_objext
4657 break
4658 done
4659 CC=$ac_save_CC
4660 rm -f conftest.$ac_ext
4661 fi
4662 fi
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4664 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4665 if test "$ac_cv_sys_largefile_CC" != no; then
4666 CC=$CC$ac_cv_sys_largefile_CC
4667 fi
4668
4669 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4670 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4671 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 while :; do
4675 ac_cv_sys_file_offset_bits=no
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <sys/types.h>
4683 /* Check that off_t can represent 2**63 - 1 correctly.
4684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685 since some C++ compilers masquerading as C compilers
4686 incorrectly reject 9223372036854775807. */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689 && LARGE_OFF_T % 2147483647 == 1)
4690 ? 1 : -1];
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
4702 ac_status=$?
4703 grep -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); } &&
4708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 break
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 fi
4726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #define _FILE_OFFSET_BITS 64
4734 #include <sys/types.h>
4735 /* Check that off_t can represent 2**63 - 1 correctly.
4736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4737 since some C++ compilers masquerading as C compilers
4738 incorrectly reject 9223372036854775807. */
4739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4741 && LARGE_OFF_T % 2147483647 == 1)
4742 ? 1 : -1];
4743 int
4744 main ()
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_sys_file_offset_bits=64; break
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 fi
4778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4779 break
4780 done
4781 fi
4782 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4783 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4784 if test "$ac_cv_sys_file_offset_bits" != no; then
4785
4786 cat >>confdefs.h <<_ACEOF
4787 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4788 _ACEOF
4789
4790 fi
4791 rm -f conftest*
4792 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4793 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4794 if test "${ac_cv_sys_large_files+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 while :; do
4798 ac_cv_sys_large_files=no
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4813 ? 1 : -1];
4814 int
4815 main ()
4816 {
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 break
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 fi
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #define _LARGE_FILES 1
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4865 ? 1 : -1];
4866 int
4867 main ()
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_sys_large_files=1; break
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 fi
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902 break
4903 done
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4906 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4907 if test "$ac_cv_sys_large_files" != no; then
4908
4909 cat >>confdefs.h <<_ACEOF
4910 #define _LARGE_FILES $ac_cv_sys_large_files
4911 _ACEOF
4912
4913 fi
4914 rm -f conftest*
4915 fi
4916
4917
4918 if test "${with_sound}" != "no"; then
4919 # Sound support for GNU/Linux and the free BSDs.
4920 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4922 if test "${ac_cv_header_stdc+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <stdlib.h>
4932 #include <stdarg.h>
4933 #include <string.h>
4934 #include <float.h>
4935
4936 int
4937 main ()
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_header_stdc=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_cv_header_stdc=no
4971 fi
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973
4974 if test $ac_cv_header_stdc = yes; then
4975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <string.h>
4983
4984 _ACEOF
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "memchr" >/dev/null 2>&1; then
4987 :
4988 else
4989 ac_cv_header_stdc=no
4990 fi
4991 rm -f conftest*
4992
4993 fi
4994
4995 if test $ac_cv_header_stdc = yes; then
4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #include <stdlib.h>
5004
5005 _ACEOF
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 $EGREP "free" >/dev/null 2>&1; then
5008 :
5009 else
5010 ac_cv_header_stdc=no
5011 fi
5012 rm -f conftest*
5013
5014 fi
5015
5016 if test $ac_cv_header_stdc = yes; then
5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018 if test "$cross_compiling" = yes; then
5019 :
5020 else
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <ctype.h>
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 #else
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #endif
5038
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5040 int
5041 main ()
5042 {
5043 int i;
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5047 exit(2);
5048 exit (0);
5049 }
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
5063 else
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ( exit $ac_status )
5069 ac_cv_header_stdc=no
5070 fi
5071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 fi
5073 fi
5074 fi
5075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077 if test $ac_cv_header_stdc = yes; then
5078
5079 cat >>confdefs.h <<\_ACEOF
5080 #define STDC_HEADERS 1
5081 _ACEOF
5082
5083 fi
5084
5085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5097 do
5098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5111
5112 #include <$ac_header>
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 eval "$as_ac_Header=yes"
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 eval "$as_ac_Header=no"
5141 fi
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149 _ACEOF
5150
5151 fi
5152
5153 done
5154
5155
5156
5157
5158
5159 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5160 do
5161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 fi
5168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5170 else
5171 # Is the header compilable?
5172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 #include <$ac_header>
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_header_compiler=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_header_compiler=no
5210 fi
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213 echo "${ECHO_T}$ac_header_compiler" >&6
5214
5215 # Is the header present?
5216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <$ac_header>
5225 _ACEOF
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev/null; then
5234 if test -s conftest.err; then
5235 ac_cpp_err=$ac_c_preproc_warn_flag
5236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237 else
5238 ac_cpp_err=
5239 fi
5240 else
5241 ac_cpp_err=yes
5242 fi
5243 if test -z "$ac_cpp_err"; then
5244 ac_header_preproc=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_header_preproc=no
5250 fi
5251 rm -f conftest.err conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253 echo "${ECHO_T}$ac_header_preproc" >&6
5254
5255 # So? What about this header?
5256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5257 yes:no: )
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262 ac_header_preproc=yes
5263 ;;
5264 no:yes:* )
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5277 (
5278 cat <<\_ASBOX
5279 ## ------------------------------------------ ##
5280 ## Report this to the AC_PACKAGE_NAME lists. ##
5281 ## ------------------------------------------ ##
5282 _ASBOX
5283 ) |
5284 sed "s/^/$as_me: WARNING: /" >&2
5285 ;;
5286 esac
5287 echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 eval "$as_ac_Header=\$ac_header_preproc"
5293 fi
5294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5296
5297 fi
5298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5299 cat >>confdefs.h <<_ACEOF
5300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301 _ACEOF
5302
5303 fi
5304
5305 done
5306
5307 # Emulation library used on NetBSD.
5308 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5309 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5310 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 ac_check_lib_save_LIBS=$LIBS
5314 LIBS="-lossaudio $LIBS"
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5328 char _oss_ioctl ();
5329 int
5330 main ()
5331 {
5332 _oss_ioctl ();
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_lib_ossaudio__oss_ioctl=yes
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 ac_cv_lib_ossaudio__oss_ioctl=no
5364 fi
5365 rm -f conftest.err conftest.$ac_objext \
5366 conftest$ac_exeext conftest.$ac_ext
5367 LIBS=$ac_check_lib_save_LIBS
5368 fi
5369 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5370 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5371 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5372 LIBSOUND=-lossaudio
5373 else
5374 LIBSOUND=
5375 fi
5376
5377
5378 fi
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5406 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5407 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5408 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5409 sys/utsname.h pwd.h
5410 do
5411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 fi
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 else
5421 # Is the header compilable?
5422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5431 #include <$ac_header>
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_header_compiler=yes
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_header_compiler=no
5460 fi
5461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5463 echo "${ECHO_T}$ac_header_compiler" >&6
5464
5465 # Is the header present?
5466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <$ac_header>
5475 _ACEOF
5476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5487 else
5488 ac_cpp_err=
5489 fi
5490 else
5491 ac_cpp_err=yes
5492 fi
5493 if test -z "$ac_cpp_err"; then
5494 ac_header_preproc=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 ac_header_preproc=no
5500 fi
5501 rm -f conftest.err conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503 echo "${ECHO_T}$ac_header_preproc" >&6
5504
5505 # So? What about this header?
5506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5507 yes:no: )
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5512 ac_header_preproc=yes
5513 ;;
5514 no:yes:* )
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5527 (
5528 cat <<\_ASBOX
5529 ## ------------------------------------------ ##
5530 ## Report this to the AC_PACKAGE_NAME lists. ##
5531 ## ------------------------------------------ ##
5532 _ASBOX
5533 ) |
5534 sed "s/^/$as_me: WARNING: /" >&2
5535 ;;
5536 esac
5537 echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 eval "$as_ac_Header=\$ac_header_preproc"
5543 fi
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546
5547 fi
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549 cat >>confdefs.h <<_ACEOF
5550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5551 _ACEOF
5552
5553 fi
5554
5555 done
5556
5557
5558 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5559 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <sys/personality.h>
5567 int
5568 main ()
5569 {
5570 personality (PER_LINUX32)
5571 ;
5572 return 0;
5573 }
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 emacs_cv_personality_linux32=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 emacs_cv_personality_linux32=no
5602 fi
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5605 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5606
5607 if test $emacs_cv_personality_linux32 = yes; then
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define HAVE_PERSONALITY_LINUX32 1
5611 _ACEOF
5612
5613 fi
5614
5615
5616 for ac_header in term.h
5617 do
5618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5619 echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <$ac_header>
5631 _ACEOF
5632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev/null; then
5640 if test -s conftest.err; then
5641 ac_cpp_err=$ac_c_preproc_warn_flag
5642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643 else
5644 ac_cpp_err=
5645 fi
5646 else
5647 ac_cpp_err=yes
5648 fi
5649 if test -z "$ac_cpp_err"; then
5650 eval "$as_ac_Header=yes"
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 eval "$as_ac_Header=no"
5656 fi
5657 rm -f conftest.err conftest.$ac_ext
5658 fi
5659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664 _ACEOF
5665
5666 fi
5667
5668 done
5669
5670 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5671 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5672 if test "${ac_cv_header_stdc+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <stdlib.h>
5682 #include <stdarg.h>
5683 #include <string.h>
5684 #include <float.h>
5685
5686 int
5687 main ()
5688 {
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_header_stdc=yes
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_cv_header_stdc=no
5721 fi
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723
5724 if test $ac_cv_header_stdc = yes; then
5725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <string.h>
5733
5734 _ACEOF
5735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736 $EGREP "memchr" >/dev/null 2>&1; then
5737 :
5738 else
5739 ac_cv_header_stdc=no
5740 fi
5741 rm -f conftest*
5742
5743 fi
5744
5745 if test $ac_cv_header_stdc = yes; then
5746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <stdlib.h>
5754
5755 _ACEOF
5756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757 $EGREP "free" >/dev/null 2>&1; then
5758 :
5759 else
5760 ac_cv_header_stdc=no
5761 fi
5762 rm -f conftest*
5763
5764 fi
5765
5766 if test $ac_cv_header_stdc = yes; then
5767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5768 if test "$cross_compiling" = yes; then
5769 :
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <ctype.h>
5778 #if ((' ' & 0x0FF) == 0x020)
5779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5781 #else
5782 # define ISLOWER(c) \
5783 (('a' <= (c) && (c) <= 'i') \
5784 || ('j' <= (c) && (c) <= 'r') \
5785 || ('s' <= (c) && (c) <= 'z'))
5786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5787 #endif
5788
5789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5790 int
5791 main ()
5792 {
5793 int i;
5794 for (i = 0; i < 256; i++)
5795 if (XOR (islower (i), ISLOWER (i))
5796 || toupper (i) != TOUPPER (i))
5797 exit(2);
5798 exit (0);
5799 }
5800 _ACEOF
5801 rm -f conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 :
5813 else
5814 echo "$as_me: program exited with status $ac_status" >&5
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ( exit $ac_status )
5819 ac_cv_header_stdc=no
5820 fi
5821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 fi
5824 fi
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5826 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5827 if test $ac_cv_header_stdc = yes; then
5828
5829 cat >>confdefs.h <<\_ACEOF
5830 #define STDC_HEADERS 1
5831 _ACEOF
5832
5833 fi
5834
5835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5837 if test "${ac_cv_header_time+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <sys/types.h>
5847 #include <sys/time.h>
5848 #include <time.h>
5849
5850 int
5851 main ()
5852 {
5853 if ((struct tm *) 0)
5854 return 0;
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_header_time=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_cv_header_time=no
5886 fi
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5890 echo "${ECHO_T}$ac_cv_header_time" >&6
5891 if test $ac_cv_header_time = yes; then
5892
5893 cat >>confdefs.h <<\_ACEOF
5894 #define TIME_WITH_SYS_TIME 1
5895 _ACEOF
5896
5897 fi
5898
5899 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5900 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5901 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5911 int
5912 main ()
5913 {
5914 #ifndef sys_siglist
5915 char *p = (char *) sys_siglist;
5916 #endif
5917
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_have_decl_sys_siglist=yes
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_cv_have_decl_sys_siglist=no
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 fi
5952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5953 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5954 if test $ac_cv_have_decl_sys_siglist = yes; then
5955
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DECL_SYS_SIGLIST 1
5958 _ACEOF
5959
5960
5961 else
5962 cat >>confdefs.h <<_ACEOF
5963 #define HAVE_DECL_SYS_SIGLIST 0
5964 _ACEOF
5965
5966
5967 fi
5968
5969
5970 if test $ac_cv_have_decl_sys_siglist != yes; then
5971 # For Tru64, at least:
5972 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5973 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5974 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984 int
5985 main ()
5986 {
5987 #ifndef __sys_siglist
5988 char *p = (char *) __sys_siglist;
5989 #endif
5990
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_have_decl___sys_siglist=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 ac_cv_have_decl___sys_siglist=no
6022 fi
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 fi
6025 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6026 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6027 if test $ac_cv_have_decl___sys_siglist = yes; then
6028
6029 cat >>confdefs.h <<_ACEOF
6030 #define HAVE_DECL___SYS_SIGLIST 1
6031 _ACEOF
6032
6033
6034 else
6035 cat >>confdefs.h <<_ACEOF
6036 #define HAVE_DECL___SYS_SIGLIST 0
6037 _ACEOF
6038
6039
6040 fi
6041
6042
6043 if test $ac_cv_have_decl___sys_siglist = yes; then
6044
6045 cat >>confdefs.h <<\_ACEOF
6046 #define sys_siglist __sys_siglist
6047 _ACEOF
6048
6049 fi
6050 fi
6051 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6052 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6053 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <sys/types.h>
6063 #include <sys/wait.h>
6064 #ifndef WEXITSTATUS
6065 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6066 #endif
6067 #ifndef WIFEXITED
6068 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6069 #endif
6070
6071 int
6072 main ()
6073 {
6074 int s;
6075 wait (&s);
6076 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_header_sys_wait_h=yes
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 ac_cv_header_sys_wait_h=no
6108 fi
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6113 if test $ac_cv_header_sys_wait_h = yes; then
6114
6115 cat >>confdefs.h <<\_ACEOF
6116 #define HAVE_SYS_WAIT_H 1
6117 _ACEOF
6118
6119 fi
6120
6121
6122 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6123 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6124 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #ifdef TIME_WITH_SYS_TIME
6134 #include <sys/time.h>
6135 #include <time.h>
6136 #else
6137 #ifdef HAVE_SYS_TIME_H
6138 #include <sys/time.h>
6139 #else
6140 #include <time.h>
6141 #endif
6142 #endif
6143 #ifdef HAVE_UTIME_H
6144 #include <utime.h>
6145 #endif
6146 int
6147 main ()
6148 {
6149 static struct utimbuf x; x.actime = x.modtime;
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 emacs_cv_struct_utimbuf=yes
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 emacs_cv_struct_utimbuf=no
6181 fi
6182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6185 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6186 if test $emacs_cv_struct_utimbuf = yes; then
6187
6188 cat >>confdefs.h <<\_ACEOF
6189 #define HAVE_STRUCT_UTIMBUF 1
6190 _ACEOF
6191
6192 fi
6193
6194 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6195 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6196 if test "${ac_cv_type_signal+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <sys/types.h>
6206 #include <signal.h>
6207 #ifdef signal
6208 # undef signal
6209 #endif
6210 #ifdef __cplusplus
6211 extern "C" void (*signal (int, void (*)(int)))(int);
6212 #else
6213 void (*signal ()) ();
6214 #endif
6215
6216 int
6217 main ()
6218 {
6219 int i;
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_type_signal=void
6246 else
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250 ac_cv_type_signal=int
6251 fi
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 fi
6254 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6255 echo "${ECHO_T}$ac_cv_type_signal" >&6
6256
6257 cat >>confdefs.h <<_ACEOF
6258 #define RETSIGTYPE $ac_cv_type_signal
6259 _ACEOF
6260
6261
6262
6263 echo "$as_me:$LINENO: checking for speed_t" >&5
6264 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6265 if test "${emacs_cv_speed_t+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <termios.h>
6275 int
6276 main ()
6277 {
6278 speed_t x = 1;
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 emacs_cv_speed_t=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 emacs_cv_speed_t=no
6310 fi
6311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6314 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6315 if test $emacs_cv_speed_t = yes; then
6316
6317 cat >>confdefs.h <<\_ACEOF
6318 #define HAVE_SPEED_T 1
6319 _ACEOF
6320
6321 fi
6322
6323 echo "$as_me:$LINENO: checking for struct timeval" >&5
6324 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6325 if test "${emacs_cv_struct_timeval+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #ifdef TIME_WITH_SYS_TIME
6335 #include <sys/time.h>
6336 #include <time.h>
6337 #else
6338 #ifdef HAVE_SYS_TIME_H
6339 #include <sys/time.h>
6340 #else
6341 #include <time.h>
6342 #endif
6343 #endif
6344 int
6345 main ()
6346 {
6347 static struct timeval x; x.tv_sec = x.tv_usec;
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 emacs_cv_struct_timeval=yes
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 emacs_cv_struct_timeval=no
6379 fi
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 fi
6382 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6383 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6384 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6385 if test $emacs_cv_struct_timeval = yes; then
6386
6387 cat >>confdefs.h <<\_ACEOF
6388 #define HAVE_TIMEVAL 1
6389 _ACEOF
6390
6391 fi
6392
6393 echo "$as_me:$LINENO: checking for struct exception" >&5
6394 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6395 if test "${emacs_cv_struct_exception+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 #include <math.h>
6405 int
6406 main ()
6407 {
6408 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415 (eval $ac_compile) 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_struct_exception=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 emacs_cv_struct_exception=no
6440 fi
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi
6443 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6444 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6445 HAVE_EXCEPTION=$emacs_cv_struct_exception
6446 if test $emacs_cv_struct_exception != yes; then
6447
6448 cat >>confdefs.h <<\_ACEOF
6449 #define NO_MATHERR 1
6450 _ACEOF
6451
6452 fi
6453
6454
6455 for ac_header in sys/socket.h
6456 do
6457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 fi
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 else
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_header_compiler=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505 ac_header_compiler=no
6506 fi
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509 echo "${ECHO_T}$ac_header_compiler" >&6
6510
6511 # Is the header present?
6512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <$ac_header>
6521 _ACEOF
6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev/null; then
6530 if test -s conftest.err; then
6531 ac_cpp_err=$ac_c_preproc_warn_flag
6532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6533 else
6534 ac_cpp_err=
6535 fi
6536 else
6537 ac_cpp_err=yes
6538 fi
6539 if test -z "$ac_cpp_err"; then
6540 ac_header_preproc=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_header_preproc=no
6546 fi
6547 rm -f conftest.err conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549 echo "${ECHO_T}$ac_header_preproc" >&6
6550
6551 # So? What about this header?
6552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6553 yes:no: )
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc=yes
6559 ;;
6560 no:yes:* )
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6573 (
6574 cat <<\_ASBOX
6575 ## ------------------------------------------ ##
6576 ## Report this to the AC_PACKAGE_NAME lists. ##
6577 ## ------------------------------------------ ##
6578 _ASBOX
6579 ) |
6580 sed "s/^/$as_me: WARNING: /" >&2
6581 ;;
6582 esac
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 eval "$as_ac_Header=\$ac_header_preproc"
6589 fi
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592
6593 fi
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6598
6599 fi
6600
6601 done
6602
6603
6604 for ac_header in net/if.h
6605 do
6606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 #if HAVE_SYS_SOCKET_H
6620 #include <sys/socket.h>
6621 #endif
6622
6623 #include <$ac_header>
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 eval "$as_ac_Header=yes"
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 eval "$as_ac_Header=no"
6652 fi
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654 fi
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660 _ACEOF
6661
6662 fi
6663
6664 done
6665
6666
6667 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6669 if test "${ac_cv_struct_tm+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <sys/types.h>
6679 #include <time.h>
6680
6681 int
6682 main ()
6683 {
6684 struct tm *tp; tp->tm_sec;
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_struct_tm=time.h
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_cv_struct_tm=sys/time.h
6716 fi
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6720 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6721 if test $ac_cv_struct_tm = sys/time.h; then
6722
6723 cat >>confdefs.h <<\_ACEOF
6724 #define TM_IN_SYS_TIME 1
6725 _ACEOF
6726
6727 fi
6728
6729 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <$ac_cv_struct_tm>
6742
6743
6744 int
6745 main ()
6746 {
6747 static struct tm ac_aggr;
6748 if (ac_aggr.tm_zone)
6749 return 0;
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_member_struct_tm_tm_zone=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <$ac_cv_struct_tm>
6788
6789
6790 int
6791 main ()
6792 {
6793 static struct tm ac_aggr;
6794 if (sizeof ac_aggr.tm_zone)
6795 return 0;
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_member_struct_tm_tm_zone=yes
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_cv_member_struct_tm_tm_zone=no
6827 fi
6828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 fi
6832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6833 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6834 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_STRUCT_TM_TM_ZONE 1
6838 _ACEOF
6839
6840
6841 fi
6842
6843 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_TM_ZONE 1
6847 _ACEOF
6848
6849 else
6850 echo "$as_me:$LINENO: checking for tzname" >&5
6851 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6852 if test "${ac_cv_var_tzname+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <time.h>
6862 #ifndef tzname /* For SGI. */
6863 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6864 #endif
6865
6866 int
6867 main ()
6868 {
6869 atoi(*tzname);
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_var_tzname=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 ac_cv_var_tzname=no
6901 fi
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6904 fi
6905 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6906 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6907 if test $ac_cv_var_tzname = yes; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_TZNAME 1
6911 _ACEOF
6912
6913 fi
6914 fi
6915
6916 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6917 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6918 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #include <time.h>
6928
6929 int
6930 main ()
6931 {
6932 static struct tm ac_aggr;
6933 if (ac_aggr.tm_gmtoff)
6934 return 0;
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_member_struct_tm_tm_gmtoff=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <time.h>
6972
6973 int
6974 main ()
6975 {
6976 static struct tm ac_aggr;
6977 if (sizeof ac_aggr.tm_gmtoff)
6978 return 0;
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_member_struct_tm_tm_gmtoff=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_cv_member_struct_tm_tm_gmtoff=no
7010 fi
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7012 fi
7013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014 fi
7015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7016 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7017 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7018
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_TM_GMTOFF 1
7021 _ACEOF
7022
7023 fi
7024
7025 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7026 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7027 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7037 #if HAVE_SYS_SOCKET_H
7038 #include <sys/socket.h>
7039 #endif
7040 #if HAVE_NET_IF_H
7041 #include <net/if.h>
7042 #endif
7043
7044 int
7045 main ()
7046 {
7047 static struct ifreq ac_aggr;
7048 if (ac_aggr.ifr_flags)
7049 return 0;
7050 ;
7051 return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_member_struct_ifreq_ifr_flags=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7087 #if HAVE_SYS_SOCKET_H
7088 #include <sys/socket.h>
7089 #endif
7090 #if HAVE_NET_IF_H
7091 #include <net/if.h>
7092 #endif
7093
7094 int
7095 main ()
7096 {
7097 static struct ifreq ac_aggr;
7098 if (sizeof ac_aggr.ifr_flags)
7099 return 0;
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_member_struct_ifreq_ifr_flags=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_member_struct_ifreq_ifr_flags=no
7131 fi
7132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7137 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7138 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7142 _ACEOF
7143
7144
7145 fi
7146 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7147 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7148 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 $ac_includes_default
7158 #if HAVE_SYS_SOCKET_H
7159 #include <sys/socket.h>
7160 #endif
7161 #if HAVE_NET_IF_H
7162 #include <net/if.h>
7163 #endif
7164
7165 int
7166 main ()
7167 {
7168 static struct ifreq ac_aggr;
7169 if (ac_aggr.ifr_hwaddr)
7170 return 0;
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 #if HAVE_SYS_SOCKET_H
7209 #include <sys/socket.h>
7210 #endif
7211 #if HAVE_NET_IF_H
7212 #include <net/if.h>
7213 #endif
7214
7215 int
7216 main ()
7217 {
7218 static struct ifreq ac_aggr;
7219 if (sizeof ac_aggr.ifr_hwaddr)
7220 return 0;
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest.$ac_objext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7252 fi
7253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7254 fi
7255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7256 fi
7257 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7259 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7260
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7263 _ACEOF
7264
7265
7266 fi
7267 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7268 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 #if HAVE_SYS_SOCKET_H
7280 #include <sys/socket.h>
7281 #endif
7282 #if HAVE_NET_IF_H
7283 #include <net/if.h>
7284 #endif
7285
7286 int
7287 main ()
7288 {
7289 static struct ifreq ac_aggr;
7290 if (ac_aggr.ifr_netmask)
7291 return 0;
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_member_struct_ifreq_ifr_netmask=yes
7318 else
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 #if HAVE_SYS_SOCKET_H
7330 #include <sys/socket.h>
7331 #endif
7332 #if HAVE_NET_IF_H
7333 #include <net/if.h>
7334 #endif
7335
7336 int
7337 main ()
7338 {
7339 static struct ifreq ac_aggr;
7340 if (sizeof ac_aggr.ifr_netmask)
7341 return 0;
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_member_struct_ifreq_ifr_netmask=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_cv_member_struct_ifreq_ifr_netmask=no
7373 fi
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7377 fi
7378 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7379 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7380 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7381
7382 cat >>confdefs.h <<_ACEOF
7383 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7384 _ACEOF
7385
7386
7387 fi
7388 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7389 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7390 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 #if HAVE_SYS_SOCKET_H
7401 #include <sys/socket.h>
7402 #endif
7403 #if HAVE_NET_IF_H
7404 #include <net/if.h>
7405 #endif
7406
7407 int
7408 main ()
7409 {
7410 static struct ifreq ac_aggr;
7411 if (ac_aggr.ifr_broadaddr)
7412 return 0;
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 rm -f conftest.$ac_objext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419 (eval $ac_compile) 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7450 #if HAVE_SYS_SOCKET_H
7451 #include <sys/socket.h>
7452 #endif
7453 #if HAVE_NET_IF_H
7454 #include <net/if.h>
7455 #endif
7456
7457 int
7458 main ()
7459 {
7460 static struct ifreq ac_aggr;
7461 if (sizeof ac_aggr.ifr_broadaddr)
7462 return 0;
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7494 fi
7495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7500 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7501 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7505 _ACEOF
7506
7507
7508 fi
7509 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7510 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7511 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7521 #if HAVE_SYS_SOCKET_H
7522 #include <sys/socket.h>
7523 #endif
7524 #if HAVE_NET_IF_H
7525 #include <net/if.h>
7526 #endif
7527
7528 int
7529 main ()
7530 {
7531 static struct ifreq ac_aggr;
7532 if (ac_aggr.ifr_addr)
7533 return 0;
7534 ;
7535 return 0;
7536 }
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_member_struct_ifreq_ifr_addr=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #if HAVE_SYS_SOCKET_H
7572 #include <sys/socket.h>
7573 #endif
7574 #if HAVE_NET_IF_H
7575 #include <net/if.h>
7576 #endif
7577
7578 int
7579 main ()
7580 {
7581 static struct ifreq ac_aggr;
7582 if (sizeof ac_aggr.ifr_addr)
7583 return 0;
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_member_struct_ifreq_ifr_addr=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_cv_member_struct_ifreq_ifr_addr=no
7615 fi
7616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7617 fi
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7621 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7622 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7623
7624 cat >>confdefs.h <<_ACEOF
7625 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7626 _ACEOF
7627
7628
7629 fi
7630
7631
7632
7633 echo "$as_me:$LINENO: checking for function prototypes" >&5
7634 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7635 if test "$ac_cv_prog_cc_stdc" != no; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 #define PROTOTYPES 1
7641 _ACEOF
7642
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define __PROTOTYPES 1
7646 _ACEOF
7647
7648 else
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7651 fi
7652
7653 echo "$as_me:$LINENO: checking for working volatile" >&5
7654 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7655 if test "${ac_cv_c_volatile+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664
7665 int
7666 main ()
7667 {
7668
7669 volatile int x;
7670 int * volatile y;
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_c_volatile=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_c_volatile=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 fi
7705 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7706 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7707 if test $ac_cv_c_volatile = no; then
7708
7709 cat >>confdefs.h <<\_ACEOF
7710 #define volatile
7711 _ACEOF
7712
7713 fi
7714
7715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7717 if test "${ac_cv_c_const+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726
7727 int
7728 main ()
7729 {
7730 /* FIXME: Include the comments suggested by Paul. */
7731 #ifndef __cplusplus
7732 /* Ultrix mips cc rejects this. */
7733 typedef int charset[2];
7734 const charset x;
7735 /* SunOS 4.1.1 cc rejects this. */
7736 char const *const *ccp;
7737 char **p;
7738 /* NEC SVR4.0.2 mips cc rejects this. */
7739 struct point {int x, y;};
7740 static struct point const zero = {0,0};
7741 /* AIX XL C 1.02.0.0 rejects this.
7742 It does not let you subtract one const X* pointer from another in
7743 an arm of an if-expression whose if-part is not a constant
7744 expression */
7745 const char *g = "string";
7746 ccp = &g + (g ? g-g : 0);
7747 /* HPUX 7.0 cc rejects these. */
7748 ++ccp;
7749 p = (char**) ccp;
7750 ccp = (char const *const *) p;
7751 { /* SCO 3.2v4 cc rejects this. */
7752 char *t;
7753 char const *s = 0 ? (char *) 0 : (char const *) 0;
7754
7755 *t++ = 0;
7756 }
7757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7758 int x[] = {25, 17};
7759 const int *foo = &x[0];
7760 ++foo;
7761 }
7762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7763 typedef const int *iptr;
7764 iptr p = 0;
7765 ++p;
7766 }
7767 { /* AIX XL C 1.02.0.0 rejects this saying
7768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7769 struct s { int j; const int *ap[3]; };
7770 struct s *b; b->j = 5;
7771 }
7772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7773 const int foo = 10;
7774 }
7775 #endif
7776
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_c_const=yes
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 ac_cv_c_const=no
7808 fi
7809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7812 echo "${ECHO_T}$ac_cv_c_const" >&6
7813 if test $ac_cv_c_const = no; then
7814
7815 cat >>confdefs.h <<\_ACEOF
7816 #define const
7817 _ACEOF
7818
7819 fi
7820
7821 echo "$as_me:$LINENO: checking for void * support" >&5
7822 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7823 if test "${emacs_cv_void_star+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832
7833 int
7834 main ()
7835 {
7836 void * foo;
7837 ;
7838 return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 emacs_cv_void_star=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 emacs_cv_void_star=no
7868 fi
7869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7870 fi
7871 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7872 echo "${ECHO_T}$emacs_cv_void_star" >&6
7873 if test $emacs_cv_void_star = yes; then
7874 cat >>confdefs.h <<\_ACEOF
7875 #define POINTER_TYPE void
7876 _ACEOF
7877
7878 else
7879 cat >>confdefs.h <<\_ACEOF
7880 #define POINTER_TYPE char
7881 _ACEOF
7882
7883 fi
7884
7885
7886
7887
7888
7889 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7890 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7891 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7892 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895 cat >conftest.make <<\_ACEOF
7896 all:
7897 @echo 'ac_maketemp="$(MAKE)"'
7898 _ACEOF
7899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7900 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7901 if test -n "$ac_maketemp"; then
7902 eval ac_cv_prog_make_${ac_make}_set=yes
7903 else
7904 eval ac_cv_prog_make_${ac_make}_set=no
7905 fi
7906 rm -f conftest.make
7907 fi
7908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7911 SET_MAKE=
7912 else
7913 echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6
7915 SET_MAKE="MAKE=${MAKE-make}"
7916 fi
7917
7918
7919 echo "$as_me:$LINENO: checking for long file names" >&5
7920 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7921 if test "${ac_cv_sys_long_file_names+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 ac_cv_sys_long_file_names=yes
7925 # Test for long file names in all the places we know might matter:
7926 # . the current directory, where building will happen
7927 # $prefix/lib where we will be installing things
7928 # $exec_prefix/lib likewise
7929 # eval it to expand exec_prefix.
7930 # $TMPDIR if set, where it might want to write temporary files
7931 # if $TMPDIR is not set:
7932 # /tmp where it might want to write temporary files
7933 # /var/tmp likewise
7934 # /usr/tmp likewise
7935 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7936 ac_tmpdirs=$TMPDIR
7937 else
7938 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7939 fi
7940 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7941 test -d $ac_dir || continue
7942 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7943 ac_xdir=$ac_dir/cf$$
7944 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7945 ac_tf1=$ac_xdir/conftest9012345
7946 ac_tf2=$ac_xdir/conftest9012346
7947 (echo 1 >$ac_tf1) 2>/dev/null
7948 (echo 2 >$ac_tf2) 2>/dev/null
7949 ac_val=`cat $ac_tf1 2>/dev/null`
7950 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7951 ac_cv_sys_long_file_names=no
7952 rm -rf $ac_xdir 2>/dev/null
7953 break
7954 fi
7955 rm -rf $ac_xdir 2>/dev/null
7956 done
7957 fi
7958 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7959 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7960 if test $ac_cv_sys_long_file_names = yes; then
7961
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_LONG_FILE_NAMES 1
7964 _ACEOF
7965
7966 fi
7967
7968
7969 #### Choose a window system.
7970
7971 echo "$as_me:$LINENO: checking for X" >&5
7972 echo $ECHO_N "checking for X... $ECHO_C" >&6
7973
7974 ac_path_x_has_been_run=yes
7975
7976 # Check whether --with-x or --without-x was given.
7977 if test "${with_x+set}" = set; then
7978 withval="$with_x"
7979
7980 fi;
7981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7982 if test "x$with_x" = xno; then
7983 # The user explicitly disabled X.
7984 have_x=disabled
7985 else
7986 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7987 # Both variables are already set.
7988 have_x=yes
7989 else
7990 if test "${ac_cv_have_x+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 # One or both of the vars are not set, and there is no cached value.
7994 ac_x_includes=no ac_x_libraries=no
7995 rm -fr conftest.dir
7996 if mkdir conftest.dir; then
7997 cd conftest.dir
7998 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7999 cat >Imakefile <<'_ACEOF'
8000 acfindx:
8001 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8002 _ACEOF
8003 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8005 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8006 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8007 for ac_extension in a so sl; do
8008 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8009 test -f $ac_im_libdir/libX11.$ac_extension; then
8010 ac_im_usrlibdir=$ac_im_libdir; break
8011 fi
8012 done
8013 # Screen out bogus values from the imake configuration. They are
8014 # bogus both because they are the default anyway, and because
8015 # using them would break gcc on systems where it needs fixed includes.
8016 case $ac_im_incroot in
8017 /usr/include) ;;
8018 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8019 esac
8020 case $ac_im_usrlibdir in
8021 /usr/lib | /lib) ;;
8022 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8023 esac
8024 fi
8025 cd ..
8026 rm -fr conftest.dir
8027 fi
8028
8029 # Standard set of common directories for X headers.
8030 # Check X11 before X11Rn because it is often a symlink to the current release.
8031 ac_x_header_dirs='
8032 /usr/X11/include
8033 /usr/X11R6/include
8034 /usr/X11R5/include
8035 /usr/X11R4/include
8036
8037 /usr/include/X11
8038 /usr/include/X11R6
8039 /usr/include/X11R5
8040 /usr/include/X11R4
8041
8042 /usr/local/X11/include
8043 /usr/local/X11R6/include
8044 /usr/local/X11R5/include
8045 /usr/local/X11R4/include
8046
8047 /usr/local/include/X11
8048 /usr/local/include/X11R6
8049 /usr/local/include/X11R5
8050 /usr/local/include/X11R4
8051
8052 /usr/X386/include
8053 /usr/x386/include
8054 /usr/XFree86/include/X11
8055
8056 /usr/include
8057 /usr/local/include
8058 /usr/unsupported/include
8059 /usr/athena/include
8060 /usr/local/x11r5/include
8061 /usr/lpp/Xamples/include
8062
8063 /usr/openwin/include
8064 /usr/openwin/share/include'
8065
8066 if test "$ac_x_includes" = no; then
8067 # Guess where to find include files, by looking for a specified header file.
8068 # First, try using that file with no special directory specified.
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 #include <X11/Intrinsic.h>
8076 _ACEOF
8077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } >/dev/null; then
8085 if test -s conftest.err; then
8086 ac_cpp_err=$ac_c_preproc_warn_flag
8087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8088 else
8089 ac_cpp_err=
8090 fi
8091 else
8092 ac_cpp_err=yes
8093 fi
8094 if test -z "$ac_cpp_err"; then
8095 # We can compile using X headers with no special include directory.
8096 ac_x_includes=
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 for ac_dir in $ac_x_header_dirs; do
8102 if test -r "$ac_dir/X11/Intrinsic.h"; then
8103 ac_x_includes=$ac_dir
8104 break
8105 fi
8106 done
8107 fi
8108 rm -f conftest.err conftest.$ac_ext
8109 fi # $ac_x_includes = no
8110
8111 if test "$ac_x_libraries" = no; then
8112 # Check for the libraries.
8113 # See if we find them without any special options.
8114 # Don't add to $LIBS permanently.
8115 ac_save_LIBS=$LIBS
8116 LIBS="-lXt $LIBS"
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <X11/Intrinsic.h>
8124 int
8125 main ()
8126 {
8127 XtMalloc (0)
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 LIBS=$ac_save_LIBS
8154 # We can link X programs with no special library path.
8155 ac_x_libraries=
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 LIBS=$ac_save_LIBS
8161 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8162 do
8163 # Don't even attempt the hair of trying to link an X program!
8164 for ac_extension in a so sl; do
8165 if test -r $ac_dir/libXt.$ac_extension; then
8166 ac_x_libraries=$ac_dir
8167 break 2
8168 fi
8169 done
8170 done
8171 fi
8172 rm -f conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8174 fi # $ac_x_libraries = no
8175
8176 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8177 # Didn't find X anywhere. Cache the known absence of X.
8178 ac_cv_have_x="have_x=no"
8179 else
8180 # Record where we found X for the cache.
8181 ac_cv_have_x="have_x=yes \
8182 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8183 fi
8184 fi
8185
8186 fi
8187 eval "$ac_cv_have_x"
8188 fi # $with_x != no
8189
8190 if test "$have_x" != yes; then
8191 echo "$as_me:$LINENO: result: $have_x" >&5
8192 echo "${ECHO_T}$have_x" >&6
8193 no_x=yes
8194 else
8195 # If each of the values was on the command line, it overrides each guess.
8196 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8197 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8198 # Update the cache value to reflect the command line values.
8199 ac_cv_have_x="have_x=yes \
8200 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8201 # It might be that x_includes is empty (headers are found in the
8202 # standard search path. Then output the corresponding message
8203 ac_out_x_includes=$x_includes
8204 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8205 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8206 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8207 fi
8208
8209 if test "$no_x" = yes; then
8210 window_system=none
8211 else
8212 window_system=x11
8213 fi
8214
8215 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8216 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8217 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8218 x_default_search_path=""
8219 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8220 x_search_path="\
8221 ${x_library}/X11/%L/%T/%N%C%S:\
8222 ${x_library}/X11/%l/%T/%N%C%S:\
8223 ${x_library}/X11/%T/%N%C%S:\
8224 ${x_library}/X11/%L/%T/%N%S:\
8225 ${x_library}/X11/%l/%T/%N%S:\
8226 ${x_library}/X11/%T/%N%S"
8227 if test x"${x_default_search_path}" = x; then
8228 x_default_search_path=${x_search_path}
8229 else
8230 x_default_search_path="${x_search_path}:${x_default_search_path}"
8231 fi
8232 done
8233 fi
8234 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8235 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8236 fi
8237
8238 if test x"${x_includes}" = x; then
8239 bitmapdir=/usr/include/X11/bitmaps
8240 else
8241 # accumulate include directories that have X11 bitmap subdirectories
8242 bmd_acc="dummyval"
8243 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8244 if test -d "${bmd}/X11/bitmaps"; then
8245 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8246 fi
8247 if test -d "${bmd}/bitmaps"; then
8248 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8249 fi
8250 done
8251 if test ${bmd_acc} != "dummyval"; then
8252 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8253 fi
8254 fi
8255
8256 HAVE_CARBON=no
8257 if test "${with_carbon}" != no; then
8258 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8259 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8260 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 fi
8264 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8265 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8266 else
8267 # Is the header compilable?
8268 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8269 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #include <Carbon/Carbon.h>
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_header_compiler=yes
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 ac_header_compiler=no
8306 fi
8307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6
8310
8311 # Is the header present?
8312 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8313 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <Carbon/Carbon.h>
8321 _ACEOF
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } >/dev/null; then
8330 if test -s conftest.err; then
8331 ac_cpp_err=$ac_c_preproc_warn_flag
8332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8333 else
8334 ac_cpp_err=
8335 fi
8336 else
8337 ac_cpp_err=yes
8338 fi
8339 if test -z "$ac_cpp_err"; then
8340 ac_header_preproc=yes
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_header_preproc=no
8346 fi
8347 rm -f conftest.err conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8349 echo "${ECHO_T}$ac_header_preproc" >&6
8350
8351 # So? What about this header?
8352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8353 yes:no: )
8354 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8355 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8357 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8358 ac_header_preproc=yes
8359 ;;
8360 no:yes:* )
8361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8362 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8364 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8366 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8368 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8370 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8372 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8373 (
8374 cat <<\_ASBOX
8375 ## ------------------------------------------ ##
8376 ## Report this to the AC_PACKAGE_NAME lists. ##
8377 ## ------------------------------------------ ##
8378 _ASBOX
8379 ) |
8380 sed "s/^/$as_me: WARNING: /" >&2
8381 ;;
8382 esac
8383 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8389 fi
8390 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8391 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8392
8393 fi
8394 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8395 HAVE_CARBON=yes
8396 fi
8397
8398
8399 fi
8400 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8401 if test "${with_carbon+set}" != set \
8402 && test "${carbon_appdir_x+set}" != set; then
8403 HAVE_CARBON=no
8404 fi
8405 fi
8406 if test "${HAVE_CARBON}" = yes; then
8407 window_system=mac
8408 fi
8409
8410 case "${window_system}" in
8411 x11 )
8412 HAVE_X_WINDOWS=yes
8413 HAVE_X11=yes
8414 case "${with_x_toolkit}" in
8415 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8416 motif ) USE_X_TOOLKIT=MOTIF ;;
8417 gtk ) with_gtk=yes
8418 USE_X_TOOLKIT=none ;;
8419 no ) USE_X_TOOLKIT=none ;;
8420 * ) USE_X_TOOLKIT=maybe ;;
8421 esac
8422 ;;
8423 mac | none )
8424 HAVE_X_WINDOWS=no
8425 HAVE_X11=no
8426 USE_X_TOOLKIT=none
8427 ;;
8428 esac
8429
8430 ### If we're using X11, we should use the X menu package.
8431 HAVE_MENUS=no
8432 case ${HAVE_X11} in
8433 yes ) HAVE_MENUS=yes ;;
8434 esac
8435
8436 if test "${opsys}" = "hpux9"; then
8437 case "${x_libraries}" in
8438 *X11R4* )
8439 opsysfile="s/hpux9-x11r4.h"
8440 ;;
8441 esac
8442 fi
8443
8444 if test "${opsys}" = "hpux9shr"; then
8445 case "${x_libraries}" in
8446 *X11R4* )
8447 opsysfile="s/hpux9shxr4.h"
8448 ;;
8449 esac
8450 fi
8451
8452 ### Compute the unexec source name from the object name.
8453 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8454
8455 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8456 # Assume not, until told otherwise.
8457 GNU_MALLOC=yes
8458 doug_lea_malloc=yes
8459 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8460 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8461 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472 #define malloc_get_state innocuous_malloc_get_state
8473
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char malloc_get_state (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8478
8479 #ifdef __STDC__
8480 # include <limits.h>
8481 #else
8482 # include <assert.h>
8483 #endif
8484
8485 #undef malloc_get_state
8486
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 #ifdef __cplusplus
8489 extern "C"
8490 {
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char malloc_get_state ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8499 choke me
8500 #else
8501 char (*f) () = malloc_get_state;
8502 #endif
8503 #ifdef __cplusplus
8504 }
8505 #endif
8506
8507 int
8508 main ()
8509 {
8510 return f != malloc_get_state;
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_malloc_get_state=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_func_malloc_get_state=no
8542 fi
8543 rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8547 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8548 if test $ac_cv_func_malloc_get_state = yes; then
8549 :
8550 else
8551 doug_lea_malloc=no
8552 fi
8553
8554 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8555 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8556 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8567 #define malloc_set_state innocuous_malloc_set_state
8568
8569 /* System header to define __stub macros and hopefully few prototypes,
8570 which can conflict with char malloc_set_state (); below.
8571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 <limits.h> exists even on freestanding compilers. */
8573
8574 #ifdef __STDC__
8575 # include <limits.h>
8576 #else
8577 # include <assert.h>
8578 #endif
8579
8580 #undef malloc_set_state
8581
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 #ifdef __cplusplus
8584 extern "C"
8585 {
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char malloc_set_state ();
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8594 choke me
8595 #else
8596 char (*f) () = malloc_set_state;
8597 #endif
8598 #ifdef __cplusplus
8599 }
8600 #endif
8601
8602 int
8603 main ()
8604 {
8605 return f != malloc_set_state;
8606 ;
8607 return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_func_malloc_set_state=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ac_cv_func_malloc_set_state=no
8637 fi
8638 rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 fi
8641 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8642 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8643 if test $ac_cv_func_malloc_set_state = yes; then
8644 :
8645 else
8646 doug_lea_malloc=no
8647 fi
8648
8649 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8650 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8651 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 extern void (* __after_morecore_hook)();
8661 int
8662 main ()
8663 {
8664 __after_morecore_hook = 0
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 emacs_cv_var___after_morecore_hook=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695 emacs_cv_var___after_morecore_hook=no
8696 fi
8697 rm -f conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8699 fi
8700 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8701 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8702 if test $emacs_cv_var___after_morecore_hook = no; then
8703 doug_lea_malloc=no
8704 fi
8705 if test "${system_malloc}" = "yes"; then
8706 GNU_MALLOC=no
8707 GNU_MALLOC_reason="
8708 (The GNU allocators don't work with this system configuration.)"
8709 fi
8710 if test "$doug_lea_malloc" = "yes" ; then
8711 if test "$GNU_MALLOC" = yes ; then
8712 GNU_MALLOC_reason="
8713 (Using Doug Lea's new malloc from the GNU C Library.)"
8714 fi
8715
8716 cat >>confdefs.h <<\_ACEOF
8717 #define DOUG_LEA_MALLOC 1
8718 _ACEOF
8719
8720 fi
8721
8722 if test x"${REL_ALLOC}" = x; then
8723 REL_ALLOC=${GNU_MALLOC}
8724 fi
8725
8726
8727
8728
8729 for ac_header in stdlib.h unistd.h
8730 do
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 fi
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8740 else
8741 # Is the header compilable?
8742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 #include <$ac_header>
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler=yes
8775 else
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_header_compiler=no
8780 fi
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8784
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <$ac_header>
8795 _ACEOF
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null; then
8804 if test -s conftest.err; then
8805 ac_cpp_err=$ac_c_preproc_warn_flag
8806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8807 else
8808 ac_cpp_err=
8809 fi
8810 else
8811 ac_cpp_err=yes
8812 fi
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ac_header_preproc=no
8820 fi
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8824
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8827 yes:no: )
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc=yes
8833 ;;
8834 no:yes:* )
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8847 (
8848 cat <<\_ASBOX
8849 ## ------------------------------------------ ##
8850 ## Report this to the AC_PACKAGE_NAME lists. ##
8851 ## ------------------------------------------ ##
8852 _ASBOX
8853 ) |
8854 sed "s/^/$as_me: WARNING: /" >&2
8855 ;;
8856 esac
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 eval "$as_ac_Header=\$ac_header_preproc"
8863 fi
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8866
8867 fi
8868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8871 _ACEOF
8872
8873 fi
8874
8875 done
8876
8877
8878 for ac_func in getpagesize
8879 do
8880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8881 echo "$as_me:$LINENO: checking for $ac_func" >&5
8882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_var+set}\" = set"; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8894 #define $ac_func innocuous_$ac_func
8895
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char $ac_func (); below.
8898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899 <limits.h> exists even on freestanding compilers. */
8900
8901 #ifdef __STDC__
8902 # include <limits.h>
8903 #else
8904 # include <assert.h>
8905 #endif
8906
8907 #undef $ac_func
8908
8909 /* Override any gcc2 internal prototype to avoid an error. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 {
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char $ac_func ();
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8921 choke me
8922 #else
8923 char (*f) () = $ac_func;
8924 #endif
8925 #ifdef __cplusplus
8926 }
8927 #endif
8928
8929 int
8930 main ()
8931 {
8932 return f != $ac_func;
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 eval "$as_ac_var=yes"
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 eval "$as_ac_var=no"
8964 fi
8965 rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967 fi
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8970 if test `eval echo '${'$as_ac_var'}'` = yes; then
8971 cat >>confdefs.h <<_ACEOF
8972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8973 _ACEOF
8974
8975 fi
8976 done
8977
8978 echo "$as_me:$LINENO: checking for working mmap" >&5
8979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 if test "$cross_compiling" = yes; then
8984 ac_cv_func_mmap_fixed_mapped=no
8985 else
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h. */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 $ac_includes_default
8993 /* malloc might have been renamed as rpl_malloc. */
8994 #undef malloc
8995
8996 /* Thanks to Mike Haertel and Jim Avera for this test.
8997 Here is a matrix of mmap possibilities:
8998 mmap private not fixed
8999 mmap private fixed at somewhere currently unmapped
9000 mmap private fixed at somewhere already mapped
9001 mmap shared not fixed
9002 mmap shared fixed at somewhere currently unmapped
9003 mmap shared fixed at somewhere already mapped
9004 For private mappings, we should verify that changes cannot be read()
9005 back from the file, nor mmap's back from the file at a different
9006 address. (There have been systems where private was not correctly
9007 implemented like the infamous i386 svr4.0, and systems where the
9008 VM page cache was not coherent with the file system buffer cache
9009 like early versions of FreeBSD and possibly contemporary NetBSD.)
9010 For shared mappings, we should conversely verify that changes get
9011 propagated back to all the places they're supposed to be.
9012
9013 Grep wants private fixed already mapped.
9014 The main things grep needs to know about mmap are:
9015 * does it exist and is it safe to write into the mmap'd area
9016 * how to use it (BSD variants) */
9017
9018 #include <fcntl.h>
9019 #include <sys/mman.h>
9020
9021 #if !STDC_HEADERS && !HAVE_STDLIB_H
9022 char *malloc ();
9023 #endif
9024
9025 /* This mess was copied from the GNU getpagesize.h. */
9026 #if !HAVE_GETPAGESIZE
9027 /* Assume that all systems that can run configure have sys/param.h. */
9028 # if !HAVE_SYS_PARAM_H
9029 # define HAVE_SYS_PARAM_H 1
9030 # endif
9031
9032 # ifdef _SC_PAGESIZE
9033 # define getpagesize() sysconf(_SC_PAGESIZE)
9034 # else /* no _SC_PAGESIZE */
9035 # if HAVE_SYS_PARAM_H
9036 # include <sys/param.h>
9037 # ifdef EXEC_PAGESIZE
9038 # define getpagesize() EXEC_PAGESIZE
9039 # else /* no EXEC_PAGESIZE */
9040 # ifdef NBPG
9041 # define getpagesize() NBPG * CLSIZE
9042 # ifndef CLSIZE
9043 # define CLSIZE 1
9044 # endif /* no CLSIZE */
9045 # else /* no NBPG */
9046 # ifdef NBPC
9047 # define getpagesize() NBPC
9048 # else /* no NBPC */
9049 # ifdef PAGESIZE
9050 # define getpagesize() PAGESIZE
9051 # endif /* PAGESIZE */
9052 # endif /* no NBPC */
9053 # endif /* no NBPG */
9054 # endif /* no EXEC_PAGESIZE */
9055 # else /* no HAVE_SYS_PARAM_H */
9056 # define getpagesize() 8192 /* punt totally */
9057 # endif /* no HAVE_SYS_PARAM_H */
9058 # endif /* no _SC_PAGESIZE */
9059
9060 #endif /* no HAVE_GETPAGESIZE */
9061
9062 int
9063 main ()
9064 {
9065 char *data, *data2, *data3;
9066 int i, pagesize;
9067 int fd;
9068
9069 pagesize = getpagesize ();
9070
9071 /* First, make a file with some known garbage in it. */
9072 data = (char *) malloc (pagesize);
9073 if (!data)
9074 exit (1);
9075 for (i = 0; i < pagesize; ++i)
9076 *(data + i) = rand ();
9077 umask (0);
9078 fd = creat ("conftest.mmap", 0600);
9079 if (fd < 0)
9080 exit (1);
9081 if (write (fd, data, pagesize) != pagesize)
9082 exit (1);
9083 close (fd);
9084
9085 /* Next, try to mmap the file at a fixed address which already has
9086 something else allocated at it. If we can, also make sure that
9087 we see the same garbage. */
9088 fd = open ("conftest.mmap", O_RDWR);
9089 if (fd < 0)
9090 exit (1);
9091 data2 = (char *) malloc (2 * pagesize);
9092 if (!data2)
9093 exit (1);
9094 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9097 exit (1);
9098 for (i = 0; i < pagesize; ++i)
9099 if (*(data + i) != *(data2 + i))
9100 exit (1);
9101
9102 /* Finally, make sure that changes to the mapped area do not
9103 percolate back to the file as seen by read(). (This is a bug on
9104 some variants of i386 svr4.0.) */
9105 for (i = 0; i < pagesize; ++i)
9106 *(data2 + i) = *(data2 + i) + 1;
9107 data3 = (char *) malloc (pagesize);
9108 if (!data3)
9109 exit (1);
9110 if (read (fd, data3, pagesize) != pagesize)
9111 exit (1);
9112 for (i = 0; i < pagesize; ++i)
9113 if (*(data + i) != *(data3 + i))
9114 exit (1);
9115 close (fd);
9116 exit (0);
9117 }
9118 _ACEOF
9119 rm -f conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_func_mmap_fixed_mapped=yes
9131 else
9132 echo "$as_me: program exited with status $ac_status" >&5
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 ( exit $ac_status )
9137 ac_cv_func_mmap_fixed_mapped=no
9138 fi
9139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9140 fi
9141 fi
9142 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9143 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9144 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9145
9146 cat >>confdefs.h <<\_ACEOF
9147 #define HAVE_MMAP 1
9148 _ACEOF
9149
9150 fi
9151 rm -f conftest.mmap
9152
9153 if test $use_mmap_for_buffers = yes; then
9154 REL_ALLOC=no
9155 fi
9156
9157 LIBS="$libsrc_libs $LIBS"
9158
9159
9160 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9161 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9162 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 ac_check_lib_save_LIBS=$LIBS
9166 LIBS="-ldnet $LIBS"
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173
9174 /* Override any gcc2 internal prototype to avoid an error. */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9180 char dnet_ntoa ();
9181 int
9182 main ()
9183 {
9184 dnet_ntoa ();
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_dnet_dnet_ntoa=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 ac_cv_lib_dnet_dnet_ntoa=no
9216 fi
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 LIBS=$ac_check_lib_save_LIBS
9220 fi
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9222 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9223 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_LIBDNET 1
9226 _ACEOF
9227
9228 LIBS="-ldnet $LIBS"
9229
9230 fi
9231
9232
9233 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9234 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9235 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lXbsd $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246
9247
9248 int
9249 main ()
9250 {
9251 main ();
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_cv_lib_Xbsd_main=yes
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282 ac_cv_lib_Xbsd_main=no
9283 fi
9284 rm -f conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9287 fi
9288 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9289 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9290 if test $ac_cv_lib_Xbsd_main = yes; then
9291 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9292 fi
9293
9294
9295
9296 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9297 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9298 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301 ac_check_lib_save_LIBS=$LIBS
9302 LIBS="-lpthreads $LIBS"
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309
9310 /* Override any gcc2 internal prototype to avoid an error. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9316 char cma_open ();
9317 int
9318 main ()
9319 {
9320 cma_open ();
9321 ;
9322 return 0;
9323 }
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_lib_pthreads_cma_open=yes
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ac_cv_lib_pthreads_cma_open=no
9352 fi
9353 rm -f conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9356 fi
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9358 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9359 if test $ac_cv_lib_pthreads_cma_open = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_LIBPTHREADS 1
9362 _ACEOF
9363
9364 LIBS="-lpthreads $LIBS"
9365
9366 fi
9367
9368
9369 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9370 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9371 if test -d /usr/X386/include; then
9372 HAVE_XFREE386=yes
9373 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9374 else
9375 HAVE_XFREE386=no
9376 fi
9377 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9378 echo "${ECHO_T}$HAVE_XFREE386" >&6
9379
9380
9381 case ${host_os} in
9382 aix*)
9383 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9384 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9385 if test "${gdb_cv_bigtoc+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388
9389 case $GCC in
9390 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9391 *) gdb_cv_bigtoc=-bbigtoc ;;
9392 esac
9393
9394 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401
9402 int
9403 main ()
9404 {
9405 int i;
9406 ;
9407 return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 :
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 gdb_cv_bigtoc=
9437 fi
9438 rm -f conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440
9441 fi
9442 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9443 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9444 ;;
9445 esac
9446
9447 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9448 # used for the tests that follow. We set them back to REAL_CFLAGS and
9449 # REAL_CPPFLAGS later on.
9450
9451 REAL_CPPFLAGS="$CPPFLAGS"
9452
9453 if test "${HAVE_X11}" = "yes"; then
9454 DEFS="$C_SWITCH_X_SITE $DEFS"
9455 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9456 LIBS="$LIBX $LIBS"
9457 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9458 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9459
9460 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9461 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9462 # but it's more convenient here to set LD_RUN_PATH
9463 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9464 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9465 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9466 export LD_RUN_PATH
9467 fi
9468
9469 if test "${opsys}" = "gnu-linux"; then
9470 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9471 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478
9479 int
9480 main ()
9481 {
9482 XOpenDisplay ("foo");
9483 ;
9484 return 0;
9485 }
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 xlinux_first_failure=no
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 xlinux_first_failure=yes
9514 fi
9515 rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 if test "${xlinux_first_failure}" = "yes"; then
9518 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9519 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9520 OLD_CPPFLAGS="$CPPFLAGS"
9521 OLD_LIBS="$LIBS"
9522 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9523 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9524 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9525 LIBS="$LIBS -b i486-linuxaout"
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532
9533 int
9534 main ()
9535 {
9536 XOpenDisplay ("foo");
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 xlinux_second_failure=no
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 xlinux_second_failure=yes
9568 fi
9569 rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571 if test "${xlinux_second_failure}" = "yes"; then
9572 # If we get the same failure with -b, there is no use adding -b.
9573 # So take it out. This plays safe.
9574 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9575 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9576 CPPFLAGS="$OLD_CPPFLAGS"
9577 LIBS="$OLD_LIBS"
9578 echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9580 else
9581 echo "$as_me:$LINENO: result: yes" >&5
9582 echo "${ECHO_T}yes" >&6
9583 fi
9584 else
9585 echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9587 fi
9588 fi
9589
9590 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9591 # header files included from there.
9592 echo "$as_me:$LINENO: checking for Xkb" >&5
9593 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <X11/Xlib.h>
9601 #include <X11/XKBlib.h>
9602 int
9603 main ()
9604 {
9605 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 emacs_xkb=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 emacs_xkb=no
9637 fi
9638 rm -f conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9641 echo "${ECHO_T}$emacs_xkb" >&6
9642 if test $emacs_xkb = yes; then
9643
9644 cat >>confdefs.h <<\_ACEOF
9645 #define HAVE_XKBGETKEYBOARD 1
9646 _ACEOF
9647
9648 fi
9649
9650
9651
9652
9653
9654 for ac_func in XrmSetDatabase XScreenResourceString \
9655 XScreenNumberOfScreen XSetWMProtocols
9656 do
9657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658 echo "$as_me:$LINENO: checking for $ac_func" >&5
9659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9660 if eval "test \"\${$as_ac_var+set}\" = set"; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671 #define $ac_func innocuous_$ac_func
9672
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9677
9678 #ifdef __STDC__
9679 # include <limits.h>
9680 #else
9681 # include <assert.h>
9682 #endif
9683
9684 #undef $ac_func
9685
9686 /* Override any gcc2 internal prototype to avoid an error. */
9687 #ifdef __cplusplus
9688 extern "C"
9689 {
9690 #endif
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693 char $ac_func ();
9694 /* The GNU C library defines this for functions which it implements
9695 to always fail with ENOSYS. Some functions are actually named
9696 something starting with __ and the normal name is an alias. */
9697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9698 choke me
9699 #else
9700 char (*f) () = $ac_func;
9701 #endif
9702 #ifdef __cplusplus
9703 }
9704 #endif
9705
9706 int
9707 main ()
9708 {
9709 return f != $ac_func;
9710 ;
9711 return 0;
9712 }
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 eval "$as_ac_var=yes"
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 eval "$as_ac_var=no"
9741 fi
9742 rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 fi
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9750 _ACEOF
9751
9752 fi
9753 done
9754
9755 fi
9756
9757 if test "${window_system}" = "x11"; then
9758 echo "$as_me:$LINENO: checking X11 version 6" >&5
9759 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9760 if test "${emacs_cv_x11_version_6+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 #include <X11/Xlib.h>
9770 int
9771 main ()
9772 {
9773 #if XlibSpecificationRelease < 6
9774 fail;
9775 #endif
9776
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 emacs_cv_x11_version_6=yes
9803 else
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9806
9807 emacs_cv_x11_version_6=no
9808 fi
9809 rm -f conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9811 fi
9812
9813 if test $emacs_cv_x11_version_6 = yes; then
9814 echo "$as_me:$LINENO: result: 6 or newer" >&5
9815 echo "${ECHO_T}6 or newer" >&6
9816
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_X11R6 1
9819 _ACEOF
9820
9821 else
9822 echo "$as_me:$LINENO: result: before 6" >&5
9823 echo "${ECHO_T}before 6" >&6
9824 fi
9825 fi
9826
9827 if test "${window_system}" = "x11"; then
9828 echo "$as_me:$LINENO: checking X11 version 5" >&5
9829 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9830 if test "${emacs_cv_x11_version_5+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9840 int
9841 main ()
9842 {
9843 #if XlibSpecificationRelease < 5
9844 fail;
9845 #endif
9846
9847 ;
9848 return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 emacs_cv_x11_version_5=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 emacs_cv_x11_version_5=no
9878 fi
9879 rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881 fi
9882
9883 if test $emacs_cv_x11_version_5 = yes; then
9884 echo "$as_me:$LINENO: result: 5 or newer" >&5
9885 echo "${ECHO_T}5 or newer" >&6
9886 HAVE_X11R5=yes
9887
9888 cat >>confdefs.h <<\_ACEOF
9889 #define HAVE_X11R5 1
9890 _ACEOF
9891
9892 else
9893 HAVE_X11R5=no
9894 echo "$as_me:$LINENO: result: before 5" >&5
9895 echo "${ECHO_T}before 5" >&6
9896 fi
9897 fi
9898
9899
9900
9901 HAVE_GTK=no
9902 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9903 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9904 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9905 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9906 { (exit 1); exit 1; }; };
9907 fi
9908 GLIB_REQUIRED=2.0.1
9909 GTK_REQUIRED=2.0.1
9910 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9911
9912 if test "X${with_pkg_config_prog}" != X; then
9913 PKG_CONFIG="${with_pkg_config_prog}"
9914 fi
9915
9916 succeeded=no
9917
9918 if test -z "$PKG_CONFIG"; then
9919 # Extract the first word of "pkg-config", so it can be a program name with args.
9920 set dummy pkg-config; ac_word=$2
9921 echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 case $PKG_CONFIG in
9927 [\\/]* | ?:[\\/]*)
9928 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9929 ;;
9930 *)
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9933 do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942 done
9943 done
9944
9945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9946 ;;
9947 esac
9948 fi
9949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9950
9951 if test -n "$PKG_CONFIG"; then
9952 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9953 echo "${ECHO_T}$PKG_CONFIG" >&6
9954 else
9955 echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9957 fi
9958
9959 fi
9960
9961 if test "$PKG_CONFIG" = "no" ; then
9962 echo "*** The pkg-config script could not be found. Make sure it is"
9963 echo "*** in your path, or give the full path to pkg-config with"
9964 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9965 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9966 else
9967 PKG_CONFIG_MIN_VERSION=0.9.0
9968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9969 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9970 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9971
9972 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9973 echo "$as_me:$LINENO: result: yes" >&5
9974 echo "${ECHO_T}yes" >&6
9975 succeeded=yes
9976
9977 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9978 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9979 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9980 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9981 echo "${ECHO_T}$GTK_CFLAGS" >&6
9982
9983 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9984 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9985 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9986 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9987 echo "${ECHO_T}$GTK_LIBS" >&6
9988 else
9989 GTK_CFLAGS=""
9990 GTK_LIBS=""
9991 ## If we have a custom action on failure, don't print errors, but
9992 ## do set a variable so people can do so.
9993 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9994 echo $GTK_PKG_ERRORS
9995 fi
9996
9997
9998
9999 else
10000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10002 fi
10003 fi
10004
10005 if test $succeeded = yes; then
10006 :
10007 else
10008 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10009 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10010 { (exit 1); exit 1; }; }
10011 fi
10012
10013
10014
10015 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10016 CFLAGS="$CFLAGS $GTK_CFLAGS"
10017 LIBS="$GTK_LIBS $LIBS"
10018 HAVE_GTK=yes
10019
10020 cat >>confdefs.h <<\_ACEOF
10021 #define HAVE_GTK 1
10022 _ACEOF
10023
10024 USE_X_TOOLKIT=none
10025
10026 if test "$with_toolkit_scroll_bars" != no; then
10027 with_toolkit_scroll_bars=yes
10028 fi
10029
10030 HAVE_GTK_MULTIDISPLAY=no
10031
10032 for ac_func in gdk_display_open
10033 do
10034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_var+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10049
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10054
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10060
10061 #undef $ac_func
10062
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 {
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char $ac_func ();
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10075 choke me
10076 #else
10077 char (*f) () = $ac_func;
10078 #endif
10079 #ifdef __cplusplus
10080 }
10081 #endif
10082
10083 int
10084 main ()
10085 {
10086 return f != $ac_func;
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 eval "$as_ac_var=no"
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10128 HAVE_GTK_MULTIDISPLAY=yes
10129 fi
10130 done
10131
10132 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10133
10134 cat >>confdefs.h <<\_ACEOF
10135 #define HAVE_GTK_MULTIDISPLAY 1
10136 _ACEOF
10137
10138 fi
10139 HAVE_GTK_FILE_SELECTION=no
10140
10141 for ac_func in gtk_file_selection_new
10142 do
10143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_var+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10157 #define $ac_func innocuous_$ac_func
10158
10159 /* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char $ac_func (); below.
10161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162 <limits.h> exists even on freestanding compilers. */
10163
10164 #ifdef __STDC__
10165 # include <limits.h>
10166 #else
10167 # include <assert.h>
10168 #endif
10169
10170 #undef $ac_func
10171
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 #ifdef __cplusplus
10174 extern "C"
10175 {
10176 #endif
10177 /* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
10179 char $ac_func ();
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10184 choke me
10185 #else
10186 char (*f) () = $ac_func;
10187 #endif
10188 #ifdef __cplusplus
10189 }
10190 #endif
10191
10192 int
10193 main ()
10194 {
10195 return f != $ac_func;
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 eval "$as_ac_var=yes"
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 eval "$as_ac_var=no"
10227 fi
10228 rm -f conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 fi
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10233 if test `eval echo '${'$as_ac_var'}'` = yes; then
10234 cat >>confdefs.h <<_ACEOF
10235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10236 _ACEOF
10237 HAVE_GTK_FILE_SELECTION=yes
10238 fi
10239 done
10240
10241
10242 HAVE_GTK_FILE_CHOOSER=no
10243
10244 for ac_func in gtk_file_chooser_dialog_new
10245 do
10246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10247 echo "$as_me:$LINENO: checking for $ac_func" >&5
10248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10249 if eval "test \"\${$as_ac_var+set}\" = set"; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260 #define $ac_func innocuous_$ac_func
10261
10262 /* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char $ac_func (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
10266
10267 #ifdef __STDC__
10268 # include <limits.h>
10269 #else
10270 # include <assert.h>
10271 #endif
10272
10273 #undef $ac_func
10274
10275 /* Override any gcc2 internal prototype to avoid an error. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 {
10279 #endif
10280 /* We use char because int might match the return type of a gcc2
10281 builtin and then its argument prototype would still apply. */
10282 char $ac_func ();
10283 /* The GNU C library defines this for functions which it implements
10284 to always fail with ENOSYS. Some functions are actually named
10285 something starting with __ and the normal name is an alias. */
10286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10287 choke me
10288 #else
10289 char (*f) () = $ac_func;
10290 #endif
10291 #ifdef __cplusplus
10292 }
10293 #endif
10294
10295 int
10296 main ()
10297 {
10298 return f != $ac_func;
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 eval "$as_ac_var=yes"
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 eval "$as_ac_var=no"
10330 fi
10331 rm -f conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 fi
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10339 _ACEOF
10340 HAVE_GTK_FILE_CHOOSER=yes
10341 fi
10342 done
10343
10344
10345 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10346 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10347
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_GTK_FILE_BOTH 1
10350 _ACEOF
10351
10352 fi
10353
10354 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10355 HAVE_GTK_AND_PTHREAD=no
10356
10357 for ac_header in pthread.h
10358 do
10359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 fi
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10368 else
10369 # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10379 #include <$ac_header>
10380 _ACEOF
10381 rm -f conftest.$ac_objext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_header_compiler=yes
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ac_header_compiler=no
10408 fi
10409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10411 echo "${ECHO_T}$ac_header_compiler" >&6
10412
10413 # Is the header present?
10414 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 #include <$ac_header>
10423 _ACEOF
10424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } >/dev/null; then
10432 if test -s conftest.err; then
10433 ac_cpp_err=$ac_c_preproc_warn_flag
10434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10435 else
10436 ac_cpp_err=
10437 fi
10438 else
10439 ac_cpp_err=yes
10440 fi
10441 if test -z "$ac_cpp_err"; then
10442 ac_header_preproc=yes
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ac_header_preproc=no
10448 fi
10449 rm -f conftest.err conftest.$ac_ext
10450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10451 echo "${ECHO_T}$ac_header_preproc" >&6
10452
10453 # So? What about this header?
10454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10455 yes:no: )
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10460 ac_header_preproc=yes
10461 ;;
10462 no:yes:* )
10463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10475 (
10476 cat <<\_ASBOX
10477 ## ------------------------------------------ ##
10478 ## Report this to the AC_PACKAGE_NAME lists. ##
10479 ## ------------------------------------------ ##
10480 _ASBOX
10481 ) |
10482 sed "s/^/$as_me: WARNING: /" >&2
10483 ;;
10484 esac
10485 echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 eval "$as_ac_Header=\$ac_header_preproc"
10491 fi
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494
10495 fi
10496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499 _ACEOF
10500
10501 fi
10502
10503 done
10504
10505 if test "$ac_cv_header_pthread_h"; then
10506 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10507 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10508 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511 ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-lpthread $LIBS"
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h. */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519
10520 /* Override any gcc2 internal prototype to avoid an error. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 /* We use char because int might match the return type of a gcc2
10525 builtin and then its argument prototype would still apply. */
10526 char pthread_self ();
10527 int
10528 main ()
10529 {
10530 pthread_self ();
10531 ;
10532 return 0;
10533 }
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537 (eval $ac_link) 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_lib_pthread_pthread_self=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 ac_cv_lib_pthread_pthread_self=no
10562 fi
10563 rm -f conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10566 fi
10567 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10568 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10569 if test $ac_cv_lib_pthread_pthread_self = yes; then
10570 HAVE_GTK_AND_PTHREAD=yes
10571 fi
10572
10573 fi
10574 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10575 GTK_LIBS="$GTK_LIBS -lpthread"
10576
10577 cat >>confdefs.h <<\_ACEOF
10578 #define HAVE_GTK_AND_PTHREAD 1
10579 _ACEOF
10580
10581 fi
10582 fi
10583 fi
10584
10585 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10586 if test x"${HAVE_X11R5}" = xyes; then
10587 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10588 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10589 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598
10599 #include <X11/Intrinsic.h>
10600 #include <X11/Xaw/Simple.h>
10601 int
10602 main ()
10603 {
10604
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest$ac_exeext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 emacs_cv_x11_version_5_with_xaw=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 emacs_cv_x11_version_5_with_xaw=no
10636 fi
10637 rm -f conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 fi
10640
10641 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10642 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10643 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10644 USE_X_TOOLKIT=LUCID
10645 else
10646 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10647 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10648 USE_X_TOOLKIT=none
10649 fi
10650 else
10651 USE_X_TOOLKIT=none
10652 fi
10653 fi
10654
10655 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10656
10657 if test "${USE_X_TOOLKIT}" != "none"; then
10658 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10659 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10660 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <X11/Intrinsic.h>
10670 int
10671 main ()
10672 {
10673 #if XtSpecificationRelease < 6
10674 fail;
10675 #endif
10676
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683 (eval $ac_link) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 emacs_cv_x11_toolkit_version_6=yes
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 emacs_cv_x11_toolkit_version_6=no
10708 fi
10709 rm -f conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 fi
10712
10713 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10714 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10715 echo "$as_me:$LINENO: result: 6 or newer" >&5
10716 echo "${ECHO_T}6 or newer" >&6
10717
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_X11XTR6 1
10720 _ACEOF
10721
10722 else
10723 echo "$as_me:$LINENO: result: before 6" >&5
10724 echo "${ECHO_T}before 6" >&6
10725 fi
10726
10727 OLDLIBS="$LIBS"
10728 if test x$HAVE_X11XTR6 = xyes; then
10729 LIBS="-lXt -lSM -lICE $LIBS"
10730 else
10731 LIBS="-lXt $LIBS"
10732 fi
10733
10734 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10735 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10736 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 ac_check_lib_save_LIBS=$LIBS
10740 LIBS="-lXmu $LIBS"
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747
10748 /* Override any gcc2 internal prototype to avoid an error. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char XmuConvertStandardSelection ();
10755 int
10756 main ()
10757 {
10758 XmuConvertStandardSelection ();
10759 ;
10760 return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10790 fi
10791 rm -f conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10794 fi
10795 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10796 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10797 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define HAVE_LIBXMU 1
10800 _ACEOF
10801
10802 LIBS="-lXmu $LIBS"
10803
10804 fi
10805
10806 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10807 fi
10808
10809 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10810 if test "${HAVE_X11}" = "yes"; then
10811 if test "${USE_X_TOOLKIT}" != "none"; then
10812
10813 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10814 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10815 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-lXext $LIBS"
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 /* We use char because int might match the return type of a gcc2
10832 builtin and then its argument prototype would still apply. */
10833 char XShapeQueryExtension ();
10834 int
10835 main ()
10836 {
10837 XShapeQueryExtension ();
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844 (eval $ac_link) 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 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_lib_Xext_XShapeQueryExtension=yes
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 ac_cv_lib_Xext_XShapeQueryExtension=no
10869 fi
10870 rm -f conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10873 fi
10874 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10875 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10876 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10877 cat >>confdefs.h <<_ACEOF
10878 #define HAVE_LIBXEXT 1
10879 _ACEOF
10880
10881 LIBS="-lXext $LIBS"
10882
10883 fi
10884
10885 fi
10886 fi
10887
10888 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10889 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10890 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10891 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #include <Xm/Xm.h>
10901 int
10902 main ()
10903 {
10904 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10905 int x = 5;
10906 #else
10907 Motif version prior to 2.1.
10908 #endif
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 emacs_cv_motif_version_2_1=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 emacs_cv_motif_version_2_1=no
10940 fi
10941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10942 fi
10943 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10944 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10945 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10946 if test $emacs_cv_motif_version_2_1 = yes; then
10947 HAVE_LIBXP=no
10948
10949 cat >>confdefs.h <<\_ACEOF
10950 #define HAVE_MOTIF_2_1 1
10951 _ACEOF
10952
10953 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10954 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10955 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-lXp $LIBS"
10960 cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h. */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */
10973 char XpCreateContext ();
10974 int
10975 main ()
10976 {
10977 XpCreateContext ();
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984 (eval $ac_link) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_lib_Xp_XpCreateContext=yes
11004 else
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_cv_lib_Xp_XpCreateContext=no
11009 fi
11010 rm -f conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11013 fi
11014 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11015 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11016 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11017 HAVE_LIBXP=yes
11018 fi
11019
11020 if test ${HAVE_LIBXP} = yes; then
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_LIBXP 1
11024 _ACEOF
11025
11026 fi
11027 else
11028 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11029 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11030 if test "${emacs_cv_lesstif+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 # We put this in CFLAGS temporarily to precede other -I options
11034 # that might be in CFLAGS temporarily.
11035 # We put this in CPPFLAGS where it precedes the other -I options.
11036 OLD_CPPFLAGS=$CPPFLAGS
11037 OLD_CFLAGS=$CFLAGS
11038 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11039 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11047 int
11048 main ()
11049 {
11050 int x = 5;
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 emacs_cv_lesstif=yes
11077 else
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 emacs_cv_lesstif=no
11082 fi
11083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11084 fi
11085 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11086 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11087 if test $emacs_cv_lesstif = yes; then
11088 # Make sure this -I option remains in CPPFLAGS after it is set
11089 # back to REAL_CPPFLAGS.
11090 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11091 # have those other -I options anyway. Ultimately, having this
11092 # directory ultimately in CPPFLAGS will be enough.
11093 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11094 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11095 else
11096 CFLAGS=$OLD_CFLAGS
11097 CPPFLAGS=$OLD_CPPFLAGS
11098 fi
11099 fi
11100 fi
11101
11102 ### Is -lXaw3d available?
11103 HAVE_XAW3D=no
11104 if test "${HAVE_X11}" = "yes"; then
11105 if test "${USE_X_TOOLKIT}" != "none"; then
11106 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11107 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11108 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #include <X11/Xaw3d/Scrollbar.h>
11118 _ACEOF
11119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } >/dev/null; then
11127 if test -s conftest.err; then
11128 ac_cpp_err=$ac_c_preproc_warn_flag
11129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11130 else
11131 ac_cpp_err=
11132 fi
11133 else
11134 ac_cpp_err=yes
11135 fi
11136 if test -z "$ac_cpp_err"; then
11137 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11143 fi
11144 rm -f conftest.err conftest.$ac_ext
11145 fi
11146 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11147 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11148 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11149 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11150 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11151 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154 ac_check_lib_save_LIBS=$LIBS
11155 LIBS="-lXaw3d $LIBS"
11156 cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h. */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11162
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 XawScrollbarSetThumb ();
11170 int
11171 main ()
11172 {
11173 XawScrollbarSetThumb ();
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } &&
11193 { ac_try='test -s conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11205 fi
11206 rm -f conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11209 fi
11210 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11211 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11212 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11213 HAVE_XAW3D=yes
11214 fi
11215
11216 fi
11217
11218
11219 if test "${HAVE_XAW3D}" = "yes"; then
11220
11221 cat >>confdefs.h <<\_ACEOF
11222 #define HAVE_XAW3D 1
11223 _ACEOF
11224
11225 fi
11226 fi
11227 fi
11228
11229
11230
11231 USE_TOOLKIT_SCROLL_BARS=no
11232 if test "${with_toolkit_scroll_bars}" != "no"; then
11233 if test "${USE_X_TOOLKIT}" != "none"; then
11234 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11235 cat >>confdefs.h <<\_ACEOF
11236 #define USE_TOOLKIT_SCROLL_BARS 1
11237 _ACEOF
11238
11239 HAVE_XAW3D=no
11240 USE_TOOLKIT_SCROLL_BARS=yes
11241 elif test "${HAVE_XAW3D}" = "yes"; then
11242 cat >>confdefs.h <<\_ACEOF
11243 #define USE_TOOLKIT_SCROLL_BARS 1
11244 _ACEOF
11245
11246 USE_TOOLKIT_SCROLL_BARS=yes
11247 fi
11248 elif test "${HAVE_GTK}" = "yes"; then
11249 cat >>confdefs.h <<\_ACEOF
11250 #define USE_TOOLKIT_SCROLL_BARS 1
11251 _ACEOF
11252
11253 USE_TOOLKIT_SCROLL_BARS=yes
11254 elif test "${HAVE_CARBON}" = "yes"; then
11255 cat >>confdefs.h <<\_ACEOF
11256 #define USE_TOOLKIT_SCROLL_BARS 1
11257 _ACEOF
11258
11259 USE_TOOLKIT_SCROLL_BARS=yes
11260 fi
11261 fi
11262
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h. */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269
11270 #include <X11/Xlib.h>
11271 #include <X11/Xresource.h>
11272 int
11273 main ()
11274 {
11275 XIMProc callback;
11276 ;
11277 return 0;
11278 }
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>conftest.er1
11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 HAVE_XIM=yes
11302
11303 cat >>confdefs.h <<\_ACEOF
11304 #define HAVE_XIM 1
11305 _ACEOF
11306
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311 HAVE_XIM=no
11312 fi
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314
11315
11316 if test "${with_xim}" != "no"; then
11317
11318 cat >>confdefs.h <<\_ACEOF
11319 #define USE_XIM 1
11320 _ACEOF
11321
11322 fi
11323
11324
11325 if test "${HAVE_XIM}" != "no"; then
11326 late_CFLAGS=$CFLAGS
11327 if test "$GCC" = yes; then
11328 CFLAGS="$CFLAGS --pedantic-errors"
11329 fi
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336
11337 #include <X11/Xlib.h>
11338 #include <X11/Xresource.h>
11339 int
11340 main ()
11341 {
11342 Display *display;
11343 XrmDatabase db;
11344 char *res_name;
11345 char *res_class;
11346 XIMProc callback;
11347 XPointer *client_data;
11348 #ifndef __GNUC__
11349 /* If we're not using GCC, it's probably not XFree86, and this is
11350 probably right, but we can't use something like --pedantic-errors. */
11351 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11352 char*, XIMProc, XPointer*);
11353 #endif
11354 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11355 client_data);
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 emacs_cv_arg6_star=yes
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 fi
11387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11388
11389 if test "$emacs_cv_arg6_star" = yes; then
11390 cat >>confdefs.h <<\_ACEOF
11391 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11392 _ACEOF
11393
11394 else
11395 cat >>confdefs.h <<\_ACEOF
11396 #define XRegisterIMInstantiateCallback_arg6 XPointer
11397 _ACEOF
11398
11399 fi
11400 CFLAGS=$late_CFLAGS
11401 fi
11402
11403 ### Use -lXpm if available, unless `--with-xpm=no'.
11404 HAVE_XPM=no
11405 if test "${HAVE_X11}" = "yes"; then
11406 if test "${with_xpm}" != "no"; then
11407 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11408 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11409 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11410 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 fi
11413 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11414 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11415 else
11416 # Is the header compilable?
11417 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11418 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 #include <X11/xpm.h>
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try='test -s conftest.$ac_objext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_header_compiler=yes
11450 else
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 ac_header_compiler=no
11455 fi
11456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11458 echo "${ECHO_T}$ac_header_compiler" >&6
11459
11460 # Is the header present?
11461 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11462 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 #include <X11/xpm.h>
11470 _ACEOF
11471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } >/dev/null; then
11479 if test -s conftest.err; then
11480 ac_cpp_err=$ac_c_preproc_warn_flag
11481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11482 else
11483 ac_cpp_err=
11484 fi
11485 else
11486 ac_cpp_err=yes
11487 fi
11488 if test -z "$ac_cpp_err"; then
11489 ac_header_preproc=yes
11490 else
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494 ac_header_preproc=no
11495 fi
11496 rm -f conftest.err conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11498 echo "${ECHO_T}$ac_header_preproc" >&6
11499
11500 # So? What about this header?
11501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11502 yes:no: )
11503 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11504 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11506 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11507 ac_header_preproc=yes
11508 ;;
11509 no:yes:* )
11510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11511 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11513 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11515 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11517 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11519 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11521 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11522 (
11523 cat <<\_ASBOX
11524 ## ------------------------------------------ ##
11525 ## Report this to the AC_PACKAGE_NAME lists. ##
11526 ## ------------------------------------------ ##
11527 _ASBOX
11528 ) |
11529 sed "s/^/$as_me: WARNING: /" >&2
11530 ;;
11531 esac
11532 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11533 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11534 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 ac_cv_header_X11_xpm_h=$ac_header_preproc
11538 fi
11539 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11540 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11541
11542 fi
11543 if test $ac_cv_header_X11_xpm_h = yes; then
11544 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11545 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11546 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lXpm -lX11 $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h. */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11557
11558 /* Override any gcc2 internal prototype to avoid an error. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 /* We use char because int might match the return type of a gcc2
11563 builtin and then its argument prototype would still apply. */
11564 char XpmReadFileToPixmap ();
11565 int
11566 main ()
11567 {
11568 XpmReadFileToPixmap ();
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575 (eval $ac_link) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest$ac_exeext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11600 fi
11601 rm -f conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11606 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11607 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11608 HAVE_XPM=yes
11609 fi
11610
11611 fi
11612
11613
11614 if test "${HAVE_XPM}" = "yes"; then
11615 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11616 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 #include "X11/xpm.h"
11624 #ifndef XpmReturnAllocPixels
11625 no_return_alloc_pixels
11626 #endif
11627
11628 _ACEOF
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11631 HAVE_XPM=no
11632 else
11633 HAVE_XPM=yes
11634 fi
11635 rm -f conftest*
11636
11637
11638 if test "${HAVE_XPM}" = "yes"; then
11639 echo "$as_me:$LINENO: result: yes" >&5
11640 echo "${ECHO_T}yes" >&6
11641 else
11642 echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11644 fi
11645 fi
11646 fi
11647
11648 if test "${HAVE_XPM}" = "yes"; then
11649
11650 cat >>confdefs.h <<\_ACEOF
11651 #define HAVE_XPM 1
11652 _ACEOF
11653
11654 fi
11655 fi
11656
11657 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11658 HAVE_JPEG=no
11659 if test "${HAVE_X11}" = "yes"; then
11660 if test "${with_jpeg}" != "no"; then
11661 if test "${ac_cv_header_jerror_h+set}" = set; then
11662 echo "$as_me:$LINENO: checking for jerror.h" >&5
11663 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11664 if test "${ac_cv_header_jerror_h+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 fi
11667 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11668 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11669 else
11670 # Is the header compilable?
11671 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11672 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 $ac_includes_default
11680 #include <jerror.h>
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_header_compiler=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11712 echo "${ECHO_T}$ac_header_compiler" >&6
11713
11714 # Is the header present?
11715 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11716 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 #include <jerror.h>
11724 _ACEOF
11725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } >/dev/null; then
11733 if test -s conftest.err; then
11734 ac_cpp_err=$ac_c_preproc_warn_flag
11735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11736 else
11737 ac_cpp_err=
11738 fi
11739 else
11740 ac_cpp_err=yes
11741 fi
11742 if test -z "$ac_cpp_err"; then
11743 ac_header_preproc=yes
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 ac_header_preproc=no
11749 fi
11750 rm -f conftest.err conftest.$ac_ext
11751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11752 echo "${ECHO_T}$ac_header_preproc" >&6
11753
11754 # So? What about this header?
11755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11756 yes:no: )
11757 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11758 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11760 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11761 ac_header_preproc=yes
11762 ;;
11763 no:yes:* )
11764 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11765 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11767 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11769 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11771 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11773 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11775 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11776 (
11777 cat <<\_ASBOX
11778 ## ------------------------------------------ ##
11779 ## Report this to the AC_PACKAGE_NAME lists. ##
11780 ## ------------------------------------------ ##
11781 _ASBOX
11782 ) |
11783 sed "s/^/$as_me: WARNING: /" >&2
11784 ;;
11785 esac
11786 echo "$as_me:$LINENO: checking for jerror.h" >&5
11787 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11788 if test "${ac_cv_header_jerror_h+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791 ac_cv_header_jerror_h=$ac_header_preproc
11792 fi
11793 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11794 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11795
11796 fi
11797 if test $ac_cv_header_jerror_h = yes; then
11798 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11799 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11800 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803 ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-ljpeg $LIBS"
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811
11812 /* Override any gcc2 internal prototype to avoid an error. */
11813 #ifdef __cplusplus
11814 extern "C"
11815 #endif
11816 /* We use char because int might match the return type of a gcc2
11817 builtin and then its argument prototype would still apply. */
11818 char jpeg_destroy_compress ();
11819 int
11820 main ()
11821 {
11822 jpeg_destroy_compress ();
11823 ;
11824 return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest$ac_exeext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11854 fi
11855 rm -f conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11858 fi
11859 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11860 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11862 HAVE_JPEG=yes
11863 fi
11864
11865 fi
11866
11867
11868 fi
11869
11870
11871 if test "${HAVE_JPEG}" = "yes"; then
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_JPEG 1
11874 _ACEOF
11875
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <jpeglib.h>
11883 version=JPEG_LIB_VERSION
11884
11885 _ACEOF
11886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11888 cat >>confdefs.h <<\_ACEOF
11889 #define HAVE_JPEG 1
11890 _ACEOF
11891
11892 else
11893 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11894 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11895 HAVE_JPEG=no
11896 fi
11897 rm -f conftest*
11898
11899 fi
11900 fi
11901
11902 ### Use -lpng if available, unless `--with-png=no'.
11903 HAVE_PNG=no
11904 if test "${HAVE_X11}" = "yes"; then
11905 if test "${with_png}" != "no"; then
11906 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11907 # in /usr/include/libpng.
11908
11909
11910 for ac_header in png.h libpng/png.h
11911 do
11912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11914 echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 fi
11919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11921 else
11922 # Is the header compilable?
11923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11932 #include <$ac_header>
11933 _ACEOF
11934 rm -f conftest.$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_header_compiler=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_header_compiler=no
11961 fi
11962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11964 echo "${ECHO_T}$ac_header_compiler" >&6
11965
11966 # Is the header present?
11967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #include <$ac_header>
11976 _ACEOF
11977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } >/dev/null; then
11985 if test -s conftest.err; then
11986 ac_cpp_err=$ac_c_preproc_warn_flag
11987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11988 else
11989 ac_cpp_err=
11990 fi
11991 else
11992 ac_cpp_err=yes
11993 fi
11994 if test -z "$ac_cpp_err"; then
11995 ac_header_preproc=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_header_preproc=no
12001 fi
12002 rm -f conftest.err conftest.$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12004 echo "${ECHO_T}$ac_header_preproc" >&6
12005
12006 # So? What about this header?
12007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12008 yes:no: )
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12013 ac_header_preproc=yes
12014 ;;
12015 no:yes:* )
12016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12028 (
12029 cat <<\_ASBOX
12030 ## ------------------------------------------ ##
12031 ## Report this to the AC_PACKAGE_NAME lists. ##
12032 ## ------------------------------------------ ##
12033 _ASBOX
12034 ) |
12035 sed "s/^/$as_me: WARNING: /" >&2
12036 ;;
12037 esac
12038 echo "$as_me:$LINENO: checking for $ac_header" >&5
12039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 eval "$as_ac_Header=\$ac_header_preproc"
12044 fi
12045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12047
12048 fi
12049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12052 _ACEOF
12053
12054 fi
12055
12056 done
12057
12058 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12059 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12060 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12061 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064 ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-lpng -lz -lm $LIBS"
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h. */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072
12073 /* Override any gcc2 internal prototype to avoid an error. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 /* We use char because int might match the return type of a gcc2
12078 builtin and then its argument prototype would still apply. */
12079 char png_get_channels ();
12080 int
12081 main ()
12082 {
12083 png_get_channels ();
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try='test -s conftest$ac_exeext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_lib_png_png_get_channels=yes
12110 else
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_cv_lib_png_png_get_channels=no
12115 fi
12116 rm -f conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12119 fi
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12122 if test $ac_cv_lib_png_png_get_channels = yes; then
12123 HAVE_PNG=yes
12124 fi
12125
12126 fi
12127 fi
12128
12129 if test "${HAVE_PNG}" = "yes"; then
12130
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_PNG 1
12133 _ACEOF
12134
12135 fi
12136 fi
12137
12138 ### Use -ltiff if available, unless `--with-tiff=no'.
12139 HAVE_TIFF=no
12140 if test "${HAVE_X11}" = "yes"; then
12141 if test "${with_tiff}" != "no"; then
12142 if test "${ac_cv_header_tiffio_h+set}" = set; then
12143 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12145 if test "${ac_cv_header_tiffio_h+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 fi
12148 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12150 else
12151 # Is the header compilable?
12152 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 #include <tiffio.h>
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_header_compiler=yes
12185 else
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_header_compiler=no
12190 fi
12191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 echo "${ECHO_T}$ac_header_compiler" >&6
12194
12195 # Is the header present?
12196 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12197 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <tiffio.h>
12205 _ACEOF
12206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null; then
12214 if test -s conftest.err; then
12215 ac_cpp_err=$ac_c_preproc_warn_flag
12216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12217 else
12218 ac_cpp_err=
12219 fi
12220 else
12221 ac_cpp_err=yes
12222 fi
12223 if test -z "$ac_cpp_err"; then
12224 ac_header_preproc=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_header_preproc=no
12230 fi
12231 rm -f conftest.err conftest.$ac_ext
12232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12233 echo "${ECHO_T}$ac_header_preproc" >&6
12234
12235 # So? What about this header?
12236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12237 yes:no: )
12238 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12239 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12241 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12242 ac_header_preproc=yes
12243 ;;
12244 no:yes:* )
12245 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12246 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12248 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12250 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12252 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12254 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12256 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12257 (
12258 cat <<\_ASBOX
12259 ## ------------------------------------------ ##
12260 ## Report this to the AC_PACKAGE_NAME lists. ##
12261 ## ------------------------------------------ ##
12262 _ASBOX
12263 ) |
12264 sed "s/^/$as_me: WARNING: /" >&2
12265 ;;
12266 esac
12267 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12268 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12269 if test "${ac_cv_header_tiffio_h+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_cv_header_tiffio_h=$ac_header_preproc
12273 fi
12274 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12275 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12276
12277 fi
12278 if test $ac_cv_header_tiffio_h = yes; then
12279 tifflibs="-lz -lm"
12280 # At least one tiff package requires the jpeg library.
12281 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12282 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12283 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12284 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287 ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-ltiff $tifflibs $LIBS"
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h. */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295
12296 /* Override any gcc2 internal prototype to avoid an error. */
12297 #ifdef __cplusplus
12298 extern "C"
12299 #endif
12300 /* We use char because int might match the return type of a gcc2
12301 builtin and then its argument prototype would still apply. */
12302 char TIFFGetVersion ();
12303 int
12304 main ()
12305 {
12306 TIFFGetVersion ();
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313 (eval $ac_link) 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try='test -s conftest$ac_exeext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_lib_tiff_TIFFGetVersion=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 ac_cv_lib_tiff_TIFFGetVersion=no
12338 fi
12339 rm -f conftest.err conftest.$ac_objext \
12340 conftest$ac_exeext conftest.$ac_ext
12341 LIBS=$ac_check_lib_save_LIBS
12342 fi
12343 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12344 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12345 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12346 HAVE_TIFF=yes
12347 fi
12348
12349 fi
12350
12351
12352 fi
12353
12354 if test "${HAVE_TIFF}" = "yes"; then
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_TIFF 1
12358 _ACEOF
12359
12360 fi
12361 fi
12362
12363 ### Use -lgif if available, unless `--with-gif=no'.
12364 HAVE_GIF=no
12365 if test "${HAVE_X11}" = "yes"; then
12366 if test "${with_gif}" != "no"; then
12367 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12368 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12369 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12370 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 fi
12373 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12374 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12375 else
12376 # Is the header compilable?
12377 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12378 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 #include <gif_lib.h>
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_header_compiler=yes
12410 else
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ac_header_compiler=no
12415 fi
12416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12418 echo "${ECHO_T}$ac_header_compiler" >&6
12419
12420 # Is the header present?
12421 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12422 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 #include <gif_lib.h>
12430 _ACEOF
12431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } >/dev/null; then
12439 if test -s conftest.err; then
12440 ac_cpp_err=$ac_c_preproc_warn_flag
12441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12442 else
12443 ac_cpp_err=
12444 fi
12445 else
12446 ac_cpp_err=yes
12447 fi
12448 if test -z "$ac_cpp_err"; then
12449 ac_header_preproc=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 ac_header_preproc=no
12455 fi
12456 rm -f conftest.err conftest.$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12458 echo "${ECHO_T}$ac_header_preproc" >&6
12459
12460 # So? What about this header?
12461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12462 yes:no: )
12463 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12464 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12466 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12467 ac_header_preproc=yes
12468 ;;
12469 no:yes:* )
12470 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12471 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12473 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12475 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12477 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12479 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12480 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12481 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12482 (
12483 cat <<\_ASBOX
12484 ## ------------------------------------------ ##
12485 ## Report this to the AC_PACKAGE_NAME lists. ##
12486 ## ------------------------------------------ ##
12487 _ASBOX
12488 ) |
12489 sed "s/^/$as_me: WARNING: /" >&2
12490 ;;
12491 esac
12492 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12493 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12494 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497 ac_cv_header_gif_lib_h=$ac_header_preproc
12498 fi
12499 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12500 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12501
12502 fi
12503 if test $ac_cv_header_gif_lib_h = yes; then
12504 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12505 # Earlier versions can crash Emacs.
12506 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12507 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12508 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 ac_check_lib_save_LIBS=$LIBS
12512 LIBS="-lungif $LIBS"
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 /* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12526 char EGifPutExtensionLast ();
12527 int
12528 main ()
12529 {
12530 EGifPutExtensionLast ();
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561 ac_cv_lib_ungif_EGifPutExtensionLast=no
12562 fi
12563 rm -f conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12568 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12569 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12570 HAVE_GIF=yes
12571 fi
12572
12573 fi
12574
12575
12576 fi
12577
12578 if test "${HAVE_GIF}" = "yes"; then
12579
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE_GIF 1
12582 _ACEOF
12583
12584 fi
12585 fi
12586
12587 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12588 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12589 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12590 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 fi
12593 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12594 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12595 else
12596 # Is the header compilable?
12597 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12598 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 $ac_includes_default
12606 #include <malloc/malloc.h>
12607 _ACEOF
12608 rm -f conftest.$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610 (eval $ac_compile) 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest.$ac_objext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_header_compiler=yes
12630 else
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 ac_header_compiler=no
12635 fi
12636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638 echo "${ECHO_T}$ac_header_compiler" >&6
12639
12640 # Is the header present?
12641 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12642 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h. */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #include <malloc/malloc.h>
12650 _ACEOF
12651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev/null; then
12659 if test -s conftest.err; then
12660 ac_cpp_err=$ac_c_preproc_warn_flag
12661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12662 else
12663 ac_cpp_err=
12664 fi
12665 else
12666 ac_cpp_err=yes
12667 fi
12668 if test -z "$ac_cpp_err"; then
12669 ac_header_preproc=yes
12670 else
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ac_header_preproc=no
12675 fi
12676 rm -f conftest.err conftest.$ac_ext
12677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678 echo "${ECHO_T}$ac_header_preproc" >&6
12679
12680 # So? What about this header?
12681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12682 yes:no: )
12683 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12684 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12686 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc=yes
12688 ;;
12689 no:yes:* )
12690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12691 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12693 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12695 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12697 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12701 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12702 (
12703 cat <<\_ASBOX
12704 ## ------------------------------------------ ##
12705 ## Report this to the AC_PACKAGE_NAME lists. ##
12706 ## ------------------------------------------ ##
12707 _ASBOX
12708 ) |
12709 sed "s/^/$as_me: WARNING: /" >&2
12710 ;;
12711 esac
12712 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12713 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12714 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12718 fi
12719 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12720 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12721
12722 fi
12723 if test $ac_cv_header_malloc_malloc_h = yes; then
12724
12725 cat >>confdefs.h <<\_ACEOF
12726 #define HAVE_MALLOC_MALLOC_H 1
12727 _ACEOF
12728
12729 fi
12730
12731
12732
12733 ### Use Mac OS X Carbon API to implement GUI.
12734 if test "${HAVE_CARBON}" = "yes"; then
12735
12736 cat >>confdefs.h <<\_ACEOF
12737 #define HAVE_CARBON 1
12738 _ACEOF
12739
12740 ## Specify the install directory
12741 carbon_appdir=
12742 if test "${carbon_appdir_x}" != ""; then
12743 case ${carbon_appdir_x} in
12744 y | ye | yes) carbon_appdir=/Applications ;;
12745 * ) carbon_appdir=${carbon_appdir_x} ;;
12746 esac
12747 fi
12748 # We also have mouse menus.
12749 HAVE_MENUS=yes
12750
12751 tmp_CFLAGS="$CFLAGS"
12752 CFLAGS="$CFLAGS -framework Carbon"
12753 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12754 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12755 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12766 #define CancelMenuTracking innocuous_CancelMenuTracking
12767
12768 /* System header to define __stub macros and hopefully few prototypes,
12769 which can conflict with char CancelMenuTracking (); below.
12770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 <limits.h> exists even on freestanding compilers. */
12772
12773 #ifdef __STDC__
12774 # include <limits.h>
12775 #else
12776 # include <assert.h>
12777 #endif
12778
12779 #undef CancelMenuTracking
12780
12781 /* Override any gcc2 internal prototype to avoid an error. */
12782 #ifdef __cplusplus
12783 extern "C"
12784 {
12785 #endif
12786 /* We use char because int might match the return type of a gcc2
12787 builtin and then its argument prototype would still apply. */
12788 char CancelMenuTracking ();
12789 /* The GNU C library defines this for functions which it implements
12790 to always fail with ENOSYS. Some functions are actually named
12791 something starting with __ and the normal name is an alias. */
12792 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12793 choke me
12794 #else
12795 char (*f) () = CancelMenuTracking;
12796 #endif
12797 #ifdef __cplusplus
12798 }
12799 #endif
12800
12801 int
12802 main ()
12803 {
12804 return f != CancelMenuTracking;
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>conftest.er1
12812 ac_status=$?
12813 grep -v '^ *+' conftest.er1 >conftest.err
12814 rm -f conftest.er1
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest$ac_exeext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_cv_func_CancelMenuTracking=yes
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_cv_func_CancelMenuTracking=no
12836 fi
12837 rm -f conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12839 fi
12840 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12841 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12842 if test $ac_cv_func_CancelMenuTracking = yes; then
12843 have_cmt=yes
12844 else
12845 have_cmt=no
12846 fi
12847
12848 if test "$have_cmt" = yes; then
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_CANCELMENUTRACKING 1
12852 _ACEOF
12853
12854 fi
12855 CFLAGS="$tmp_CFLAGS"
12856 fi
12857
12858 ### Use session management (-lSM -lICE) if available
12859 HAVE_X_SM=no
12860 if test "${HAVE_X11}" = "yes"; then
12861 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12862 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12863 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12864 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 fi
12867 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12868 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12869 else
12870 # Is the header compilable?
12871 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12872 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 $ac_includes_default
12880 #include <X11/SM/SMlib.h>
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884 (eval $ac_compile) 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest.$ac_objext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_header_compiler=yes
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_header_compiler=no
12909 fi
12910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12912 echo "${ECHO_T}$ac_header_compiler" >&6
12913
12914 # Is the header present?
12915 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12916 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12917 cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h. */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 #include <X11/SM/SMlib.h>
12924 _ACEOF
12925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } >/dev/null; then
12933 if test -s conftest.err; then
12934 ac_cpp_err=$ac_c_preproc_warn_flag
12935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12936 else
12937 ac_cpp_err=
12938 fi
12939 else
12940 ac_cpp_err=yes
12941 fi
12942 if test -z "$ac_cpp_err"; then
12943 ac_header_preproc=yes
12944 else
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_header_preproc=no
12949 fi
12950 rm -f conftest.err conftest.$ac_ext
12951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12952 echo "${ECHO_T}$ac_header_preproc" >&6
12953
12954 # So? What about this header?
12955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12956 yes:no: )
12957 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12958 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12960 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12961 ac_header_preproc=yes
12962 ;;
12963 no:yes:* )
12964 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12965 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12966 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12967 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12969 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12971 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12973 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12975 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12976 (
12977 cat <<\_ASBOX
12978 ## ------------------------------------------ ##
12979 ## Report this to the AC_PACKAGE_NAME lists. ##
12980 ## ------------------------------------------ ##
12981 _ASBOX
12982 ) |
12983 sed "s/^/$as_me: WARNING: /" >&2
12984 ;;
12985 esac
12986 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12987 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12988 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12992 fi
12993 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12994 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12995
12996 fi
12997 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12998 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12999 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13000 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-lSM -lICE $LIBS"
13005 cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h. */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13011
13012 /* Override any gcc2 internal prototype to avoid an error. */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 /* We use char because int might match the return type of a gcc2
13017 builtin and then its argument prototype would still apply. */
13018 char SmcOpenConnection ();
13019 int
13020 main ()
13021 {
13022 SmcOpenConnection ();
13023 ;
13024 return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_lib_SM_SmcOpenConnection=yes
13049 else
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 ac_cv_lib_SM_SmcOpenConnection=no
13054 fi
13055 rm -f conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13058 fi
13059 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13060 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13061 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13062 HAVE_X_SM=yes
13063 fi
13064
13065 fi
13066
13067
13068
13069 if test "${HAVE_X_SM}" = "yes"; then
13070
13071 cat >>confdefs.h <<\_ACEOF
13072 #define HAVE_X_SM 1
13073 _ACEOF
13074
13075 case "$LIBS" in
13076 *-lSM*) ;;
13077 *) LIBS="-lSM -lICE $LIBS" ;;
13078 esac
13079 fi
13080 fi
13081
13082 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13083 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13084 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13085 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <netdb.h>
13095 int
13096 main ()
13097 {
13098 return h_errno;
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 rm -f conftest.$ac_objext conftest$ac_exeext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13105 (eval $ac_link) 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 emacs_cv_netdb_declares_h_errno=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 emacs_cv_netdb_declares_h_errno=no
13130 fi
13131 rm -f conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133 fi
13134 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13135 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13136 if test $emacs_cv_netdb_declares_h_errno = yes; then
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_H_ERRNO 1
13140 _ACEOF
13141
13142 fi
13143
13144 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13145 # for constant arguments. Useless!
13146 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13147 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13148 if test "${ac_cv_working_alloca_h+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 #include <alloca.h>
13158 int
13159 main ()
13160 {
13161 char *p = (char *) alloca (2 * sizeof (int));
13162 ;
13163 return 0;
13164 }
13165 _ACEOF
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168 (eval $ac_link) 2>conftest.er1
13169 ac_status=$?
13170 grep -v '^ *+' conftest.er1 >conftest.err
13171 rm -f conftest.er1
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_working_alloca_h=yes
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_cv_working_alloca_h=no
13193 fi
13194 rm -f conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196 fi
13197 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13198 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13199 if test $ac_cv_working_alloca_h = yes; then
13200
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_ALLOCA_H 1
13203 _ACEOF
13204
13205 fi
13206
13207 echo "$as_me:$LINENO: checking for alloca" >&5
13208 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13209 if test "${ac_cv_func_alloca_works+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #ifdef __GNUC__
13219 # define alloca __builtin_alloca
13220 #else
13221 # ifdef _MSC_VER
13222 # include <malloc.h>
13223 # define alloca _alloca
13224 # else
13225 # if HAVE_ALLOCA_H
13226 # include <alloca.h>
13227 # else
13228 # ifdef _AIX
13229 #pragma alloca
13230 # else
13231 # ifndef alloca /* predefined by HP cc +Olibcalls */
13232 char *alloca ();
13233 # endif
13234 # endif
13235 # endif
13236 # endif
13237 #endif
13238
13239 int
13240 main ()
13241 {
13242 char *p = (char *) alloca (1);
13243 ;
13244 return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13249 (eval $ac_link) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_cv_func_alloca_works=yes
13269 else
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 ac_cv_func_alloca_works=no
13274 fi
13275 rm -f conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 fi
13278 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13279 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13280
13281 if test $ac_cv_func_alloca_works = yes; then
13282
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_ALLOCA 1
13285 _ACEOF
13286
13287 else
13288 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13289 # that cause trouble. Some versions do not even contain alloca or
13290 # contain a buggy version. If you still want to use their alloca,
13291 # use ar to extract alloca.o from them instead of compiling alloca.c.
13292
13293 ALLOCA=alloca.$ac_objext
13294
13295 cat >>confdefs.h <<\_ACEOF
13296 #define C_ALLOCA 1
13297 _ACEOF
13298
13299
13300 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13301 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13302 if test "${ac_cv_os_cray+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 else
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #if defined(CRAY) && ! defined(CRAY2)
13312 webecray
13313 #else
13314 wenotbecray
13315 #endif
13316
13317 _ACEOF
13318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13319 $EGREP "webecray" >/dev/null 2>&1; then
13320 ac_cv_os_cray=yes
13321 else
13322 ac_cv_os_cray=no
13323 fi
13324 rm -f conftest*
13325
13326 fi
13327 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13328 echo "${ECHO_T}$ac_cv_os_cray" >&6
13329 if test $ac_cv_os_cray = yes; then
13330 for ac_func in _getb67 GETB67 getb67; do
13331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13332 echo "$as_me:$LINENO: checking for $ac_func" >&5
13333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13334 if eval "test \"\${$as_ac_var+set}\" = set"; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h. */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13345 #define $ac_func innocuous_$ac_func
13346
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char $ac_func (); below.
13349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13350 <limits.h> exists even on freestanding compilers. */
13351
13352 #ifdef __STDC__
13353 # include <limits.h>
13354 #else
13355 # include <assert.h>
13356 #endif
13357
13358 #undef $ac_func
13359
13360 /* Override any gcc2 internal prototype to avoid an error. */
13361 #ifdef __cplusplus
13362 extern "C"
13363 {
13364 #endif
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13367 char $ac_func ();
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13372 choke me
13373 #else
13374 char (*f) () = $ac_func;
13375 #endif
13376 #ifdef __cplusplus
13377 }
13378 #endif
13379
13380 int
13381 main ()
13382 {
13383 return f != $ac_func;
13384 ;
13385 return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 eval "$as_ac_var=yes"
13410 else
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 eval "$as_ac_var=no"
13415 fi
13416 rm -f conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 fi
13419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13421 if test `eval echo '${'$as_ac_var'}'` = yes; then
13422
13423 cat >>confdefs.h <<_ACEOF
13424 #define CRAY_STACKSEG_END $ac_func
13425 _ACEOF
13426
13427 break
13428 fi
13429
13430 done
13431 fi
13432
13433 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13434 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13435 if test "${ac_cv_c_stack_direction+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438 if test "$cross_compiling" = yes; then
13439 ac_cv_c_stack_direction=0
13440 else
13441 cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h. */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 int
13448 find_stack_direction ()
13449 {
13450 static char *addr = 0;
13451 auto char dummy;
13452 if (addr == 0)
13453 {
13454 addr = &dummy;
13455 return find_stack_direction ();
13456 }
13457 else
13458 return (&dummy > addr) ? 1 : -1;
13459 }
13460
13461 int
13462 main ()
13463 {
13464 exit (find_stack_direction () < 0);
13465 }
13466 _ACEOF
13467 rm -f conftest$ac_exeext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469 (eval $ac_link) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_c_stack_direction=1
13479 else
13480 echo "$as_me: program exited with status $ac_status" >&5
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 ( exit $ac_status )
13485 ac_cv_c_stack_direction=-1
13486 fi
13487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13488 fi
13489 fi
13490 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13491 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13492
13493 cat >>confdefs.h <<_ACEOF
13494 #define STACK_DIRECTION $ac_cv_c_stack_direction
13495 _ACEOF
13496
13497
13498 fi
13499
13500
13501 # fmod, logb, and frexp are found in -lm on most systems.
13502 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13503
13504 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13505 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13506 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 ac_check_lib_save_LIBS=$LIBS
13510 LIBS="-lm $LIBS"
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 /* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13524 char sqrt ();
13525 int
13526 main ()
13527 {
13528 sqrt ();
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest.$ac_objext conftest$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535 (eval $ac_link) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_lib_m_sqrt=yes
13555 else
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 ac_cv_lib_m_sqrt=no
13560 fi
13561 rm -f conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13566 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13567 if test $ac_cv_lib_m_sqrt = yes; then
13568 cat >>confdefs.h <<_ACEOF
13569 #define HAVE_LIBM 1
13570 _ACEOF
13571
13572 LIBS="-lm $LIBS"
13573
13574 fi
13575
13576
13577 # Check for mail-locking functions in a "mail" library. Probably this should
13578 # have the same check as for liblockfile below.
13579
13580 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13581 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13582 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 ac_check_lib_save_LIBS=$LIBS
13586 LIBS="-lmail $LIBS"
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593
13594 /* Override any gcc2 internal prototype to avoid an error. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 /* We use char because int might match the return type of a gcc2
13599 builtin and then its argument prototype would still apply. */
13600 char maillock ();
13601 int
13602 main ()
13603 {
13604 maillock ();
13605 ;
13606 return 0;
13607 }
13608 _ACEOF
13609 rm -f conftest.$ac_objext conftest$ac_exeext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13611 (eval $ac_link) 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_lib_mail_maillock=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_cv_lib_mail_maillock=no
13636 fi
13637 rm -f conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13640 fi
13641 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13642 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13643 if test $ac_cv_lib_mail_maillock = yes; then
13644 cat >>confdefs.h <<_ACEOF
13645 #define HAVE_LIBMAIL 1
13646 _ACEOF
13647
13648 LIBS="-lmail $LIBS"
13649
13650 fi
13651
13652
13653 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13654 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13655 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-llockfile $LIBS"
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666
13667 /* Override any gcc2 internal prototype to avoid an error. */
13668 #ifdef __cplusplus
13669 extern "C"
13670 #endif
13671 /* We use char because int might match the return type of a gcc2
13672 builtin and then its argument prototype would still apply. */
13673 char maillock ();
13674 int
13675 main ()
13676 {
13677 maillock ();
13678 ;
13679 return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_lib_lockfile_maillock=yes
13704 else
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_cv_lib_lockfile_maillock=no
13709 fi
13710 rm -f conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13715 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13716 if test $ac_cv_lib_lockfile_maillock = yes; then
13717 cat >>confdefs.h <<_ACEOF
13718 #define HAVE_LIBLOCKFILE 1
13719 _ACEOF
13720
13721 LIBS="-llockfile $LIBS"
13722
13723 fi
13724
13725 # If we have the shared liblockfile, assume we must use it for mail
13726 # locking (e.g. Debian). If we couldn't link against liblockfile
13727 # (no liblockfile.a installed), ensure that we don't need to.
13728 if test "$ac_cv_lib_lockfile_maillock" = no; then
13729 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13730 set dummy liblockfile.so; ac_word=$2
13731 echo "$as_me:$LINENO: checking for $ac_word" >&5
13732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13733 if test "${ac_cv_prog_liblockfile+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 if test -n "$liblockfile"; then
13737 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13738 else
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13741 for as_dir in $as_dummy
13742 do
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_prog_liblockfile="yes"
13748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13750 fi
13751 done
13752 done
13753
13754 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13755 fi
13756 fi
13757 liblockfile=$ac_cv_prog_liblockfile
13758 if test -n "$liblockfile"; then
13759 echo "$as_me:$LINENO: result: $liblockfile" >&5
13760 echo "${ECHO_T}$liblockfile" >&6
13761 else
13762 echo "$as_me:$LINENO: result: no" >&5
13763 echo "${ECHO_T}no" >&6
13764 fi
13765
13766 if test $ac_cv_prog_liblockfile = yes; then
13767 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13768 This probably means that movemail could lose mail.
13769 There may be a \`development' package to install containing liblockfile." >&5
13770 echo "$as_me: error: Shared liblockfile found but can't link against it.
13771 This probably means that movemail could lose mail.
13772 There may be a \`development' package to install containing liblockfile." >&2;}
13773 { (exit 1); exit 1; }; }
13774 else :
13775 fi
13776 fi
13777
13778 for ac_func in touchlock
13779 do
13780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13781 echo "$as_me:$LINENO: checking for $ac_func" >&5
13782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13783 if eval "test \"\${$as_ac_var+set}\" = set"; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13794 #define $ac_func innocuous_$ac_func
13795
13796 /* System header to define __stub macros and hopefully few prototypes,
13797 which can conflict with char $ac_func (); below.
13798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13799 <limits.h> exists even on freestanding compilers. */
13800
13801 #ifdef __STDC__
13802 # include <limits.h>
13803 #else
13804 # include <assert.h>
13805 #endif
13806
13807 #undef $ac_func
13808
13809 /* Override any gcc2 internal prototype to avoid an error. */
13810 #ifdef __cplusplus
13811 extern "C"
13812 {
13813 #endif
13814 /* We use char because int might match the return type of a gcc2
13815 builtin and then its argument prototype would still apply. */
13816 char $ac_func ();
13817 /* The GNU C library defines this for functions which it implements
13818 to always fail with ENOSYS. Some functions are actually named
13819 something starting with __ and the normal name is an alias. */
13820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13821 choke me
13822 #else
13823 char (*f) () = $ac_func;
13824 #endif
13825 #ifdef __cplusplus
13826 }
13827 #endif
13828
13829 int
13830 main ()
13831 {
13832 return f != $ac_func;
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839 (eval $ac_link) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 eval "$as_ac_var=yes"
13859 else
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 eval "$as_ac_var=no"
13864 fi
13865 rm -f conftest.err conftest.$ac_objext \
13866 conftest$ac_exeext conftest.$ac_ext
13867 fi
13868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13870 if test `eval echo '${'$as_ac_var'}'` = yes; then
13871 cat >>confdefs.h <<_ACEOF
13872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13873 _ACEOF
13874
13875 fi
13876 done
13877
13878
13879 for ac_header in maillock.h
13880 do
13881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883 echo "$as_me:$LINENO: checking for $ac_header" >&5
13884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 fi
13888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13890 else
13891 # Is the header compilable?
13892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13901 #include <$ac_header>
13902 _ACEOF
13903 rm -f conftest.$ac_objext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905 (eval $ac_compile) 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
13912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_header_compiler=yes
13925 else
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_header_compiler=no
13930 fi
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13933 echo "${ECHO_T}$ac_header_compiler" >&6
13934
13935 # Is the header present?
13936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 #include <$ac_header>
13945 _ACEOF
13946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } >/dev/null; then
13954 if test -s conftest.err; then
13955 ac_cpp_err=$ac_c_preproc_warn_flag
13956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13957 else
13958 ac_cpp_err=
13959 fi
13960 else
13961 ac_cpp_err=yes
13962 fi
13963 if test -z "$ac_cpp_err"; then
13964 ac_header_preproc=yes
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 ac_header_preproc=no
13970 fi
13971 rm -f conftest.err conftest.$ac_ext
13972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13973 echo "${ECHO_T}$ac_header_preproc" >&6
13974
13975 # So? What about this header?
13976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13977 yes:no: )
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13982 ac_header_preproc=yes
13983 ;;
13984 no:yes:* )
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13997 (
13998 cat <<\_ASBOX
13999 ## ------------------------------------------ ##
14000 ## Report this to the AC_PACKAGE_NAME lists. ##
14001 ## ------------------------------------------ ##
14002 _ASBOX
14003 ) |
14004 sed "s/^/$as_me: WARNING: /" >&2
14005 ;;
14006 esac
14007 echo "$as_me:$LINENO: checking for $ac_header" >&5
14008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 eval "$as_ac_Header=\$ac_header_preproc"
14013 fi
14014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016
14017 fi
14018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14019 cat >>confdefs.h <<_ACEOF
14020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14021 _ACEOF
14022
14023 fi
14024
14025 done
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096 for ac_func in gethostname getdomainname dup2 \
14097 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14098 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14099 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14100 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14101 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14102 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14103 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14104 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14105 do
14106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14107 echo "$as_me:$LINENO: checking for $ac_func" >&5
14108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14109 if eval "test \"\${$as_ac_var+set}\" = set"; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h. */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h. */
14118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14120 #define $ac_func innocuous_$ac_func
14121
14122 /* System header to define __stub macros and hopefully few prototypes,
14123 which can conflict with char $ac_func (); below.
14124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14125 <limits.h> exists even on freestanding compilers. */
14126
14127 #ifdef __STDC__
14128 # include <limits.h>
14129 #else
14130 # include <assert.h>
14131 #endif
14132
14133 #undef $ac_func
14134
14135 /* Override any gcc2 internal prototype to avoid an error. */
14136 #ifdef __cplusplus
14137 extern "C"
14138 {
14139 #endif
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14142 char $ac_func ();
14143 /* The GNU C library defines this for functions which it implements
14144 to always fail with ENOSYS. Some functions are actually named
14145 something starting with __ and the normal name is an alias. */
14146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14147 choke me
14148 #else
14149 char (*f) () = $ac_func;
14150 #endif
14151 #ifdef __cplusplus
14152 }
14153 #endif
14154
14155 int
14156 main ()
14157 {
14158 return f != $ac_func;
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest$ac_exeext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 eval "$as_ac_var=yes"
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 eval "$as_ac_var=no"
14190 fi
14191 rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 fi
14194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14196 if test `eval echo '${'$as_ac_var'}'` = yes; then
14197 cat >>confdefs.h <<_ACEOF
14198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14199 _ACEOF
14200
14201 fi
14202 done
14203
14204
14205
14206 for ac_header in sys/un.h
14207 do
14208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 fi
14215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14217 else
14218 # Is the header compilable?
14219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end 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>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_header_compiler=yes
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_header_compiler=no
14257 fi
14258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6
14261
14262 # Is the header present?
14263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <$ac_header>
14272 _ACEOF
14273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev/null; then
14281 if test -s conftest.err; then
14282 ac_cpp_err=$ac_c_preproc_warn_flag
14283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14284 else
14285 ac_cpp_err=
14286 fi
14287 else
14288 ac_cpp_err=yes
14289 fi
14290 if test -z "$ac_cpp_err"; then
14291 ac_header_preproc=yes
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ac_header_preproc=no
14297 fi
14298 rm -f conftest.err conftest.$ac_ext
14299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14300 echo "${ECHO_T}$ac_header_preproc" >&6
14301
14302 # So? What about this header?
14303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14304 yes:no: )
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14309 ac_header_preproc=yes
14310 ;;
14311 no:yes:* )
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14324 (
14325 cat <<\_ASBOX
14326 ## ------------------------------------------ ##
14327 ## Report this to the AC_PACKAGE_NAME lists. ##
14328 ## ------------------------------------------ ##
14329 _ASBOX
14330 ) |
14331 sed "s/^/$as_me: WARNING: /" >&2
14332 ;;
14333 esac
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339 eval "$as_ac_Header=\$ac_header_preproc"
14340 fi
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343
14344 fi
14345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14346 cat >>confdefs.h <<_ACEOF
14347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14348 _ACEOF
14349
14350 fi
14351
14352 done
14353
14354
14355
14356
14357
14358 for ac_header in stdlib.h sys/time.h unistd.h
14359 do
14360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362 echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 fi
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14369 else
14370 # Is the header compilable?
14371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 #include <$ac_header>
14381 _ACEOF
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_header_compiler=yes
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 ac_header_compiler=no
14409 fi
14410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 echo "${ECHO_T}$ac_header_compiler" >&6
14413
14414 # Is the header present?
14415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <$ac_header>
14424 _ACEOF
14425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14427 ac_status=$?
14428 grep -v '^ *+' conftest.er1 >conftest.err
14429 rm -f conftest.er1
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } >/dev/null; then
14433 if test -s conftest.err; then
14434 ac_cpp_err=$ac_c_preproc_warn_flag
14435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14436 else
14437 ac_cpp_err=
14438 fi
14439 else
14440 ac_cpp_err=yes
14441 fi
14442 if test -z "$ac_cpp_err"; then
14443 ac_header_preproc=yes
14444 else
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14447
14448 ac_header_preproc=no
14449 fi
14450 rm -f conftest.err conftest.$ac_ext
14451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14452 echo "${ECHO_T}$ac_header_preproc" >&6
14453
14454 # So? What about this header?
14455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14456 yes:no: )
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14461 ac_header_preproc=yes
14462 ;;
14463 no:yes:* )
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14476 (
14477 cat <<\_ASBOX
14478 ## ------------------------------------------ ##
14479 ## Report this to the AC_PACKAGE_NAME lists. ##
14480 ## ------------------------------------------ ##
14481 _ASBOX
14482 ) |
14483 sed "s/^/$as_me: WARNING: /" >&2
14484 ;;
14485 esac
14486 echo "$as_me:$LINENO: checking for $ac_header" >&5
14487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491 eval "$as_ac_Header=\$ac_header_preproc"
14492 fi
14493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14495
14496 fi
14497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14498 cat >>confdefs.h <<_ACEOF
14499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14500 _ACEOF
14501
14502 fi
14503
14504 done
14505
14506
14507 for ac_func in alarm
14508 do
14509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14510 echo "$as_me:$LINENO: checking for $ac_func" >&5
14511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14512 if eval "test \"\${$as_ac_var+set}\" = set"; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14523 #define $ac_func innocuous_$ac_func
14524
14525 /* System header to define __stub macros and hopefully few prototypes,
14526 which can conflict with char $ac_func (); below.
14527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14528 <limits.h> exists even on freestanding compilers. */
14529
14530 #ifdef __STDC__
14531 # include <limits.h>
14532 #else
14533 # include <assert.h>
14534 #endif
14535
14536 #undef $ac_func
14537
14538 /* Override any gcc2 internal prototype to avoid an error. */
14539 #ifdef __cplusplus
14540 extern "C"
14541 {
14542 #endif
14543 /* We use char because int might match the return type of a gcc2
14544 builtin and then its argument prototype would still apply. */
14545 char $ac_func ();
14546 /* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14550 choke me
14551 #else
14552 char (*f) () = $ac_func;
14553 #endif
14554 #ifdef __cplusplus
14555 }
14556 #endif
14557
14558 int
14559 main ()
14560 {
14561 return f != $ac_func;
14562 ;
14563 return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14568 (eval $ac_link) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 eval "$as_ac_var=yes"
14588 else
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 eval "$as_ac_var=no"
14593 fi
14594 rm -f conftest.err conftest.$ac_objext \
14595 conftest$ac_exeext conftest.$ac_ext
14596 fi
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14599 if test `eval echo '${'$as_ac_var'}'` = yes; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604 fi
14605 done
14606
14607 echo "$as_me:$LINENO: checking for working mktime" >&5
14608 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14609 if test "${ac_cv_func_working_mktime+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612 if test "$cross_compiling" = yes; then
14613 ac_cv_func_working_mktime=no
14614 else
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 /* Test program from Paul Eggert and Tony Leneis. */
14622 #if TIME_WITH_SYS_TIME
14623 # include <sys/time.h>
14624 # include <time.h>
14625 #else
14626 # if HAVE_SYS_TIME_H
14627 # include <sys/time.h>
14628 # else
14629 # include <time.h>
14630 # endif
14631 #endif
14632
14633 #if HAVE_STDLIB_H
14634 # include <stdlib.h>
14635 #endif
14636
14637 #if HAVE_UNISTD_H
14638 # include <unistd.h>
14639 #endif
14640
14641 #if !HAVE_ALARM
14642 # define alarm(X) /* empty */
14643 #endif
14644
14645 /* Work around redefinition to rpl_putenv by other config tests. */
14646 #undef putenv
14647
14648 static time_t time_t_max;
14649 static time_t time_t_min;
14650
14651 /* Values we'll use to set the TZ environment variable. */
14652 static char *tz_strings[] = {
14653 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14654 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14655 };
14656 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14657
14658 /* Fail if mktime fails to convert a date in the spring-forward gap.
14659 Based on a problem report from Andreas Jaeger. */
14660 static void
14661 spring_forward_gap ()
14662 {
14663 /* glibc (up to about 1998-10-07) failed this test. */
14664 struct tm tm;
14665
14666 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14667 instead of "TZ=America/Vancouver" in order to detect the bug even
14668 on systems that don't support the Olson extension, or don't have the
14669 full zoneinfo tables installed. */
14670 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14671
14672 tm.tm_year = 98;
14673 tm.tm_mon = 3;
14674 tm.tm_mday = 5;
14675 tm.tm_hour = 2;
14676 tm.tm_min = 0;
14677 tm.tm_sec = 0;
14678 tm.tm_isdst = -1;
14679 if (mktime (&tm) == (time_t)-1)
14680 exit (1);
14681 }
14682
14683 static void
14684 mktime_test1 (now)
14685 time_t now;
14686 {
14687 struct tm *lt;
14688 if ((lt = localtime (&now)) && mktime (lt) != now)
14689 exit (1);
14690 }
14691
14692 static void
14693 mktime_test (now)
14694 time_t now;
14695 {
14696 mktime_test1 (now);
14697 mktime_test1 ((time_t) (time_t_max - now));
14698 mktime_test1 ((time_t) (time_t_min + now));
14699 }
14700
14701 static void
14702 irix_6_4_bug ()
14703 {
14704 /* Based on code from Ariel Faigon. */
14705 struct tm tm;
14706 tm.tm_year = 96;
14707 tm.tm_mon = 3;
14708 tm.tm_mday = 0;
14709 tm.tm_hour = 0;
14710 tm.tm_min = 0;
14711 tm.tm_sec = 0;
14712 tm.tm_isdst = -1;
14713 mktime (&tm);
14714 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14715 exit (1);
14716 }
14717
14718 static void
14719 bigtime_test (j)
14720 int j;
14721 {
14722 struct tm tm;
14723 time_t now;
14724 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14725 now = mktime (&tm);
14726 if (now != (time_t) -1)
14727 {
14728 struct tm *lt = localtime (&now);
14729 if (! (lt
14730 && lt->tm_year == tm.tm_year
14731 && lt->tm_mon == tm.tm_mon
14732 && lt->tm_mday == tm.tm_mday
14733 && lt->tm_hour == tm.tm_hour
14734 && lt->tm_min == tm.tm_min
14735 && lt->tm_sec == tm.tm_sec
14736 && lt->tm_yday == tm.tm_yday
14737 && lt->tm_wday == tm.tm_wday
14738 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14739 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14740 exit (1);
14741 }
14742 }
14743
14744 int
14745 main ()
14746 {
14747 time_t t, delta;
14748 int i, j;
14749
14750 /* This test makes some buggy mktime implementations loop.
14751 Give up after 60 seconds; a mktime slower than that
14752 isn't worth using anyway. */
14753 alarm (60);
14754
14755 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14756 continue;
14757 time_t_max--;
14758 if ((time_t) -1 < 0)
14759 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14760 continue;
14761 delta = time_t_max / 997; /* a suitable prime number */
14762 for (i = 0; i < N_STRINGS; i++)
14763 {
14764 if (tz_strings[i])
14765 putenv (tz_strings[i]);
14766
14767 for (t = 0; t <= time_t_max - delta; t += delta)
14768 mktime_test (t);
14769 mktime_test ((time_t) 1);
14770 mktime_test ((time_t) (60 * 60));
14771 mktime_test ((time_t) (60 * 60 * 24));
14772
14773 for (j = 1; 0 < j; j *= 2)
14774 bigtime_test (j);
14775 bigtime_test (j - 1);
14776 }
14777 irix_6_4_bug ();
14778 spring_forward_gap ();
14779 exit (0);
14780 }
14781 _ACEOF
14782 rm -f conftest$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784 (eval $ac_link) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_cv_func_working_mktime=yes
14794 else
14795 echo "$as_me: program exited with status $ac_status" >&5
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 ( exit $ac_status )
14800 ac_cv_func_working_mktime=no
14801 fi
14802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14803 fi
14804 fi
14805 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14806 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14807 if test $ac_cv_func_working_mktime = no; then
14808 case $LIBOBJS in
14809 "mktime.$ac_objext" | \
14810 *" mktime.$ac_objext" | \
14811 "mktime.$ac_objext "* | \
14812 *" mktime.$ac_objext "* ) ;;
14813 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14814 esac
14815
14816 fi
14817
14818 if test "$ac_cv_func_working_mktime" = no; then
14819
14820 cat >>confdefs.h <<\_ACEOF
14821 #define BROKEN_MKTIME 1
14822 _ACEOF
14823
14824 fi
14825
14826 ac_have_func=no # yes means we've found a way to get the load average.
14827
14828 # Make sure getloadavg.c is where it belongs, at configure-time.
14829 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14830 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14831 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14832 { (exit 1); exit 1; }; }
14833
14834 ac_save_LIBS=$LIBS
14835
14836 # Check for getloadavg, but be sure not to touch the cache variable.
14837 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14838 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14839 if test "${ac_cv_func_getloadavg+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14850 #define getloadavg innocuous_getloadavg
14851
14852 /* System header to define __stub macros and hopefully few prototypes,
14853 which can conflict with char getloadavg (); below.
14854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14855 <limits.h> exists even on freestanding compilers. */
14856
14857 #ifdef __STDC__
14858 # include <limits.h>
14859 #else
14860 # include <assert.h>
14861 #endif
14862
14863 #undef getloadavg
14864
14865 /* Override any gcc2 internal prototype to avoid an error. */
14866 #ifdef __cplusplus
14867 extern "C"
14868 {
14869 #endif
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char getloadavg ();
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14877 choke me
14878 #else
14879 char (*f) () = getloadavg;
14880 #endif
14881 #ifdef __cplusplus
14882 }
14883 #endif
14884
14885 int
14886 main ()
14887 {
14888 return f != getloadavg;
14889 ;
14890 return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895 (eval $ac_link) 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest$ac_exeext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_func_getloadavg=yes
14915 else
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919 ac_cv_func_getloadavg=no
14920 fi
14921 rm -f conftest.err conftest.$ac_objext \
14922 conftest$ac_exeext conftest.$ac_ext
14923 fi
14924 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14925 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14926 if test $ac_cv_func_getloadavg = yes; then
14927 exit 0
14928 else
14929 exit 1
14930 fi
14931 ) && ac_have_func=yes
14932
14933 # On HPUX9, an unprivileged user can get load averages through this function.
14934
14935 for ac_func in pstat_getdynamic
14936 do
14937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14938 echo "$as_me:$LINENO: checking for $ac_func" >&5
14939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14940 if eval "test \"\${$as_ac_var+set}\" = set"; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h. */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951 #define $ac_func innocuous_$ac_func
14952
14953 /* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char $ac_func (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14957
14958 #ifdef __STDC__
14959 # include <limits.h>
14960 #else
14961 # include <assert.h>
14962 #endif
14963
14964 #undef $ac_func
14965
14966 /* Override any gcc2 internal prototype to avoid an error. */
14967 #ifdef __cplusplus
14968 extern "C"
14969 {
14970 #endif
14971 /* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */
14973 char $ac_func ();
14974 /* The GNU C library defines this for functions which it implements
14975 to always fail with ENOSYS. Some functions are actually named
14976 something starting with __ and the normal name is an alias. */
14977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14978 choke me
14979 #else
14980 char (*f) () = $ac_func;
14981 #endif
14982 #ifdef __cplusplus
14983 }
14984 #endif
14985
14986 int
14987 main ()
14988 {
14989 return f != $ac_func;
14990 ;
14991 return 0;
14992 }
14993 _ACEOF
14994 rm -f conftest.$ac_objext conftest$ac_exeext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14996 (eval $ac_link) 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest$ac_exeext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 eval "$as_ac_var=yes"
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15019
15020 eval "$as_ac_var=no"
15021 fi
15022 rm -f conftest.err conftest.$ac_objext \
15023 conftest$ac_exeext conftest.$ac_ext
15024 fi
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15027 if test `eval echo '${'$as_ac_var'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15030 _ACEOF
15031
15032 fi
15033 done
15034
15035
15036 # Solaris has libkstat which does not require root.
15037
15038 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15039 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15040 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 ac_check_lib_save_LIBS=$LIBS
15044 LIBS="-lkstat $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051
15052 /* Override any gcc2 internal prototype to avoid an error. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15058 char kstat_open ();
15059 int
15060 main ()
15061 {
15062 kstat_open ();
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest$ac_exeext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_lib_kstat_kstat_open=yes
15089 else
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093 ac_cv_lib_kstat_kstat_open=no
15094 fi
15095 rm -f conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15098 fi
15099 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15100 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15101 if test $ac_cv_lib_kstat_kstat_open = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_LIBKSTAT 1
15104 _ACEOF
15105
15106 LIBS="-lkstat $LIBS"
15107
15108 fi
15109
15110 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15111
15112 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15113 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15114 # to get the right answer into the cache.
15115 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15116 if test $ac_have_func = no; then
15117 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15118 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15119 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-lelf $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h. */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130
15131 /* Override any gcc2 internal prototype to avoid an error. */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15137 char elf_begin ();
15138 int
15139 main ()
15140 {
15141 elf_begin ();
15142 ;
15143 return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>conftest.er1
15149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_lib_elf_elf_begin=yes
15168 else
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172 ac_cv_lib_elf_elf_begin=no
15173 fi
15174 rm -f conftest.err conftest.$ac_objext \
15175 conftest$ac_exeext conftest.$ac_ext
15176 LIBS=$ac_check_lib_save_LIBS
15177 fi
15178 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15179 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15180 if test $ac_cv_lib_elf_elf_begin = yes; then
15181 LIBS="-lelf $LIBS"
15182 fi
15183
15184 fi
15185 if test $ac_have_func = no; then
15186 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15187 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15188 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191 ac_check_lib_save_LIBS=$LIBS
15192 LIBS="-lkvm $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199
15200 /* Override any gcc2 internal prototype to avoid an error. */
15201 #ifdef __cplusplus
15202 extern "C"
15203 #endif
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char kvm_open ();
15207 int
15208 main ()
15209 {
15210 kvm_open ();
15211 ;
15212 return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest$ac_exeext'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 ac_cv_lib_kvm_kvm_open=yes
15237 else
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15240
15241 ac_cv_lib_kvm_kvm_open=no
15242 fi
15243 rm -f conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15246 fi
15247 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15248 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15249 if test $ac_cv_lib_kvm_kvm_open = yes; then
15250 LIBS="-lkvm $LIBS"
15251 fi
15252
15253 # Check for the 4.4BSD definition of getloadavg.
15254 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15255 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15256 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259 ac_check_lib_save_LIBS=$LIBS
15260 LIBS="-lutil $LIBS"
15261 cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267
15268 /* Override any gcc2 internal prototype to avoid an error. */
15269 #ifdef __cplusplus
15270 extern "C"
15271 #endif
15272 /* We use char because int might match the return type of a gcc2
15273 builtin and then its argument prototype would still apply. */
15274 char getloadavg ();
15275 int
15276 main ()
15277 {
15278 getloadavg ();
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_lib_util_getloadavg=yes
15305 else
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 ac_cv_lib_util_getloadavg=no
15310 fi
15311 rm -f conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15313 LIBS=$ac_check_lib_save_LIBS
15314 fi
15315 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15316 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15317 if test $ac_cv_lib_util_getloadavg = yes; then
15318 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15319 fi
15320
15321 fi
15322
15323 if test $ac_have_func = no; then
15324 # There is a commonly available library for RS/6000 AIX.
15325 # Since it is not a standard part of AIX, it might be installed locally.
15326 ac_getloadavg_LIBS=$LIBS
15327 LIBS="-L/usr/local/lib $LIBS"
15328 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15329 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15330 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333 ac_check_lib_save_LIBS=$LIBS
15334 LIBS="-lgetloadavg $LIBS"
15335 cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h. */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15341
15342 /* Override any gcc2 internal prototype to avoid an error. */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 /* We use char because int might match the return type of a gcc2
15347 builtin and then its argument prototype would still apply. */
15348 char getloadavg ();
15349 int
15350 main ()
15351 {
15352 getloadavg ();
15353 ;
15354 return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest$ac_exeext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_cv_lib_getloadavg_getloadavg=yes
15379 else
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 ac_cv_lib_getloadavg_getloadavg=no
15384 fi
15385 rm -f conftest.err conftest.$ac_objext \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS=$ac_check_lib_save_LIBS
15388 fi
15389 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15390 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15391 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15392 LIBS="-lgetloadavg $LIBS"
15393 else
15394 LIBS=$ac_getloadavg_LIBS
15395 fi
15396
15397 fi
15398
15399 # Make sure it is really in the library, if we think we found it,
15400 # otherwise set up the replacement function.
15401
15402 for ac_func in getloadavg
15403 do
15404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for $ac_func" >&5
15406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_var+set}\" = set"; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15418 #define $ac_func innocuous_$ac_func
15419
15420 /* System header to define __stub macros and hopefully few prototypes,
15421 which can conflict with char $ac_func (); below.
15422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15423 <limits.h> exists even on freestanding compilers. */
15424
15425 #ifdef __STDC__
15426 # include <limits.h>
15427 #else
15428 # include <assert.h>
15429 #endif
15430
15431 #undef $ac_func
15432
15433 /* Override any gcc2 internal prototype to avoid an error. */
15434 #ifdef __cplusplus
15435 extern "C"
15436 {
15437 #endif
15438 /* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15440 char $ac_func ();
15441 /* The GNU C library defines this for functions which it implements
15442 to always fail with ENOSYS. Some functions are actually named
15443 something starting with __ and the normal name is an alias. */
15444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15445 choke me
15446 #else
15447 char (*f) () = $ac_func;
15448 #endif
15449 #ifdef __cplusplus
15450 }
15451 #endif
15452
15453 int
15454 main ()
15455 {
15456 return f != $ac_func;
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463 (eval $ac_link) 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; } &&
15476 { ac_try='test -s conftest$ac_exeext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 eval "$as_ac_var=yes"
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 eval "$as_ac_var=no"
15488 fi
15489 rm -f conftest.err conftest.$ac_objext \
15490 conftest$ac_exeext conftest.$ac_ext
15491 fi
15492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497 _ACEOF
15498
15499 else
15500 case $LIBOBJS in
15501 "getloadavg.$ac_objext" | \
15502 *" getloadavg.$ac_objext" | \
15503 "getloadavg.$ac_objext "* | \
15504 *" getloadavg.$ac_objext "* ) ;;
15505 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15506 esac
15507
15508
15509 cat >>confdefs.h <<\_ACEOF
15510 #define C_GETLOADAVG 1
15511 _ACEOF
15512
15513 # Figure out what our getloadavg.c needs.
15514 ac_have_func=no
15515 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15516 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15517 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15518 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 fi
15521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15522 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15523 else
15524 # Is the header compilable?
15525 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15526 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15527 cat >conftest.$ac_ext <<_ACEOF
15528 /* confdefs.h. */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15533 $ac_includes_default
15534 #include <sys/dg_sys_info.h>
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest.$ac_objext'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_header_compiler=yes
15558 else
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562 ac_header_compiler=no
15563 fi
15564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15566 echo "${ECHO_T}$ac_header_compiler" >&6
15567
15568 # Is the header present?
15569 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15570 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15571 cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h. */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 #include <sys/dg_sys_info.h>
15578 _ACEOF
15579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } >/dev/null; then
15587 if test -s conftest.err; then
15588 ac_cpp_err=$ac_c_preproc_warn_flag
15589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15590 else
15591 ac_cpp_err=
15592 fi
15593 else
15594 ac_cpp_err=yes
15595 fi
15596 if test -z "$ac_cpp_err"; then
15597 ac_header_preproc=yes
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 ac_header_preproc=no
15603 fi
15604 rm -f conftest.err conftest.$ac_ext
15605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15606 echo "${ECHO_T}$ac_header_preproc" >&6
15607
15608 # So? What about this header?
15609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15610 yes:no: )
15611 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15612 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15614 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15615 ac_header_preproc=yes
15616 ;;
15617 no:yes:* )
15618 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15619 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15621 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15623 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15625 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15627 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15629 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15630 (
15631 cat <<\_ASBOX
15632 ## ------------------------------------------ ##
15633 ## Report this to the AC_PACKAGE_NAME lists. ##
15634 ## ------------------------------------------ ##
15635 _ASBOX
15636 ) |
15637 sed "s/^/$as_me: WARNING: /" >&2
15638 ;;
15639 esac
15640 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15641 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15642 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15646 fi
15647 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15648 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15649
15650 fi
15651 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15652 ac_have_func=yes
15653
15654 cat >>confdefs.h <<\_ACEOF
15655 #define DGUX 1
15656 _ACEOF
15657
15658
15659 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15660 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15661 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664 ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-ldgc $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672
15673 /* Override any gcc2 internal prototype to avoid an error. */
15674 #ifdef __cplusplus
15675 extern "C"
15676 #endif
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15679 char dg_sys_info ();
15680 int
15681 main ()
15682 {
15683 dg_sys_info ();
15684 ;
15685 return 0;
15686 }
15687 _ACEOF
15688 rm -f conftest.$ac_objext conftest$ac_exeext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15690 (eval $ac_link) 2>conftest.er1
15691 ac_status=$?
15692 grep -v '^ *+' conftest.er1 >conftest.err
15693 rm -f conftest.er1
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_cv_lib_dgc_dg_sys_info=yes
15710 else
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 ac_cv_lib_dgc_dg_sys_info=no
15715 fi
15716 rm -f conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15719 fi
15720 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15721 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15722 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define HAVE_LIBDGC 1
15725 _ACEOF
15726
15727 LIBS="-ldgc $LIBS"
15728
15729 fi
15730
15731 fi
15732
15733
15734
15735 if test "${ac_cv_header_locale_h+set}" = set; then
15736 echo "$as_me:$LINENO: checking for locale.h" >&5
15737 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15738 if test "${ac_cv_header_locale_h+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 fi
15741 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15742 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15743 else
15744 # Is the header compilable?
15745 echo "$as_me:$LINENO: checking locale.h usability" >&5
15746 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <locale.h>
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; } &&
15771 { ac_try='test -s conftest.$ac_objext'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_header_compiler=yes
15778 else
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782 ac_header_compiler=no
15783 fi
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6
15787
15788 # Is the header present?
15789 echo "$as_me:$LINENO: checking locale.h presence" >&5
15790 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h. */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <locale.h>
15798 _ACEOF
15799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } >/dev/null; then
15807 if test -s conftest.err; then
15808 ac_cpp_err=$ac_c_preproc_warn_flag
15809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15810 else
15811 ac_cpp_err=
15812 fi
15813 else
15814 ac_cpp_err=yes
15815 fi
15816 if test -z "$ac_cpp_err"; then
15817 ac_header_preproc=yes
15818 else
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ac_header_preproc=no
15823 fi
15824 rm -f conftest.err conftest.$ac_ext
15825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15826 echo "${ECHO_T}$ac_header_preproc" >&6
15827
15828 # So? What about this header?
15829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 yes:no: )
15831 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15832 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15834 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15835 ac_header_preproc=yes
15836 ;;
15837 no:yes:* )
15838 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15839 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15841 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15843 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15845 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15847 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15849 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15850 (
15851 cat <<\_ASBOX
15852 ## ------------------------------------------ ##
15853 ## Report this to the AC_PACKAGE_NAME lists. ##
15854 ## ------------------------------------------ ##
15855 _ASBOX
15856 ) |
15857 sed "s/^/$as_me: WARNING: /" >&2
15858 ;;
15859 esac
15860 echo "$as_me:$LINENO: checking for locale.h" >&5
15861 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15862 if test "${ac_cv_header_locale_h+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865 ac_cv_header_locale_h=$ac_header_preproc
15866 fi
15867 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15868 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15869
15870 fi
15871
15872
15873
15874 for ac_func in setlocale
15875 do
15876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877 echo "$as_me:$LINENO: checking for $ac_func" >&5
15878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_var+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882 cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h. */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15890 #define $ac_func innocuous_$ac_func
15891
15892 /* System header to define __stub macros and hopefully few prototypes,
15893 which can conflict with char $ac_func (); below.
15894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895 <limits.h> exists even on freestanding compilers. */
15896
15897 #ifdef __STDC__
15898 # include <limits.h>
15899 #else
15900 # include <assert.h>
15901 #endif
15902
15903 #undef $ac_func
15904
15905 /* Override any gcc2 internal prototype to avoid an error. */
15906 #ifdef __cplusplus
15907 extern "C"
15908 {
15909 #endif
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912 char $ac_func ();
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15917 choke me
15918 #else
15919 char (*f) () = $ac_func;
15920 #endif
15921 #ifdef __cplusplus
15922 }
15923 #endif
15924
15925 int
15926 main ()
15927 {
15928 return f != $ac_func;
15929 ;
15930 return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 eval "$as_ac_var=no"
15960 fi
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 fi
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 fi
15972 done
15973
15974
15975 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15976 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15977 # Irix 4.0.5F has the header but not the library.
15978 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15979 ac_have_func=yes
15980
15981 cat >>confdefs.h <<\_ACEOF
15982 #define SVR4 1
15983 _ACEOF
15984
15985 fi
15986
15987 if test $ac_have_func = no; then
15988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15989 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15990 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15991 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 fi
15994 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15995 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15996 else
15997 # Is the header compilable?
15998 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15999 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 #include <inq_stats/cpustats.h>
16008 _ACEOF
16009 rm -f conftest.$ac_objext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_header_compiler=yes
16031 else
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16034
16035 ac_header_compiler=no
16036 fi
16037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16039 echo "${ECHO_T}$ac_header_compiler" >&6
16040
16041 # Is the header present?
16042 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16043 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 #include <inq_stats/cpustats.h>
16051 _ACEOF
16052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev/null; then
16060 if test -s conftest.err; then
16061 ac_cpp_err=$ac_c_preproc_warn_flag
16062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063 else
16064 ac_cpp_err=
16065 fi
16066 else
16067 ac_cpp_err=yes
16068 fi
16069 if test -z "$ac_cpp_err"; then
16070 ac_header_preproc=yes
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_header_preproc=no
16076 fi
16077 rm -f conftest.err conftest.$ac_ext
16078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6
16080
16081 # So? What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 yes:no: )
16084 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
16089 ;;
16090 no:yes:* )
16091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16103 (
16104 cat <<\_ASBOX
16105 ## ------------------------------------------ ##
16106 ## Report this to the AC_PACKAGE_NAME lists. ##
16107 ## ------------------------------------------ ##
16108 _ASBOX
16109 ) |
16110 sed "s/^/$as_me: WARNING: /" >&2
16111 ;;
16112 esac
16113 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16114 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16115 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16119 fi
16120 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16121 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16122
16123 fi
16124 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16125 ac_have_func=yes
16126
16127 cat >>confdefs.h <<\_ACEOF
16128 #define UMAX 1
16129 _ACEOF
16130
16131
16132 cat >>confdefs.h <<\_ACEOF
16133 #define UMAX4_3 1
16134 _ACEOF
16135
16136 fi
16137
16138
16139 fi
16140
16141 if test $ac_have_func = no; then
16142 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16143 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16144 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16145 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 fi
16148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16149 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16150 else
16151 # Is the header compilable?
16152 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16153 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16154 cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h. */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 $ac_includes_default
16161 #include <sys/cpustats.h>
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165 (eval $ac_compile) 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_header_compiler=yes
16185 else
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16188
16189 ac_header_compiler=no
16190 fi
16191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16193 echo "${ECHO_T}$ac_header_compiler" >&6
16194
16195 # Is the header present?
16196 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16197 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h. */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 #include <sys/cpustats.h>
16205 _ACEOF
16206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16208 ac_status=$?
16209 grep -v '^ *+' conftest.er1 >conftest.err
16210 rm -f conftest.er1
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } >/dev/null; then
16214 if test -s conftest.err; then
16215 ac_cpp_err=$ac_c_preproc_warn_flag
16216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16217 else
16218 ac_cpp_err=
16219 fi
16220 else
16221 ac_cpp_err=yes
16222 fi
16223 if test -z "$ac_cpp_err"; then
16224 ac_header_preproc=yes
16225 else
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 ac_header_preproc=no
16230 fi
16231 rm -f conftest.err conftest.$ac_ext
16232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16233 echo "${ECHO_T}$ac_header_preproc" >&6
16234
16235 # So? What about this header?
16236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16237 yes:no: )
16238 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16239 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16241 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16242 ac_header_preproc=yes
16243 ;;
16244 no:yes:* )
16245 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16246 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16247 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16248 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16250 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16252 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16254 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16256 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16257 (
16258 cat <<\_ASBOX
16259 ## ------------------------------------------ ##
16260 ## Report this to the AC_PACKAGE_NAME lists. ##
16261 ## ------------------------------------------ ##
16262 _ASBOX
16263 ) |
16264 sed "s/^/$as_me: WARNING: /" >&2
16265 ;;
16266 esac
16267 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16268 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16269 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16273 fi
16274 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16275 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16276
16277 fi
16278 if test $ac_cv_header_sys_cpustats_h = yes; then
16279 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16280 #define UMAX 1
16281 _ACEOF
16282
16283 fi
16284
16285
16286 fi
16287
16288 if test $ac_have_func = no; then
16289
16290 for ac_header in mach/mach.h
16291 do
16292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16294 echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 fi
16299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16301 else
16302 # Is the header compilable?
16303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h. */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 $ac_includes_default
16312 #include <$ac_header>
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>conftest.er1
16317 ac_status=$?
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest.$ac_objext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_header_compiler=yes
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_compiler=no
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344 echo "${ECHO_T}$ac_header_compiler" >&6
16345
16346 # Is the header present?
16347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 #include <$ac_header>
16356 _ACEOF
16357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
16366 ac_cpp_err=$ac_c_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16368 else
16369 ac_cpp_err=
16370 fi
16371 else
16372 ac_cpp_err=yes
16373 fi
16374 if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16376 else
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380 ac_header_preproc=no
16381 fi
16382 rm -f conftest.err conftest.$ac_ext
16383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384 echo "${ECHO_T}$ac_header_preproc" >&6
16385
16386 # So? What about this header?
16387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16388 yes:no: )
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16393 ac_header_preproc=yes
16394 ;;
16395 no:yes:* )
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16408 (
16409 cat <<\_ASBOX
16410 ## ------------------------------------------ ##
16411 ## Report this to the AC_PACKAGE_NAME lists. ##
16412 ## ------------------------------------------ ##
16413 _ASBOX
16414 ) |
16415 sed "s/^/$as_me: WARNING: /" >&2
16416 ;;
16417 esac
16418 echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 eval "$as_ac_Header=\$ac_header_preproc"
16424 fi
16425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16427
16428 fi
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438 fi
16439
16440
16441 for ac_header in nlist.h
16442 do
16443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16445 echo "$as_me:$LINENO: checking for $ac_header" >&5
16446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 fi
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16452 else
16453 # Is the header compilable?
16454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 $ac_includes_default
16463 #include <$ac_header>
16464 _ACEOF
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16468 ac_status=$?
16469 grep -v '^ *+' conftest.er1 >conftest.err
16470 rm -f conftest.er1
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_header_compiler=yes
16487 else
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 ac_header_compiler=no
16492 fi
16493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16495 echo "${ECHO_T}$ac_header_compiler" >&6
16496
16497 # Is the header present?
16498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16500 cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h. */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 #include <$ac_header>
16507 _ACEOF
16508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } >/dev/null; then
16516 if test -s conftest.err; then
16517 ac_cpp_err=$ac_c_preproc_warn_flag
16518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16519 else
16520 ac_cpp_err=
16521 fi
16522 else
16523 ac_cpp_err=yes
16524 fi
16525 if test -z "$ac_cpp_err"; then
16526 ac_header_preproc=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ac_header_preproc=no
16532 fi
16533 rm -f conftest.err conftest.$ac_ext
16534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16535 echo "${ECHO_T}$ac_header_preproc" >&6
16536
16537 # So? What about this header?
16538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16539 yes:no: )
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16544 ac_header_preproc=yes
16545 ;;
16546 no:yes:* )
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16559 (
16560 cat <<\_ASBOX
16561 ## ------------------------------------------ ##
16562 ## Report this to the AC_PACKAGE_NAME lists. ##
16563 ## ------------------------------------------ ##
16564 _ASBOX
16565 ) |
16566 sed "s/^/$as_me: WARNING: /" >&2
16567 ;;
16568 esac
16569 echo "$as_me:$LINENO: checking for $ac_header" >&5
16570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 else
16574 eval "$as_ac_Header=\$ac_header_preproc"
16575 fi
16576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16578
16579 fi
16580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16581 cat >>confdefs.h <<_ACEOF
16582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16583 _ACEOF
16584 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16585 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16586 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589 cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 #include <nlist.h>
16596
16597 int
16598 main ()
16599 {
16600 static struct nlist ac_aggr;
16601 if (ac_aggr.n_un.n_name)
16602 return 0;
16603 ;
16604 return 0;
16605 }
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609 (eval $ac_compile) 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try='test -s conftest.$ac_objext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_member_struct_nlist_n_un_n_name=yes
16629 else
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h. */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 #include <nlist.h>
16640
16641 int
16642 main ()
16643 {
16644 static struct nlist ac_aggr;
16645 if (sizeof ac_aggr.n_un.n_name)
16646 return 0;
16647 ;
16648 return 0;
16649 }
16650 _ACEOF
16651 rm -f conftest.$ac_objext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest.$ac_objext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_member_struct_nlist_n_un_n_name=yes
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ac_cv_member_struct_nlist_n_un_n_name=no
16678 fi
16679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16680 fi
16681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16682 fi
16683 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16684 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16685 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16686
16687 cat >>confdefs.h <<_ACEOF
16688 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16689 _ACEOF
16690
16691
16692 cat >>confdefs.h <<\_ACEOF
16693 #define NLIST_NAME_UNION 1
16694 _ACEOF
16695
16696 fi
16697
16698
16699 fi
16700
16701 done
16702
16703 fi
16704 done
16705
16706
16707 # Some definitions of getloadavg require that the program be installed setgid.
16708 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16709 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16710 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16720 #ifdef LDAV_PRIVILEGED
16721 Yowza Am I SETGID yet
16722 #endif
16723 _ACEOF
16724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16725 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16726 ac_cv_func_getloadavg_setgid=yes
16727 else
16728 ac_cv_func_getloadavg_setgid=no
16729 fi
16730 rm -f conftest*
16731
16732 fi
16733 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16734 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16735 if test $ac_cv_func_getloadavg_setgid = yes; then
16736 NEED_SETGID=true
16737
16738 cat >>confdefs.h <<\_ACEOF
16739 #define GETLOADAVG_PRIVILEGED 1
16740 _ACEOF
16741
16742 else
16743 NEED_SETGID=false
16744 fi
16745
16746 if test $ac_cv_func_getloadavg_setgid = yes; then
16747 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16748 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16749 if test "${ac_cv_group_kmem+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16753 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16754 # If we got an error (system does not support symlinks), try without -L.
16755 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16756 ac_cv_group_kmem=`echo $ac_ls_output \
16757 | sed -ne 's/[ ][ ]*/ /g;
16758 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16759 / /s/.* //;p;'`
16760
16761 fi
16762 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16763 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16764 KMEM_GROUP=$ac_cv_group_kmem
16765 fi
16766 if test "x$ac_save_LIBS" = x; then
16767 GETLOADAVG_LIBS=$LIBS
16768 else
16769 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16770 fi
16771 LIBS=$ac_save_LIBS
16772
16773
16774
16775 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16776 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16777 if test "${ac_cv_sys_largefile_source+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780 while :; do
16781 ac_cv_sys_largefile_source=no
16782 cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h. */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <stdio.h>
16789 int
16790 main ()
16791 {
16792 return !fseeko;
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest.$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 break
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 fi
16824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #define _LARGEFILE_SOURCE 1
16832 #include <stdio.h>
16833 int
16834 main ()
16835 {
16836 return !fseeko;
16837 ;
16838 return 0;
16839 }
16840 _ACEOF
16841 rm -f conftest.$ac_objext
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; } &&
16856 { ac_try='test -s conftest.$ac_objext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_sys_largefile_source=1; break
16863 else
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867 fi
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869 break
16870 done
16871 fi
16872 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16873 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16874 if test "$ac_cv_sys_largefile_source" != no; then
16875
16876 cat >>confdefs.h <<_ACEOF
16877 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16878 _ACEOF
16879
16880 fi
16881 rm -f conftest*
16882
16883 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16884 # in glibc 2.1.3, but that breaks too many other things.
16885 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16886 echo "$as_me:$LINENO: checking for fseeko" >&5
16887 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16888 if test "${ac_cv_func_fseeko+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 #include <stdio.h>
16898 int
16899 main ()
16900 {
16901 return fseeko && fseeko (stdin, 0, 0);
16902 ;
16903 return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_func_fseeko=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 ac_cv_func_fseeko=no
16933 fi
16934 rm -f conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936 fi
16937 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16938 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16939 if test $ac_cv_func_fseeko = yes; then
16940
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE_FSEEKO 1
16943 _ACEOF
16944
16945 fi
16946
16947
16948 # Configure getopt.
16949 # getopt.m4 serial 10
16950
16951 # The getopt module assume you want GNU getopt, with getopt_long etc,
16952 # rather than vanilla POSIX getopt. This means your your code should
16953 # always include <getopt.h> for the getopt prototypes.
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965 # Prerequisites of lib/getopt*.
16966
16967
16968
16969
16970 GETOPT_H=
16971
16972 for ac_header in getopt.h
16973 do
16974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16976 echo "$as_me:$LINENO: checking for $ac_header" >&5
16977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 fi
16981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16983 else
16984 # Is the header compilable?
16985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h. */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 $ac_includes_default
16994 #include <$ac_header>
16995 _ACEOF
16996 rm -f conftest.$ac_objext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_header_compiler=yes
17018 else
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022 ac_header_compiler=no
17023 fi
17024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026 echo "${ECHO_T}$ac_header_compiler" >&6
17027
17028 # Is the header present?
17029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 #include <$ac_header>
17038 _ACEOF
17039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } >/dev/null; then
17047 if test -s conftest.err; then
17048 ac_cpp_err=$ac_c_preproc_warn_flag
17049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17050 else
17051 ac_cpp_err=
17052 fi
17053 else
17054 ac_cpp_err=yes
17055 fi
17056 if test -z "$ac_cpp_err"; then
17057 ac_header_preproc=yes
17058 else
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17061
17062 ac_header_preproc=no
17063 fi
17064 rm -f conftest.err conftest.$ac_ext
17065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17066 echo "${ECHO_T}$ac_header_preproc" >&6
17067
17068 # So? What about this header?
17069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17070 yes:no: )
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17075 ac_header_preproc=yes
17076 ;;
17077 no:yes:* )
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17090 (
17091 cat <<\_ASBOX
17092 ## ------------------------------------------ ##
17093 ## Report this to the AC_PACKAGE_NAME lists. ##
17094 ## ------------------------------------------ ##
17095 _ASBOX
17096 ) |
17097 sed "s/^/$as_me: WARNING: /" >&2
17098 ;;
17099 esac
17100 echo "$as_me:$LINENO: checking for $ac_header" >&5
17101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105 eval "$as_ac_Header=\$ac_header_preproc"
17106 fi
17107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17109
17110 fi
17111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17112 cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17114 _ACEOF
17115
17116 else
17117 GETOPT_H=getopt.h
17118 fi
17119
17120 done
17121
17122 if test -z "$GETOPT_H"; then
17123
17124 for ac_func in getopt_long_only
17125 do
17126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17127 echo "$as_me:$LINENO: checking for $ac_func" >&5
17128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17129 if eval "test \"\${$as_ac_var+set}\" = set"; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h. */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17140 #define $ac_func innocuous_$ac_func
17141
17142 /* System header to define __stub macros and hopefully few prototypes,
17143 which can conflict with char $ac_func (); below.
17144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17145 <limits.h> exists even on freestanding compilers. */
17146
17147 #ifdef __STDC__
17148 # include <limits.h>
17149 #else
17150 # include <assert.h>
17151 #endif
17152
17153 #undef $ac_func
17154
17155 /* Override any gcc2 internal prototype to avoid an error. */
17156 #ifdef __cplusplus
17157 extern "C"
17158 {
17159 #endif
17160 /* We use char because int might match the return type of a gcc2
17161 builtin and then its argument prototype would still apply. */
17162 char $ac_func ();
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17167 choke me
17168 #else
17169 char (*f) () = $ac_func;
17170 #endif
17171 #ifdef __cplusplus
17172 }
17173 #endif
17174
17175 int
17176 main ()
17177 {
17178 return f != $ac_func;
17179 ;
17180 return 0;
17181 }
17182 _ACEOF
17183 rm -f conftest.$ac_objext conftest$ac_exeext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17185 (eval $ac_link) 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest$ac_exeext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 eval "$as_ac_var=yes"
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209 eval "$as_ac_var=no"
17210 fi
17211 rm -f conftest.err conftest.$ac_objext \
17212 conftest$ac_exeext conftest.$ac_ext
17213 fi
17214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17216 if test `eval echo '${'$as_ac_var'}'` = yes; then
17217 cat >>confdefs.h <<_ACEOF
17218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17219 _ACEOF
17220
17221 else
17222 GETOPT_H=getopt.h
17223 fi
17224 done
17225
17226 fi
17227
17228 if test -z "$GETOPT_H"; then
17229 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17230 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17231 if test "${ac_cv_have_decl_optreset+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 #include <getopt.h>
17241
17242 int
17243 main ()
17244 {
17245 #ifndef optreset
17246 char *p = (char *) optreset;
17247 #endif
17248
17249 ;
17250 return 0;
17251 }
17252 _ACEOF
17253 rm -f conftest.$ac_objext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17255 (eval $ac_compile) 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_have_decl_optreset=yes
17275 else
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279 ac_cv_have_decl_optreset=no
17280 fi
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282 fi
17283 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17284 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17285 if test $ac_cv_have_decl_optreset = yes; then
17286 GETOPT_H=getopt.h
17287 fi
17288
17289 fi
17290
17291 if test -z "$GETOPT_H"; then
17292 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17293 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17294 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 if test "$cross_compiling" = yes; then
17298 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17299 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17300 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h. */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 #include <getopt.h>
17310
17311 int
17312 main ()
17313 {
17314 #ifndef getopt_clip
17315 char *p = (char *) getopt_clip;
17316 #endif
17317
17318 ;
17319 return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_have_decl_getopt_clip=yes
17344 else
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 ac_cv_have_decl_getopt_clip=no
17349 fi
17350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17351 fi
17352 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17353 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17354 if test $ac_cv_have_decl_getopt_clip = yes; then
17355 gl_cv_func_gnu_getopt=no
17356 else
17357 gl_cv_func_gnu_getopt=yes
17358 fi
17359
17360 else
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 #include <getopt.h>
17368 int
17369 main ()
17370 {
17371
17372 char *myargv[3];
17373 myargv[0] = "conftest";
17374 myargv[1] = "-+";
17375 myargv[2] = 0;
17376 return getopt (2, myargv, "+a") != '?';
17377
17378 ;
17379 return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest$ac_exeext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 gl_cv_func_gnu_getopt=yes
17394 else
17395 echo "$as_me: program exited with status $ac_status" >&5
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 ( exit $ac_status )
17400 gl_cv_func_gnu_getopt=no
17401 fi
17402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17403 fi
17404 fi
17405 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17406 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17407 if test "$gl_cv_func_gnu_getopt" = "no"; then
17408 GETOPT_H=getopt.h
17409 fi
17410 fi
17411
17412
17413
17414 if test -n "$GETOPT_H"; then
17415
17416
17417 GETOPT_H=getopt.h
17418
17419 cat >>confdefs.h <<\_ACEOF
17420 #define __GETOPT_PREFIX rpl_
17421 _ACEOF
17422
17423
17424
17425 :
17426 GETOPTOBJS='getopt.o getopt1.o'
17427
17428 fi
17429
17430
17431
17432
17433 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17434 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17435 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438 # Use it with a single arg.
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 $ac_includes_default
17446 int
17447 main ()
17448 {
17449 getpgrp (0);
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_func_getpgrp_void=no
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480 ac_cv_func_getpgrp_void=yes
17481 fi
17482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17483
17484 fi
17485 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17486 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17487 if test $ac_cv_func_getpgrp_void = yes; then
17488
17489 cat >>confdefs.h <<\_ACEOF
17490 #define GETPGRP_VOID 1
17491 _ACEOF
17492
17493 fi
17494
17495
17496
17497 for ac_func in strftime
17498 do
17499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17500 echo "$as_me:$LINENO: checking for $ac_func" >&5
17501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17502 if eval "test \"\${$as_ac_var+set}\" = set"; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17513 #define $ac_func innocuous_$ac_func
17514
17515 /* System header to define __stub macros and hopefully few prototypes,
17516 which can conflict with char $ac_func (); below.
17517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17518 <limits.h> exists even on freestanding compilers. */
17519
17520 #ifdef __STDC__
17521 # include <limits.h>
17522 #else
17523 # include <assert.h>
17524 #endif
17525
17526 #undef $ac_func
17527
17528 /* Override any gcc2 internal prototype to avoid an error. */
17529 #ifdef __cplusplus
17530 extern "C"
17531 {
17532 #endif
17533 /* We use char because int might match the return type of a gcc2
17534 builtin and then its argument prototype would still apply. */
17535 char $ac_func ();
17536 /* The GNU C library defines this for functions which it implements
17537 to always fail with ENOSYS. Some functions are actually named
17538 something starting with __ and the normal name is an alias. */
17539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17540 choke me
17541 #else
17542 char (*f) () = $ac_func;
17543 #endif
17544 #ifdef __cplusplus
17545 }
17546 #endif
17547
17548 int
17549 main ()
17550 {
17551 return f != $ac_func;
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 eval "$as_ac_var=yes"
17578 else
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 eval "$as_ac_var=no"
17583 fi
17584 rm -f conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586 fi
17587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17589 if test `eval echo '${'$as_ac_var'}'` = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 _ACEOF
17593
17594 else
17595 # strftime is in -lintl on SCO UNIX.
17596 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17597 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17598 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601 ac_check_lib_save_LIBS=$LIBS
17602 LIBS="-lintl $LIBS"
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h. */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609
17610 /* Override any gcc2 internal prototype to avoid an error. */
17611 #ifdef __cplusplus
17612 extern "C"
17613 #endif
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616 char strftime ();
17617 int
17618 main ()
17619 {
17620 strftime ();
17621 ;
17622 return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_lib_intl_strftime=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ac_cv_lib_intl_strftime=no
17652 fi
17653 rm -f conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LIBS=$ac_check_lib_save_LIBS
17656 fi
17657 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17658 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17659 if test $ac_cv_lib_intl_strftime = yes; then
17660 cat >>confdefs.h <<\_ACEOF
17661 #define HAVE_STRFTIME 1
17662 _ACEOF
17663
17664 LIBS="-lintl $LIBS"
17665 fi
17666
17667 fi
17668 done
17669
17670
17671 # UNIX98 PTYs.
17672
17673 for ac_func in grantpt
17674 do
17675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17676 echo "$as_me:$LINENO: checking for $ac_func" >&5
17677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17678 if eval "test \"\${$as_ac_var+set}\" = set"; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689 #define $ac_func innocuous_$ac_func
17690
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char $ac_func (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
17695
17696 #ifdef __STDC__
17697 # include <limits.h>
17698 #else
17699 # include <assert.h>
17700 #endif
17701
17702 #undef $ac_func
17703
17704 /* Override any gcc2 internal prototype to avoid an error. */
17705 #ifdef __cplusplus
17706 extern "C"
17707 {
17708 #endif
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17711 char $ac_func ();
17712 /* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17716 choke me
17717 #else
17718 char (*f) () = $ac_func;
17719 #endif
17720 #ifdef __cplusplus
17721 }
17722 #endif
17723
17724 int
17725 main ()
17726 {
17727 return f != $ac_func;
17728 ;
17729 return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest$ac_exeext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 eval "$as_ac_var=yes"
17754 else
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 eval "$as_ac_var=no"
17759 fi
17760 rm -f conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17762 fi
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17768 _ACEOF
17769
17770 fi
17771 done
17772
17773
17774 # PTY-related GNU extensions.
17775
17776 for ac_func in getpt
17777 do
17778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17779 echo "$as_me:$LINENO: checking for $ac_func" >&5
17780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17781 if eval "test \"\${$as_ac_var+set}\" = set"; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17792 #define $ac_func innocuous_$ac_func
17793
17794 /* System header to define __stub macros and hopefully few prototypes,
17795 which can conflict with char $ac_func (); below.
17796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797 <limits.h> exists even on freestanding compilers. */
17798
17799 #ifdef __STDC__
17800 # include <limits.h>
17801 #else
17802 # include <assert.h>
17803 #endif
17804
17805 #undef $ac_func
17806
17807 /* Override any gcc2 internal prototype to avoid an error. */
17808 #ifdef __cplusplus
17809 extern "C"
17810 {
17811 #endif
17812 /* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814 char $ac_func ();
17815 /* The GNU C library defines this for functions which it implements
17816 to always fail with ENOSYS. Some functions are actually named
17817 something starting with __ and the normal name is an alias. */
17818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17819 choke me
17820 #else
17821 char (*f) () = $ac_func;
17822 #endif
17823 #ifdef __cplusplus
17824 }
17825 #endif
17826
17827 int
17828 main ()
17829 {
17830 return f != $ac_func;
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837 (eval $ac_link) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17860
17861 eval "$as_ac_var=no"
17862 fi
17863 rm -f conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 fi
17866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869 cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871 _ACEOF
17872
17873 fi
17874 done
17875
17876
17877 # Check this now, so that we will NOT find the above functions in ncurses.
17878 # That is because we have not set up to link ncurses in lib-src.
17879 # It's better to believe a function is not available
17880 # than to expect to find it in ncurses.
17881
17882 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17883 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17884 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887 ac_check_lib_save_LIBS=$LIBS
17888 LIBS="-lncurses $LIBS"
17889 cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h. */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895
17896 /* Override any gcc2 internal prototype to avoid an error. */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 /* We use char because int might match the return type of a gcc2
17901 builtin and then its argument prototype would still apply. */
17902 char tparm ();
17903 int
17904 main ()
17905 {
17906 tparm ();
17907 ;
17908 return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17913 (eval $ac_link) 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_lib_ncurses_tparm=yes
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_lib_ncurses_tparm=no
17938 fi
17939 rm -f conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 LIBS=$ac_check_lib_save_LIBS
17942 fi
17943 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17944 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17945 if test $ac_cv_lib_ncurses_tparm = yes; then
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_LIBNCURSES 1
17948 _ACEOF
17949
17950 LIBS="-lncurses $LIBS"
17951
17952 fi
17953
17954
17955 # Do we need the Hesiod library to provide the support routines?
17956 if test "$with_hesiod" = yes ; then
17957 # Don't set $LIBS here -- see comments above.
17958 resolv=no
17959 echo "$as_me:$LINENO: checking for res_send" >&5
17960 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17961 if test "${ac_cv_func_res_send+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964 cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h. */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17972 #define res_send innocuous_res_send
17973
17974 /* System header to define __stub macros and hopefully few prototypes,
17975 which can conflict with char res_send (); below.
17976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977 <limits.h> exists even on freestanding compilers. */
17978
17979 #ifdef __STDC__
17980 # include <limits.h>
17981 #else
17982 # include <assert.h>
17983 #endif
17984
17985 #undef res_send
17986
17987 /* Override any gcc2 internal prototype to avoid an error. */
17988 #ifdef __cplusplus
17989 extern "C"
17990 {
17991 #endif
17992 /* We use char because int might match the return type of a gcc2
17993 builtin and then its argument prototype would still apply. */
17994 char res_send ();
17995 /* The GNU C library defines this for functions which it implements
17996 to always fail with ENOSYS. Some functions are actually named
17997 something starting with __ and the normal name is an alias. */
17998 #if defined (__stub_res_send) || defined (__stub___res_send)
17999 choke me
18000 #else
18001 char (*f) () = res_send;
18002 #endif
18003 #ifdef __cplusplus
18004 }
18005 #endif
18006
18007 int
18008 main ()
18009 {
18010 return f != res_send;
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017 (eval $ac_link) 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_func_res_send=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_func_res_send=no
18042 fi
18043 rm -f conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 fi
18046 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18047 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18048 if test $ac_cv_func_res_send = yes; then
18049 :
18050 else
18051 echo "$as_me:$LINENO: checking for __res_send" >&5
18052 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18053 if test "${ac_cv_func___res_send+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h. */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064 #define __res_send innocuous___res_send
18065
18066 /* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char __res_send (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18070
18071 #ifdef __STDC__
18072 # include <limits.h>
18073 #else
18074 # include <assert.h>
18075 #endif
18076
18077 #undef __res_send
18078
18079 /* Override any gcc2 internal prototype to avoid an error. */
18080 #ifdef __cplusplus
18081 extern "C"
18082 {
18083 #endif
18084 /* We use char because int might match the return type of a gcc2
18085 builtin and then its argument prototype would still apply. */
18086 char __res_send ();
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined (__stub___res_send) || defined (__stub_____res_send)
18091 choke me
18092 #else
18093 char (*f) () = __res_send;
18094 #endif
18095 #ifdef __cplusplus
18096 }
18097 #endif
18098
18099 int
18100 main ()
18101 {
18102 return f != __res_send;
18103 ;
18104 return 0;
18105 }
18106 _ACEOF
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109 (eval $ac_link) 2>conftest.er1
18110 ac_status=$?
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_func___res_send=yes
18129 else
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 ac_cv_func___res_send=no
18134 fi
18135 rm -f conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18137 fi
18138 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18139 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18140 if test $ac_cv_func___res_send = yes; then
18141 :
18142 else
18143 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18144 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18145 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 ac_check_lib_save_LIBS=$LIBS
18149 LIBS="-lresolv $LIBS"
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156
18157 /* Override any gcc2 internal prototype to avoid an error. */
18158 #ifdef __cplusplus
18159 extern "C"
18160 #endif
18161 /* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18163 char res_send ();
18164 int
18165 main ()
18166 {
18167 res_send ();
18168 ;
18169 return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
18181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183 (eval $ac_try) 2>&5
18184 ac_status=$?
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; } &&
18187 { ac_try='test -s conftest$ac_exeext'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; }; then
18193 ac_cv_lib_resolv_res_send=yes
18194 else
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198 ac_cv_lib_resolv_res_send=no
18199 fi
18200 rm -f conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18203 fi
18204 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18205 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18206 if test $ac_cv_lib_resolv_res_send = yes; then
18207 resolv=yes
18208 else
18209 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18210 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18211 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214 ac_check_lib_save_LIBS=$LIBS
18215 LIBS="-lresolv $LIBS"
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h. */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18222
18223 /* Override any gcc2 internal prototype to avoid an error. */
18224 #ifdef __cplusplus
18225 extern "C"
18226 #endif
18227 /* We use char because int might match the return type of a gcc2
18228 builtin and then its argument prototype would still apply. */
18229 char __res_send ();
18230 int
18231 main ()
18232 {
18233 __res_send ();
18234 ;
18235 return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18240 (eval $ac_link) 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest$ac_exeext'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 ac_cv_lib_resolv___res_send=yes
18260 else
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18263
18264 ac_cv_lib_resolv___res_send=no
18265 fi
18266 rm -f conftest.err conftest.$ac_objext \
18267 conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18269 fi
18270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18272 if test $ac_cv_lib_resolv___res_send = yes; then
18273 resolv=yes
18274 fi
18275
18276 fi
18277
18278 fi
18279
18280 fi
18281
18282 if test "$resolv" = yes ; then
18283 RESOLVLIB=-lresolv
18284
18285 cat >>confdefs.h <<\_ACEOF
18286 #define HAVE_LIBRESOLV 1
18287 _ACEOF
18288
18289 else
18290 RESOLVLIB=
18291 fi
18292 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18293 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18294 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297 cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18305 #define hes_getmailhost innocuous_hes_getmailhost
18306
18307 /* System header to define __stub macros and hopefully few prototypes,
18308 which can conflict with char hes_getmailhost (); below.
18309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310 <limits.h> exists even on freestanding compilers. */
18311
18312 #ifdef __STDC__
18313 # include <limits.h>
18314 #else
18315 # include <assert.h>
18316 #endif
18317
18318 #undef hes_getmailhost
18319
18320 /* Override any gcc2 internal prototype to avoid an error. */
18321 #ifdef __cplusplus
18322 extern "C"
18323 {
18324 #endif
18325 /* We use char because int might match the return type of a gcc2
18326 builtin and then its argument prototype would still apply. */
18327 char hes_getmailhost ();
18328 /* The GNU C library defines this for functions which it implements
18329 to always fail with ENOSYS. Some functions are actually named
18330 something starting with __ and the normal name is an alias. */
18331 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18332 choke me
18333 #else
18334 char (*f) () = hes_getmailhost;
18335 #endif
18336 #ifdef __cplusplus
18337 }
18338 #endif
18339
18340 int
18341 main ()
18342 {
18343 return f != hes_getmailhost;
18344 ;
18345 return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>conftest.er1
18351 ac_status=$?
18352 grep -v '^ *+' conftest.er1 >conftest.err
18353 rm -f conftest.er1
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest$ac_exeext'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_func_hes_getmailhost=yes
18370 else
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374 ac_cv_func_hes_getmailhost=no
18375 fi
18376 rm -f conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
18378 fi
18379 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18380 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18381 if test $ac_cv_func_hes_getmailhost = yes; then
18382 :
18383 else
18384 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18385 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18386 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389 ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lhesiod $RESOLVLIB $LIBS"
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397
18398 /* Override any gcc2 internal prototype to avoid an error. */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 /* We use char because int might match the return type of a gcc2
18403 builtin and then its argument prototype would still apply. */
18404 char hes_getmailhost ();
18405 int
18406 main ()
18407 {
18408 hes_getmailhost ();
18409 ;
18410 return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415 (eval $ac_link) 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest$ac_exeext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434 ac_cv_lib_hesiod_hes_getmailhost=yes
18435 else
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439 ac_cv_lib_hesiod_hes_getmailhost=no
18440 fi
18441 rm -f conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18444 fi
18445 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18446 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18447 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18448
18449 cat >>confdefs.h <<\_ACEOF
18450 #define HAVE_LIBHESIOD 1
18451 _ACEOF
18452
18453 else
18454 :
18455 fi
18456
18457 fi
18458
18459 fi
18460
18461 # These tell us which Kerberos-related libraries to use.
18462 if test "${with_kerberos+set}" = set; then
18463
18464 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18465 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18466 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469 ac_check_lib_save_LIBS=$LIBS
18470 LIBS="-lcom_err $LIBS"
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477
18478 /* Override any gcc2 internal prototype to avoid an error. */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 /* We use char because int might match the return type of a gcc2
18483 builtin and then its argument prototype would still apply. */
18484 char com_err ();
18485 int
18486 main ()
18487 {
18488 com_err ();
18489 ;
18490 return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495 (eval $ac_link) 2>conftest.er1
18496 ac_status=$?
18497 grep -v '^ *+' conftest.er1 >conftest.err
18498 rm -f conftest.er1
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest$ac_exeext'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_lib_com_err_com_err=yes
18515 else
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519 ac_cv_lib_com_err_com_err=no
18520 fi
18521 rm -f conftest.err conftest.$ac_objext \
18522 conftest$ac_exeext conftest.$ac_ext
18523 LIBS=$ac_check_lib_save_LIBS
18524 fi
18525 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18526 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18527 if test $ac_cv_lib_com_err_com_err = yes; then
18528 cat >>confdefs.h <<_ACEOF
18529 #define HAVE_LIBCOM_ERR 1
18530 _ACEOF
18531
18532 LIBS="-lcom_err $LIBS"
18533
18534 fi
18535
18536
18537 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18538 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18539 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542 ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lk5crypto $LIBS"
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550
18551 /* Override any gcc2 internal prototype to avoid an error. */
18552 #ifdef __cplusplus
18553 extern "C"
18554 #endif
18555 /* We use char because int might match the return type of a gcc2
18556 builtin and then its argument prototype would still apply. */
18557 char mit_des_cbc_encrypt ();
18558 int
18559 main ()
18560 {
18561 mit_des_cbc_encrypt ();
18562 ;
18563 return 0;
18564 }
18565 _ACEOF
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18568 (eval $ac_link) 2>conftest.er1
18569 ac_status=$?
18570 grep -v '^ *+' conftest.er1 >conftest.err
18571 rm -f conftest.er1
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18588 else
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18593 fi
18594 rm -f conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18596 LIBS=$ac_check_lib_save_LIBS
18597 fi
18598 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18599 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18600 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define HAVE_LIBK5CRYPTO 1
18603 _ACEOF
18604
18605 LIBS="-lk5crypto $LIBS"
18606
18607 fi
18608
18609
18610 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18611 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18612 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615 ac_check_lib_save_LIBS=$LIBS
18616 LIBS="-lcrypto $LIBS"
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623
18624 /* Override any gcc2 internal prototype to avoid an error. */
18625 #ifdef __cplusplus
18626 extern "C"
18627 #endif
18628 /* We use char because int might match the return type of a gcc2
18629 builtin and then its argument prototype would still apply. */
18630 char mit_des_cbc_encrypt ();
18631 int
18632 main ()
18633 {
18634 mit_des_cbc_encrypt ();
18635 ;
18636 return 0;
18637 }
18638 _ACEOF
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18641 (eval $ac_link) 2>conftest.er1
18642 ac_status=$?
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18661 else
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18664
18665 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18666 fi
18667 rm -f conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_lib_save_LIBS
18670 fi
18671 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18672 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18673 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18674 cat >>confdefs.h <<_ACEOF
18675 #define HAVE_LIBCRYPTO 1
18676 _ACEOF
18677
18678 LIBS="-lcrypto $LIBS"
18679
18680 fi
18681
18682
18683 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18684 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18685 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688 ac_check_lib_save_LIBS=$LIBS
18689 LIBS="-lkrb5 $LIBS"
18690 cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h. */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696
18697 /* Override any gcc2 internal prototype to avoid an error. */
18698 #ifdef __cplusplus
18699 extern "C"
18700 #endif
18701 /* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703 char krb5_init_context ();
18704 int
18705 main ()
18706 {
18707 krb5_init_context ();
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_lib_krb5_krb5_init_context=yes
18734 else
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ac_cv_lib_krb5_krb5_init_context=no
18739 fi
18740 rm -f conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18743 fi
18744 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18745 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18746 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18747 cat >>confdefs.h <<_ACEOF
18748 #define HAVE_LIBKRB5 1
18749 _ACEOF
18750
18751 LIBS="-lkrb5 $LIBS"
18752
18753 fi
18754
18755 if test "${with_kerberos5+set}" != set; then
18756
18757 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18758 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18759 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 ac_check_lib_save_LIBS=$LIBS
18763 LIBS="-ldes425 $LIBS"
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770
18771 /* Override any gcc2 internal prototype to avoid an error. */
18772 #ifdef __cplusplus
18773 extern "C"
18774 #endif
18775 /* We use char because int might match the return type of a gcc2
18776 builtin and then its argument prototype would still apply. */
18777 char des_cbc_encrypt ();
18778 int
18779 main ()
18780 {
18781 des_cbc_encrypt ();
18782 ;
18783 return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; } &&
18801 { ac_try='test -s conftest$ac_exeext'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 ac_cv_lib_des425_des_cbc_encrypt=yes
18808 else
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812 ac_cv_lib_des425_des_cbc_encrypt=no
18813 fi
18814 rm -f conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18817 fi
18818 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18819 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18820 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18821 cat >>confdefs.h <<_ACEOF
18822 #define HAVE_LIBDES425 1
18823 _ACEOF
18824
18825 LIBS="-ldes425 $LIBS"
18826
18827 else
18828
18829 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18830 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18831 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834 ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-ldes $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h. */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18842
18843 /* Override any gcc2 internal prototype to avoid an error. */
18844 #ifdef __cplusplus
18845 extern "C"
18846 #endif
18847 /* We use char because int might match the return type of a gcc2
18848 builtin and then its argument prototype would still apply. */
18849 char des_cbc_encrypt ();
18850 int
18851 main ()
18852 {
18853 des_cbc_encrypt ();
18854 ;
18855 return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18860 (eval $ac_link) 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_lib_des_des_cbc_encrypt=yes
18880 else
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_lib_des_des_cbc_encrypt=no
18885 fi
18886 rm -f conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 LIBS=$ac_check_lib_save_LIBS
18889 fi
18890 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18891 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18892 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18893 cat >>confdefs.h <<_ACEOF
18894 #define HAVE_LIBDES 1
18895 _ACEOF
18896
18897 LIBS="-ldes $LIBS"
18898
18899 fi
18900
18901 fi
18902
18903
18904 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18905 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18906 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909 ac_check_lib_save_LIBS=$LIBS
18910 LIBS="-lkrb4 $LIBS"
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h. */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917
18918 /* Override any gcc2 internal prototype to avoid an error. */
18919 #ifdef __cplusplus
18920 extern "C"
18921 #endif
18922 /* We use char because int might match the return type of a gcc2
18923 builtin and then its argument prototype would still apply. */
18924 char krb_get_cred ();
18925 int
18926 main ()
18927 {
18928 krb_get_cred ();
18929 ;
18930 return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18935 (eval $ac_link) 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_cv_lib_krb4_krb_get_cred=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 ac_cv_lib_krb4_krb_get_cred=no
18960 fi
18961 rm -f conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18964 fi
18965 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18966 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18967 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18968 cat >>confdefs.h <<_ACEOF
18969 #define HAVE_LIBKRB4 1
18970 _ACEOF
18971
18972 LIBS="-lkrb4 $LIBS"
18973
18974 else
18975
18976 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18977 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18978 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981 ac_check_lib_save_LIBS=$LIBS
18982 LIBS="-lkrb $LIBS"
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989
18990 /* Override any gcc2 internal prototype to avoid an error. */
18991 #ifdef __cplusplus
18992 extern "C"
18993 #endif
18994 /* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18996 char krb_get_cred ();
18997 int
18998 main ()
18999 {
19000 krb_get_cred ();
19001 ;
19002 return 0;
19003 }
19004 _ACEOF
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19007 (eval $ac_link) 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest$ac_exeext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_krb_krb_get_cred=yes
19027 else
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_cv_lib_krb_krb_get_cred=no
19032 fi
19033 rm -f conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19035 LIBS=$ac_check_lib_save_LIBS
19036 fi
19037 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19038 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19039 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19040 cat >>confdefs.h <<_ACEOF
19041 #define HAVE_LIBKRB 1
19042 _ACEOF
19043
19044 LIBS="-lkrb $LIBS"
19045
19046 fi
19047
19048 fi
19049
19050 fi
19051
19052 if test "${with_kerberos5+set}" = set; then
19053
19054 for ac_header in krb5.h
19055 do
19056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19058 echo "$as_me:$LINENO: checking for $ac_header" >&5
19059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 fi
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19065 else
19066 # Is the header compilable?
19067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19069 cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h. */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 $ac_includes_default
19076 #include <$ac_header>
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_header_compiler=yes
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_header_compiler=no
19105 fi
19106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19108 echo "${ECHO_T}$ac_header_compiler" >&6
19109
19110 # Is the header present?
19111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 #include <$ac_header>
19120 _ACEOF
19121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19123 ac_status=$?
19124 grep -v '^ *+' conftest.er1 >conftest.err
19125 rm -f conftest.er1
19126 cat conftest.err >&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } >/dev/null; then
19129 if test -s conftest.err; then
19130 ac_cpp_err=$ac_c_preproc_warn_flag
19131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19132 else
19133 ac_cpp_err=
19134 fi
19135 else
19136 ac_cpp_err=yes
19137 fi
19138 if test -z "$ac_cpp_err"; then
19139 ac_header_preproc=yes
19140 else
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144 ac_header_preproc=no
19145 fi
19146 rm -f conftest.err conftest.$ac_ext
19147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19148 echo "${ECHO_T}$ac_header_preproc" >&6
19149
19150 # So? What about this header?
19151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19152 yes:no: )
19153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19157 ac_header_preproc=yes
19158 ;;
19159 no:yes:* )
19160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19172 (
19173 cat <<\_ASBOX
19174 ## ------------------------------------------ ##
19175 ## Report this to the AC_PACKAGE_NAME lists. ##
19176 ## ------------------------------------------ ##
19177 _ASBOX
19178 ) |
19179 sed "s/^/$as_me: WARNING: /" >&2
19180 ;;
19181 esac
19182 echo "$as_me:$LINENO: checking for $ac_header" >&5
19183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187 eval "$as_ac_Header=\$ac_header_preproc"
19188 fi
19189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19191
19192 fi
19193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19196 _ACEOF
19197
19198 fi
19199
19200 done
19201
19202 else
19203
19204 for ac_header in des.h
19205 do
19206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19208 echo "$as_me:$LINENO: checking for $ac_header" >&5
19209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 fi
19213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19215 else
19216 # Is the header compilable?
19217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h. */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 $ac_includes_default
19226 #include <$ac_header>
19227 _ACEOF
19228 rm -f conftest.$ac_objext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19230 (eval $ac_compile) 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_header_compiler=yes
19250 else
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 ac_header_compiler=no
19255 fi
19256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19258 echo "${ECHO_T}$ac_header_compiler" >&6
19259
19260 # Is the header present?
19261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #include <$ac_header>
19270 _ACEOF
19271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19273 ac_status=$?
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } >/dev/null; then
19279 if test -s conftest.err; then
19280 ac_cpp_err=$ac_c_preproc_warn_flag
19281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19282 else
19283 ac_cpp_err=
19284 fi
19285 else
19286 ac_cpp_err=yes
19287 fi
19288 if test -z "$ac_cpp_err"; then
19289 ac_header_preproc=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_header_preproc=no
19295 fi
19296 rm -f conftest.err conftest.$ac_ext
19297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19298 echo "${ECHO_T}$ac_header_preproc" >&6
19299
19300 # So? What about this header?
19301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19302 yes:no: )
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19307 ac_header_preproc=yes
19308 ;;
19309 no:yes:* )
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19322 (
19323 cat <<\_ASBOX
19324 ## ------------------------------------------ ##
19325 ## Report this to the AC_PACKAGE_NAME lists. ##
19326 ## ------------------------------------------ ##
19327 _ASBOX
19328 ) |
19329 sed "s/^/$as_me: WARNING: /" >&2
19330 ;;
19331 esac
19332 echo "$as_me:$LINENO: checking for $ac_header" >&5
19333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337 eval "$as_ac_Header=\$ac_header_preproc"
19338 fi
19339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19341
19342 fi
19343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19344 cat >>confdefs.h <<_ACEOF
19345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19346 _ACEOF
19347
19348 else
19349
19350 for ac_header in kerberosIV/des.h
19351 do
19352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19354 echo "$as_me:$LINENO: checking for $ac_header" >&5
19355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 fi
19359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19361 else
19362 # Is the header compilable?
19363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19365 cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h. */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 $ac_includes_default
19372 #include <$ac_header>
19373 _ACEOF
19374 rm -f conftest.$ac_objext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_header_compiler=yes
19396 else
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400 ac_header_compiler=no
19401 fi
19402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19404 echo "${ECHO_T}$ac_header_compiler" >&6
19405
19406 # Is the header present?
19407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 #include <$ac_header>
19416 _ACEOF
19417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } >/dev/null; then
19425 if test -s conftest.err; then
19426 ac_cpp_err=$ac_c_preproc_warn_flag
19427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19428 else
19429 ac_cpp_err=
19430 fi
19431 else
19432 ac_cpp_err=yes
19433 fi
19434 if test -z "$ac_cpp_err"; then
19435 ac_header_preproc=yes
19436 else
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 ac_header_preproc=no
19441 fi
19442 rm -f conftest.err conftest.$ac_ext
19443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19444 echo "${ECHO_T}$ac_header_preproc" >&6
19445
19446 # So? What about this header?
19447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19448 yes:no: )
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19453 ac_header_preproc=yes
19454 ;;
19455 no:yes:* )
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19468 (
19469 cat <<\_ASBOX
19470 ## ------------------------------------------ ##
19471 ## Report this to the AC_PACKAGE_NAME lists. ##
19472 ## ------------------------------------------ ##
19473 _ASBOX
19474 ) |
19475 sed "s/^/$as_me: WARNING: /" >&2
19476 ;;
19477 esac
19478 echo "$as_me:$LINENO: checking for $ac_header" >&5
19479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483 eval "$as_ac_Header=\$ac_header_preproc"
19484 fi
19485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19487
19488 fi
19489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19490 cat >>confdefs.h <<_ACEOF
19491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19492 _ACEOF
19493
19494 else
19495
19496 for ac_header in kerberos/des.h
19497 do
19498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5
19501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 fi
19505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19507 else
19508 # Is the header compilable?
19509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 $ac_includes_default
19518 #include <$ac_header>
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19522 (eval $ac_compile) 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest.$ac_objext'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 ac_header_compiler=yes
19542 else
19543 echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19545
19546 ac_header_compiler=no
19547 fi
19548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19550 echo "${ECHO_T}$ac_header_compiler" >&6
19551
19552 # Is the header present?
19553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 #include <$ac_header>
19562 _ACEOF
19563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } >/dev/null; then
19571 if test -s conftest.err; then
19572 ac_cpp_err=$ac_c_preproc_warn_flag
19573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19574 else
19575 ac_cpp_err=
19576 fi
19577 else
19578 ac_cpp_err=yes
19579 fi
19580 if test -z "$ac_cpp_err"; then
19581 ac_header_preproc=yes
19582 else
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586 ac_header_preproc=no
19587 fi
19588 rm -f conftest.err conftest.$ac_ext
19589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19590 echo "${ECHO_T}$ac_header_preproc" >&6
19591
19592 # So? What about this header?
19593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19594 yes:no: )
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19599 ac_header_preproc=yes
19600 ;;
19601 no:yes:* )
19602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19614 (
19615 cat <<\_ASBOX
19616 ## ------------------------------------------ ##
19617 ## Report this to the AC_PACKAGE_NAME lists. ##
19618 ## ------------------------------------------ ##
19619 _ASBOX
19620 ) |
19621 sed "s/^/$as_me: WARNING: /" >&2
19622 ;;
19623 esac
19624 echo "$as_me:$LINENO: checking for $ac_header" >&5
19625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 eval "$as_ac_Header=\$ac_header_preproc"
19630 fi
19631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19633
19634 fi
19635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19636 cat >>confdefs.h <<_ACEOF
19637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19638 _ACEOF
19639
19640 fi
19641
19642 done
19643
19644 fi
19645
19646 done
19647
19648 fi
19649
19650 done
19651
19652
19653 for ac_header in krb.h
19654 do
19655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19657 echo "$as_me:$LINENO: checking for $ac_header" >&5
19658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 fi
19662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19664 else
19665 # Is the header compilable?
19666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 $ac_includes_default
19675 #include <$ac_header>
19676 _ACEOF
19677 rm -f conftest.$ac_objext
19678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19679 (eval $ac_compile) 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_header_compiler=yes
19699 else
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 ac_header_compiler=no
19704 fi
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707 echo "${ECHO_T}$ac_header_compiler" >&6
19708
19709 # Is the header present?
19710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h. */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 #include <$ac_header>
19719 _ACEOF
19720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } >/dev/null; then
19728 if test -s conftest.err; then
19729 ac_cpp_err=$ac_c_preproc_warn_flag
19730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19731 else
19732 ac_cpp_err=
19733 fi
19734 else
19735 ac_cpp_err=yes
19736 fi
19737 if test -z "$ac_cpp_err"; then
19738 ac_header_preproc=yes
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 ac_header_preproc=no
19744 fi
19745 rm -f conftest.err conftest.$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19747 echo "${ECHO_T}$ac_header_preproc" >&6
19748
19749 # So? What about this header?
19750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19751 yes:no: )
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19756 ac_header_preproc=yes
19757 ;;
19758 no:yes:* )
19759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19771 (
19772 cat <<\_ASBOX
19773 ## ------------------------------------------ ##
19774 ## Report this to the AC_PACKAGE_NAME lists. ##
19775 ## ------------------------------------------ ##
19776 _ASBOX
19777 ) |
19778 sed "s/^/$as_me: WARNING: /" >&2
19779 ;;
19780 esac
19781 echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786 eval "$as_ac_Header=\$ac_header_preproc"
19787 fi
19788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19790
19791 fi
19792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19793 cat >>confdefs.h <<_ACEOF
19794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19795 _ACEOF
19796
19797 else
19798
19799 for ac_header in kerberosIV/krb.h
19800 do
19801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19803 echo "$as_me:$LINENO: checking for $ac_header" >&5
19804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 fi
19808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19810 else
19811 # Is the header compilable?
19812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19821 #include <$ac_header>
19822 _ACEOF
19823 rm -f conftest.$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_header_compiler=yes
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_header_compiler=no
19850 fi
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19853 echo "${ECHO_T}$ac_header_compiler" >&6
19854
19855 # Is the header present?
19856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 #include <$ac_header>
19865 _ACEOF
19866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } >/dev/null; then
19874 if test -s conftest.err; then
19875 ac_cpp_err=$ac_c_preproc_warn_flag
19876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19877 else
19878 ac_cpp_err=
19879 fi
19880 else
19881 ac_cpp_err=yes
19882 fi
19883 if test -z "$ac_cpp_err"; then
19884 ac_header_preproc=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_header_preproc=no
19890 fi
19891 rm -f conftest.err conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19893 echo "${ECHO_T}$ac_header_preproc" >&6
19894
19895 # So? What about this header?
19896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19897 yes:no: )
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19902 ac_header_preproc=yes
19903 ;;
19904 no:yes:* )
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19917 (
19918 cat <<\_ASBOX
19919 ## ------------------------------------------ ##
19920 ## Report this to the AC_PACKAGE_NAME lists. ##
19921 ## ------------------------------------------ ##
19922 _ASBOX
19923 ) |
19924 sed "s/^/$as_me: WARNING: /" >&2
19925 ;;
19926 esac
19927 echo "$as_me:$LINENO: checking for $ac_header" >&5
19928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 else
19932 eval "$as_ac_Header=\$ac_header_preproc"
19933 fi
19934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19936
19937 fi
19938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19939 cat >>confdefs.h <<_ACEOF
19940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19941 _ACEOF
19942
19943 else
19944
19945 for ac_header in kerberos/krb.h
19946 do
19947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19949 echo "$as_me:$LINENO: checking for $ac_header" >&5
19950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 fi
19954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19956 else
19957 # Is the header compilable?
19958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19967 #include <$ac_header>
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_header_compiler=yes
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995 ac_header_compiler=no
19996 fi
19997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19999 echo "${ECHO_T}$ac_header_compiler" >&6
20000
20001 # Is the header present?
20002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h. */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <$ac_header>
20011 _ACEOF
20012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } >/dev/null; then
20020 if test -s conftest.err; then
20021 ac_cpp_err=$ac_c_preproc_warn_flag
20022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20023 else
20024 ac_cpp_err=
20025 fi
20026 else
20027 ac_cpp_err=yes
20028 fi
20029 if test -z "$ac_cpp_err"; then
20030 ac_header_preproc=yes
20031 else
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 ac_header_preproc=no
20036 fi
20037 rm -f conftest.err conftest.$ac_ext
20038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20039 echo "${ECHO_T}$ac_header_preproc" >&6
20040
20041 # So? What about this header?
20042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20043 yes:no: )
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20048 ac_header_preproc=yes
20049 ;;
20050 no:yes:* )
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20063 (
20064 cat <<\_ASBOX
20065 ## ------------------------------------------ ##
20066 ## Report this to the AC_PACKAGE_NAME lists. ##
20067 ## ------------------------------------------ ##
20068 _ASBOX
20069 ) |
20070 sed "s/^/$as_me: WARNING: /" >&2
20071 ;;
20072 esac
20073 echo "$as_me:$LINENO: checking for $ac_header" >&5
20074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078 eval "$as_ac_Header=\$ac_header_preproc"
20079 fi
20080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20082
20083 fi
20084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20085 cat >>confdefs.h <<_ACEOF
20086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20087 _ACEOF
20088
20089 fi
20090
20091 done
20092
20093 fi
20094
20095 done
20096
20097 fi
20098
20099 done
20100
20101 fi
20102
20103 for ac_header in com_err.h
20104 do
20105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20107 echo "$as_me:$LINENO: checking for $ac_header" >&5
20108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 fi
20112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20114 else
20115 # Is the header compilable?
20116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 $ac_includes_default
20125 #include <$ac_header>
20126 _ACEOF
20127 rm -f conftest.$ac_objext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20129 (eval $ac_compile) 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } &&
20136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; } &&
20142 { ac_try='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_header_compiler=yes
20149 else
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153 ac_header_compiler=no
20154 fi
20155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20157 echo "${ECHO_T}$ac_header_compiler" >&6
20158
20159 # Is the header present?
20160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20162 cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h. */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 #include <$ac_header>
20169 _ACEOF
20170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } >/dev/null; then
20178 if test -s conftest.err; then
20179 ac_cpp_err=$ac_c_preproc_warn_flag
20180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20181 else
20182 ac_cpp_err=
20183 fi
20184 else
20185 ac_cpp_err=yes
20186 fi
20187 if test -z "$ac_cpp_err"; then
20188 ac_header_preproc=yes
20189 else
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_header_preproc=no
20194 fi
20195 rm -f conftest.err conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20197 echo "${ECHO_T}$ac_header_preproc" >&6
20198
20199 # So? What about this header?
20200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20201 yes:no: )
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20206 ac_header_preproc=yes
20207 ;;
20208 no:yes:* )
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20221 (
20222 cat <<\_ASBOX
20223 ## ------------------------------------------ ##
20224 ## Report this to the AC_PACKAGE_NAME lists. ##
20225 ## ------------------------------------------ ##
20226 _ASBOX
20227 ) |
20228 sed "s/^/$as_me: WARNING: /" >&2
20229 ;;
20230 esac
20231 echo "$as_me:$LINENO: checking for $ac_header" >&5
20232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236 eval "$as_ac_Header=\$ac_header_preproc"
20237 fi
20238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20240
20241 fi
20242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20243 cat >>confdefs.h <<_ACEOF
20244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20245 _ACEOF
20246
20247 fi
20248
20249 done
20250
20251 fi
20252
20253 # Solaris requires -lintl if you want strerror (which calls dgettext)
20254 # to return localized messages.
20255
20256 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20257 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20258 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261 ac_check_lib_save_LIBS=$LIBS
20262 LIBS="-lintl $LIBS"
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269
20270 /* Override any gcc2 internal prototype to avoid an error. */
20271 #ifdef __cplusplus
20272 extern "C"
20273 #endif
20274 /* We use char because int might match the return type of a gcc2
20275 builtin and then its argument prototype would still apply. */
20276 char dgettext ();
20277 int
20278 main ()
20279 {
20280 dgettext ();
20281 ;
20282 return 0;
20283 }
20284 _ACEOF
20285 rm -f conftest.$ac_objext conftest$ac_exeext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20287 (eval $ac_link) 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest$ac_exeext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_lib_intl_dgettext=yes
20307 else
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 ac_cv_lib_intl_dgettext=no
20312 fi
20313 rm -f conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20316 fi
20317 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20318 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20319 if test $ac_cv_lib_intl_dgettext = yes; then
20320 cat >>confdefs.h <<_ACEOF
20321 #define HAVE_LIBINTL 1
20322 _ACEOF
20323
20324 LIBS="-lintl $LIBS"
20325
20326 fi
20327
20328
20329 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20330 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20331 if test "${emacs_cv_localtime_cache+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 if test x$ac_cv_func_tzset = xyes; then
20335 if test "$cross_compiling" = yes; then
20336 # If we have tzset, assume the worst when cross-compiling.
20337 emacs_cv_localtime_cache=yes
20338 else
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <time.h>
20346 extern char **environ;
20347 unset_TZ ()
20348 {
20349 char **from, **to;
20350 for (to = from = environ; (*to = *from); from++)
20351 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20352 to++;
20353 }
20354 char TZ_GMT0[] = "TZ=GMT0";
20355 char TZ_PST8[] = "TZ=PST8";
20356 main()
20357 {
20358 time_t now = time ((time_t *) 0);
20359 int hour_GMT0, hour_unset;
20360 if (putenv (TZ_GMT0) != 0)
20361 exit (1);
20362 hour_GMT0 = localtime (&now)->tm_hour;
20363 unset_TZ ();
20364 hour_unset = localtime (&now)->tm_hour;
20365 if (putenv (TZ_PST8) != 0)
20366 exit (1);
20367 if (localtime (&now)->tm_hour == hour_GMT0)
20368 exit (1);
20369 unset_TZ ();
20370 if (localtime (&now)->tm_hour != hour_unset)
20371 exit (1);
20372 exit (0);
20373 }
20374 _ACEOF
20375 rm -f conftest$ac_exeext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20377 (eval $ac_link) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 emacs_cv_localtime_cache=no
20387 else
20388 echo "$as_me: program exited with status $ac_status" >&5
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392 ( exit $ac_status )
20393 emacs_cv_localtime_cache=yes
20394 fi
20395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20396 fi
20397 else
20398 # If we lack tzset, report that localtime does not cache TZ,
20399 # since we can't invalidate the cache if we don't have tzset.
20400 emacs_cv_localtime_cache=no
20401 fi
20402 fi
20403 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20404 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20405 if test $emacs_cv_localtime_cache = yes; then
20406
20407 cat >>confdefs.h <<\_ACEOF
20408 #define LOCALTIME_CACHE 1
20409 _ACEOF
20410
20411 fi
20412
20413 if test "x$HAVE_TIMEVAL" = xyes; then
20414
20415 for ac_func in gettimeofday
20416 do
20417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20418 echo "$as_me:$LINENO: checking for $ac_func" >&5
20419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20420 if eval "test \"\${$as_ac_var+set}\" = set"; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 else
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20431 #define $ac_func innocuous_$ac_func
20432
20433 /* System header to define __stub macros and hopefully few prototypes,
20434 which can conflict with char $ac_func (); below.
20435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20436 <limits.h> exists even on freestanding compilers. */
20437
20438 #ifdef __STDC__
20439 # include <limits.h>
20440 #else
20441 # include <assert.h>
20442 #endif
20443
20444 #undef $ac_func
20445
20446 /* Override any gcc2 internal prototype to avoid an error. */
20447 #ifdef __cplusplus
20448 extern "C"
20449 {
20450 #endif
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453 char $ac_func ();
20454 /* The GNU C library defines this for functions which it implements
20455 to always fail with ENOSYS. Some functions are actually named
20456 something starting with __ and the normal name is an alias. */
20457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20458 choke me
20459 #else
20460 char (*f) () = $ac_func;
20461 #endif
20462 #ifdef __cplusplus
20463 }
20464 #endif
20465
20466 int
20467 main ()
20468 {
20469 return f != $ac_func;
20470 ;
20471 return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20476 (eval $ac_link) 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest$ac_exeext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 eval "$as_ac_var=yes"
20496 else
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 eval "$as_ac_var=no"
20501 fi
20502 rm -f conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
20504 fi
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20507 if test `eval echo '${'$as_ac_var'}'` = yes; then
20508 cat >>confdefs.h <<_ACEOF
20509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20510 _ACEOF
20511
20512 fi
20513 done
20514
20515 if test $ac_cv_func_gettimeofday = yes; then
20516 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20517 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20518 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521 cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h. */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527
20528 #ifdef TIME_WITH_SYS_TIME
20529 #include <sys/time.h>
20530 #include <time.h>
20531 #else
20532 #ifdef HAVE_SYS_TIME_H
20533 #include <sys/time.h>
20534 #else
20535 #include <time.h>
20536 #endif
20537 #endif
20538 int
20539 main ()
20540 {
20541 struct timeval time;
20542 gettimeofday (&time, 0);
20543 ;
20544 return 0;
20545 }
20546 _ACEOF
20547 rm -f conftest.$ac_objext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549 (eval $ac_compile) 2>conftest.er1
20550 ac_status=$?
20551 grep -v '^ *+' conftest.er1 >conftest.err
20552 rm -f conftest.er1
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } &&
20556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 emacs_cv_gettimeofday_two_arguments=yes
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 emacs_cv_gettimeofday_two_arguments=no
20574 fi
20575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 fi
20577 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20578 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20579 if test $emacs_cv_gettimeofday_two_arguments = no; then
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20583 _ACEOF
20584
20585 fi
20586 fi
20587 fi
20588
20589 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20590 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595 cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h. */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include <sys/types.h>
20602 #include <$ac_cv_struct_tm>
20603
20604
20605 int
20606 main ()
20607 {
20608 static struct tm ac_aggr;
20609 if (ac_aggr.tm_zone)
20610 return 0;
20611 ;
20612 return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_member_struct_tm_tm_zone=yes
20637 else
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #include <sys/types.h>
20648 #include <$ac_cv_struct_tm>
20649
20650
20651 int
20652 main ()
20653 {
20654 static struct tm ac_aggr;
20655 if (sizeof ac_aggr.tm_zone)
20656 return 0;
20657 ;
20658 return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663 (eval $ac_compile) 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; } &&
20676 { ac_try='test -s conftest.$ac_objext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_cv_member_struct_tm_tm_zone=yes
20683 else
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20686
20687 ac_cv_member_struct_tm_tm_zone=no
20688 fi
20689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20692 fi
20693 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20694 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20695 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_STRUCT_TM_TM_ZONE 1
20699 _ACEOF
20700
20701
20702 fi
20703
20704 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAVE_TM_ZONE 1
20708 _ACEOF
20709
20710 else
20711 echo "$as_me:$LINENO: checking for tzname" >&5
20712 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20713 if test "${ac_cv_var_tzname+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 #include <time.h>
20723 #ifndef tzname /* For SGI. */
20724 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20725 #endif
20726
20727 int
20728 main ()
20729 {
20730 atoi(*tzname);
20731 ;
20732 return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737 (eval $ac_link) 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try='test -s conftest$ac_exeext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_var_tzname=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 ac_cv_var_tzname=no
20762 fi
20763 rm -f conftest.err conftest.$ac_objext \
20764 conftest$ac_exeext conftest.$ac_ext
20765 fi
20766 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20767 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20768 if test $ac_cv_var_tzname = yes; then
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_TZNAME 1
20772 _ACEOF
20773
20774 fi
20775 fi
20776
20777
20778 if test "$ac_cv_func_gettimeofday" = yes; then
20779 echo "$as_me:$LINENO: checking for struct timezone" >&5
20780 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20781 if test "${emacs_cv_struct_timezone+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784 cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h. */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <sys/time.h>
20791 int
20792 main ()
20793 {
20794 struct timezone tz;
20795 ;
20796 return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801 (eval $ac_compile) 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 if test "$cross_compiling" = yes; then
20821 emacs_cv_struct_timezone=yes
20822 else
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h. */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829
20830 #ifdef TIME_WITH_SYS_TIME
20831 #include <sys/time.h>
20832 #include <time.h>
20833 #else
20834 #ifdef HAVE_SYS_TIME_H
20835 #include <sys/time.h>
20836 #else
20837 #include <time.h>
20838 #endif
20839 #endif
20840 main () {
20841 struct timeval time;
20842 struct timezone dummy;
20843 exit (gettimeofday (&time, &dummy));
20844 }
20845 _ACEOF
20846 rm -f conftest$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 emacs_cv_struct_timezone=yes
20858 else
20859 echo "$as_me: program exited with status $ac_status" >&5
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ( exit $ac_status )
20864 emacs_cv_struct_timezone=no
20865 fi
20866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20867 fi
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 emacs_cv_struct_timezone=no
20873 fi
20874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20875 fi
20876 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20877 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20878 fi
20879
20880 ok_so_far=yes
20881 echo "$as_me:$LINENO: checking for socket" >&5
20882 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20883 if test "${ac_cv_func_socket+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20894 #define socket innocuous_socket
20895
20896 /* System header to define __stub macros and hopefully few prototypes,
20897 which can conflict with char socket (); below.
20898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20899 <limits.h> exists even on freestanding compilers. */
20900
20901 #ifdef __STDC__
20902 # include <limits.h>
20903 #else
20904 # include <assert.h>
20905 #endif
20906
20907 #undef socket
20908
20909 /* Override any gcc2 internal prototype to avoid an error. */
20910 #ifdef __cplusplus
20911 extern "C"
20912 {
20913 #endif
20914 /* We use char because int might match the return type of a gcc2
20915 builtin and then its argument prototype would still apply. */
20916 char socket ();
20917 /* The GNU C library defines this for functions which it implements
20918 to always fail with ENOSYS. Some functions are actually named
20919 something starting with __ and the normal name is an alias. */
20920 #if defined (__stub_socket) || defined (__stub___socket)
20921 choke me
20922 #else
20923 char (*f) () = socket;
20924 #endif
20925 #ifdef __cplusplus
20926 }
20927 #endif
20928
20929 int
20930 main ()
20931 {
20932 return f != socket;
20933 ;
20934 return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20939 (eval $ac_link) 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try='test -s conftest$ac_exeext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_func_socket=yes
20959 else
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 ac_cv_func_socket=no
20964 fi
20965 rm -f conftest.err conftest.$ac_objext \
20966 conftest$ac_exeext conftest.$ac_ext
20967 fi
20968 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20969 echo "${ECHO_T}$ac_cv_func_socket" >&6
20970 if test $ac_cv_func_socket = yes; then
20971 :
20972 else
20973 ok_so_far=no
20974 fi
20975
20976 if test $ok_so_far = yes; then
20977 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20978 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20979 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20980 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 fi
20983 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20984 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20985 else
20986 # Is the header compilable?
20987 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20988 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 #include <netinet/in.h>
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_header_compiler=yes
21020 else
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 ac_header_compiler=no
21025 fi
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21028 echo "${ECHO_T}$ac_header_compiler" >&6
21029
21030 # Is the header present?
21031 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21032 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <netinet/in.h>
21040 _ACEOF
21041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21043 ac_status=$?
21044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } >/dev/null; then
21049 if test -s conftest.err; then
21050 ac_cpp_err=$ac_c_preproc_warn_flag
21051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21052 else
21053 ac_cpp_err=
21054 fi
21055 else
21056 ac_cpp_err=yes
21057 fi
21058 if test -z "$ac_cpp_err"; then
21059 ac_header_preproc=yes
21060 else
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 ac_header_preproc=no
21065 fi
21066 rm -f conftest.err conftest.$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21068 echo "${ECHO_T}$ac_header_preproc" >&6
21069
21070 # So? What about this header?
21071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21072 yes:no: )
21073 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21074 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21075 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21076 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21077 ac_header_preproc=yes
21078 ;;
21079 no:yes:* )
21080 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21081 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21083 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21085 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21087 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21089 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21091 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21092 (
21093 cat <<\_ASBOX
21094 ## ------------------------------------------ ##
21095 ## Report this to the AC_PACKAGE_NAME lists. ##
21096 ## ------------------------------------------ ##
21097 _ASBOX
21098 ) |
21099 sed "s/^/$as_me: WARNING: /" >&2
21100 ;;
21101 esac
21102 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21103 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21104 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107 ac_cv_header_netinet_in_h=$ac_header_preproc
21108 fi
21109 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21110 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21111
21112 fi
21113 if test $ac_cv_header_netinet_in_h = yes; then
21114 :
21115 else
21116 ok_so_far=no
21117 fi
21118
21119
21120 fi
21121 if test $ok_so_far = yes; then
21122 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21123 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21124 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21125 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21127 fi
21128 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21129 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21130 else
21131 # Is the header compilable?
21132 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21133 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21134 cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h. */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21140 $ac_includes_default
21141 #include <arpa/inet.h>
21142 _ACEOF
21143 rm -f conftest.$ac_objext
21144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21145 (eval $ac_compile) 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
21152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 ac_header_compiler=yes
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ac_header_compiler=no
21170 fi
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21173 echo "${ECHO_T}$ac_header_compiler" >&6
21174
21175 # Is the header present?
21176 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21177 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <arpa/inet.h>
21185 _ACEOF
21186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21188 ac_status=$?
21189 grep -v '^ *+' conftest.er1 >conftest.err
21190 rm -f conftest.er1
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } >/dev/null; then
21194 if test -s conftest.err; then
21195 ac_cpp_err=$ac_c_preproc_warn_flag
21196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21197 else
21198 ac_cpp_err=
21199 fi
21200 else
21201 ac_cpp_err=yes
21202 fi
21203 if test -z "$ac_cpp_err"; then
21204 ac_header_preproc=yes
21205 else
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 ac_header_preproc=no
21210 fi
21211 rm -f conftest.err conftest.$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21213 echo "${ECHO_T}$ac_header_preproc" >&6
21214
21215 # So? What about this header?
21216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21217 yes:no: )
21218 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21219 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21221 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21222 ac_header_preproc=yes
21223 ;;
21224 no:yes:* )
21225 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21226 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21228 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21230 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21232 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21234 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21236 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21237 (
21238 cat <<\_ASBOX
21239 ## ------------------------------------------ ##
21240 ## Report this to the AC_PACKAGE_NAME lists. ##
21241 ## ------------------------------------------ ##
21242 _ASBOX
21243 ) |
21244 sed "s/^/$as_me: WARNING: /" >&2
21245 ;;
21246 esac
21247 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21248 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21249 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252 ac_cv_header_arpa_inet_h=$ac_header_preproc
21253 fi
21254 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21255 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21256
21257 fi
21258 if test $ac_cv_header_arpa_inet_h = yes; then
21259 :
21260 else
21261 ok_so_far=no
21262 fi
21263
21264
21265 fi
21266 if test $ok_so_far = yes; then
21267
21268 cat >>confdefs.h <<\_ACEOF
21269 #define HAVE_INET_SOCKETS 1
21270 _ACEOF
21271
21272 fi
21273
21274
21275 for ac_header in sys/ioctl.h
21276 do
21277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21279 echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 fi
21284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21286 else
21287 # Is the header compilable?
21288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21297 #include <$ac_header>
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest.$ac_objext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_header_compiler=yes
21321 else
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 ac_header_compiler=no
21326 fi
21327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21329 echo "${ECHO_T}$ac_header_compiler" >&6
21330
21331 # Is the header present?
21332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <$ac_header>
21341 _ACEOF
21342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21344 ac_status=$?
21345 grep -v '^ *+' conftest.er1 >conftest.err
21346 rm -f conftest.er1
21347 cat conftest.err >&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } >/dev/null; then
21350 if test -s conftest.err; then
21351 ac_cpp_err=$ac_c_preproc_warn_flag
21352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21353 else
21354 ac_cpp_err=
21355 fi
21356 else
21357 ac_cpp_err=yes
21358 fi
21359 if test -z "$ac_cpp_err"; then
21360 ac_header_preproc=yes
21361 else
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 ac_header_preproc=no
21366 fi
21367 rm -f conftest.err conftest.$ac_ext
21368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21369 echo "${ECHO_T}$ac_header_preproc" >&6
21370
21371 # So? What about this header?
21372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21373 yes:no: )
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21378 ac_header_preproc=yes
21379 ;;
21380 no:yes:* )
21381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21393 (
21394 cat <<\_ASBOX
21395 ## ------------------------------------------ ##
21396 ## Report this to the AC_PACKAGE_NAME lists. ##
21397 ## ------------------------------------------ ##
21398 _ASBOX
21399 ) |
21400 sed "s/^/$as_me: WARNING: /" >&2
21401 ;;
21402 esac
21403 echo "$as_me:$LINENO: checking for $ac_header" >&5
21404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408 eval "$as_ac_Header=\$ac_header_preproc"
21409 fi
21410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21412
21413 fi
21414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415 cat >>confdefs.h <<_ACEOF
21416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21417 _ACEOF
21418
21419 fi
21420
21421 done
21422
21423
21424 if test -f /usr/lpp/X11/bin/smt.exp; then
21425
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_AIX_SMT_EXP 1
21428 _ACEOF
21429
21430 fi
21431
21432 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21433 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21434 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21435 echo "$as_me:$LINENO: result: yes" >&5
21436 echo "${ECHO_T}yes" >&6
21437
21438 cat >>confdefs.h <<\_ACEOF
21439 #define HAVE_DEV_PTMX 1
21440 _ACEOF
21441
21442 else
21443 echo "$as_me:$LINENO: result: no" >&5
21444 echo "${ECHO_T}no" >&6
21445 fi
21446
21447 echo "$as_me:$LINENO: checking for pid_t" >&5
21448 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21449 if test "${ac_cv_type_pid_t+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 $ac_includes_default
21459 int
21460 main ()
21461 {
21462 if ((pid_t *) 0)
21463 return 0;
21464 if (sizeof (pid_t))
21465 return 0;
21466 ;
21467 return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>conftest.er1
21473 ac_status=$?
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_type_pid_t=yes
21492 else
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496 ac_cv_type_pid_t=no
21497 fi
21498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21499 fi
21500 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21501 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21502 if test $ac_cv_type_pid_t = yes; then
21503 :
21504 else
21505
21506 cat >>confdefs.h <<_ACEOF
21507 #define pid_t int
21508 _ACEOF
21509
21510 fi
21511
21512
21513
21514 for ac_header in unistd.h vfork.h
21515 do
21516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21518 echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 fi
21523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21525 else
21526 # Is the header compilable?
21527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h. */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 $ac_includes_default
21536 #include <$ac_header>
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540 (eval $ac_compile) 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; } &&
21553 { ac_try='test -s conftest.$ac_objext'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ac_header_compiler=yes
21560 else
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564 ac_header_compiler=no
21565 fi
21566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21568 echo "${ECHO_T}$ac_header_compiler" >&6
21569
21570 # Is the header present?
21571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <$ac_header>
21580 _ACEOF
21581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } >/dev/null; then
21589 if test -s conftest.err; then
21590 ac_cpp_err=$ac_c_preproc_warn_flag
21591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21592 else
21593 ac_cpp_err=
21594 fi
21595 else
21596 ac_cpp_err=yes
21597 fi
21598 if test -z "$ac_cpp_err"; then
21599 ac_header_preproc=yes
21600 else
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21603
21604 ac_header_preproc=no
21605 fi
21606 rm -f conftest.err conftest.$ac_ext
21607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21608 echo "${ECHO_T}$ac_header_preproc" >&6
21609
21610 # So? What about this header?
21611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21612 yes:no: )
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21617 ac_header_preproc=yes
21618 ;;
21619 no:yes:* )
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21632 (
21633 cat <<\_ASBOX
21634 ## ------------------------------------------ ##
21635 ## Report this to the AC_PACKAGE_NAME lists. ##
21636 ## ------------------------------------------ ##
21637 _ASBOX
21638 ) |
21639 sed "s/^/$as_me: WARNING: /" >&2
21640 ;;
21641 esac
21642 echo "$as_me:$LINENO: checking for $ac_header" >&5
21643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647 eval "$as_ac_Header=\$ac_header_preproc"
21648 fi
21649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21651
21652 fi
21653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21654 cat >>confdefs.h <<_ACEOF
21655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21656 _ACEOF
21657
21658 fi
21659
21660 done
21661
21662
21663
21664 for ac_func in fork vfork
21665 do
21666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21667 echo "$as_me:$LINENO: checking for $ac_func" >&5
21668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21669 if eval "test \"\${$as_ac_var+set}\" = set"; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 else
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21680 #define $ac_func innocuous_$ac_func
21681
21682 /* System header to define __stub macros and hopefully few prototypes,
21683 which can conflict with char $ac_func (); below.
21684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21685 <limits.h> exists even on freestanding compilers. */
21686
21687 #ifdef __STDC__
21688 # include <limits.h>
21689 #else
21690 # include <assert.h>
21691 #endif
21692
21693 #undef $ac_func
21694
21695 /* Override any gcc2 internal prototype to avoid an error. */
21696 #ifdef __cplusplus
21697 extern "C"
21698 {
21699 #endif
21700 /* We use char because int might match the return type of a gcc2
21701 builtin and then its argument prototype would still apply. */
21702 char $ac_func ();
21703 /* The GNU C library defines this for functions which it implements
21704 to always fail with ENOSYS. Some functions are actually named
21705 something starting with __ and the normal name is an alias. */
21706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21707 choke me
21708 #else
21709 char (*f) () = $ac_func;
21710 #endif
21711 #ifdef __cplusplus
21712 }
21713 #endif
21714
21715 int
21716 main ()
21717 {
21718 return f != $ac_func;
21719 ;
21720 return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725 (eval $ac_link) 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest$ac_exeext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 eval "$as_ac_var=yes"
21745 else
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749 eval "$as_ac_var=no"
21750 fi
21751 rm -f conftest.err conftest.$ac_objext \
21752 conftest$ac_exeext conftest.$ac_ext
21753 fi
21754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21756 if test `eval echo '${'$as_ac_var'}'` = yes; then
21757 cat >>confdefs.h <<_ACEOF
21758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 _ACEOF
21760
21761 fi
21762 done
21763
21764 if test "x$ac_cv_func_fork" = xyes; then
21765 echo "$as_me:$LINENO: checking for working fork" >&5
21766 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21767 if test "${ac_cv_func_fork_works+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 else
21770 if test "$cross_compiling" = yes; then
21771 ac_cv_func_fork_works=cross
21772 else
21773 cat >conftest.$ac_ext <<_ACEOF
21774 /* By Ruediger Kuhlmann. */
21775 #include <sys/types.h>
21776 #if HAVE_UNISTD_H
21777 # include <unistd.h>
21778 #endif
21779 /* Some systems only have a dummy stub for fork() */
21780 int main ()
21781 {
21782 if (fork() < 0)
21783 exit (1);
21784 exit (0);
21785 }
21786 _ACEOF
21787 rm -f conftest$ac_exeext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789 (eval $ac_link) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_func_fork_works=yes
21799 else
21800 echo "$as_me: program exited with status $ac_status" >&5
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804 ( exit $ac_status )
21805 ac_cv_func_fork_works=no
21806 fi
21807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21808 fi
21809 fi
21810 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21811 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21812
21813 else
21814 ac_cv_func_fork_works=$ac_cv_func_fork
21815 fi
21816 if test "x$ac_cv_func_fork_works" = xcross; then
21817 case $host in
21818 *-*-amigaos* | *-*-msdosdjgpp*)
21819 # Override, as these systems have only a dummy fork() stub
21820 ac_cv_func_fork_works=no
21821 ;;
21822 *)
21823 ac_cv_func_fork_works=yes
21824 ;;
21825 esac
21826 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21827 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21828 fi
21829 ac_cv_func_vfork_works=$ac_cv_func_vfork
21830 if test "x$ac_cv_func_vfork" = xyes; then
21831 echo "$as_me:$LINENO: checking for working vfork" >&5
21832 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21833 if test "${ac_cv_func_vfork_works+set}" = set; then
21834 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 else
21836 if test "$cross_compiling" = yes; then
21837 ac_cv_func_vfork_works=cross
21838 else
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 /* Thanks to Paul Eggert for this test. */
21846 #include <stdio.h>
21847 #include <stdlib.h>
21848 #include <sys/types.h>
21849 #include <sys/stat.h>
21850 #include <sys/wait.h>
21851 #if HAVE_UNISTD_H
21852 # include <unistd.h>
21853 #endif
21854 #if HAVE_VFORK_H
21855 # include <vfork.h>
21856 #endif
21857 /* On some sparc systems, changes by the child to local and incoming
21858 argument registers are propagated back to the parent. The compiler
21859 is told about this with #include <vfork.h>, but some compilers
21860 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21861 static variable whose address is put into a register that is
21862 clobbered by the vfork. */
21863 static void
21864 #ifdef __cplusplus
21865 sparc_address_test (int arg)
21866 # else
21867 sparc_address_test (arg) int arg;
21868 #endif
21869 {
21870 static pid_t child;
21871 if (!child) {
21872 child = vfork ();
21873 if (child < 0) {
21874 perror ("vfork");
21875 _exit(2);
21876 }
21877 if (!child) {
21878 arg = getpid();
21879 write(-1, "", 0);
21880 _exit (arg);
21881 }
21882 }
21883 }
21884
21885 int
21886 main ()
21887 {
21888 pid_t parent = getpid ();
21889 pid_t child;
21890
21891 sparc_address_test (0);
21892
21893 child = vfork ();
21894
21895 if (child == 0) {
21896 /* Here is another test for sparc vfork register problems. This
21897 test uses lots of local variables, at least as many local
21898 variables as main has allocated so far including compiler
21899 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21900 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21901 reuse the register of parent for one of the local variables,
21902 since it will think that parent can't possibly be used any more
21903 in this routine. Assigning to the local variable will thus
21904 munge parent in the parent process. */
21905 pid_t
21906 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21907 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21908 /* Convince the compiler that p..p7 are live; otherwise, it might
21909 use the same hardware register for all 8 local variables. */
21910 if (p != p1 || p != p2 || p != p3 || p != p4
21911 || p != p5 || p != p6 || p != p7)
21912 _exit(1);
21913
21914 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21915 from child file descriptors. If the child closes a descriptor
21916 before it execs or exits, this munges the parent's descriptor
21917 as well. Test for this by closing stdout in the child. */
21918 _exit(close(fileno(stdout)) != 0);
21919 } else {
21920 int status;
21921 struct stat st;
21922
21923 while (wait(&status) != child)
21924 ;
21925 exit(
21926 /* Was there some problem with vforking? */
21927 child < 0
21928
21929 /* Did the child fail? (This shouldn't happen.) */
21930 || status
21931
21932 /* Did the vfork/compiler bug occur? */
21933 || parent != getpid()
21934
21935 /* Did the file descriptor bug occur? */
21936 || fstat(fileno(stdout), &st) != 0
21937 );
21938 }
21939 }
21940 _ACEOF
21941 rm -f conftest$ac_exeext
21942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_func_vfork_works=yes
21953 else
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958 ( exit $ac_status )
21959 ac_cv_func_vfork_works=no
21960 fi
21961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21962 fi
21963 fi
21964 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21965 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21966
21967 fi;
21968 if test "x$ac_cv_func_fork_works" = xcross; then
21969 ac_cv_func_vfork_works=$ac_cv_func_vfork
21970 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21971 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21972 fi
21973
21974 if test "x$ac_cv_func_vfork_works" = xyes; then
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define HAVE_WORKING_VFORK 1
21978 _ACEOF
21979
21980 else
21981
21982 cat >>confdefs.h <<\_ACEOF
21983 #define vfork fork
21984 _ACEOF
21985
21986 fi
21987 if test "x$ac_cv_func_fork_works" = xyes; then
21988
21989 cat >>confdefs.h <<\_ACEOF
21990 #define HAVE_WORKING_FORK 1
21991 _ACEOF
21992
21993 fi
21994
21995
21996 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21997 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21998 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001 cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h. */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 #include <langinfo.h>
22008 int
22009 main ()
22010 {
22011 char* cs = nl_langinfo(CODESET);
22012 ;
22013 return 0;
22014 }
22015 _ACEOF
22016 rm -f conftest.$ac_objext conftest$ac_exeext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22018 (eval $ac_link) 2>conftest.er1
22019 ac_status=$?
22020 grep -v '^ *+' conftest.er1 >conftest.err
22021 rm -f conftest.er1
22022 cat conftest.err >&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } &&
22025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try='test -s conftest$ac_exeext'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 emacs_cv_langinfo_codeset=yes
22038 else
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 emacs_cv_langinfo_codeset=no
22043 fi
22044 rm -f conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22046
22047 fi
22048 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22049 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22050 if test $emacs_cv_langinfo_codeset = yes; then
22051
22052 cat >>confdefs.h <<\_ACEOF
22053 #define HAVE_LANGINFO_CODESET 1
22054 _ACEOF
22055
22056 fi
22057
22058 echo "$as_me:$LINENO: checking for size_t" >&5
22059 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22060 if test "${ac_cv_type_size_t+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063 cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h. */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22069 $ac_includes_default
22070 int
22071 main ()
22072 {
22073 if ((size_t *) 0)
22074 return 0;
22075 if (sizeof (size_t))
22076 return 0;
22077 ;
22078 return 0;
22079 }
22080 _ACEOF
22081 rm -f conftest.$ac_objext
22082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22083 (eval $ac_compile) 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; } &&
22096 { ac_try='test -s conftest.$ac_objext'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; }; then
22102 ac_cv_type_size_t=yes
22103 else
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22106
22107 ac_cv_type_size_t=no
22108 fi
22109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22110 fi
22111 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22112 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22113 if test $ac_cv_type_size_t = yes; then
22114
22115 cat >>confdefs.h <<_ACEOF
22116 #define HAVE_SIZE_T 1
22117 _ACEOF
22118
22119
22120 fi
22121
22122
22123 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22124 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22125 if test "${ac_cv_type_mbstate_t+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h. */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 $ac_includes_default
22135 # include <wchar.h>
22136 int
22137 main ()
22138 {
22139 mbstate_t x; return sizeof x;
22140 ;
22141 return 0;
22142 }
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>conftest.er1
22147 ac_status=$?
22148 grep -v '^ *+' conftest.er1 >conftest.err
22149 rm -f conftest.er1
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } &&
22153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try='test -s conftest.$ac_objext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 ac_cv_type_mbstate_t=yes
22166 else
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22169
22170 ac_cv_type_mbstate_t=no
22171 fi
22172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22173 fi
22174 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22175 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22176 if test $ac_cv_type_mbstate_t = yes; then
22177
22178 cat >>confdefs.h <<\_ACEOF
22179 #define HAVE_MBSTATE_T 1
22180 _ACEOF
22181
22182 else
22183
22184 cat >>confdefs.h <<\_ACEOF
22185 #define mbstate_t int
22186 _ACEOF
22187
22188 fi
22189
22190 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22191 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22192 if test "${emacs_cv_c_restrict+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22194 else
22195 cat >conftest.$ac_ext <<_ACEOF
22196 /* confdefs.h. */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 void fred (int *restrict x);
22202 int
22203 main ()
22204 {
22205
22206 ;
22207 return 0;
22208 }
22209 _ACEOF
22210 rm -f conftest.$ac_objext
22211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22212 (eval $ac_compile) 2>conftest.er1
22213 ac_status=$?
22214 grep -v '^ *+' conftest.er1 >conftest.err
22215 rm -f conftest.er1
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } &&
22219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try='test -s conftest.$ac_objext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 emacs_cv_c_restrict=yes
22232 else
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h. */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 void fred (int *__restrict x);
22243 int
22244 main ()
22245 {
22246
22247 ;
22248 return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253 (eval $ac_compile) 2>conftest.er1
22254 ac_status=$?
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
22260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest.$ac_objext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 emacs_cv_c_restrict=__restrict
22273 else
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277 emacs_cv_c_restrict=no
22278 fi
22279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22280 fi
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282 fi
22283 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22284 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22285 case "$emacs_cv_c_restrict" in
22286 yes) emacs_restrict=restrict;;
22287 no) emacs_restrict="";;
22288 *) emacs_restrict="$emacs_cv_c_restrict";;
22289 esac
22290 if test "$emacs_restrict" != __restrict; then
22291
22292 cat >>confdefs.h <<_ACEOF
22293 #define __restrict $emacs_restrict
22294 _ACEOF
22295
22296 fi
22297
22298 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22299 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22300 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22302 else
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h. */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 void fred (int x[__restrict]);
22310 int
22311 main ()
22312 {
22313
22314 ;
22315 return 0;
22316 }
22317 _ACEOF
22318 rm -f conftest.$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 emacs_cv_c_restrict_arr=yes
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22343
22344 emacs_cv_c_restrict_arr=no
22345 fi
22346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22347 fi
22348 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22349 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22350 if test "$emacs_cv_c_restrict_arr" = yes; then
22351
22352 cat >>confdefs.h <<\_ACEOF
22353 #define __restrict_arr __restrict
22354 _ACEOF
22355
22356 fi
22357
22358
22359
22360 # Set up the CFLAGS for real compilation, so we can substitute it.
22361 CFLAGS="$REAL_CFLAGS"
22362 CPPFLAGS="$REAL_CPPFLAGS"
22363
22364 #### Find out which version of Emacs this is.
22365 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22366 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22367 if test x"${version}" = x; then
22368 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22369 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22370 { (exit 1); exit 1; }; }
22371 fi
22372
22373 ### Specify what sort of things we'll be editing into Makefile and config.h.
22374 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define EMACS_CONFIGURATION "${canonical}"
22412 _ACEOF
22413
22414
22415 cat >>confdefs.h <<_ACEOF
22416 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22417 _ACEOF
22418
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define config_machfile "${machfile}"
22422 _ACEOF
22423
22424
22425 cat >>confdefs.h <<_ACEOF
22426 #define config_opsysfile "${opsysfile}"
22427 _ACEOF
22428
22429
22430 cat >>confdefs.h <<_ACEOF
22431 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22432 _ACEOF
22433
22434
22435 cat >>confdefs.h <<_ACEOF
22436 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22437 _ACEOF
22438
22439
22440 cat >>confdefs.h <<_ACEOF
22441 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22442 _ACEOF
22443
22444
22445 cat >>confdefs.h <<_ACEOF
22446 #define UNEXEC_SRC ${UNEXEC_SRC}
22447 _ACEOF
22448
22449
22450 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22451
22452 cat >>confdefs.h <<\_ACEOF
22453 #define HAVE_X_WINDOWS 1
22454 _ACEOF
22455
22456 fi
22457 if test "${USE_X_TOOLKIT}" != "none" ; then
22458
22459 cat >>confdefs.h <<\_ACEOF
22460 #define USE_X_TOOLKIT 1
22461 _ACEOF
22462
22463 fi
22464 if test "${HAVE_X11}" = "yes" ; then
22465
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_X11 1
22468 _ACEOF
22469
22470 fi
22471 if test "${HAVE_XFREE386}" = "yes" ; then
22472
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_XFREE386 1
22475 _ACEOF
22476
22477 fi
22478 if test "${HAVE_MENUS}" = "yes" ; then
22479
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_MENUS 1
22482 _ACEOF
22483
22484 fi
22485 if test "${GNU_MALLOC}" = "yes" ; then
22486
22487 cat >>confdefs.h <<\_ACEOF
22488 #define GNU_MALLOC 1
22489 _ACEOF
22490
22491 fi
22492 if test "${REL_ALLOC}" = "yes" ; then
22493
22494 cat >>confdefs.h <<\_ACEOF
22495 #define REL_ALLOC 1
22496 _ACEOF
22497
22498 fi
22499
22500
22501
22502
22503
22504 #### Report on what we decided to do.
22505 #### Report GTK as a toolkit, even if it doesn't use Xt.
22506 #### It makes printing result more understandable as using GTK sets
22507 #### toolkit_scroll_bars to yes by default.
22508 if test "${HAVE_GTK}" = "yes"; then
22509 USE_X_TOOLKIT=GTK
22510 fi
22511
22512 echo "
22513 Configured for \`${canonical}'.
22514
22515 Where should the build process find the source code? ${srcdir}
22516 What operating system and machine description files should Emacs use?
22517 \`${opsysfile}' and \`${machfile}'
22518 What compiler should emacs be built with? ${CC} ${CFLAGS}
22519 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22520 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22521 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22522 What window system should Emacs use? ${window_system}
22523 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22524
22525 if test -n "${x_includes}"; then
22526 echo " Where do we find X Windows header files? ${x_includes}"
22527 else
22528 echo " Where do we find X Windows header files? Standard dirs"
22529 fi
22530 if test -n "${x_libraries}"; then
22531 echo " Where do we find X Windows libraries? ${x_libraries}"
22532 else
22533 echo " Where do we find X Windows libraries? Standard dirs"
22534 fi
22535
22536 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22537 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22538 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22539 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22540 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22541 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22542 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22543 echo
22544
22545 if test $USE_XASSERTS = yes; then
22546 echo " Compiling with asserts turned on."
22547 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22548 echo
22549 fi
22550
22551
22552
22553 # Remove any trailing slashes in these variables.
22554 test "${prefix}" != NONE &&
22555 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22556 test "${exec_prefix}" != NONE &&
22557 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22558
22559 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22560 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22561 ## from Makefile.c can correctly provide the arg `-traditional' to the
22562 ## C preprocessor.
22563
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 yes..yes
22571 _ACEOF
22572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22573 $EGREP "yes..yes" >/dev/null 2>&1; then
22574 CPP_NEED_TRADITIONAL=no
22575 else
22576 CPP_NEED_TRADITIONAL=yes
22577 fi
22578 rm -f conftest*
22579
22580
22581 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"
22582 ac_config_commands="$ac_config_commands default"
22583 cat >confcache <<\_ACEOF
22584 # This file is a shell script that caches the results of configure
22585 # tests run on this system so they can be shared between configure
22586 # scripts and configure runs, see configure's option --config-cache.
22587 # It is not useful on other systems. If it contains results you don't
22588 # want to keep, you may remove or edit it.
22589 #
22590 # config.status only pays attention to the cache file if you give it
22591 # the --recheck option to rerun configure.
22592 #
22593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22595 # following values.
22596
22597 _ACEOF
22598
22599 # The following way of writing the cache mishandles newlines in values,
22600 # but we know of no workaround that is simple, portable, and efficient.
22601 # So, don't put newlines in cache variables' values.
22602 # Ultrix sh set writes to stderr and can't be redirected directly,
22603 # and sets the high bit in the cache file unless we assign to the vars.
22604 {
22605 (set) 2>&1 |
22606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22607 *ac_space=\ *)
22608 # `set' does not quote correctly, so add quotes (double-quote
22609 # substitution turns \\\\ into \\, and sed turns \\ into \).
22610 sed -n \
22611 "s/'/'\\\\''/g;
22612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22613 ;;
22614 *)
22615 # `set' quotes correctly as required by POSIX, so do not add quotes.
22616 sed -n \
22617 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22618 ;;
22619 esac;
22620 } |
22621 sed '
22622 t clear
22623 : clear
22624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22625 t end
22626 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22627 : end' >>confcache
22628 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22629 if test -w $cache_file; then
22630 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22631 cat confcache >$cache_file
22632 else
22633 echo "not updating unwritable cache $cache_file"
22634 fi
22635 fi
22636 rm -f confcache
22637
22638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22639 # Let make expand exec_prefix.
22640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22641
22642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22644 # trailing colons and then remove the whole line if VPATH becomes empty
22645 # (actually we leave an empty line to preserve line numbers).
22646 if test "x$srcdir" = x.; then
22647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22648 s/:*\$(srcdir):*/:/;
22649 s/:*\${srcdir}:*/:/;
22650 s/:*@srcdir@:*/:/;
22651 s/^\([^=]*=[ ]*\):*/\1/;
22652 s/:*$//;
22653 s/^[^=]*=[ ]*$//;
22654 }'
22655 fi
22656
22657 DEFS=-DHAVE_CONFIG_H
22658
22659 ac_libobjs=
22660 ac_ltlibobjs=
22661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22662 # 1. Remove the extension, and $U if already installed.
22663 ac_i=`echo "$ac_i" |
22664 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22665 # 2. Add them.
22666 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22667 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22668 done
22669 LIBOBJS=$ac_libobjs
22670
22671 LTLIBOBJS=$ac_ltlibobjs
22672
22673
22674
22675 : ${CONFIG_STATUS=./config.status}
22676 ac_clean_files_save=$ac_clean_files
22677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22678 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22679 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22680 cat >$CONFIG_STATUS <<_ACEOF
22681 #! $SHELL
22682 # Generated by $as_me.
22683 # Run this file to recreate the current configuration.
22684 # Compiler output produced by configure, useful for debugging
22685 # configure, is in config.log if it exists.
22686
22687 debug=false
22688 ac_cs_recheck=false
22689 ac_cs_silent=false
22690 SHELL=\${CONFIG_SHELL-$SHELL}
22691 _ACEOF
22692
22693 cat >>$CONFIG_STATUS <<\_ACEOF
22694 ## --------------------- ##
22695 ## M4sh Initialization. ##
22696 ## --------------------- ##
22697
22698 # Be Bourne compatible
22699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22700 emulate sh
22701 NULLCMD=:
22702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22703 # is contrary to our usage. Disable this feature.
22704 alias -g '${1+"$@"}'='"$@"'
22705 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22706 set -o posix
22707 fi
22708 DUALCASE=1; export DUALCASE # for MKS sh
22709
22710 # Support unset when possible.
22711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22712 as_unset=unset
22713 else
22714 as_unset=false
22715 fi
22716
22717
22718 # Work around bugs in pre-3.0 UWIN ksh.
22719 $as_unset ENV MAIL MAILPATH
22720 PS1='$ '
22721 PS2='> '
22722 PS4='+ '
22723
22724 # NLS nuisances.
22725 for as_var in \
22726 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22727 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22728 LC_TELEPHONE LC_TIME
22729 do
22730 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22731 eval $as_var=C; export $as_var
22732 else
22733 $as_unset $as_var
22734 fi
22735 done
22736
22737 # Required to use basename.
22738 if expr a : '\(a\)' >/dev/null 2>&1; then
22739 as_expr=expr
22740 else
22741 as_expr=false
22742 fi
22743
22744 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22745 as_basename=basename
22746 else
22747 as_basename=false
22748 fi
22749
22750
22751 # Name of the executable.
22752 as_me=`$as_basename "$0" ||
22753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22754 X"$0" : 'X\(//\)$' \| \
22755 X"$0" : 'X\(/\)$' \| \
22756 . : '\(.\)' 2>/dev/null ||
22757 echo X/"$0" |
22758 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22759 /^X\/\(\/\/\)$/{ s//\1/; q; }
22760 /^X\/\(\/\).*/{ s//\1/; q; }
22761 s/.*/./; q'`
22762
22763
22764 # PATH needs CR, and LINENO needs CR and PATH.
22765 # Avoid depending upon Character Ranges.
22766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22769 as_cr_digits='0123456789'
22770 as_cr_alnum=$as_cr_Letters$as_cr_digits
22771
22772 # The user is always right.
22773 if test "${PATH_SEPARATOR+set}" != set; then
22774 echo "#! /bin/sh" >conf$$.sh
22775 echo "exit 0" >>conf$$.sh
22776 chmod +x conf$$.sh
22777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22778 PATH_SEPARATOR=';'
22779 else
22780 PATH_SEPARATOR=:
22781 fi
22782 rm -f conf$$.sh
22783 fi
22784
22785
22786 as_lineno_1=$LINENO
22787 as_lineno_2=$LINENO
22788 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22789 test "x$as_lineno_1" != "x$as_lineno_2" &&
22790 test "x$as_lineno_3" = "x$as_lineno_2" || {
22791 # Find who we are. Look in the path if we contain no path at all
22792 # relative or not.
22793 case $0 in
22794 *[\\/]* ) as_myself=$0 ;;
22795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22796 for as_dir in $PATH
22797 do
22798 IFS=$as_save_IFS
22799 test -z "$as_dir" && as_dir=.
22800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22801 done
22802
22803 ;;
22804 esac
22805 # We did not find ourselves, most probably we were run as `sh COMMAND'
22806 # in which case we are not to be found in the path.
22807 if test "x$as_myself" = x; then
22808 as_myself=$0
22809 fi
22810 if test ! -f "$as_myself"; then
22811 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22812 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22813 { (exit 1); exit 1; }; }
22814 fi
22815 case $CONFIG_SHELL in
22816 '')
22817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22819 do
22820 IFS=$as_save_IFS
22821 test -z "$as_dir" && as_dir=.
22822 for as_base in sh bash ksh sh5; do
22823 case $as_dir in
22824 /*)
22825 if ("$as_dir/$as_base" -c '
22826 as_lineno_1=$LINENO
22827 as_lineno_2=$LINENO
22828 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22829 test "x$as_lineno_1" != "x$as_lineno_2" &&
22830 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22831 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22832 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22833 CONFIG_SHELL=$as_dir/$as_base
22834 export CONFIG_SHELL
22835 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22836 fi;;
22837 esac
22838 done
22839 done
22840 ;;
22841 esac
22842
22843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22844 # uniformly replaced by the line number. The first 'sed' inserts a
22845 # line-number line before each line; the second 'sed' does the real
22846 # work. The second script uses 'N' to pair each line-number line
22847 # with the numbered line, and appends trailing '-' during
22848 # substitution so that $LINENO is not a special case at line end.
22849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22850 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22851 sed '=' <$as_myself |
22852 sed '
22853 N
22854 s,$,-,
22855 : loop
22856 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22857 t loop
22858 s,-$,,
22859 s,^['$as_cr_digits']*\n,,
22860 ' >$as_me.lineno &&
22861 chmod +x $as_me.lineno ||
22862 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22863 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22864 { (exit 1); exit 1; }; }
22865
22866 # Don't try to exec as it changes $[0], causing all sort of problems
22867 # (the dirname of $[0] is not the place where we might find the
22868 # original and so on. Autoconf is especially sensible to this).
22869 . ./$as_me.lineno
22870 # Exit status is that of the last command.
22871 exit
22872 }
22873
22874
22875 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22876 *c*,-n*) ECHO_N= ECHO_C='
22877 ' ECHO_T=' ' ;;
22878 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22879 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22880 esac
22881
22882 if expr a : '\(a\)' >/dev/null 2>&1; then
22883 as_expr=expr
22884 else
22885 as_expr=false
22886 fi
22887
22888 rm -f conf$$ conf$$.exe conf$$.file
22889 echo >conf$$.file
22890 if ln -s conf$$.file conf$$ 2>/dev/null; then
22891 # We could just check for DJGPP; but this test a) works b) is more generic
22892 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22893 if test -f conf$$.exe; then
22894 # Don't use ln at all; we don't have any links
22895 as_ln_s='cp -p'
22896 else
22897 as_ln_s='ln -s'
22898 fi
22899 elif ln conf$$.file conf$$ 2>/dev/null; then
22900 as_ln_s=ln
22901 else
22902 as_ln_s='cp -p'
22903 fi
22904 rm -f conf$$ conf$$.exe conf$$.file
22905
22906 if mkdir -p . 2>/dev/null; then
22907 as_mkdir_p=:
22908 else
22909 test -d ./-p && rmdir ./-p
22910 as_mkdir_p=false
22911 fi
22912
22913 as_executable_p="test -f"
22914
22915 # Sed expression to map a string onto a valid CPP name.
22916 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22917
22918 # Sed expression to map a string onto a valid variable name.
22919 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22920
22921
22922 # IFS
22923 # We need space, tab and new line, in precisely that order.
22924 as_nl='
22925 '
22926 IFS=" $as_nl"
22927
22928 # CDPATH.
22929 $as_unset CDPATH
22930
22931 exec 6>&1
22932
22933 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22934 # report actual input values of CONFIG_FILES etc. instead of their
22935 # values after options handling. Logging --version etc. is OK.
22936 exec 5>>config.log
22937 {
22938 echo
22939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22940 ## Running $as_me. ##
22941 _ASBOX
22942 } >&5
22943 cat >&5 <<_CSEOF
22944
22945 This file was extended by $as_me, which was
22946 generated by GNU Autoconf 2.59. Invocation command line was
22947
22948 CONFIG_FILES = $CONFIG_FILES
22949 CONFIG_HEADERS = $CONFIG_HEADERS
22950 CONFIG_LINKS = $CONFIG_LINKS
22951 CONFIG_COMMANDS = $CONFIG_COMMANDS
22952 $ $0 $@
22953
22954 _CSEOF
22955 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22956 echo >&5
22957 _ACEOF
22958
22959 # Files that config.status was made for.
22960 if test -n "$ac_config_files"; then
22961 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22962 fi
22963
22964 if test -n "$ac_config_headers"; then
22965 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22966 fi
22967
22968 if test -n "$ac_config_links"; then
22969 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22970 fi
22971
22972 if test -n "$ac_config_commands"; then
22973 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22974 fi
22975
22976 cat >>$CONFIG_STATUS <<\_ACEOF
22977
22978 ac_cs_usage="\
22979 \`$as_me' instantiates files from templates according to the
22980 current configuration.
22981
22982 Usage: $0 [OPTIONS] [FILE]...
22983
22984 -h, --help print this help, then exit
22985 -V, --version print version number, then exit
22986 -q, --quiet do not print progress messages
22987 -d, --debug don't remove temporary files
22988 --recheck update $as_me by reconfiguring in the same conditions
22989 --file=FILE[:TEMPLATE]
22990 instantiate the configuration file FILE
22991 --header=FILE[:TEMPLATE]
22992 instantiate the configuration header FILE
22993
22994 Configuration files:
22995 $config_files
22996
22997 Configuration headers:
22998 $config_headers
22999
23000 Configuration commands:
23001 $config_commands
23002
23003 Report bugs to <bug-autoconf@gnu.org>."
23004 _ACEOF
23005
23006 cat >>$CONFIG_STATUS <<_ACEOF
23007 ac_cs_version="\\
23008 config.status
23009 configured by $0, generated by GNU Autoconf 2.59,
23010 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23011
23012 Copyright (C) 2003 Free Software Foundation, Inc.
23013 This config.status script is free software; the Free Software Foundation
23014 gives unlimited permission to copy, distribute and modify it."
23015 srcdir=$srcdir
23016 INSTALL="$INSTALL"
23017 _ACEOF
23018
23019 cat >>$CONFIG_STATUS <<\_ACEOF
23020 # If no file are specified by the user, then we need to provide default
23021 # value. By we need to know if files were specified by the user.
23022 ac_need_defaults=:
23023 while test $# != 0
23024 do
23025 case $1 in
23026 --*=*)
23027 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23028 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23029 ac_shift=:
23030 ;;
23031 -*)
23032 ac_option=$1
23033 ac_optarg=$2
23034 ac_shift=shift
23035 ;;
23036 *) # This is not an option, so the user has probably given explicit
23037 # arguments.
23038 ac_option=$1
23039 ac_need_defaults=false;;
23040 esac
23041
23042 case $ac_option in
23043 # Handling of the options.
23044 _ACEOF
23045 cat >>$CONFIG_STATUS <<\_ACEOF
23046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23047 ac_cs_recheck=: ;;
23048 --version | --vers* | -V )
23049 echo "$ac_cs_version"; exit 0 ;;
23050 --he | --h)
23051 # Conflict between --help and --header
23052 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23053 Try \`$0 --help' for more information." >&5
23054 echo "$as_me: error: ambiguous option: $1
23055 Try \`$0 --help' for more information." >&2;}
23056 { (exit 1); exit 1; }; };;
23057 --help | --hel | -h )
23058 echo "$ac_cs_usage"; exit 0 ;;
23059 --debug | --d* | -d )
23060 debug=: ;;
23061 --file | --fil | --fi | --f )
23062 $ac_shift
23063 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23064 ac_need_defaults=false;;
23065 --header | --heade | --head | --hea )
23066 $ac_shift
23067 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23068 ac_need_defaults=false;;
23069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23071 ac_cs_silent=: ;;
23072
23073 # This is an error.
23074 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23075 Try \`$0 --help' for more information." >&5
23076 echo "$as_me: error: unrecognized option: $1
23077 Try \`$0 --help' for more information." >&2;}
23078 { (exit 1); exit 1; }; } ;;
23079
23080 *) ac_config_targets="$ac_config_targets $1" ;;
23081
23082 esac
23083 shift
23084 done
23085
23086 ac_configure_extra_args=
23087
23088 if $ac_cs_silent; then
23089 exec 6>/dev/null
23090 ac_configure_extra_args="$ac_configure_extra_args --silent"
23091 fi
23092
23093 _ACEOF
23094 cat >>$CONFIG_STATUS <<_ACEOF
23095 if \$ac_cs_recheck; then
23096 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23097 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23098 fi
23099
23100 _ACEOF
23101
23102 cat >>$CONFIG_STATUS <<_ACEOF
23103 #
23104 # INIT-COMMANDS section.
23105 #
23106
23107 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23108
23109 _ACEOF
23110
23111
23112
23113 cat >>$CONFIG_STATUS <<\_ACEOF
23114 for ac_config_target in $ac_config_targets
23115 do
23116 case "$ac_config_target" in
23117 # Handling of arguments.
23118 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23119 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23120 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23121 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23122 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23123 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23124 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23125 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23126 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23127 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23128 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23129 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23132 { (exit 1); exit 1; }; };;
23133 esac
23134 done
23135
23136 # If the user did not use the arguments to specify the items to instantiate,
23137 # then the envvar interface is used. Set only those that are not.
23138 # We use the long form for the default assignment because of an extremely
23139 # bizarre bug on SunOS 4.1.3.
23140 if $ac_need_defaults; then
23141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23143 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23144 fi
23145
23146 # Have a temporary directory for convenience. Make it in the build tree
23147 # simply because there is no reason to put it here, and in addition,
23148 # creating and moving files from /tmp can sometimes cause problems.
23149 # Create a temporary directory, and hook for its removal unless debugging.
23150 $debug ||
23151 {
23152 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23153 trap '{ (exit 1); exit 1; }' 1 2 13 15
23154 }
23155
23156 # Create a (secure) tmp directory for tmp files.
23157
23158 {
23159 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23160 test -n "$tmp" && test -d "$tmp"
23161 } ||
23162 {
23163 tmp=./confstat$$-$RANDOM
23164 (umask 077 && mkdir $tmp)
23165 } ||
23166 {
23167 echo "$me: cannot create a temporary directory in ." >&2
23168 { (exit 1); exit 1; }
23169 }
23170
23171 _ACEOF
23172
23173 cat >>$CONFIG_STATUS <<_ACEOF
23174
23175 #
23176 # CONFIG_FILES section.
23177 #
23178
23179 # No need to generate the scripts if there are no CONFIG_FILES.
23180 # This happens for instance when ./config.status config.h
23181 if test -n "\$CONFIG_FILES"; then
23182 # Protect against being on the right side of a sed subst in config.status.
23183 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23184 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23185 s,@SHELL@,$SHELL,;t t
23186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23192 s,@exec_prefix@,$exec_prefix,;t t
23193 s,@prefix@,$prefix,;t t
23194 s,@program_transform_name@,$program_transform_name,;t t
23195 s,@bindir@,$bindir,;t t
23196 s,@sbindir@,$sbindir,;t t
23197 s,@libexecdir@,$libexecdir,;t t
23198 s,@datadir@,$datadir,;t t
23199 s,@sysconfdir@,$sysconfdir,;t t
23200 s,@sharedstatedir@,$sharedstatedir,;t t
23201 s,@localstatedir@,$localstatedir,;t t
23202 s,@libdir@,$libdir,;t t
23203 s,@includedir@,$includedir,;t t
23204 s,@oldincludedir@,$oldincludedir,;t t
23205 s,@infodir@,$infodir,;t t
23206 s,@mandir@,$mandir,;t t
23207 s,@build_alias@,$build_alias,;t t
23208 s,@host_alias@,$host_alias,;t t
23209 s,@target_alias@,$target_alias,;t t
23210 s,@DEFS@,$DEFS,;t t
23211 s,@ECHO_C@,$ECHO_C,;t t
23212 s,@ECHO_N@,$ECHO_N,;t t
23213 s,@ECHO_T@,$ECHO_T,;t t
23214 s,@LIBS@,$LIBS,;t t
23215 s,@MAINT@,$MAINT,;t t
23216 s,@build@,$build,;t t
23217 s,@build_cpu@,$build_cpu,;t t
23218 s,@build_vendor@,$build_vendor,;t t
23219 s,@build_os@,$build_os,;t t
23220 s,@host@,$host,;t t
23221 s,@host_cpu@,$host_cpu,;t t
23222 s,@host_vendor@,$host_vendor,;t t
23223 s,@host_os@,$host_os,;t t
23224 s,@CC@,$CC,;t t
23225 s,@CFLAGS@,$CFLAGS,;t t
23226 s,@LDFLAGS@,$LDFLAGS,;t t
23227 s,@CPPFLAGS@,$CPPFLAGS,;t t
23228 s,@ac_ct_CC@,$ac_ct_CC,;t t
23229 s,@EXEEXT@,$EXEEXT,;t t
23230 s,@OBJEXT@,$OBJEXT,;t t
23231 s,@LN_S@,$LN_S,;t t
23232 s,@CPP@,$CPP,;t t
23233 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23234 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23235 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23236 s,@RANLIB@,$RANLIB,;t t
23237 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23238 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23239 s,@GZIP_PROG@,$GZIP_PROG,;t t
23240 s,@EGREP@,$EGREP,;t t
23241 s,@LIBSOUND@,$LIBSOUND,;t t
23242 s,@SET_MAKE@,$SET_MAKE,;t t
23243 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23244 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23245 s,@GTK_LIBS@,$GTK_LIBS,;t t
23246 s,@ALLOCA@,$ALLOCA,;t t
23247 s,@liblockfile@,$liblockfile,;t t
23248 s,@LIBOBJS@,$LIBOBJS,;t t
23249 s,@NEED_SETGID@,$NEED_SETGID,;t t
23250 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23251 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23252 s,@GETOPT_H@,$GETOPT_H,;t t
23253 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23254 s,@version@,$version,;t t
23255 s,@configuration@,$configuration,;t t
23256 s,@canonical@,$canonical,;t t
23257 s,@srcdir@,$srcdir,;t t
23258 s,@lispdir@,$lispdir,;t t
23259 s,@locallisppath@,$locallisppath,;t t
23260 s,@lisppath@,$lisppath,;t t
23261 s,@x_default_search_path@,$x_default_search_path,;t t
23262 s,@etcdir@,$etcdir,;t t
23263 s,@archlibdir@,$archlibdir,;t t
23264 s,@docdir@,$docdir,;t t
23265 s,@bitmapdir@,$bitmapdir,;t t
23266 s,@gamedir@,$gamedir,;t t
23267 s,@gameuser@,$gameuser,;t t
23268 s,@c_switch_system@,$c_switch_system,;t t
23269 s,@c_switch_machine@,$c_switch_machine,;t t
23270 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23271 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23272 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23273 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23274 s,@machfile@,$machfile,;t t
23275 s,@opsysfile@,$opsysfile,;t t
23276 s,@carbon_appdir@,$carbon_appdir,;t t
23277 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23278 CEOF
23279
23280 _ACEOF
23281
23282 cat >>$CONFIG_STATUS <<\_ACEOF
23283 # Split the substitutions into bite-sized pieces for seds with
23284 # small command number limits, like on Digital OSF/1 and HP-UX.
23285 ac_max_sed_lines=48
23286 ac_sed_frag=1 # Number of current file.
23287 ac_beg=1 # First line for current file.
23288 ac_end=$ac_max_sed_lines # Line after last line for current file.
23289 ac_more_lines=:
23290 ac_sed_cmds=
23291 while $ac_more_lines; do
23292 if test $ac_beg -gt 1; then
23293 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23294 else
23295 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23296 fi
23297 if test ! -s $tmp/subs.frag; then
23298 ac_more_lines=false
23299 else
23300 # The purpose of the label and of the branching condition is to
23301 # speed up the sed processing (if there are no `@' at all, there
23302 # is no need to browse any of the substitutions).
23303 # These are the two extra sed commands mentioned above.
23304 (echo ':t
23305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23306 if test -z "$ac_sed_cmds"; then
23307 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23308 else
23309 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23310 fi
23311 ac_sed_frag=`expr $ac_sed_frag + 1`
23312 ac_beg=$ac_end
23313 ac_end=`expr $ac_end + $ac_max_sed_lines`
23314 fi
23315 done
23316 if test -z "$ac_sed_cmds"; then
23317 ac_sed_cmds=cat
23318 fi
23319 fi # test -n "$CONFIG_FILES"
23320
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<\_ACEOF
23323 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23325 case $ac_file in
23326 - | *:- | *:-:* ) # input from stdin
23327 cat >$tmp/stdin
23328 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23330 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23332 * ) ac_file_in=$ac_file.in ;;
23333 esac
23334
23335 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23336 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23338 X"$ac_file" : 'X\(//\)[^/]' \| \
23339 X"$ac_file" : 'X\(//\)$' \| \
23340 X"$ac_file" : 'X\(/\)' \| \
23341 . : '\(.\)' 2>/dev/null ||
23342 echo X"$ac_file" |
23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23345 /^X\(\/\/\)$/{ s//\1/; q; }
23346 /^X\(\/\).*/{ s//\1/; q; }
23347 s/.*/./; q'`
23348 { if $as_mkdir_p; then
23349 mkdir -p "$ac_dir"
23350 else
23351 as_dir="$ac_dir"
23352 as_dirs=
23353 while test ! -d "$as_dir"; do
23354 as_dirs="$as_dir $as_dirs"
23355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23357 X"$as_dir" : 'X\(//\)[^/]' \| \
23358 X"$as_dir" : 'X\(//\)$' \| \
23359 X"$as_dir" : 'X\(/\)' \| \
23360 . : '\(.\)' 2>/dev/null ||
23361 echo X"$as_dir" |
23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23364 /^X\(\/\/\)$/{ s//\1/; q; }
23365 /^X\(\/\).*/{ s//\1/; q; }
23366 s/.*/./; q'`
23367 done
23368 test ! -n "$as_dirs" || mkdir $as_dirs
23369 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23370 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23371 { (exit 1); exit 1; }; }; }
23372
23373 ac_builddir=.
23374
23375 if test "$ac_dir" != .; then
23376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23377 # A "../" for each directory in $ac_dir_suffix.
23378 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23379 else
23380 ac_dir_suffix= ac_top_builddir=
23381 fi
23382
23383 case $srcdir in
23384 .) # No --srcdir option. We are building in place.
23385 ac_srcdir=.
23386 if test -z "$ac_top_builddir"; then
23387 ac_top_srcdir=.
23388 else
23389 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23390 fi ;;
23391 [\\/]* | ?:[\\/]* ) # Absolute path.
23392 ac_srcdir=$srcdir$ac_dir_suffix;
23393 ac_top_srcdir=$srcdir ;;
23394 *) # Relative path.
23395 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23396 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23397 esac
23398
23399 # Do not use `cd foo && pwd` to compute absolute paths, because
23400 # the directories may not exist.
23401 case `pwd` in
23402 .) ac_abs_builddir="$ac_dir";;
23403 *)
23404 case "$ac_dir" in
23405 .) ac_abs_builddir=`pwd`;;
23406 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23407 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23408 esac;;
23409 esac
23410 case $ac_abs_builddir in
23411 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23412 *)
23413 case ${ac_top_builddir}. in
23414 .) ac_abs_top_builddir=$ac_abs_builddir;;
23415 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23416 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23417 esac;;
23418 esac
23419 case $ac_abs_builddir in
23420 .) ac_abs_srcdir=$ac_srcdir;;
23421 *)
23422 case $ac_srcdir in
23423 .) ac_abs_srcdir=$ac_abs_builddir;;
23424 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23425 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23426 esac;;
23427 esac
23428 case $ac_abs_builddir in
23429 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23430 *)
23431 case $ac_top_srcdir in
23432 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23433 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23434 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23435 esac;;
23436 esac
23437
23438
23439 case $INSTALL in
23440 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23441 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23442 esac
23443
23444 # Let's still pretend it is `configure' which instantiates (i.e., don't
23445 # use $as_me), people would be surprised to read:
23446 # /* config.h. Generated by config.status. */
23447 if test x"$ac_file" = x-; then
23448 configure_input=
23449 else
23450 configure_input="$ac_file. "
23451 fi
23452 configure_input=$configure_input"Generated from `echo $ac_file_in |
23453 sed 's,.*/,,'` by configure."
23454
23455 # First look for the input files in the build tree, otherwise in the
23456 # src tree.
23457 ac_file_inputs=`IFS=:
23458 for f in $ac_file_in; do
23459 case $f in
23460 -) echo $tmp/stdin ;;
23461 [\\/$]*)
23462 # Absolute (can't be DOS-style, as IFS=:)
23463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23464 echo "$as_me: error: cannot find input file: $f" >&2;}
23465 { (exit 1); exit 1; }; }
23466 echo "$f";;
23467 *) # Relative
23468 if test -f "$f"; then
23469 # Build tree
23470 echo "$f"
23471 elif test -f "$srcdir/$f"; then
23472 # Source tree
23473 echo "$srcdir/$f"
23474 else
23475 # /dev/null tree
23476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23477 echo "$as_me: error: cannot find input file: $f" >&2;}
23478 { (exit 1); exit 1; }; }
23479 fi;;
23480 esac
23481 done` || { (exit 1); exit 1; }
23482
23483 if test x"$ac_file" != x-; then
23484 { echo "$as_me:$LINENO: creating $ac_file" >&5
23485 echo "$as_me: creating $ac_file" >&6;}
23486 rm -f "$ac_file"
23487 fi
23488 _ACEOF
23489 cat >>$CONFIG_STATUS <<_ACEOF
23490 sed "$ac_vpsub
23491 $extrasub
23492 _ACEOF
23493 cat >>$CONFIG_STATUS <<\_ACEOF
23494 :t
23495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23496 s,@configure_input@,$configure_input,;t t
23497 s,@srcdir@,$ac_srcdir,;t t
23498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23499 s,@top_srcdir@,$ac_top_srcdir,;t t
23500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23501 s,@builddir@,$ac_builddir,;t t
23502 s,@abs_builddir@,$ac_abs_builddir,;t t
23503 s,@top_builddir@,$ac_top_builddir,;t t
23504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23505 s,@INSTALL@,$ac_INSTALL,;t t
23506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23507 rm -f $tmp/stdin
23508 if test x"$ac_file" != x-; then
23509 mv $tmp/out $ac_file
23510 else
23511 cat $tmp/out
23512 rm -f $tmp/out
23513 fi
23514
23515 done
23516 _ACEOF
23517 cat >>$CONFIG_STATUS <<\_ACEOF
23518
23519 #
23520 # CONFIG_HEADER section.
23521 #
23522
23523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23525 #
23526 # ac_d sets the value in "#define NAME VALUE" lines.
23527 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23528 ac_dB='[ ].*$,\1#\2'
23529 ac_dC=' '
23530 ac_dD=',;t'
23531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23532 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23533 ac_uB='$,\1#\2define\3'
23534 ac_uC=' '
23535 ac_uD=',;t'
23536
23537 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23539 case $ac_file in
23540 - | *:- | *:-:* ) # input from stdin
23541 cat >$tmp/stdin
23542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23546 * ) ac_file_in=$ac_file.in ;;
23547 esac
23548
23549 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23550 echo "$as_me: creating $ac_file" >&6;}
23551
23552 # First look for the input files in the build tree, otherwise in the
23553 # src tree.
23554 ac_file_inputs=`IFS=:
23555 for f in $ac_file_in; do
23556 case $f in
23557 -) echo $tmp/stdin ;;
23558 [\\/$]*)
23559 # Absolute (can't be DOS-style, as IFS=:)
23560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23561 echo "$as_me: error: cannot find input file: $f" >&2;}
23562 { (exit 1); exit 1; }; }
23563 # Do quote $f, to prevent DOS paths from being IFS'd.
23564 echo "$f";;
23565 *) # Relative
23566 if test -f "$f"; then
23567 # Build tree
23568 echo "$f"
23569 elif test -f "$srcdir/$f"; then
23570 # Source tree
23571 echo "$srcdir/$f"
23572 else
23573 # /dev/null tree
23574 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23575 echo "$as_me: error: cannot find input file: $f" >&2;}
23576 { (exit 1); exit 1; }; }
23577 fi;;
23578 esac
23579 done` || { (exit 1); exit 1; }
23580 # Remove the trailing spaces.
23581 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23582
23583 _ACEOF
23584
23585 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23586 # `conftest.undefs', that substitutes the proper values into
23587 # config.h.in to produce config.h. The first handles `#define'
23588 # templates, and the second `#undef' templates.
23589 # And first: Protect against being on the right side of a sed subst in
23590 # config.status. Protect against being in an unquoted here document
23591 # in config.status.
23592 rm -f conftest.defines conftest.undefs
23593 # Using a here document instead of a string reduces the quoting nightmare.
23594 # Putting comments in sed scripts is not portable.
23595 #
23596 # `end' is used to avoid that the second main sed command (meant for
23597 # 0-ary CPP macros) applies to n-ary macro definitions.
23598 # See the Autoconf documentation for `clear'.
23599 cat >confdef2sed.sed <<\_ACEOF
23600 s/[\\&,]/\\&/g
23601 s,[\\$`],\\&,g
23602 t clear
23603 : clear
23604 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23605 t end
23606 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23607 : end
23608 _ACEOF
23609 # If some macros were called several times there might be several times
23610 # the same #defines, which is useless. Nevertheless, we may not want to
23611 # sort them, since we want the *last* AC-DEFINE to be honored.
23612 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23613 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23614 rm -f confdef2sed.sed
23615
23616 # This sed command replaces #undef with comments. This is necessary, for
23617 # example, in the case of _POSIX_SOURCE, which is predefined and required
23618 # on some systems where configure will not decide to define it.
23619 cat >>conftest.undefs <<\_ACEOF
23620 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23621 _ACEOF
23622
23623 # Break up conftest.defines because some shells have a limit on the size
23624 # of here documents, and old seds have small limits too (100 cmds).
23625 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23626 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23627 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23628 echo ' :' >>$CONFIG_STATUS
23629 rm -f conftest.tail
23630 while grep . conftest.defines >/dev/null
23631 do
23632 # Write a limited-size here document to $tmp/defines.sed.
23633 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23634 # Speed up: don't consider the non `#define' lines.
23635 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23636 # Work around the forget-to-reset-the-flag bug.
23637 echo 't clr' >>$CONFIG_STATUS
23638 echo ': clr' >>$CONFIG_STATUS
23639 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23640 echo 'CEOF
23641 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23642 rm -f $tmp/in
23643 mv $tmp/out $tmp/in
23644 ' >>$CONFIG_STATUS
23645 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23646 rm -f conftest.defines
23647 mv conftest.tail conftest.defines
23648 done
23649 rm -f conftest.defines
23650 echo ' fi # grep' >>$CONFIG_STATUS
23651 echo >>$CONFIG_STATUS
23652
23653 # Break up conftest.undefs because some shells have a limit on the size
23654 # of here documents, and old seds have small limits too (100 cmds).
23655 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23656 rm -f conftest.tail
23657 while grep . conftest.undefs >/dev/null
23658 do
23659 # Write a limited-size here document to $tmp/undefs.sed.
23660 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23661 # Speed up: don't consider the non `#undef'
23662 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23663 # Work around the forget-to-reset-the-flag bug.
23664 echo 't clr' >>$CONFIG_STATUS
23665 echo ': clr' >>$CONFIG_STATUS
23666 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23667 echo 'CEOF
23668 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23669 rm -f $tmp/in
23670 mv $tmp/out $tmp/in
23671 ' >>$CONFIG_STATUS
23672 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23673 rm -f conftest.undefs
23674 mv conftest.tail conftest.undefs
23675 done
23676 rm -f conftest.undefs
23677
23678 cat >>$CONFIG_STATUS <<\_ACEOF
23679 # Let's still pretend it is `configure' which instantiates (i.e., don't
23680 # use $as_me), people would be surprised to read:
23681 # /* config.h. Generated by config.status. */
23682 if test x"$ac_file" = x-; then
23683 echo "/* Generated by configure. */" >$tmp/config.h
23684 else
23685 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23686 fi
23687 cat $tmp/in >>$tmp/config.h
23688 rm -f $tmp/in
23689 if test x"$ac_file" != x-; then
23690 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23691 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23692 echo "$as_me: $ac_file is unchanged" >&6;}
23693 else
23694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23696 X"$ac_file" : 'X\(//\)[^/]' \| \
23697 X"$ac_file" : 'X\(//\)$' \| \
23698 X"$ac_file" : 'X\(/\)' \| \
23699 . : '\(.\)' 2>/dev/null ||
23700 echo X"$ac_file" |
23701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23703 /^X\(\/\/\)$/{ s//\1/; q; }
23704 /^X\(\/\).*/{ s//\1/; q; }
23705 s/.*/./; q'`
23706 { if $as_mkdir_p; then
23707 mkdir -p "$ac_dir"
23708 else
23709 as_dir="$ac_dir"
23710 as_dirs=
23711 while test ! -d "$as_dir"; do
23712 as_dirs="$as_dir $as_dirs"
23713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23715 X"$as_dir" : 'X\(//\)[^/]' \| \
23716 X"$as_dir" : 'X\(//\)$' \| \
23717 X"$as_dir" : 'X\(/\)' \| \
23718 . : '\(.\)' 2>/dev/null ||
23719 echo X"$as_dir" |
23720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23722 /^X\(\/\/\)$/{ s//\1/; q; }
23723 /^X\(\/\).*/{ s//\1/; q; }
23724 s/.*/./; q'`
23725 done
23726 test ! -n "$as_dirs" || mkdir $as_dirs
23727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23729 { (exit 1); exit 1; }; }; }
23730
23731 rm -f $ac_file
23732 mv $tmp/config.h $ac_file
23733 fi
23734 else
23735 cat $tmp/config.h
23736 rm -f $tmp/config.h
23737 fi
23738 done
23739 _ACEOF
23740 cat >>$CONFIG_STATUS <<\_ACEOF
23741
23742 #
23743 # CONFIG_COMMANDS section.
23744 #
23745 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23746 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23747 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23748 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23749 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23750 X"$ac_dest" : 'X\(//\)[^/]' \| \
23751 X"$ac_dest" : 'X\(//\)$' \| \
23752 X"$ac_dest" : 'X\(/\)' \| \
23753 . : '\(.\)' 2>/dev/null ||
23754 echo X"$ac_dest" |
23755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23757 /^X\(\/\/\)$/{ s//\1/; q; }
23758 /^X\(\/\).*/{ s//\1/; q; }
23759 s/.*/./; q'`
23760 { if $as_mkdir_p; then
23761 mkdir -p "$ac_dir"
23762 else
23763 as_dir="$ac_dir"
23764 as_dirs=
23765 while test ! -d "$as_dir"; do
23766 as_dirs="$as_dir $as_dirs"
23767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23769 X"$as_dir" : 'X\(//\)[^/]' \| \
23770 X"$as_dir" : 'X\(//\)$' \| \
23771 X"$as_dir" : 'X\(/\)' \| \
23772 . : '\(.\)' 2>/dev/null ||
23773 echo X"$as_dir" |
23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23776 /^X\(\/\/\)$/{ s//\1/; q; }
23777 /^X\(\/\).*/{ s//\1/; q; }
23778 s/.*/./; q'`
23779 done
23780 test ! -n "$as_dirs" || mkdir $as_dirs
23781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23783 { (exit 1); exit 1; }; }; }
23784
23785 ac_builddir=.
23786
23787 if test "$ac_dir" != .; then
23788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23789 # A "../" for each directory in $ac_dir_suffix.
23790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23791 else
23792 ac_dir_suffix= ac_top_builddir=
23793 fi
23794
23795 case $srcdir in
23796 .) # No --srcdir option. We are building in place.
23797 ac_srcdir=.
23798 if test -z "$ac_top_builddir"; then
23799 ac_top_srcdir=.
23800 else
23801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23802 fi ;;
23803 [\\/]* | ?:[\\/]* ) # Absolute path.
23804 ac_srcdir=$srcdir$ac_dir_suffix;
23805 ac_top_srcdir=$srcdir ;;
23806 *) # Relative path.
23807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23809 esac
23810
23811 # Do not use `cd foo && pwd` to compute absolute paths, because
23812 # the directories may not exist.
23813 case `pwd` in
23814 .) ac_abs_builddir="$ac_dir";;
23815 *)
23816 case "$ac_dir" in
23817 .) ac_abs_builddir=`pwd`;;
23818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23820 esac;;
23821 esac
23822 case $ac_abs_builddir in
23823 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23824 *)
23825 case ${ac_top_builddir}. in
23826 .) ac_abs_top_builddir=$ac_abs_builddir;;
23827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23829 esac;;
23830 esac
23831 case $ac_abs_builddir in
23832 .) ac_abs_srcdir=$ac_srcdir;;
23833 *)
23834 case $ac_srcdir in
23835 .) ac_abs_srcdir=$ac_abs_builddir;;
23836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23838 esac;;
23839 esac
23840 case $ac_abs_builddir in
23841 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23842 *)
23843 case $ac_top_srcdir in
23844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23847 esac;;
23848 esac
23849
23850
23851 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23852 echo "$as_me: executing $ac_dest commands" >&6;}
23853 case $ac_dest in
23854 default )
23855
23856 ### Make the necessary directories, if they don't exist.
23857 for dir in etc lisp ; do
23858 test -d ${dir} || mkdir ${dir}
23859 done
23860
23861 # Build src/Makefile from ${srcdir}/src/Makefile.c
23862 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23863 # This must be done after src/config.h is built, since we rely on that file.
23864
23865 # Now get this: Some word that is part of the ${srcdir} directory name
23866 # or the ${configuration} value might, just might, happen to be an
23867 # identifier like `sun4' or `i386' or something, and be predefined by
23868 # the C preprocessor to some helpful value like 1, or maybe the empty
23869 # string. Needless to say consequent macro substitutions are less
23870 # than conducive to the makefile finding the correct directory.
23871 undefs="`echo $top_srcdir $configuration $canonical |
23872 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23873 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23874 `"
23875
23876 echo creating src/epaths.h
23877 ${MAKE-make} epaths-force
23878
23879 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23880 # `..' to `. .' unless invoked with -traditional
23881
23882 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23883 CPPFLAGS="$CPPFLAGS -traditional"
23884 fi
23885
23886 echo creating lib-src/Makefile
23887 ( cd lib-src
23888 rm -f junk.c junk1.c junk2.c
23889 sed -e '/start of cpp stuff/q' \
23890 < Makefile.c > junk1.c
23891 sed -e '1,/start of cpp stuff/d'\
23892 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23893 < Makefile.c > junk.c
23894 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23895 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23896 cat junk1.c junk2.c > Makefile.new
23897 rm -f junk.c junk1.c junk2.c
23898 chmod 444 Makefile.new
23899 mv -f Makefile.new Makefile
23900 )
23901
23902 echo creating src/Makefile
23903 ( cd src
23904 rm -f junk.c junk1.c junk2.c
23905 sed -e '/start of cpp stuff/q' \
23906 < Makefile.c > junk1.c
23907 sed -e '1,/start of cpp stuff/d'\
23908 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23909 < Makefile.c > junk.c
23910 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23911 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23912 cat junk1.c junk2.c > Makefile.new
23913 rm -f junk.c junk1.c junk2.c
23914 chmod 444 Makefile.new
23915 mv -f Makefile.new Makefile
23916 )
23917
23918 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23919 echo creating src/.gdbinit
23920 echo source $srcdir/src/.gdbinit > src/.gdbinit
23921 fi
23922
23923 # This is how we know whether to re-run configure in certain cases.
23924 touch src/config.stamp
23925
23926 ;;
23927 esac
23928 done
23929 _ACEOF
23930
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23932
23933 { (exit 0); exit 0; }
23934 _ACEOF
23935 chmod +x $CONFIG_STATUS
23936 ac_clean_files=$ac_clean_files_save
23937
23938
23939 # configure is writing to config.log, and then calls config.status.
23940 # config.status does its own redirection, appending to config.log.
23941 # Unfortunately, on DOS this fails, as config.log is still kept open
23942 # by configure, so config.status won't be able to write to it; its
23943 # output is simply discarded. So we exec the FD to /dev/null,
23944 # effectively closing config.log, so it can be properly (re)opened and
23945 # appended to by config.status. When coming back to configure, we
23946 # need to make the FD available again.
23947 if test "$no_create" != yes; then
23948 ac_cs_success=:
23949 ac_config_status_args=
23950 test "$silent" = yes &&
23951 ac_config_status_args="$ac_config_status_args --quiet"
23952 exec 5>/dev/null
23953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23954 exec 5>>config.log
23955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23956 # would make configure fail if this is the last instruction.
23957 $ac_cs_success || { (exit 1); exit 1; }
23958 fi
23959
23960