Merged from miles@gnu.org--gnu-2005 (patch 182-184, 691-699)
[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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG 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
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679 # On Suns, sometimes $CPP names a directory.
3680 if test -n "$CPP" && test -d "$CPP"; then
3681 CPP=
3682 fi
3683 if test -z "$CPP"; then
3684 if test "${ac_cv_prog_CPP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 # Double quotes because CPP needs to be expanded
3688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689 do
3690 ac_preproc_ok=false
3691 for ac_c_preproc_warn_flag in '' yes
3692 do
3693 # Use a header file that comes with gcc, so configuring glibc
3694 # with a fresh cross-compiler works.
3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 # <limits.h> exists even on freestanding compilers.
3697 # On the NeXT, cc -E runs the code through the compiler's parser,
3698 # not just through cpp. "Syntax error" is here to catch this case.
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #ifdef __STDC__
3706 # include <limits.h>
3707 #else
3708 # include <assert.h>
3709 #endif
3710 Syntax error
3711 _ACEOF
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723 else
3724 ac_cpp_err=
3725 fi
3726 else
3727 ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730 :
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 # Broken: fails on valid input.
3736 continue
3737 fi
3738 rm -f conftest.err conftest.$ac_ext
3739
3740 # OK, works on sane cases. Now check whether non-existent headers
3741 # can be detected and how.
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3749 _ACEOF
3750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
3760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761 else
3762 ac_cpp_err=
3763 fi
3764 else
3765 ac_cpp_err=yes
3766 fi
3767 if test -z "$ac_cpp_err"; then
3768 # Broken: success on invalid input.
3769 continue
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3777 fi
3778 rm -f conftest.err conftest.$ac_ext
3779
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then
3784 break
3785 fi
3786
3787 done
3788 ac_cv_prog_CPP=$CPP
3789
3790 fi
3791 CPP=$ac_cv_prog_CPP
3792 else
3793 ac_cv_prog_CPP=$CPP
3794 fi
3795 echo "$as_me:$LINENO: result: $CPP" >&5
3796 echo "${ECHO_T}$CPP" >&6
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3799 do
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #ifdef __STDC__
3813 # include <limits.h>
3814 #else
3815 # include <assert.h>
3816 #endif
3817 Syntax error
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830 else
3831 ac_cpp_err=
3832 fi
3833 else
3834 ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837 :
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 # Broken: fails on valid input.
3843 continue
3844 fi
3845 rm -f conftest.err conftest.$ac_ext
3846
3847 # OK, works on sane cases. Now check whether non-existent headers
3848 # can be detected and how.
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3856 _ACEOF
3857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null; then
3865 if test -s conftest.err; then
3866 ac_cpp_err=$ac_c_preproc_warn_flag
3867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 else
3869 ac_cpp_err=
3870 fi
3871 else
3872 ac_cpp_err=yes
3873 fi
3874 if test -z "$ac_cpp_err"; then
3875 # Broken: success on invalid input.
3876 continue
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3884 fi
3885 rm -f conftest.err conftest.$ac_ext
3886
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then
3891 :
3892 else
3893 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&5
3895 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details." >&2;}
3897 { (exit 1); exit 1; }; }
3898 fi
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906
3907 echo "$as_me:$LINENO: checking for egrep" >&5
3908 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3909 if test "${ac_cv_prog_egrep+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3913 then ac_cv_prog_egrep='grep -E'
3914 else ac_cv_prog_egrep='egrep'
3915 fi
3916 fi
3917 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3918 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3919 EGREP=$ac_cv_prog_egrep
3920
3921
3922
3923 echo "$as_me:$LINENO: checking for AIX" >&5
3924 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #ifdef _AIX
3932 yes
3933 #endif
3934
3935 _ACEOF
3936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "yes" >/dev/null 2>&1; then
3938 echo "$as_me:$LINENO: result: yes" >&5
3939 echo "${ECHO_T}yes" >&6
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _ALL_SOURCE 1
3942 _ACEOF
3943
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948 rm -f conftest*
3949
3950
3951
3952 cat >>confdefs.h <<\_ACEOF
3953 #define _GNU_SOURCE 1
3954 _ACEOF
3955
3956
3957
3958 ### Use -Wno-pointer-sign if the compiler supports it
3959 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3960 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3961 SAVE_CFLAGS="$CFLAGS"
3962 CFLAGS="$CFLAGS -Wno-pointer-sign"
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969
3970 int
3971 main ()
3972 {
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 has_option=yes
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 has_option=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 if test $has_option = yes; then
4008 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4009 fi
4010 echo "$as_me:$LINENO: result: $has_option" >&5
4011 echo "${ECHO_T}$has_option" >&6
4012 CFLAGS="$SAVE_CFLAGS"
4013 unset has_option
4014 unset SAVE_CFLAGS
4015
4016 #### Some other nice autoconf tests.
4017
4018 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4019 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4020 LN_S=$as_ln_s
4021 if test "$LN_S" = "ln -s"; then
4022 echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6
4024 else
4025 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4026 echo "${ECHO_T}no, using $LN_S" >&6
4027 fi
4028
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4035 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4036 # On Suns, sometimes $CPP names a directory.
4037 if test -n "$CPP" && test -d "$CPP"; then
4038 CPP=
4039 fi
4040 if test -z "$CPP"; then
4041 if test "${ac_cv_prog_CPP+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 # Double quotes because CPP needs to be expanded
4045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046 do
4047 ac_preproc_ok=false
4048 for ac_c_preproc_warn_flag in '' yes
4049 do
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 # <limits.h> exists even on freestanding compilers.
4054 # On the NeXT, cc -E runs the code through the compiler's parser,
4055 # not just through cpp. "Syntax error" is here to catch this case.
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067 Syntax error
4068 _ACEOF
4069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } >/dev/null; then
4077 if test -s conftest.err; then
4078 ac_cpp_err=$ac_c_preproc_warn_flag
4079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4080 else
4081 ac_cpp_err=
4082 fi
4083 else
4084 ac_cpp_err=yes
4085 fi
4086 if test -z "$ac_cpp_err"; then
4087 :
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 # Broken: fails on valid input.
4093 continue
4094 fi
4095 rm -f conftest.err conftest.$ac_ext
4096
4097 # OK, works on sane cases. Now check whether non-existent headers
4098 # can be detected and how.
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h. */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <ac_nonexistent.h>
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118 else
4119 ac_cpp_err=
4120 fi
4121 else
4122 ac_cpp_err=yes
4123 fi
4124 if test -z "$ac_cpp_err"; then
4125 # Broken: success on invalid input.
4126 continue
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 # Passes both tests.
4132 ac_preproc_ok=:
4133 break
4134 fi
4135 rm -f conftest.err conftest.$ac_ext
4136
4137 done
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.err conftest.$ac_ext
4140 if $ac_preproc_ok; then
4141 break
4142 fi
4143
4144 done
4145 ac_cv_prog_CPP=$CPP
4146
4147 fi
4148 CPP=$ac_cv_prog_CPP
4149 else
4150 ac_cv_prog_CPP=$CPP
4151 fi
4152 echo "$as_me:$LINENO: result: $CPP" >&5
4153 echo "${ECHO_T}$CPP" >&6
4154 ac_preproc_ok=false
4155 for ac_c_preproc_warn_flag in '' yes
4156 do
4157 # Use a header file that comes with gcc, so configuring glibc
4158 # with a fresh cross-compiler works.
4159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4160 # <limits.h> exists even on freestanding compilers.
4161 # On the NeXT, cc -E runs the code through the compiler's parser,
4162 # not just through cpp. "Syntax error" is here to catch this case.
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev/null; then
4184 if test -s conftest.err; then
4185 ac_cpp_err=$ac_c_preproc_warn_flag
4186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4187 else
4188 ac_cpp_err=
4189 fi
4190 else
4191 ac_cpp_err=yes
4192 fi
4193 if test -z "$ac_cpp_err"; then
4194 :
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 # Broken: fails on valid input.
4200 continue
4201 fi
4202 rm -f conftest.err conftest.$ac_ext
4203
4204 # OK, works on sane cases. Now check whether non-existent headers
4205 # can be detected and how.
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <ac_nonexistent.h>
4213 _ACEOF
4214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null; then
4222 if test -s conftest.err; then
4223 ac_cpp_err=$ac_c_preproc_warn_flag
4224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4225 else
4226 ac_cpp_err=
4227 fi
4228 else
4229 ac_cpp_err=yes
4230 fi
4231 if test -z "$ac_cpp_err"; then
4232 # Broken: success on invalid input.
4233 continue
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # Passes both tests.
4239 ac_preproc_ok=:
4240 break
4241 fi
4242 rm -f conftest.err conftest.$ac_ext
4243
4244 done
4245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246 rm -f conftest.err conftest.$ac_ext
4247 if $ac_preproc_ok; then
4248 :
4249 else
4250 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4251 See \`config.log' for more details." >&5
4252 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4253 See \`config.log' for more details." >&2;}
4254 { (exit 1); exit 1; }; }
4255 fi
4256
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263 # Find a good install program. We prefer a C program (faster),
4264 # so one script is as good as another. But avoid the broken or
4265 # incompatible versions:
4266 # SysV /etc/install, /usr/sbin/install
4267 # SunOS /usr/etc/install
4268 # IRIX /sbin/install
4269 # AIX /bin/install
4270 # AmigaOS /C/install, which installs bootblocks on floppy discs
4271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4274 # OS/2's system install, which has a completely different semantic
4275 # ./install, which can be erroneously created by make from ./install.sh.
4276 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4277 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4278 if test -z "$INSTALL"; then
4279 if test "${ac_cv_path_install+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 # Account for people who put trailing slashes in PATH elements.
4288 case $as_dir/ in
4289 ./ | .// | /cC/* | \
4290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4291 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4292 /usr/ucb/* ) ;;
4293 *)
4294 # OSF1 and SCO ODT 3.0 have their own names for install.
4295 # Don't use installbsd from OSF since it installs stuff as root
4296 # by default.
4297 for ac_prog in ginstall scoinst install; do
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4300 if test $ac_prog = install &&
4301 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4302 # AIX install. It has an incompatible calling convention.
4303 :
4304 elif test $ac_prog = install &&
4305 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4306 # program-specific install script used by HP pwplus--don't use.
4307 :
4308 else
4309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4310 break 3
4311 fi
4312 fi
4313 done
4314 done
4315 ;;
4316 esac
4317 done
4318
4319
4320 fi
4321 if test "${ac_cv_path_install+set}" = set; then
4322 INSTALL=$ac_cv_path_install
4323 else
4324 # As a last resort, use the slow shell script. We don't cache a
4325 # path for INSTALL within a source directory, because that will
4326 # break other packages using the cache if that directory is
4327 # removed, or if the path is relative.
4328 INSTALL=$ac_install_sh
4329 fi
4330 fi
4331 echo "$as_me:$LINENO: result: $INSTALL" >&5
4332 echo "${ECHO_T}$INSTALL" >&6
4333
4334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4335 # It thinks the first close brace ends the variable substitution.
4336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4337
4338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4339
4340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4341
4342 if test "x$RANLIB" = x; then
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4346 echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348 if test "${ac_cv_prog_RANLIB+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 if test -n "$RANLIB"; then
4352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365 done
4366 done
4367
4368 fi
4369 fi
4370 RANLIB=$ac_cv_prog_RANLIB
4371 if test -n "$RANLIB"; then
4372 echo "$as_me:$LINENO: result: $RANLIB" >&5
4373 echo "${ECHO_T}$RANLIB" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6
4377 fi
4378
4379 fi
4380 if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383 set dummy ranlib; ac_word=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_ac_ct_RANLIB="ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405
4406 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4407 fi
4408 fi
4409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4410 if test -n "$ac_ct_RANLIB"; then
4411 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4413 else
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 fi
4417
4418 RANLIB=$ac_ct_RANLIB
4419 else
4420 RANLIB="$ac_cv_prog_RANLIB"
4421 fi
4422
4423 fi
4424 # Extract the first word of "install-info", so it can be a program name with args.
4425 set dummy install-info; ac_word=$2
4426 echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 case $INSTALL_INFO in
4432 [\\/]* | ?:[\\/]*)
4433 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4434 ;;
4435 *)
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449
4450 ;;
4451 esac
4452 fi
4453 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4454
4455 if test -n "$INSTALL_INFO"; then
4456 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4457 echo "${ECHO_T}$INSTALL_INFO" >&6
4458 else
4459 echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4461 fi
4462
4463 # Extract the first word of "install-info", so it can be a program name with args.
4464 set dummy install-info; ac_word=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 case $INSTALL_INFO in
4471 [\\/]* | ?:[\\/]*)
4472 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4473 ;;
4474 *)
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in /usr/sbin
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488
4489 ;;
4490 esac
4491 fi
4492 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4493
4494 if test -n "$INSTALL_INFO"; then
4495 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4496 echo "${ECHO_T}$INSTALL_INFO" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4500 fi
4501
4502 # Extract the first word of "install-info", so it can be a program name with args.
4503 set dummy install-info; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 case $INSTALL_INFO in
4510 [\\/]* | ?:[\\/]*)
4511 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4512 ;;
4513 *)
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in /sbin
4516 do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525 done
4526 done
4527
4528 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4529 ;;
4530 esac
4531 fi
4532 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4533
4534 if test -n "$INSTALL_INFO"; then
4535 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4536 echo "${ECHO_T}$INSTALL_INFO" >&6
4537 else
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4540 fi
4541
4542 # Extract the first word of "gzip", so it can be a program name with args.
4543 set dummy gzip; ac_word=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 case $GZIP_PROG in
4550 [\\/]* | ?:[\\/]*)
4551 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4552 ;;
4553 *)
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567
4568 ;;
4569 esac
4570 fi
4571 GZIP_PROG=$ac_cv_path_GZIP_PROG
4572
4573 if test -n "$GZIP_PROG"; then
4574 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4575 echo "${ECHO_T}$GZIP_PROG" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582
4583 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4584 then
4585 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4586 fi
4587
4588 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4589 then
4590 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4591 fi
4592
4593
4594 late_LDFLAGS=$LDFLAGS
4595 if test "$GCC" = yes; then
4596 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4597 else
4598 LDFLAGS="$LDFLAGS -znocombreloc"
4599 fi
4600
4601 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4602 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 main(){return 0;}
4605 _ACEOF
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4608 (eval $ac_link) 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628 echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 LDFLAGS=$late_LDFLAGS
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637 rm -f conftest.err conftest.$ac_objext \
4638 conftest$ac_exeext conftest.$ac_ext
4639
4640 #### Extract some information from the operating system and machine files.
4641
4642 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4643 - which libraries the lib-src programs will want, and
4644 - whether the GNU malloc routines are usable..." >&5
4645 echo "$as_me: checking the machine- and system-dependent files to find out
4646 - which libraries the lib-src programs will want, and
4647 - whether the GNU malloc routines are usable..." >&6;}
4648
4649 ### First figure out CFLAGS (which we use for running the compiler here)
4650 ### and REAL_CFLAGS (which we use for real compilation).
4651 ### The two are the same except on a few systems, where they are made
4652 ### different to work around various lossages. For example,
4653 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4654 ### as implying static linking.
4655
4656 ### If the CFLAGS env var is specified, we use that value
4657 ### instead of the default.
4658
4659 ### It's not important that this name contain the PID; you can't run
4660 ### two configures in the same directory and have anything work
4661 ### anyway.
4662 tempcname="conftest.c"
4663
4664 echo '
4665 #include "'${srcdir}'/src/'${opsysfile}'"
4666 #include "'${srcdir}'/src/'${machfile}'"
4667 #ifndef LIBS_MACHINE
4668 #define LIBS_MACHINE
4669 #endif
4670 #ifndef LIBS_SYSTEM
4671 #define LIBS_SYSTEM
4672 #endif
4673 #ifndef C_SWITCH_SYSTEM
4674 #define C_SWITCH_SYSTEM
4675 #endif
4676 #ifndef C_SWITCH_MACHINE
4677 #define C_SWITCH_MACHINE
4678 #endif
4679 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4680 configure___ c_switch_system=C_SWITCH_SYSTEM
4681 configure___ c_switch_machine=C_SWITCH_MACHINE
4682
4683 #ifndef LIB_X11_LIB
4684 #define LIB_X11_LIB -lX11
4685 #endif
4686
4687 #ifndef LIBX11_MACHINE
4688 #define LIBX11_MACHINE
4689 #endif
4690
4691 #ifndef LIBX11_SYSTEM
4692 #define LIBX11_SYSTEM
4693 #endif
4694 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4695
4696 #ifdef UNEXEC
4697 configure___ unexec=UNEXEC
4698 #else
4699 configure___ unexec=unexec.o
4700 #endif
4701
4702 #ifdef SYSTEM_MALLOC
4703 configure___ system_malloc=yes
4704 #else
4705 configure___ system_malloc=no
4706 #endif
4707
4708 #ifdef USE_MMAP_FOR_BUFFERS
4709 configure___ use_mmap_for_buffers=yes
4710 #else
4711 configure___ use_mmap_for_buffers=no
4712 #endif
4713
4714 #ifndef C_DEBUG_SWITCH
4715 #define C_DEBUG_SWITCH -g
4716 #endif
4717
4718 #ifndef C_OPTIMIZE_SWITCH
4719 #ifdef __GNUC__
4720 #define C_OPTIMIZE_SWITCH -O2
4721 #else
4722 #define C_OPTIMIZE_SWITCH -O
4723 #endif
4724 #endif
4725
4726 #ifndef C_WARNINGS_SWITCH
4727 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4728 #endif
4729
4730 #ifndef LD_SWITCH_MACHINE
4731 #define LD_SWITCH_MACHINE
4732 #endif
4733
4734 #ifndef LD_SWITCH_SYSTEM
4735 #define LD_SWITCH_SYSTEM
4736 #endif
4737
4738 #ifndef LD_SWITCH_X_SITE_AUX
4739 #define LD_SWITCH_X_SITE_AUX
4740 #endif
4741
4742 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4743 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4744
4745 #ifdef THIS_IS_CONFIGURE
4746
4747 /* Get the CFLAGS for tests in configure. */
4748 #ifdef __GNUC__
4749 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4750 #else
4751 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4752 #endif
4753
4754 #else /* not THIS_IS_CONFIGURE */
4755
4756 /* Get the CFLAGS for real compilation. */
4757 #ifdef __GNUC__
4758 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4759 #else
4760 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4761 #endif
4762
4763 #endif /* not THIS_IS_CONFIGURE */
4764 ' > ${tempcname}
4765
4766 # The value of CPP is a quoted variable reference, so we need to do this
4767 # to get its actual value...
4768 CPP=`eval "echo $CPP"`
4769 eval `${CPP} -Isrc ${tempcname} \
4770 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4771 if test "x$SPECIFIED_CFLAGS" = x; then
4772 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4773 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4774 else
4775 REAL_CFLAGS="$CFLAGS"
4776 fi
4777 rm ${tempcname}
4778
4779 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4780
4781 ### Make sure subsequent tests use flags consistent with the build flags.
4782
4783 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4784 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4785 else
4786 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4787 fi
4788
4789
4790
4791 # Check whether --enable-largefile or --disable-largefile was given.
4792 if test "${enable_largefile+set}" = set; then
4793 enableval="$enable_largefile"
4794
4795 fi;
4796 if test "$enable_largefile" != no; then
4797
4798 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4799 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4800 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 ac_cv_sys_largefile_CC=no
4804 if test "$GCC" != yes; then
4805 ac_save_CC=$CC
4806 while :; do
4807 # IRIX 6.2 and later do not support large files by default,
4808 # so use the C compiler's -n32 option if that helps.
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4823 ? 1 : -1];
4824 int
4825 main ()
4826 {
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 break
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 fi
4859 rm -f conftest.err conftest.$ac_objext
4860 CC="$CC -n32"
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_cv_sys_largefile_CC=' -n32'; break
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 fi
4888 rm -f conftest.err conftest.$ac_objext
4889 break
4890 done
4891 CC=$ac_save_CC
4892 rm -f conftest.$ac_ext
4893 fi
4894 fi
4895 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4896 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4897 if test "$ac_cv_sys_largefile_CC" != no; then
4898 CC=$CC$ac_cv_sys_largefile_CC
4899 fi
4900
4901 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4902 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4903 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 while :; do
4907 ac_cv_sys_file_offset_bits=no
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4922 ? 1 : -1];
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 break
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 fi
4958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #define _FILE_OFFSET_BITS 64
4966 #include <sys/types.h>
4967 /* Check that off_t can represent 2**63 - 1 correctly.
4968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4969 since some C++ compilers masquerading as C compilers
4970 incorrectly reject 9223372036854775807. */
4971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4973 && LARGE_OFF_T % 2147483647 == 1)
4974 ? 1 : -1];
4975 int
4976 main ()
4977 {
4978
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_sys_file_offset_bits=64; break
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 fi
5010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 break
5012 done
5013 fi
5014 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5015 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5016 if test "$ac_cv_sys_file_offset_bits" != no; then
5017
5018 cat >>confdefs.h <<_ACEOF
5019 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5020 _ACEOF
5021
5022 fi
5023 rm -f conftest*
5024 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5025 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5026 if test "${ac_cv_sys_large_files+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 while :; do
5030 ac_cv_sys_large_files=no
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <sys/types.h>
5038 /* Check that off_t can represent 2**63 - 1 correctly.
5039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5040 since some C++ compilers masquerading as C compilers
5041 incorrectly reject 9223372036854775807. */
5042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5044 && LARGE_OFF_T % 2147483647 == 1)
5045 ? 1 : -1];
5046 int
5047 main ()
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 break
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 fi
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #define _LARGE_FILES 1
5089 #include <sys/types.h>
5090 /* Check that off_t can represent 2**63 - 1 correctly.
5091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5092 since some C++ compilers masquerading as C compilers
5093 incorrectly reject 9223372036854775807. */
5094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5096 && LARGE_OFF_T % 2147483647 == 1)
5097 ? 1 : -1];
5098 int
5099 main ()
5100 {
5101
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest.$ac_objext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 ac_cv_sys_large_files=1; break
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 fi
5133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134 break
5135 done
5136 fi
5137 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5138 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5139 if test "$ac_cv_sys_large_files" != no; then
5140
5141 cat >>confdefs.h <<_ACEOF
5142 #define _LARGE_FILES $ac_cv_sys_large_files
5143 _ACEOF
5144
5145 fi
5146 rm -f conftest*
5147 fi
5148
5149
5150 if test "${with_sound}" != "no"; then
5151 # Sound support for GNU/Linux and the free BSDs.
5152 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5154 if test "${ac_cv_header_stdc+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <stdlib.h>
5164 #include <stdarg.h>
5165 #include <string.h>
5166 #include <float.h>
5167
5168 int
5169 main ()
5170 {
5171
5172 ;
5173 return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178 (eval $ac_compile) 2>conftest.er1
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_header_stdc=yes
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ac_cv_header_stdc=no
5203 fi
5204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205
5206 if test $ac_cv_header_stdc = yes; then
5207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <string.h>
5215
5216 _ACEOF
5217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5218 $EGREP "memchr" >/dev/null 2>&1; then
5219 :
5220 else
5221 ac_cv_header_stdc=no
5222 fi
5223 rm -f conftest*
5224
5225 fi
5226
5227 if test $ac_cv_header_stdc = yes; then
5228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #include <stdlib.h>
5236
5237 _ACEOF
5238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5239 $EGREP "free" >/dev/null 2>&1; then
5240 :
5241 else
5242 ac_cv_header_stdc=no
5243 fi
5244 rm -f conftest*
5245
5246 fi
5247
5248 if test $ac_cv_header_stdc = yes; then
5249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5250 if test "$cross_compiling" = yes; then
5251 :
5252 else
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h. */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <ctype.h>
5260 #if ((' ' & 0x0FF) == 0x020)
5261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5263 #else
5264 # define ISLOWER(c) \
5265 (('a' <= (c) && (c) <= 'i') \
5266 || ('j' <= (c) && (c) <= 'r') \
5267 || ('s' <= (c) && (c) <= 'z'))
5268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5269 #endif
5270
5271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5272 int
5273 main ()
5274 {
5275 int i;
5276 for (i = 0; i < 256; i++)
5277 if (XOR (islower (i), ISLOWER (i))
5278 || toupper (i) != TOUPPER (i))
5279 exit(2);
5280 exit (0);
5281 }
5282 _ACEOF
5283 rm -f conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 :
5295 else
5296 echo "$as_me: program exited with status $ac_status" >&5
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300 ( exit $ac_status )
5301 ac_cv_header_stdc=no
5302 fi
5303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 fi
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5309 if test $ac_cv_header_stdc = yes; then
5310
5311 cat >>confdefs.h <<\_ACEOF
5312 #define STDC_HEADERS 1
5313 _ACEOF
5314
5315 fi
5316
5317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5328 inttypes.h stdint.h unistd.h
5329 do
5330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 echo "$as_me:$LINENO: checking for $ac_header" >&5
5332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5343
5344 #include <$ac_header>
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 eval "$as_ac_Header=yes"
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 eval "$as_ac_Header=no"
5373 fi
5374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375 fi
5376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5379 cat >>confdefs.h <<_ACEOF
5380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381 _ACEOF
5382
5383 fi
5384
5385 done
5386
5387
5388
5389
5390
5391 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5392 do
5393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5395 echo "$as_me:$LINENO: checking for $ac_header" >&5
5396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 fi
5400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5402 else
5403 # Is the header compilable?
5404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5413 #include <$ac_header>
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; } &&
5430 { ac_try='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_header_compiler=yes
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_header_compiler=no
5442 fi
5443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5445 echo "${ECHO_T}$ac_header_compiler" >&6
5446
5447 # Is the header present?
5448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <$ac_header>
5457 _ACEOF
5458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev/null; then
5466 if test -s conftest.err; then
5467 ac_cpp_err=$ac_c_preproc_warn_flag
5468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5469 else
5470 ac_cpp_err=
5471 fi
5472 else
5473 ac_cpp_err=yes
5474 fi
5475 if test -z "$ac_cpp_err"; then
5476 ac_header_preproc=yes
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ac_header_preproc=no
5482 fi
5483 rm -f conftest.err conftest.$ac_ext
5484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5485 echo "${ECHO_T}$ac_header_preproc" >&6
5486
5487 # So? What about this header?
5488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5489 yes:no: )
5490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5494 ac_header_preproc=yes
5495 ;;
5496 no:yes:* )
5497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5509 (
5510 cat <<\_ASBOX
5511 ## ------------------------------------------ ##
5512 ## Report this to the AC_PACKAGE_NAME lists. ##
5513 ## ------------------------------------------ ##
5514 _ASBOX
5515 ) |
5516 sed "s/^/$as_me: WARNING: /" >&2
5517 ;;
5518 esac
5519 echo "$as_me:$LINENO: checking for $ac_header" >&5
5520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 eval "$as_ac_Header=\$ac_header_preproc"
5525 fi
5526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528
5529 fi
5530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5531 cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 _ACEOF
5534
5535 fi
5536
5537 done
5538
5539 # Emulation library used on NetBSD.
5540 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5541 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5542 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 ac_check_lib_save_LIBS=$LIBS
5546 LIBS="-lossaudio $LIBS"
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h. */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553
5554 /* Override any gcc2 internal prototype to avoid an error. */
5555 #ifdef __cplusplus
5556 extern "C"
5557 #endif
5558 /* We use char because int might match the return type of a gcc2
5559 builtin and then its argument prototype would still apply. */
5560 char _oss_ioctl ();
5561 int
5562 main ()
5563 {
5564 _oss_ioctl ();
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext conftest$ac_exeext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; } &&
5584 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5590 ac_cv_lib_ossaudio__oss_ioctl=yes
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 ac_cv_lib_ossaudio__oss_ioctl=no
5596 fi
5597 rm -f conftest.err conftest.$ac_objext \
5598 conftest$ac_exeext conftest.$ac_ext
5599 LIBS=$ac_check_lib_save_LIBS
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5602 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5603 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5604 LIBSOUND=-lossaudio
5605 else
5606 LIBSOUND=
5607 fi
5608
5609
5610 fi
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5638 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5639 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5640 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5641 sys/utsname.h pwd.h
5642 do
5643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5645 echo "$as_me:$LINENO: checking for $ac_header" >&5
5646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 else
5653 # Is the header compilable?
5654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_header_compiler=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 ac_header_compiler=no
5692 fi
5693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5695 echo "${ECHO_T}$ac_header_compiler" >&6
5696
5697 # Is the header present?
5698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <$ac_header>
5707 _ACEOF
5708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null; then
5716 if test -s conftest.err; then
5717 ac_cpp_err=$ac_c_preproc_warn_flag
5718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5719 else
5720 ac_cpp_err=
5721 fi
5722 else
5723 ac_cpp_err=yes
5724 fi
5725 if test -z "$ac_cpp_err"; then
5726 ac_header_preproc=yes
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_header_preproc=no
5732 fi
5733 rm -f conftest.err conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5735 echo "${ECHO_T}$ac_header_preproc" >&6
5736
5737 # So? What about this header?
5738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5739 yes:no: )
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5744 ac_header_preproc=yes
5745 ;;
5746 no:yes:* )
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5759 (
5760 cat <<\_ASBOX
5761 ## ------------------------------------------ ##
5762 ## Report this to the AC_PACKAGE_NAME lists. ##
5763 ## ------------------------------------------ ##
5764 _ASBOX
5765 ) |
5766 sed "s/^/$as_me: WARNING: /" >&2
5767 ;;
5768 esac
5769 echo "$as_me:$LINENO: checking for $ac_header" >&5
5770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 eval "$as_ac_Header=\$ac_header_preproc"
5775 fi
5776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5778
5779 fi
5780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5781 cat >>confdefs.h <<_ACEOF
5782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5783 _ACEOF
5784
5785 fi
5786
5787 done
5788
5789
5790 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5791 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #include <sys/personality.h>
5799 int
5800 main ()
5801 {
5802 personality (PER_LINUX32)
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 emacs_cv_personality_linux32=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 emacs_cv_personality_linux32=no
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5837 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5838
5839 if test $emacs_cv_personality_linux32 = yes; then
5840
5841 cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_PERSONALITY_LINUX32 1
5843 _ACEOF
5844
5845 fi
5846
5847
5848 for ac_header in term.h
5849 do
5850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 echo "$as_me:$LINENO: checking for $ac_header" >&5
5852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5863 _ACEOF
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null; then
5872 if test -s conftest.err; then
5873 ac_cpp_err=$ac_c_preproc_warn_flag
5874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5875 else
5876 ac_cpp_err=
5877 fi
5878 else
5879 ac_cpp_err=yes
5880 fi
5881 if test -z "$ac_cpp_err"; then
5882 eval "$as_ac_Header=yes"
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 eval "$as_ac_Header=no"
5888 fi
5889 rm -f conftest.err conftest.$ac_ext
5890 fi
5891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5894 cat >>confdefs.h <<_ACEOF
5895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5896 _ACEOF
5897
5898 fi
5899
5900 done
5901
5902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5904 if test "${ac_cv_header_stdc+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #include <stdlib.h>
5914 #include <stdarg.h>
5915 #include <string.h>
5916 #include <float.h>
5917
5918 int
5919 main ()
5920 {
5921
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 ac_cv_header_stdc=yes
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_cv_header_stdc=no
5953 fi
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955
5956 if test $ac_cv_header_stdc = yes; then
5957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <string.h>
5965
5966 _ACEOF
5967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968 $EGREP "memchr" >/dev/null 2>&1; then
5969 :
5970 else
5971 ac_cv_header_stdc=no
5972 fi
5973 rm -f conftest*
5974
5975 fi
5976
5977 if test $ac_cv_header_stdc = yes; then
5978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <stdlib.h>
5986
5987 _ACEOF
5988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5989 $EGREP "free" >/dev/null 2>&1; then
5990 :
5991 else
5992 ac_cv_header_stdc=no
5993 fi
5994 rm -f conftest*
5995
5996 fi
5997
5998 if test $ac_cv_header_stdc = yes; then
5999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6000 if test "$cross_compiling" = yes; then
6001 :
6002 else
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #include <ctype.h>
6010 #if ((' ' & 0x0FF) == 0x020)
6011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6013 #else
6014 # define ISLOWER(c) \
6015 (('a' <= (c) && (c) <= 'i') \
6016 || ('j' <= (c) && (c) <= 'r') \
6017 || ('s' <= (c) && (c) <= 'z'))
6018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6019 #endif
6020
6021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6022 int
6023 main ()
6024 {
6025 int i;
6026 for (i = 0; i < 256; i++)
6027 if (XOR (islower (i), ISLOWER (i))
6028 || toupper (i) != TOUPPER (i))
6029 exit(2);
6030 exit (0);
6031 }
6032 _ACEOF
6033 rm -f conftest$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035 (eval $ac_link) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 :
6045 else
6046 echo "$as_me: program exited with status $ac_status" >&5
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ( exit $ac_status )
6051 ac_cv_header_stdc=no
6052 fi
6053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6054 fi
6055 fi
6056 fi
6057 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6059 if test $ac_cv_header_stdc = yes; then
6060
6061 cat >>confdefs.h <<\_ACEOF
6062 #define STDC_HEADERS 1
6063 _ACEOF
6064
6065 fi
6066
6067 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6068 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6069 if test "${ac_cv_header_time+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 #include <sys/types.h>
6079 #include <sys/time.h>
6080 #include <time.h>
6081
6082 int
6083 main ()
6084 {
6085 if ((struct tm *) 0)
6086 return 0;
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_header_time=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_header_time=no
6118 fi
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6122 echo "${ECHO_T}$ac_cv_header_time" >&6
6123 if test $ac_cv_header_time = yes; then
6124
6125 cat >>confdefs.h <<\_ACEOF
6126 #define TIME_WITH_SYS_TIME 1
6127 _ACEOF
6128
6129 fi
6130
6131 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6132 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6133 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6143 int
6144 main ()
6145 {
6146 #ifndef sys_siglist
6147 char *p = (char *) sys_siglist;
6148 #endif
6149
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 ac_cv_have_decl_sys_siglist=yes
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 ac_cv_have_decl_sys_siglist=no
6181 fi
6182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6185 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6186 if test $ac_cv_have_decl_sys_siglist = yes; then
6187
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_DECL_SYS_SIGLIST 1
6190 _ACEOF
6191
6192
6193 else
6194 cat >>confdefs.h <<_ACEOF
6195 #define HAVE_DECL_SYS_SIGLIST 0
6196 _ACEOF
6197
6198
6199 fi
6200
6201
6202 if test $ac_cv_have_decl_sys_siglist != yes; then
6203 # For Tru64, at least:
6204 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6205 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6206 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 $ac_includes_default
6216 int
6217 main ()
6218 {
6219 #ifndef __sys_siglist
6220 char *p = (char *) __sys_siglist;
6221 #endif
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 rm -f conftest.$ac_objext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_have_decl___sys_siglist=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 ac_cv_have_decl___sys_siglist=no
6254 fi
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6258 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6259 if test $ac_cv_have_decl___sys_siglist = yes; then
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define HAVE_DECL___SYS_SIGLIST 1
6263 _ACEOF
6264
6265
6266 else
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_DECL___SYS_SIGLIST 0
6269 _ACEOF
6270
6271
6272 fi
6273
6274
6275 if test $ac_cv_have_decl___sys_siglist = yes; then
6276
6277 cat >>confdefs.h <<\_ACEOF
6278 #define sys_siglist __sys_siglist
6279 _ACEOF
6280
6281 fi
6282 fi
6283 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6284 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6285 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <sys/types.h>
6295 #include <sys/wait.h>
6296 #ifndef WEXITSTATUS
6297 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6298 #endif
6299 #ifndef WIFEXITED
6300 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6301 #endif
6302
6303 int
6304 main ()
6305 {
6306 int s;
6307 wait (&s);
6308 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest.$ac_objext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_header_sys_wait_h=yes
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_cv_header_sys_wait_h=no
6340 fi
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6342 fi
6343 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6344 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6345 if test $ac_cv_header_sys_wait_h = yes; then
6346
6347 cat >>confdefs.h <<\_ACEOF
6348 #define HAVE_SYS_WAIT_H 1
6349 _ACEOF
6350
6351 fi
6352
6353
6354 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6355 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6356 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #ifdef TIME_WITH_SYS_TIME
6366 #include <sys/time.h>
6367 #include <time.h>
6368 #else
6369 #ifdef HAVE_SYS_TIME_H
6370 #include <sys/time.h>
6371 #else
6372 #include <time.h>
6373 #endif
6374 #endif
6375 #ifdef HAVE_UTIME_H
6376 #include <utime.h>
6377 #endif
6378 int
6379 main ()
6380 {
6381 static struct utimbuf x; x.actime = x.modtime;
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 emacs_cv_struct_utimbuf=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 emacs_cv_struct_utimbuf=no
6413 fi
6414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415 fi
6416 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6417 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6418 if test $emacs_cv_struct_utimbuf = yes; then
6419
6420 cat >>confdefs.h <<\_ACEOF
6421 #define HAVE_STRUCT_UTIMBUF 1
6422 _ACEOF
6423
6424 fi
6425
6426 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6427 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6428 if test "${ac_cv_type_signal+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <signal.h>
6439 #ifdef signal
6440 # undef signal
6441 #endif
6442 #ifdef __cplusplus
6443 extern "C" void (*signal (int, void (*)(int)))(int);
6444 #else
6445 void (*signal ()) ();
6446 #endif
6447
6448 int
6449 main ()
6450 {
6451 int i;
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_type_signal=void
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_type_signal=int
6483 fi
6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6487 echo "${ECHO_T}$ac_cv_type_signal" >&6
6488
6489 cat >>confdefs.h <<_ACEOF
6490 #define RETSIGTYPE $ac_cv_type_signal
6491 _ACEOF
6492
6493
6494
6495 echo "$as_me:$LINENO: checking for speed_t" >&5
6496 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6497 if test "${emacs_cv_speed_t+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 #include <termios.h>
6507 int
6508 main ()
6509 {
6510 speed_t x = 1;
6511 ;
6512 return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 emacs_cv_speed_t=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 emacs_cv_speed_t=no
6542 fi
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6546 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6547 if test $emacs_cv_speed_t = yes; then
6548
6549 cat >>confdefs.h <<\_ACEOF
6550 #define HAVE_SPEED_T 1
6551 _ACEOF
6552
6553 fi
6554
6555 echo "$as_me:$LINENO: checking for struct timeval" >&5
6556 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6557 if test "${emacs_cv_struct_timeval+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #ifdef TIME_WITH_SYS_TIME
6567 #include <sys/time.h>
6568 #include <time.h>
6569 #else
6570 #ifdef HAVE_SYS_TIME_H
6571 #include <sys/time.h>
6572 #else
6573 #include <time.h>
6574 #endif
6575 #endif
6576 int
6577 main ()
6578 {
6579 static struct timeval x; x.tv_sec = x.tv_usec;
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 (eval $ac_try) 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; } &&
6599 { ac_try='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 emacs_cv_struct_timeval=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 emacs_cv_struct_timeval=no
6611 fi
6612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 fi
6614 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6615 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6616 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6617 if test $emacs_cv_struct_timeval = yes; then
6618
6619 cat >>confdefs.h <<\_ACEOF
6620 #define HAVE_TIMEVAL 1
6621 _ACEOF
6622
6623 fi
6624
6625 echo "$as_me:$LINENO: checking for struct exception" >&5
6626 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6627 if test "${emacs_cv_struct_exception+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 #include <math.h>
6637 int
6638 main ()
6639 {
6640 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6641 ;
6642 return 0;
6643 }
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 emacs_cv_struct_exception=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 emacs_cv_struct_exception=no
6672 fi
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6676 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6677 HAVE_EXCEPTION=$emacs_cv_struct_exception
6678 if test $emacs_cv_struct_exception != yes; then
6679
6680 cat >>confdefs.h <<\_ACEOF
6681 #define NO_MATHERR 1
6682 _ACEOF
6683
6684 fi
6685
6686
6687 for ac_header in sys/socket.h
6688 do
6689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6691 echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 fi
6696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6698 else
6699 # Is the header compilable?
6700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 $ac_includes_default
6709 #include <$ac_header>
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_header_compiler=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 ac_header_compiler=no
6738 fi
6739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6741 echo "${ECHO_T}$ac_header_compiler" >&6
6742
6743 # Is the header present?
6744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <$ac_header>
6753 _ACEOF
6754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } >/dev/null; then
6762 if test -s conftest.err; then
6763 ac_cpp_err=$ac_c_preproc_warn_flag
6764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6765 else
6766 ac_cpp_err=
6767 fi
6768 else
6769 ac_cpp_err=yes
6770 fi
6771 if test -z "$ac_cpp_err"; then
6772 ac_header_preproc=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777 ac_header_preproc=no
6778 fi
6779 rm -f conftest.err conftest.$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6781 echo "${ECHO_T}$ac_header_preproc" >&6
6782
6783 # So? What about this header?
6784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6785 yes:no: )
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6790 ac_header_preproc=yes
6791 ;;
6792 no:yes:* )
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6805 (
6806 cat <<\_ASBOX
6807 ## ------------------------------------------ ##
6808 ## Report this to the AC_PACKAGE_NAME lists. ##
6809 ## ------------------------------------------ ##
6810 _ASBOX
6811 ) |
6812 sed "s/^/$as_me: WARNING: /" >&2
6813 ;;
6814 esac
6815 echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 eval "$as_ac_Header=\$ac_header_preproc"
6821 fi
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6824
6825 fi
6826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6827 cat >>confdefs.h <<_ACEOF
6828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6829 _ACEOF
6830
6831 fi
6832
6833 done
6834
6835
6836 for ac_header in net/if.h
6837 do
6838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 echo "$as_me:$LINENO: checking for $ac_header" >&5
6840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6851 #if HAVE_SYS_SOCKET_H
6852 #include <sys/socket.h>
6853 #endif
6854
6855 #include <$ac_header>
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>conftest.er1
6860 ac_status=$?
6861 grep -v '^ *+' conftest.er1 >conftest.err
6862 rm -f conftest.er1
6863 cat conftest.err >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; } &&
6872 { ac_try='test -s conftest.$ac_objext'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 eval "$as_ac_Header=yes"
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 eval "$as_ac_Header=no"
6884 fi
6885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6886 fi
6887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6890 cat >>confdefs.h <<_ACEOF
6891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6892 _ACEOF
6893
6894 fi
6895
6896 done
6897
6898
6899 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6900 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6901 if test "${ac_cv_struct_tm+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904 cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h. */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 #include <sys/types.h>
6911 #include <time.h>
6912
6913 int
6914 main ()
6915 {
6916 struct tm *tp; tp->tm_sec;
6917 ;
6918 return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_cv_struct_tm=time.h
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_cv_struct_tm=sys/time.h
6948 fi
6949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6952 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6953 if test $ac_cv_struct_tm = sys/time.h; then
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define TM_IN_SYS_TIME 1
6957 _ACEOF
6958
6959 fi
6960
6961 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6962 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6963 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <$ac_cv_struct_tm>
6974
6975
6976 int
6977 main ()
6978 {
6979 static struct tm ac_aggr;
6980 if (ac_aggr.tm_zone)
6981 return 0;
6982 ;
6983 return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_member_struct_tm_tm_zone=yes
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 #include <sys/types.h>
7019 #include <$ac_cv_struct_tm>
7020
7021
7022 int
7023 main ()
7024 {
7025 static struct tm ac_aggr;
7026 if (sizeof ac_aggr.tm_zone)
7027 return 0;
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_member_struct_tm_tm_zone=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7057
7058 ac_cv_member_struct_tm_tm_zone=no
7059 fi
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061 fi
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 fi
7064 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7065 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7066 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7067
7068 cat >>confdefs.h <<_ACEOF
7069 #define HAVE_STRUCT_TM_TM_ZONE 1
7070 _ACEOF
7071
7072
7073 fi
7074
7075 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7076
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_TM_ZONE 1
7079 _ACEOF
7080
7081 else
7082 echo "$as_me:$LINENO: checking for tzname" >&5
7083 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7084 if test "${ac_cv_var_tzname+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <time.h>
7094 #ifndef tzname /* For SGI. */
7095 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7096 #endif
7097
7098 int
7099 main ()
7100 {
7101 atoi(*tzname);
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_var_tzname=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_var_tzname=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7138 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7139 if test $ac_cv_var_tzname = yes; then
7140
7141 cat >>confdefs.h <<\_ACEOF
7142 #define HAVE_TZNAME 1
7143 _ACEOF
7144
7145 fi
7146 fi
7147
7148 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7149 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7150 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <time.h>
7160
7161 int
7162 main ()
7163 {
7164 static struct tm ac_aggr;
7165 if (ac_aggr.tm_gmtoff)
7166 return 0;
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_member_struct_tm_tm_gmtoff=yes
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <time.h>
7204
7205 int
7206 main ()
7207 {
7208 static struct tm ac_aggr;
7209 if (sizeof ac_aggr.tm_gmtoff)
7210 return 0;
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; } &&
7230 { ac_try='test -s conftest.$ac_objext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 ac_cv_member_struct_tm_tm_gmtoff=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_cv_member_struct_tm_tm_gmtoff=no
7242 fi
7243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244 fi
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7248 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7249 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7250
7251 cat >>confdefs.h <<\_ACEOF
7252 #define HAVE_TM_GMTOFF 1
7253 _ACEOF
7254
7255 fi
7256
7257 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7258 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7259 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 #if HAVE_SYS_SOCKET_H
7270 #include <sys/socket.h>
7271 #endif
7272 #if HAVE_NET_IF_H
7273 #include <net/if.h>
7274 #endif
7275
7276 int
7277 main ()
7278 {
7279 static struct ifreq ac_aggr;
7280 if (ac_aggr.ifr_flags)
7281 return 0;
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try='test -s conftest.$ac_objext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 (eval $ac_try) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 ac_cv_member_struct_ifreq_ifr_flags=yes
7308 else
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7311
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7319 #if HAVE_SYS_SOCKET_H
7320 #include <sys/socket.h>
7321 #endif
7322 #if HAVE_NET_IF_H
7323 #include <net/if.h>
7324 #endif
7325
7326 int
7327 main ()
7328 {
7329 static struct ifreq ac_aggr;
7330 if (sizeof ac_aggr.ifr_flags)
7331 return 0;
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest.$ac_objext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 ac_cv_member_struct_ifreq_ifr_flags=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 ac_cv_member_struct_ifreq_ifr_flags=no
7363 fi
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 fi
7368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7369 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7370 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7371
7372 cat >>confdefs.h <<_ACEOF
7373 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7374 _ACEOF
7375
7376
7377 fi
7378 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7379 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7380 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h. */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 $ac_includes_default
7390 #if HAVE_SYS_SOCKET_H
7391 #include <sys/socket.h>
7392 #endif
7393 #if HAVE_NET_IF_H
7394 #include <net/if.h>
7395 #endif
7396
7397 int
7398 main ()
7399 {
7400 static struct ifreq ac_aggr;
7401 if (ac_aggr.ifr_hwaddr)
7402 return 0;
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7409 (eval $ac_compile) 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; } &&
7422 { ac_try='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #if HAVE_SYS_SOCKET_H
7441 #include <sys/socket.h>
7442 #endif
7443 #if HAVE_NET_IF_H
7444 #include <net/if.h>
7445 #endif
7446
7447 int
7448 main ()
7449 {
7450 static struct ifreq ac_aggr;
7451 if (sizeof ac_aggr.ifr_hwaddr)
7452 return 0;
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; } &&
7472 { ac_try='test -s conftest.$ac_objext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7484 fi
7485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7486 fi
7487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7490 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7491 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7492
7493 cat >>confdefs.h <<_ACEOF
7494 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7495 _ACEOF
7496
7497
7498 fi
7499 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7500 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7501 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7513 #endif
7514 #if HAVE_NET_IF_H
7515 #include <net/if.h>
7516 #endif
7517
7518 int
7519 main ()
7520 {
7521 static struct ifreq ac_aggr;
7522 if (ac_aggr.ifr_netmask)
7523 return 0;
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7530 (eval $ac_compile) 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest.$ac_objext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_member_struct_ifreq_ifr_netmask=yes
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 $ac_includes_default
7561 #if HAVE_SYS_SOCKET_H
7562 #include <sys/socket.h>
7563 #endif
7564 #if HAVE_NET_IF_H
7565 #include <net/if.h>
7566 #endif
7567
7568 int
7569 main ()
7570 {
7571 static struct ifreq ac_aggr;
7572 if (sizeof ac_aggr.ifr_netmask)
7573 return 0;
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } &&
7593 { ac_try='test -s conftest.$ac_objext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 ac_cv_member_struct_ifreq_ifr_netmask=yes
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7603
7604 ac_cv_member_struct_ifreq_ifr_netmask=no
7605 fi
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7609 fi
7610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7611 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7612 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7613
7614 cat >>confdefs.h <<_ACEOF
7615 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7616 _ACEOF
7617
7618
7619 fi
7620 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7621 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7622 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7632 #if HAVE_SYS_SOCKET_H
7633 #include <sys/socket.h>
7634 #endif
7635 #if HAVE_NET_IF_H
7636 #include <net/if.h>
7637 #endif
7638
7639 int
7640 main ()
7641 {
7642 static struct ifreq ac_aggr;
7643 if (ac_aggr.ifr_broadaddr)
7644 return 0;
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h. */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7682 #if HAVE_SYS_SOCKET_H
7683 #include <sys/socket.h>
7684 #endif
7685 #if HAVE_NET_IF_H
7686 #include <net/if.h>
7687 #endif
7688
7689 int
7690 main ()
7691 {
7692 static struct ifreq ac_aggr;
7693 if (sizeof ac_aggr.ifr_broadaddr)
7694 return 0;
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730 fi
7731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7732 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7733 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7734
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7737 _ACEOF
7738
7739
7740 fi
7741 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7742 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7743 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7753 #if HAVE_SYS_SOCKET_H
7754 #include <sys/socket.h>
7755 #endif
7756 #if HAVE_NET_IF_H
7757 #include <net/if.h>
7758 #endif
7759
7760 int
7761 main ()
7762 {
7763 static struct ifreq ac_aggr;
7764 if (ac_aggr.ifr_addr)
7765 return 0;
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_cv_member_struct_ifreq_ifr_addr=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 $ac_includes_default
7803 #if HAVE_SYS_SOCKET_H
7804 #include <sys/socket.h>
7805 #endif
7806 #if HAVE_NET_IF_H
7807 #include <net/if.h>
7808 #endif
7809
7810 int
7811 main ()
7812 {
7813 static struct ifreq ac_aggr;
7814 if (sizeof ac_aggr.ifr_addr)
7815 return 0;
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_member_struct_ifreq_ifr_addr=yes
7842 else
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 ac_cv_member_struct_ifreq_ifr_addr=no
7847 fi
7848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 fi
7850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7851 fi
7852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7853 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7854 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7855
7856 cat >>confdefs.h <<_ACEOF
7857 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7858 _ACEOF
7859
7860
7861 fi
7862
7863
7864
7865 echo "$as_me:$LINENO: checking for function prototypes" >&5
7866 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7867 if test "$ac_cv_prog_cc_stdc" != no; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define PROTOTYPES 1
7873 _ACEOF
7874
7875
7876 cat >>confdefs.h <<\_ACEOF
7877 #define __PROTOTYPES 1
7878 _ACEOF
7879
7880 else
7881 echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6
7883 fi
7884
7885 echo "$as_me:$LINENO: checking for working volatile" >&5
7886 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7887 if test "${ac_cv_c_volatile+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896
7897 int
7898 main ()
7899 {
7900
7901 volatile int x;
7902 int * volatile y;
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try='test -s conftest.$ac_objext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_c_volatile=yes
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_cv_c_volatile=no
7934 fi
7935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936 fi
7937 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7938 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7939 if test $ac_cv_c_volatile = no; then
7940
7941 cat >>confdefs.h <<\_ACEOF
7942 #define volatile
7943 _ACEOF
7944
7945 fi
7946
7947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7949 if test "${ac_cv_c_const+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h. */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958
7959 int
7960 main ()
7961 {
7962 /* FIXME: Include the comments suggested by Paul. */
7963 #ifndef __cplusplus
7964 /* Ultrix mips cc rejects this. */
7965 typedef int charset[2];
7966 const charset x;
7967 /* SunOS 4.1.1 cc rejects this. */
7968 char const *const *ccp;
7969 char **p;
7970 /* NEC SVR4.0.2 mips cc rejects this. */
7971 struct point {int x, y;};
7972 static struct point const zero = {0,0};
7973 /* AIX XL C 1.02.0.0 rejects this.
7974 It does not let you subtract one const X* pointer from another in
7975 an arm of an if-expression whose if-part is not a constant
7976 expression */
7977 const char *g = "string";
7978 ccp = &g + (g ? g-g : 0);
7979 /* HPUX 7.0 cc rejects these. */
7980 ++ccp;
7981 p = (char**) ccp;
7982 ccp = (char const *const *) p;
7983 { /* SCO 3.2v4 cc rejects this. */
7984 char *t;
7985 char const *s = 0 ? (char *) 0 : (char const *) 0;
7986
7987 *t++ = 0;
7988 }
7989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7990 int x[] = {25, 17};
7991 const int *foo = &x[0];
7992 ++foo;
7993 }
7994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7995 typedef const int *iptr;
7996 iptr p = 0;
7997 ++p;
7998 }
7999 { /* AIX XL C 1.02.0.0 rejects this saying
8000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8001 struct s { int j; const int *ap[3]; };
8002 struct s *b; b->j = 5;
8003 }
8004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8005 const int foo = 10;
8006 }
8007 #endif
8008
8009 ;
8010 return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try='test -s conftest.$ac_objext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_c_const=yes
8035 else
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039 ac_cv_c_const=no
8040 fi
8041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8042 fi
8043 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8044 echo "${ECHO_T}$ac_cv_c_const" >&6
8045 if test $ac_cv_c_const = no; then
8046
8047 cat >>confdefs.h <<\_ACEOF
8048 #define const
8049 _ACEOF
8050
8051 fi
8052
8053 echo "$as_me:$LINENO: checking for void * support" >&5
8054 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8055 if test "${emacs_cv_void_star+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064
8065 int
8066 main ()
8067 {
8068 void * foo;
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; } &&
8088 { ac_try='test -s conftest.$ac_objext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 emacs_cv_void_star=yes
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 emacs_cv_void_star=no
8100 fi
8101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8104 echo "${ECHO_T}$emacs_cv_void_star" >&6
8105 if test $emacs_cv_void_star = yes; then
8106 cat >>confdefs.h <<\_ACEOF
8107 #define POINTER_TYPE void
8108 _ACEOF
8109
8110 else
8111 cat >>confdefs.h <<\_ACEOF
8112 #define POINTER_TYPE char
8113 _ACEOF
8114
8115 fi
8116
8117
8118
8119
8120
8121 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8122 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8123 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8124 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127 cat >conftest.make <<\_ACEOF
8128 all:
8129 @echo 'ac_maketemp="$(MAKE)"'
8130 _ACEOF
8131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8132 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8133 if test -n "$ac_maketemp"; then
8134 eval ac_cv_prog_make_${ac_make}_set=yes
8135 else
8136 eval ac_cv_prog_make_${ac_make}_set=no
8137 fi
8138 rm -f conftest.make
8139 fi
8140 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8141 echo "$as_me:$LINENO: result: yes" >&5
8142 echo "${ECHO_T}yes" >&6
8143 SET_MAKE=
8144 else
8145 echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8147 SET_MAKE="MAKE=${MAKE-make}"
8148 fi
8149
8150
8151 echo "$as_me:$LINENO: checking for long file names" >&5
8152 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8153 if test "${ac_cv_sys_long_file_names+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156 ac_cv_sys_long_file_names=yes
8157 # Test for long file names in all the places we know might matter:
8158 # . the current directory, where building will happen
8159 # $prefix/lib where we will be installing things
8160 # $exec_prefix/lib likewise
8161 # eval it to expand exec_prefix.
8162 # $TMPDIR if set, where it might want to write temporary files
8163 # if $TMPDIR is not set:
8164 # /tmp where it might want to write temporary files
8165 # /var/tmp likewise
8166 # /usr/tmp likewise
8167 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8168 ac_tmpdirs=$TMPDIR
8169 else
8170 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8171 fi
8172 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8173 test -d $ac_dir || continue
8174 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8175 ac_xdir=$ac_dir/cf$$
8176 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8177 ac_tf1=$ac_xdir/conftest9012345
8178 ac_tf2=$ac_xdir/conftest9012346
8179 (echo 1 >$ac_tf1) 2>/dev/null
8180 (echo 2 >$ac_tf2) 2>/dev/null
8181 ac_val=`cat $ac_tf1 2>/dev/null`
8182 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8183 ac_cv_sys_long_file_names=no
8184 rm -rf $ac_xdir 2>/dev/null
8185 break
8186 fi
8187 rm -rf $ac_xdir 2>/dev/null
8188 done
8189 fi
8190 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8191 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8192 if test $ac_cv_sys_long_file_names = yes; then
8193
8194 cat >>confdefs.h <<\_ACEOF
8195 #define HAVE_LONG_FILE_NAMES 1
8196 _ACEOF
8197
8198 fi
8199
8200
8201 #### Choose a window system.
8202
8203 echo "$as_me:$LINENO: checking for X" >&5
8204 echo $ECHO_N "checking for X... $ECHO_C" >&6
8205
8206 ac_path_x_has_been_run=yes
8207
8208 # Check whether --with-x or --without-x was given.
8209 if test "${with_x+set}" = set; then
8210 withval="$with_x"
8211
8212 fi;
8213 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8214 if test "x$with_x" = xno; then
8215 # The user explicitly disabled X.
8216 have_x=disabled
8217 else
8218 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8219 # Both variables are already set.
8220 have_x=yes
8221 else
8222 if test "${ac_cv_have_x+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 # One or both of the vars are not set, and there is no cached value.
8226 ac_x_includes=no ac_x_libraries=no
8227 rm -fr conftest.dir
8228 if mkdir conftest.dir; then
8229 cd conftest.dir
8230 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8231 cat >Imakefile <<'_ACEOF'
8232 acfindx:
8233 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8234 _ACEOF
8235 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8237 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8238 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8239 for ac_extension in a so sl; do
8240 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8241 test -f $ac_im_libdir/libX11.$ac_extension; then
8242 ac_im_usrlibdir=$ac_im_libdir; break
8243 fi
8244 done
8245 # Screen out bogus values from the imake configuration. They are
8246 # bogus both because they are the default anyway, and because
8247 # using them would break gcc on systems where it needs fixed includes.
8248 case $ac_im_incroot in
8249 /usr/include) ;;
8250 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8251 esac
8252 case $ac_im_usrlibdir in
8253 /usr/lib | /lib) ;;
8254 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8255 esac
8256 fi
8257 cd ..
8258 rm -fr conftest.dir
8259 fi
8260
8261 # Standard set of common directories for X headers.
8262 # Check X11 before X11Rn because it is often a symlink to the current release.
8263 ac_x_header_dirs='
8264 /usr/X11/include
8265 /usr/X11R6/include
8266 /usr/X11R5/include
8267 /usr/X11R4/include
8268
8269 /usr/include/X11
8270 /usr/include/X11R6
8271 /usr/include/X11R5
8272 /usr/include/X11R4
8273
8274 /usr/local/X11/include
8275 /usr/local/X11R6/include
8276 /usr/local/X11R5/include
8277 /usr/local/X11R4/include
8278
8279 /usr/local/include/X11
8280 /usr/local/include/X11R6
8281 /usr/local/include/X11R5
8282 /usr/local/include/X11R4
8283
8284 /usr/X386/include
8285 /usr/x386/include
8286 /usr/XFree86/include/X11
8287
8288 /usr/include
8289 /usr/local/include
8290 /usr/unsupported/include
8291 /usr/athena/include
8292 /usr/local/x11r5/include
8293 /usr/lpp/Xamples/include
8294
8295 /usr/openwin/include
8296 /usr/openwin/share/include'
8297
8298 if test "$ac_x_includes" = no; then
8299 # Guess where to find include files, by looking for a specified header file.
8300 # First, try using that file with no special directory specified.
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <X11/Xlib.h>
8308 _ACEOF
8309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } >/dev/null; then
8317 if test -s conftest.err; then
8318 ac_cpp_err=$ac_c_preproc_warn_flag
8319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8320 else
8321 ac_cpp_err=
8322 fi
8323 else
8324 ac_cpp_err=yes
8325 fi
8326 if test -z "$ac_cpp_err"; then
8327 # We can compile using X headers with no special include directory.
8328 ac_x_includes=
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333 for ac_dir in $ac_x_header_dirs; do
8334 if test -r "$ac_dir/X11/Xlib.h"; then
8335 ac_x_includes=$ac_dir
8336 break
8337 fi
8338 done
8339 fi
8340 rm -f conftest.err conftest.$ac_ext
8341 fi # $ac_x_includes = no
8342
8343 if test "$ac_x_libraries" = no; then
8344 # Check for the libraries.
8345 # See if we find them without any special options.
8346 # Don't add to $LIBS permanently.
8347 ac_save_LIBS=$LIBS
8348 LIBS="-lX11 $LIBS"
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 #include <X11/Xlib.h>
8356 int
8357 main ()
8358 {
8359 XrmInitialize ()
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext conftest$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 LIBS=$ac_save_LIBS
8386 # We can link X programs with no special library path.
8387 ac_x_libraries=
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 LIBS=$ac_save_LIBS
8393 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8394 do
8395 # Don't even attempt the hair of trying to link an X program!
8396 for ac_extension in a so sl; do
8397 if test -r $ac_dir/libX11.$ac_extension; then
8398 ac_x_libraries=$ac_dir
8399 break 2
8400 fi
8401 done
8402 done
8403 fi
8404 rm -f conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 fi # $ac_x_libraries = no
8407
8408 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8409 # Didn't find X anywhere. Cache the known absence of X.
8410 ac_cv_have_x="have_x=no"
8411 else
8412 # Record where we found X for the cache.
8413 ac_cv_have_x="have_x=yes \
8414 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8415 fi
8416 fi
8417
8418 fi
8419 eval "$ac_cv_have_x"
8420 fi # $with_x != no
8421
8422 if test "$have_x" != yes; then
8423 echo "$as_me:$LINENO: result: $have_x" >&5
8424 echo "${ECHO_T}$have_x" >&6
8425 no_x=yes
8426 else
8427 # If each of the values was on the command line, it overrides each guess.
8428 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8429 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8430 # Update the cache value to reflect the command line values.
8431 ac_cv_have_x="have_x=yes \
8432 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8433 # It might be that x_includes is empty (headers are found in the
8434 # standard search path. Then output the corresponding message
8435 ac_out_x_includes=$x_includes
8436 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8437 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8438 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8439 fi
8440
8441 if test "$no_x" = yes; then
8442 window_system=none
8443 else
8444 window_system=x11
8445 fi
8446
8447 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8448 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8449 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8450 x_default_search_path=""
8451 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8452 x_search_path="\
8453 ${x_library}/X11/%L/%T/%N%C%S:\
8454 ${x_library}/X11/%l/%T/%N%C%S:\
8455 ${x_library}/X11/%T/%N%C%S:\
8456 ${x_library}/X11/%L/%T/%N%S:\
8457 ${x_library}/X11/%l/%T/%N%S:\
8458 ${x_library}/X11/%T/%N%S"
8459 if test x"${x_default_search_path}" = x; then
8460 x_default_search_path=${x_search_path}
8461 else
8462 x_default_search_path="${x_search_path}:${x_default_search_path}"
8463 fi
8464 done
8465 fi
8466 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8467 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8468 fi
8469
8470 if test x"${x_includes}" = x; then
8471 bitmapdir=/usr/include/X11/bitmaps
8472 else
8473 # accumulate include directories that have X11 bitmap subdirectories
8474 bmd_acc="dummyval"
8475 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8476 if test -d "${bmd}/X11/bitmaps"; then
8477 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8478 fi
8479 if test -d "${bmd}/bitmaps"; then
8480 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8481 fi
8482 done
8483 if test ${bmd_acc} != "dummyval"; then
8484 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8485 fi
8486 fi
8487
8488 HAVE_CARBON=no
8489 if test "${with_carbon}" != no; then
8490 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8491 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8492 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8493 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 fi
8496 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8497 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8498 else
8499 # Is the header compilable?
8500 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8501 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #include <Carbon/Carbon.h>
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_header_compiler=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537 ac_header_compiler=no
8538 fi
8539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8541 echo "${ECHO_T}$ac_header_compiler" >&6
8542
8543 # Is the header present?
8544 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8545 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 #include <Carbon/Carbon.h>
8553 _ACEOF
8554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } >/dev/null; then
8562 if test -s conftest.err; then
8563 ac_cpp_err=$ac_c_preproc_warn_flag
8564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8565 else
8566 ac_cpp_err=
8567 fi
8568 else
8569 ac_cpp_err=yes
8570 fi
8571 if test -z "$ac_cpp_err"; then
8572 ac_header_preproc=yes
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 ac_header_preproc=no
8578 fi
8579 rm -f conftest.err conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8581 echo "${ECHO_T}$ac_header_preproc" >&6
8582
8583 # So? What about this header?
8584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8585 yes:no: )
8586 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8587 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8589 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8590 ac_header_preproc=yes
8591 ;;
8592 no:yes:* )
8593 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8594 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8596 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8598 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8600 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8604 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8605 (
8606 cat <<\_ASBOX
8607 ## ------------------------------------------ ##
8608 ## Report this to the AC_PACKAGE_NAME lists. ##
8609 ## ------------------------------------------ ##
8610 _ASBOX
8611 ) |
8612 sed "s/^/$as_me: WARNING: /" >&2
8613 ;;
8614 esac
8615 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8616 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8617 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8624
8625 fi
8626 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8627 HAVE_CARBON=yes
8628 fi
8629
8630
8631 fi
8632 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8633 if test "${with_carbon+set}" != set \
8634 && test "${carbon_appdir_x+set}" != set; then
8635 HAVE_CARBON=no
8636 fi
8637 fi
8638 if test "${HAVE_CARBON}" = yes; then
8639 window_system=mac
8640 fi
8641
8642 case "${window_system}" in
8643 x11 )
8644 HAVE_X_WINDOWS=yes
8645 HAVE_X11=yes
8646 case "${with_x_toolkit}" in
8647 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8648 motif ) USE_X_TOOLKIT=MOTIF ;;
8649 gtk ) with_gtk=yes
8650 USE_X_TOOLKIT=none ;;
8651 no ) USE_X_TOOLKIT=none ;;
8652 * ) USE_X_TOOLKIT=maybe ;;
8653 esac
8654 ;;
8655 mac | none )
8656 HAVE_X_WINDOWS=no
8657 HAVE_X11=no
8658 USE_X_TOOLKIT=none
8659 ;;
8660 esac
8661
8662 ### If we're using X11, we should use the X menu package.
8663 HAVE_MENUS=no
8664 case ${HAVE_X11} in
8665 yes ) HAVE_MENUS=yes ;;
8666 esac
8667
8668 if test "${opsys}" = "hpux9"; then
8669 case "${x_libraries}" in
8670 *X11R4* )
8671 opsysfile="s/hpux9-x11r4.h"
8672 ;;
8673 esac
8674 fi
8675
8676 if test "${opsys}" = "hpux9shr"; then
8677 case "${x_libraries}" in
8678 *X11R4* )
8679 opsysfile="s/hpux9shxr4.h"
8680 ;;
8681 esac
8682 fi
8683
8684 ### Compute the unexec source name from the object name.
8685 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8686
8687 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8688 # Assume not, until told otherwise.
8689 GNU_MALLOC=yes
8690 doug_lea_malloc=yes
8691 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8692 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8693 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define malloc_get_state innocuous_malloc_get_state
8705
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char malloc_get_state (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8710
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8716
8717 #undef malloc_get_state
8718
8719 /* Override any gcc2 internal prototype to avoid an error. */
8720 #ifdef __cplusplus
8721 extern "C"
8722 {
8723 #endif
8724 /* We use char because int might match the return type of a gcc2
8725 builtin and then its argument prototype would still apply. */
8726 char malloc_get_state ();
8727 /* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8731 choke me
8732 #else
8733 char (*f) () = malloc_get_state;
8734 #endif
8735 #ifdef __cplusplus
8736 }
8737 #endif
8738
8739 int
8740 main ()
8741 {
8742 return f != malloc_get_state;
8743 ;
8744 return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8768 ac_cv_func_malloc_get_state=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 ac_cv_func_malloc_get_state=no
8774 fi
8775 rm -f conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8777 fi
8778 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8779 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8780 if test $ac_cv_func_malloc_get_state = yes; then
8781 :
8782 else
8783 doug_lea_malloc=no
8784 fi
8785
8786 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8787 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8788 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8799 #define malloc_set_state innocuous_malloc_set_state
8800
8801 /* System header to define __stub macros and hopefully few prototypes,
8802 which can conflict with char malloc_set_state (); below.
8803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8804 <limits.h> exists even on freestanding compilers. */
8805
8806 #ifdef __STDC__
8807 # include <limits.h>
8808 #else
8809 # include <assert.h>
8810 #endif
8811
8812 #undef malloc_set_state
8813
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 #ifdef __cplusplus
8816 extern "C"
8817 {
8818 #endif
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char malloc_set_state ();
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8826 choke me
8827 #else
8828 char (*f) () = malloc_set_state;
8829 #endif
8830 #ifdef __cplusplus
8831 }
8832 #endif
8833
8834 int
8835 main ()
8836 {
8837 return f != malloc_set_state;
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_func_malloc_set_state=yes
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_func_malloc_set_state=no
8869 fi
8870 rm -f conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8874 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8875 if test $ac_cv_func_malloc_set_state = yes; then
8876 :
8877 else
8878 doug_lea_malloc=no
8879 fi
8880
8881 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8882 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8883 if test "${emacs_cv_var___after_morecore_hook+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 extern void (* __after_morecore_hook)();
8893 int
8894 main ()
8895 {
8896 __after_morecore_hook = 0
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 emacs_cv_var___after_morecore_hook=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 emacs_cv_var___after_morecore_hook=no
8928 fi
8929 rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 fi
8932 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8933 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8934 if test $emacs_cv_var___after_morecore_hook = no; then
8935 doug_lea_malloc=no
8936 fi
8937 if test "${system_malloc}" = "yes"; then
8938 GNU_MALLOC=no
8939 GNU_MALLOC_reason="
8940 (The GNU allocators don't work with this system configuration.)"
8941 fi
8942 if test "$doug_lea_malloc" = "yes" ; then
8943 if test "$GNU_MALLOC" = yes ; then
8944 GNU_MALLOC_reason="
8945 (Using Doug Lea's new malloc from the GNU C Library.)"
8946 fi
8947
8948 cat >>confdefs.h <<\_ACEOF
8949 #define DOUG_LEA_MALLOC 1
8950 _ACEOF
8951
8952 fi
8953
8954 if test x"${REL_ALLOC}" = x; then
8955 REL_ALLOC=${GNU_MALLOC}
8956 fi
8957
8958
8959
8960
8961 for ac_header in stdlib.h unistd.h
8962 do
8963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965 echo "$as_me:$LINENO: checking for $ac_header" >&5
8966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 fi
8970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8972 else
8973 # Is the header compilable?
8974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #include <$ac_header>
8984 _ACEOF
8985 rm -f conftest.$ac_objext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest.$ac_objext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_header_compiler=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_header_compiler=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9015 echo "${ECHO_T}$ac_header_compiler" >&6
9016
9017 # Is the header present?
9018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 #include <$ac_header>
9027 _ACEOF
9028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } >/dev/null; then
9036 if test -s conftest.err; then
9037 ac_cpp_err=$ac_c_preproc_warn_flag
9038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9039 else
9040 ac_cpp_err=
9041 fi
9042 else
9043 ac_cpp_err=yes
9044 fi
9045 if test -z "$ac_cpp_err"; then
9046 ac_header_preproc=yes
9047 else
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ac_header_preproc=no
9052 fi
9053 rm -f conftest.err conftest.$ac_ext
9054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9055 echo "${ECHO_T}$ac_header_preproc" >&6
9056
9057 # So? What about this header?
9058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9059 yes:no: )
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9064 ac_header_preproc=yes
9065 ;;
9066 no:yes:* )
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9079 (
9080 cat <<\_ASBOX
9081 ## ------------------------------------------ ##
9082 ## Report this to the AC_PACKAGE_NAME lists. ##
9083 ## ------------------------------------------ ##
9084 _ASBOX
9085 ) |
9086 sed "s/^/$as_me: WARNING: /" >&2
9087 ;;
9088 esac
9089 echo "$as_me:$LINENO: checking for $ac_header" >&5
9090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 eval "$as_ac_Header=\$ac_header_preproc"
9095 fi
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098
9099 fi
9100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9101 cat >>confdefs.h <<_ACEOF
9102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9103 _ACEOF
9104
9105 fi
9106
9107 done
9108
9109
9110 for ac_func in getpagesize
9111 do
9112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 echo "$as_me:$LINENO: checking for $ac_func" >&5
9114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_var+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9126 #define $ac_func innocuous_$ac_func
9127
9128 /* System header to define __stub macros and hopefully few prototypes,
9129 which can conflict with char $ac_func (); below.
9130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 <limits.h> exists even on freestanding compilers. */
9132
9133 #ifdef __STDC__
9134 # include <limits.h>
9135 #else
9136 # include <assert.h>
9137 #endif
9138
9139 #undef $ac_func
9140
9141 /* Override any gcc2 internal prototype to avoid an error. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 {
9145 #endif
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148 char $ac_func ();
9149 /* The GNU C library defines this for functions which it implements
9150 to always fail with ENOSYS. Some functions are actually named
9151 something starting with __ and the normal name is an alias. */
9152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9153 choke me
9154 #else
9155 char (*f) () = $ac_func;
9156 #endif
9157 #ifdef __cplusplus
9158 }
9159 #endif
9160
9161 int
9162 main ()
9163 {
9164 return f != $ac_func;
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171 (eval $ac_link) 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 eval "$as_ac_var=yes"
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 eval "$as_ac_var=no"
9196 fi
9197 rm -f conftest.err conftest.$ac_objext \
9198 conftest$ac_exeext conftest.$ac_ext
9199 fi
9200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9202 if test `eval echo '${'$as_ac_var'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9205 _ACEOF
9206
9207 fi
9208 done
9209
9210 echo "$as_me:$LINENO: checking for working mmap" >&5
9211 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9212 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 if test "$cross_compiling" = yes; then
9216 ac_cv_func_mmap_fixed_mapped=no
9217 else
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 $ac_includes_default
9225 /* malloc might have been renamed as rpl_malloc. */
9226 #undef malloc
9227
9228 /* Thanks to Mike Haertel and Jim Avera for this test.
9229 Here is a matrix of mmap possibilities:
9230 mmap private not fixed
9231 mmap private fixed at somewhere currently unmapped
9232 mmap private fixed at somewhere already mapped
9233 mmap shared not fixed
9234 mmap shared fixed at somewhere currently unmapped
9235 mmap shared fixed at somewhere already mapped
9236 For private mappings, we should verify that changes cannot be read()
9237 back from the file, nor mmap's back from the file at a different
9238 address. (There have been systems where private was not correctly
9239 implemented like the infamous i386 svr4.0, and systems where the
9240 VM page cache was not coherent with the file system buffer cache
9241 like early versions of FreeBSD and possibly contemporary NetBSD.)
9242 For shared mappings, we should conversely verify that changes get
9243 propagated back to all the places they're supposed to be.
9244
9245 Grep wants private fixed already mapped.
9246 The main things grep needs to know about mmap are:
9247 * does it exist and is it safe to write into the mmap'd area
9248 * how to use it (BSD variants) */
9249
9250 #include <fcntl.h>
9251 #include <sys/mman.h>
9252
9253 #if !STDC_HEADERS && !HAVE_STDLIB_H
9254 char *malloc ();
9255 #endif
9256
9257 /* This mess was copied from the GNU getpagesize.h. */
9258 #if !HAVE_GETPAGESIZE
9259 /* Assume that all systems that can run configure have sys/param.h. */
9260 # if !HAVE_SYS_PARAM_H
9261 # define HAVE_SYS_PARAM_H 1
9262 # endif
9263
9264 # ifdef _SC_PAGESIZE
9265 # define getpagesize() sysconf(_SC_PAGESIZE)
9266 # else /* no _SC_PAGESIZE */
9267 # if HAVE_SYS_PARAM_H
9268 # include <sys/param.h>
9269 # ifdef EXEC_PAGESIZE
9270 # define getpagesize() EXEC_PAGESIZE
9271 # else /* no EXEC_PAGESIZE */
9272 # ifdef NBPG
9273 # define getpagesize() NBPG * CLSIZE
9274 # ifndef CLSIZE
9275 # define CLSIZE 1
9276 # endif /* no CLSIZE */
9277 # else /* no NBPG */
9278 # ifdef NBPC
9279 # define getpagesize() NBPC
9280 # else /* no NBPC */
9281 # ifdef PAGESIZE
9282 # define getpagesize() PAGESIZE
9283 # endif /* PAGESIZE */
9284 # endif /* no NBPC */
9285 # endif /* no NBPG */
9286 # endif /* no EXEC_PAGESIZE */
9287 # else /* no HAVE_SYS_PARAM_H */
9288 # define getpagesize() 8192 /* punt totally */
9289 # endif /* no HAVE_SYS_PARAM_H */
9290 # endif /* no _SC_PAGESIZE */
9291
9292 #endif /* no HAVE_GETPAGESIZE */
9293
9294 int
9295 main ()
9296 {
9297 char *data, *data2, *data3;
9298 int i, pagesize;
9299 int fd;
9300
9301 pagesize = getpagesize ();
9302
9303 /* First, make a file with some known garbage in it. */
9304 data = (char *) malloc (pagesize);
9305 if (!data)
9306 exit (1);
9307 for (i = 0; i < pagesize; ++i)
9308 *(data + i) = rand ();
9309 umask (0);
9310 fd = creat ("conftest.mmap", 0600);
9311 if (fd < 0)
9312 exit (1);
9313 if (write (fd, data, pagesize) != pagesize)
9314 exit (1);
9315 close (fd);
9316
9317 /* Next, try to mmap the file at a fixed address which already has
9318 something else allocated at it. If we can, also make sure that
9319 we see the same garbage. */
9320 fd = open ("conftest.mmap", O_RDWR);
9321 if (fd < 0)
9322 exit (1);
9323 data2 = (char *) malloc (2 * pagesize);
9324 if (!data2)
9325 exit (1);
9326 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9327 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9328 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9329 exit (1);
9330 for (i = 0; i < pagesize; ++i)
9331 if (*(data + i) != *(data2 + i))
9332 exit (1);
9333
9334 /* Finally, make sure that changes to the mapped area do not
9335 percolate back to the file as seen by read(). (This is a bug on
9336 some variants of i386 svr4.0.) */
9337 for (i = 0; i < pagesize; ++i)
9338 *(data2 + i) = *(data2 + i) + 1;
9339 data3 = (char *) malloc (pagesize);
9340 if (!data3)
9341 exit (1);
9342 if (read (fd, data3, pagesize) != pagesize)
9343 exit (1);
9344 for (i = 0; i < pagesize; ++i)
9345 if (*(data + i) != *(data3 + i))
9346 exit (1);
9347 close (fd);
9348 exit (0);
9349 }
9350 _ACEOF
9351 rm -f conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_func_mmap_fixed_mapped=yes
9363 else
9364 echo "$as_me: program exited with status $ac_status" >&5
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 ( exit $ac_status )
9369 ac_cv_func_mmap_fixed_mapped=no
9370 fi
9371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9372 fi
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9375 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_MMAP 1
9380 _ACEOF
9381
9382 fi
9383 rm -f conftest.mmap
9384
9385 if test $use_mmap_for_buffers = yes; then
9386 REL_ALLOC=no
9387 fi
9388
9389 LIBS="$libsrc_libs $LIBS"
9390
9391
9392 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9393 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9394 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397 ac_check_lib_save_LIBS=$LIBS
9398 LIBS="-ldnet $LIBS"
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h. */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405
9406 /* Override any gcc2 internal prototype to avoid an error. */
9407 #ifdef __cplusplus
9408 extern "C"
9409 #endif
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9412 char dnet_ntoa ();
9413 int
9414 main ()
9415 {
9416 dnet_ntoa ();
9417 ;
9418 return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_lib_dnet_dnet_ntoa=yes
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 ac_cv_lib_dnet_dnet_ntoa=no
9448 fi
9449 rm -f conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LIBS=$ac_check_lib_save_LIBS
9452 fi
9453 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9454 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9455 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_LIBDNET 1
9458 _ACEOF
9459
9460 LIBS="-ldnet $LIBS"
9461
9462 fi
9463
9464
9465 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9466 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9467 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 ac_check_lib_save_LIBS=$LIBS
9471 LIBS="-lXbsd $LIBS"
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
9480 int
9481 main ()
9482 {
9483 main ();
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9490 (eval $ac_link) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_lib_Xbsd_main=yes
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 ac_cv_lib_Xbsd_main=no
9515 fi
9516 rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9519 fi
9520 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9521 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9522 if test $ac_cv_lib_Xbsd_main = yes; then
9523 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9524 fi
9525
9526
9527
9528 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9529 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9530 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_check_lib_save_LIBS=$LIBS
9534 LIBS="-lpthreads $LIBS"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541
9542 /* Override any gcc2 internal prototype to avoid an error. */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548 char cma_open ();
9549 int
9550 main ()
9551 {
9552 cma_open ();
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_lib_pthreads_cma_open=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_cv_lib_pthreads_cma_open=no
9584 fi
9585 rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 LIBS=$ac_check_lib_save_LIBS
9588 fi
9589 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9590 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9591 if test $ac_cv_lib_pthreads_cma_open = yes; then
9592 cat >>confdefs.h <<_ACEOF
9593 #define HAVE_LIBPTHREADS 1
9594 _ACEOF
9595
9596 LIBS="-lpthreads $LIBS"
9597
9598 fi
9599
9600
9601 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9602 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9603 if test -d /usr/X386/include; then
9604 HAVE_XFREE386=yes
9605 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9606 else
9607 HAVE_XFREE386=no
9608 fi
9609 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9610 echo "${ECHO_T}$HAVE_XFREE386" >&6
9611
9612
9613 case ${host_os} in
9614 aix*)
9615 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9616 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9617 if test "${gdb_cv_bigtoc+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620
9621 case $GCC in
9622 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9623 *) gdb_cv_bigtoc=-bbigtoc ;;
9624 esac
9625
9626 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633
9634 int
9635 main ()
9636 {
9637 int i;
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 :
9664 else
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 gdb_cv_bigtoc=
9669 fi
9670 rm -f conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672
9673 fi
9674 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9675 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9676 ;;
9677 esac
9678
9679 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9680 # used for the tests that follow. We set them back to REAL_CFLAGS and
9681 # REAL_CPPFLAGS later on.
9682
9683 REAL_CPPFLAGS="$CPPFLAGS"
9684
9685 if test "${HAVE_X11}" = "yes"; then
9686 DEFS="$C_SWITCH_X_SITE $DEFS"
9687 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9688 LIBS="$LIBX $LIBS"
9689 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9690 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9691
9692 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9693 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9694 # but it's more convenient here to set LD_RUN_PATH
9695 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9696 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9697 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9698 export LD_RUN_PATH
9699 fi
9700
9701 if test "${opsys}" = "gnu-linux"; then
9702 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9703 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710
9711 int
9712 main ()
9713 {
9714 XOpenDisplay ("foo");
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>conftest.er1
9722 ac_status=$?
9723 grep -v '^ *+' conftest.er1 >conftest.err
9724 rm -f conftest.er1
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 xlinux_first_failure=no
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 xlinux_first_failure=yes
9746 fi
9747 rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 if test "${xlinux_first_failure}" = "yes"; then
9750 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9751 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9752 OLD_CPPFLAGS="$CPPFLAGS"
9753 OLD_LIBS="$LIBS"
9754 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9755 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9756 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9757 LIBS="$LIBS -b i486-linuxaout"
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764
9765 int
9766 main ()
9767 {
9768 XOpenDisplay ("foo");
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 xlinux_second_failure=no
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 xlinux_second_failure=yes
9800 fi
9801 rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 if test "${xlinux_second_failure}" = "yes"; then
9804 # If we get the same failure with -b, there is no use adding -b.
9805 # So take it out. This plays safe.
9806 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9807 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9808 CPPFLAGS="$OLD_CPPFLAGS"
9809 LIBS="$OLD_LIBS"
9810 echo "$as_me:$LINENO: result: no" >&5
9811 echo "${ECHO_T}no" >&6
9812 else
9813 echo "$as_me:$LINENO: result: yes" >&5
9814 echo "${ECHO_T}yes" >&6
9815 fi
9816 else
9817 echo "$as_me:$LINENO: result: no" >&5
9818 echo "${ECHO_T}no" >&6
9819 fi
9820 fi
9821
9822 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9823 # header files included from there.
9824 echo "$as_me:$LINENO: checking for Xkb" >&5
9825 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 #include <X11/Xlib.h>
9833 #include <X11/XKBlib.h>
9834 int
9835 main ()
9836 {
9837 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 emacs_xkb=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 emacs_xkb=no
9869 fi
9870 rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9873 echo "${ECHO_T}$emacs_xkb" >&6
9874 if test $emacs_xkb = yes; then
9875
9876 cat >>confdefs.h <<\_ACEOF
9877 #define HAVE_XKBGETKEYBOARD 1
9878 _ACEOF
9879
9880 fi
9881
9882
9883
9884
9885
9886 for ac_func in XrmSetDatabase XScreenResourceString \
9887 XScreenNumberOfScreen XSetWMProtocols
9888 do
9889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9890 echo "$as_me:$LINENO: checking for $ac_func" >&5
9891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9892 if eval "test \"\${$as_ac_var+set}\" = set"; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9903 #define $ac_func innocuous_$ac_func
9904
9905 /* System header to define __stub macros and hopefully few prototypes,
9906 which can conflict with char $ac_func (); below.
9907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908 <limits.h> exists even on freestanding compilers. */
9909
9910 #ifdef __STDC__
9911 # include <limits.h>
9912 #else
9913 # include <assert.h>
9914 #endif
9915
9916 #undef $ac_func
9917
9918 /* Override any gcc2 internal prototype to avoid an error. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 {
9922 #endif
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9925 char $ac_func ();
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9930 choke me
9931 #else
9932 char (*f) () = $ac_func;
9933 #endif
9934 #ifdef __cplusplus
9935 }
9936 #endif
9937
9938 int
9939 main ()
9940 {
9941 return f != $ac_func;
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 eval "$as_ac_var=yes"
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 eval "$as_ac_var=no"
9973 fi
9974 rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 fi
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9979 if test `eval echo '${'$as_ac_var'}'` = yes; then
9980 cat >>confdefs.h <<_ACEOF
9981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9982 _ACEOF
9983
9984 fi
9985 done
9986
9987 fi
9988
9989 if test "${window_system}" = "x11"; then
9990 echo "$as_me:$LINENO: checking X11 version 6" >&5
9991 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9992 if test "${emacs_cv_x11_version_6+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <X11/Xlib.h>
10002 int
10003 main ()
10004 {
10005 #if XlibSpecificationRelease < 6
10006 fail;
10007 #endif
10008
10009 ;
10010 return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 emacs_cv_x11_version_6=yes
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039 emacs_cv_x11_version_6=no
10040 fi
10041 rm -f conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 fi
10044
10045 if test $emacs_cv_x11_version_6 = yes; then
10046 echo "$as_me:$LINENO: result: 6 or newer" >&5
10047 echo "${ECHO_T}6 or newer" >&6
10048
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_X11R6 1
10051 _ACEOF
10052
10053 else
10054 echo "$as_me:$LINENO: result: before 6" >&5
10055 echo "${ECHO_T}before 6" >&6
10056 fi
10057 fi
10058
10059 if test "${window_system}" = "x11"; then
10060 echo "$as_me:$LINENO: checking X11 version 5" >&5
10061 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10062 if test "${emacs_cv_x11_version_5+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065 cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h. */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 #include <X11/Xlib.h>
10072 int
10073 main ()
10074 {
10075 #if XlibSpecificationRelease < 5
10076 fail;
10077 #endif
10078
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 emacs_cv_x11_version_5=yes
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 emacs_cv_x11_version_5=no
10110 fi
10111 rm -f conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 fi
10114
10115 if test $emacs_cv_x11_version_5 = yes; then
10116 echo "$as_me:$LINENO: result: 5 or newer" >&5
10117 echo "${ECHO_T}5 or newer" >&6
10118 HAVE_X11R5=yes
10119
10120 cat >>confdefs.h <<\_ACEOF
10121 #define HAVE_X11R5 1
10122 _ACEOF
10123
10124 else
10125 HAVE_X11R5=no
10126 echo "$as_me:$LINENO: result: before 5" >&5
10127 echo "${ECHO_T}before 5" >&6
10128 fi
10129 fi
10130
10131
10132
10133 HAVE_GTK=no
10134 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10135 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10136 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10137 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10138 { (exit 1); exit 1; }; };
10139 fi
10140 GLIB_REQUIRED=2.0.1
10141 GTK_REQUIRED=2.0.1
10142 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10143
10144 if test "X${with_pkg_config_prog}" != X; then
10145 PKG_CONFIG="${with_pkg_config_prog}"
10146 fi
10147
10148 succeeded=no
10149
10150 if test -z "$PKG_CONFIG"; then
10151 # Extract the first word of "pkg-config", so it can be a program name with args.
10152 set dummy pkg-config; ac_word=$2
10153 echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 case $PKG_CONFIG in
10159 [\\/]* | ?:[\\/]*)
10160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10161 ;;
10162 *)
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174 done
10175 done
10176
10177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10178 ;;
10179 esac
10180 fi
10181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10182
10183 if test -n "$PKG_CONFIG"; then
10184 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10185 echo "${ECHO_T}$PKG_CONFIG" >&6
10186 else
10187 echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10189 fi
10190
10191 fi
10192
10193 if test "$PKG_CONFIG" = "no" ; then
10194 echo "*** The pkg-config script could not be found. Make sure it is"
10195 echo "*** in your path, or give the full path to pkg-config with"
10196 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10197 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10198 else
10199 PKG_CONFIG_MIN_VERSION=0.9.0
10200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10201 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10202 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10203
10204 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10205 echo "$as_me:$LINENO: result: yes" >&5
10206 echo "${ECHO_T}yes" >&6
10207 succeeded=yes
10208
10209 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10210 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10211 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10212 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10213 echo "${ECHO_T}$GTK_CFLAGS" >&6
10214
10215 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10216 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10217 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10218 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10219 echo "${ECHO_T}$GTK_LIBS" >&6
10220 else
10221 GTK_CFLAGS=""
10222 GTK_LIBS=""
10223 ## If we have a custom action on failure, don't print errors, but
10224 ## do set a variable so people can do so.
10225 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10226 echo $GTK_PKG_ERRORS
10227 fi
10228
10229
10230
10231 else
10232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10234 fi
10235 fi
10236
10237 if test $succeeded = yes; then
10238 :
10239 else
10240 { { 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
10241 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;}
10242 { (exit 1); exit 1; }; }
10243 fi
10244
10245
10246
10247 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10248 CFLAGS="$CFLAGS $GTK_CFLAGS"
10249 LIBS="$GTK_LIBS $LIBS"
10250 HAVE_GTK=yes
10251
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_GTK 1
10254 _ACEOF
10255
10256 USE_X_TOOLKIT=none
10257
10258 if test "$with_toolkit_scroll_bars" != no; then
10259 with_toolkit_scroll_bars=yes
10260 fi
10261
10262 HAVE_GTK_MULTIDISPLAY=no
10263
10264 HAVE_GTK_FILE_SELECTION=no
10265
10266 for ac_func in gtk_file_selection_new
10267 do
10268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269 echo "$as_me:$LINENO: checking for $ac_func" >&5
10270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10271 if eval "test \"\${$as_ac_var+set}\" = set"; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10282 #define $ac_func innocuous_$ac_func
10283
10284 /* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char $ac_func (); below.
10286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10287 <limits.h> exists even on freestanding compilers. */
10288
10289 #ifdef __STDC__
10290 # include <limits.h>
10291 #else
10292 # include <assert.h>
10293 #endif
10294
10295 #undef $ac_func
10296
10297 /* Override any gcc2 internal prototype to avoid an error. */
10298 #ifdef __cplusplus
10299 extern "C"
10300 {
10301 #endif
10302 /* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10304 char $ac_func ();
10305 /* The GNU C library defines this for functions which it implements
10306 to always fail with ENOSYS. Some functions are actually named
10307 something starting with __ and the normal name is an alias. */
10308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10309 choke me
10310 #else
10311 char (*f) () = $ac_func;
10312 #endif
10313 #ifdef __cplusplus
10314 }
10315 #endif
10316
10317 int
10318 main ()
10319 {
10320 return f != $ac_func;
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 eval "$as_ac_var=yes"
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 eval "$as_ac_var=no"
10352 fi
10353 rm -f conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 fi
10356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10358 if test `eval echo '${'$as_ac_var'}'` = yes; then
10359 cat >>confdefs.h <<_ACEOF
10360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10361 _ACEOF
10362 HAVE_GTK_FILE_SELECTION=yes
10363 fi
10364 done
10365
10366
10367 HAVE_GTK_FILE_CHOOSER=no
10368
10369 for ac_func in gtk_file_chooser_dialog_new
10370 do
10371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372 echo "$as_me:$LINENO: checking for $ac_func" >&5
10373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10374 if eval "test \"\${$as_ac_var+set}\" = set"; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377 cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h. */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10385 #define $ac_func innocuous_$ac_func
10386
10387 /* System header to define __stub macros and hopefully few prototypes,
10388 which can conflict with char $ac_func (); below.
10389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390 <limits.h> exists even on freestanding compilers. */
10391
10392 #ifdef __STDC__
10393 # include <limits.h>
10394 #else
10395 # include <assert.h>
10396 #endif
10397
10398 #undef $ac_func
10399
10400 /* Override any gcc2 internal prototype to avoid an error. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 {
10404 #endif
10405 /* We use char because int might match the return type of a gcc2
10406 builtin and then its argument prototype would still apply. */
10407 char $ac_func ();
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10412 choke me
10413 #else
10414 char (*f) () = $ac_func;
10415 #endif
10416 #ifdef __cplusplus
10417 }
10418 #endif
10419
10420 int
10421 main ()
10422 {
10423 return f != $ac_func;
10424 ;
10425 return 0;
10426 }
10427 _ACEOF
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 eval "$as_ac_var=yes"
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 eval "$as_ac_var=no"
10455 fi
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 fi
10459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10461 if test `eval echo '${'$as_ac_var'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10464 _ACEOF
10465 HAVE_GTK_FILE_CHOOSER=yes
10466 fi
10467 done
10468
10469
10470 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10471 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10472
10473 cat >>confdefs.h <<\_ACEOF
10474 #define HAVE_GTK_FILE_BOTH 1
10475 _ACEOF
10476
10477 fi
10478
10479 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10480 HAVE_GTK_AND_PTHREAD=no
10481
10482 for ac_header in pthread.h
10483 do
10484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486 echo "$as_me:$LINENO: checking for $ac_header" >&5
10487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 fi
10491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10493 else
10494 # Is the header compilable?
10495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 $ac_includes_default
10504 #include <$ac_header>
10505 _ACEOF
10506 rm -f conftest.$ac_objext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508 (eval $ac_compile) 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest.$ac_objext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_header_compiler=yes
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 ac_header_compiler=no
10533 fi
10534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10536 echo "${ECHO_T}$ac_header_compiler" >&6
10537
10538 # Is the header present?
10539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 #include <$ac_header>
10548 _ACEOF
10549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } >/dev/null; then
10557 if test -s conftest.err; then
10558 ac_cpp_err=$ac_c_preproc_warn_flag
10559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10560 else
10561 ac_cpp_err=
10562 fi
10563 else
10564 ac_cpp_err=yes
10565 fi
10566 if test -z "$ac_cpp_err"; then
10567 ac_header_preproc=yes
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_header_preproc=no
10573 fi
10574 rm -f conftest.err conftest.$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10576 echo "${ECHO_T}$ac_header_preproc" >&6
10577
10578 # So? What about this header?
10579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10580 yes:no: )
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10585 ac_header_preproc=yes
10586 ;;
10587 no:yes:* )
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10600 (
10601 cat <<\_ASBOX
10602 ## ------------------------------------------ ##
10603 ## Report this to the AC_PACKAGE_NAME lists. ##
10604 ## ------------------------------------------ ##
10605 _ASBOX
10606 ) |
10607 sed "s/^/$as_me: WARNING: /" >&2
10608 ;;
10609 esac
10610 echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615 eval "$as_ac_Header=\$ac_header_preproc"
10616 fi
10617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10619
10620 fi
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624 _ACEOF
10625
10626 fi
10627
10628 done
10629
10630 if test "$ac_cv_header_pthread_h"; then
10631 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10632 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10633 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636 ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-lpthread $LIBS"
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644
10645 /* Override any gcc2 internal prototype to avoid an error. */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 /* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10651 char pthread_self ();
10652 int
10653 main ()
10654 {
10655 pthread_self ();
10656 ;
10657 return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_lib_pthread_pthread_self=yes
10682 else
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ac_cv_lib_pthread_pthread_self=no
10687 fi
10688 rm -f conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10691 fi
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10693 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10694 if test $ac_cv_lib_pthread_pthread_self = yes; then
10695 HAVE_GTK_AND_PTHREAD=yes
10696 fi
10697
10698 fi
10699 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10700 GTK_LIBS="$GTK_LIBS -lpthread"
10701
10702 cat >>confdefs.h <<\_ACEOF
10703 #define HAVE_GTK_AND_PTHREAD 1
10704 _ACEOF
10705
10706 fi
10707 fi
10708 fi
10709
10710 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10711 if test x"${HAVE_X11R5}" = xyes; then
10712 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10713 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10714 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723
10724 #include <X11/Intrinsic.h>
10725 #include <X11/Xaw/Simple.h>
10726 int
10727 main ()
10728 {
10729
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; } &&
10749 { ac_try='test -s conftest$ac_exeext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 emacs_cv_x11_version_5_with_xaw=yes
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 emacs_cv_x11_version_5_with_xaw=no
10761 fi
10762 rm -f conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 fi
10765
10766 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10767 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10768 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10769 USE_X_TOOLKIT=LUCID
10770 else
10771 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10772 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10773 USE_X_TOOLKIT=none
10774 fi
10775 else
10776 USE_X_TOOLKIT=none
10777 fi
10778 fi
10779
10780 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10781
10782 if test "${USE_X_TOOLKIT}" != "none"; then
10783 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10784 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10785 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <X11/Intrinsic.h>
10795 int
10796 main ()
10797 {
10798 #if XtSpecificationRelease < 6
10799 fail;
10800 #endif
10801
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 emacs_cv_x11_toolkit_version_6=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 emacs_cv_x11_toolkit_version_6=no
10833 fi
10834 rm -f conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 fi
10837
10838 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10839 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10840 echo "$as_me:$LINENO: result: 6 or newer" >&5
10841 echo "${ECHO_T}6 or newer" >&6
10842
10843 cat >>confdefs.h <<\_ACEOF
10844 #define HAVE_X11XTR6 1
10845 _ACEOF
10846
10847 else
10848 echo "$as_me:$LINENO: result: before 6" >&5
10849 echo "${ECHO_T}before 6" >&6
10850 fi
10851
10852 OLDLIBS="$LIBS"
10853 if test x$HAVE_X11XTR6 = xyes; then
10854 LIBS="-lXt -lSM -lICE $LIBS"
10855 else
10856 LIBS="-lXt $LIBS"
10857 fi
10858
10859 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10860 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10861 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864 ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-lXmu $LIBS"
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872
10873 /* Override any gcc2 internal prototype to avoid an error. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 /* We use char because int might match the return type of a gcc2
10878 builtin and then its argument prototype would still apply. */
10879 char XmuConvertStandardSelection ();
10880 int
10881 main ()
10882 {
10883 XmuConvertStandardSelection ();
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext conftest$ac_exeext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890 (eval $ac_link) 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10915 fi
10916 rm -f conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10921 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10922 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_LIBXMU 1
10925 _ACEOF
10926
10927 LIBS="-lXmu $LIBS"
10928
10929 fi
10930
10931 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10932 fi
10933
10934 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10935 if test "${HAVE_X11}" = "yes"; then
10936 if test "${USE_X_TOOLKIT}" != "none"; then
10937
10938 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10939 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10940 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-lXext $LIBS"
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951
10952 /* Override any gcc2 internal prototype to avoid an error. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char XShapeQueryExtension ();
10959 int
10960 main ()
10961 {
10962 XShapeQueryExtension ();
10963 ;
10964 return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_lib_Xext_XShapeQueryExtension=yes
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ac_cv_lib_Xext_XShapeQueryExtension=no
10994 fi
10995 rm -f conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11000 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11001 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11002 cat >>confdefs.h <<_ACEOF
11003 #define HAVE_LIBXEXT 1
11004 _ACEOF
11005
11006 LIBS="-lXext $LIBS"
11007
11008 fi
11009
11010 fi
11011 fi
11012
11013 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11014 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11015 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11016 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <Xm/Xm.h>
11026 int
11027 main ()
11028 {
11029 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11030 int x = 5;
11031 #else
11032 Motif version prior to 2.1.
11033 #endif
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 emacs_cv_motif_version_2_1=yes
11060 else
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 emacs_cv_motif_version_2_1=no
11065 fi
11066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11067 fi
11068 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11069 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11070 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11071 if test $emacs_cv_motif_version_2_1 = yes; then
11072 HAVE_LIBXP=no
11073
11074 cat >>confdefs.h <<\_ACEOF
11075 #define HAVE_MOTIF_2_1 1
11076 _ACEOF
11077
11078 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11079 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11080 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-lXp $LIBS"
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091
11092 /* Override any gcc2 internal prototype to avoid an error. */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11098 char XpCreateContext ();
11099 int
11100 main ()
11101 {
11102 XpCreateContext ();
11103 ;
11104 return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>conftest.er1
11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } &&
11116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest$ac_exeext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ac_cv_lib_Xp_XpCreateContext=yes
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 ac_cv_lib_Xp_XpCreateContext=no
11134 fi
11135 rm -f conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11138 fi
11139 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11140 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11141 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11142 HAVE_LIBXP=yes
11143 fi
11144
11145 if test ${HAVE_LIBXP} = yes; then
11146
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_LIBXP 1
11149 _ACEOF
11150
11151 fi
11152 else
11153 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11154 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11155 if test "${emacs_cv_lesstif+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 # We put this in CFLAGS temporarily to precede other -I options
11159 # that might be in CFLAGS temporarily.
11160 # We put this in CPPFLAGS where it precedes the other -I options.
11161 OLD_CPPFLAGS=$CPPFLAGS
11162 OLD_CFLAGS=$CFLAGS
11163 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11164 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11172 int
11173 main ()
11174 {
11175 int x = 5;
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 emacs_cv_lesstif=yes
11202 else
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 emacs_cv_lesstif=no
11207 fi
11208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11209 fi
11210 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11211 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11212 if test $emacs_cv_lesstif = yes; then
11213 # Make sure this -I option remains in CPPFLAGS after it is set
11214 # back to REAL_CPPFLAGS.
11215 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11216 # have those other -I options anyway. Ultimately, having this
11217 # directory ultimately in CPPFLAGS will be enough.
11218 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11219 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11220 else
11221 CFLAGS=$OLD_CFLAGS
11222 CPPFLAGS=$OLD_CPPFLAGS
11223 fi
11224 fi
11225 fi
11226
11227 ### Is -lXaw3d available?
11228 HAVE_XAW3D=no
11229 if test "${HAVE_X11}" = "yes"; then
11230 if test "${USE_X_TOOLKIT}" != "none"; then
11231 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11232 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11233 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <X11/Xaw3d/Scrollbar.h>
11243 _ACEOF
11244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } >/dev/null; then
11252 if test -s conftest.err; then
11253 ac_cpp_err=$ac_c_preproc_warn_flag
11254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11255 else
11256 ac_cpp_err=
11257 fi
11258 else
11259 ac_cpp_err=yes
11260 fi
11261 if test -z "$ac_cpp_err"; then
11262 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11266
11267 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11268 fi
11269 rm -f conftest.err conftest.$ac_ext
11270 fi
11271 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11272 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11273 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11274 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11275 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11276 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279 ac_check_lib_save_LIBS=$LIBS
11280 LIBS="-lXaw3d $LIBS"
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287
11288 /* Override any gcc2 internal prototype to avoid an error. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11294 char XawScrollbarSetThumb ();
11295 int
11296 main ()
11297 {
11298 XawScrollbarSetThumb ();
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11325 else
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11330 fi
11331 rm -f conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11334 fi
11335 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11336 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11337 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11338 HAVE_XAW3D=yes
11339 fi
11340
11341 fi
11342
11343
11344 if test "${HAVE_XAW3D}" = "yes"; then
11345
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_XAW3D 1
11348 _ACEOF
11349
11350 fi
11351 fi
11352 fi
11353
11354
11355
11356 USE_TOOLKIT_SCROLL_BARS=no
11357 if test "${with_toolkit_scroll_bars}" != "no"; then
11358 if test "${USE_X_TOOLKIT}" != "none"; then
11359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define USE_TOOLKIT_SCROLL_BARS 1
11362 _ACEOF
11363
11364 HAVE_XAW3D=no
11365 USE_TOOLKIT_SCROLL_BARS=yes
11366 elif test "${HAVE_XAW3D}" = "yes"; then
11367 cat >>confdefs.h <<\_ACEOF
11368 #define USE_TOOLKIT_SCROLL_BARS 1
11369 _ACEOF
11370
11371 USE_TOOLKIT_SCROLL_BARS=yes
11372 fi
11373 elif test "${HAVE_GTK}" = "yes"; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define USE_TOOLKIT_SCROLL_BARS 1
11376 _ACEOF
11377
11378 USE_TOOLKIT_SCROLL_BARS=yes
11379 elif test "${HAVE_CARBON}" = "yes"; then
11380 cat >>confdefs.h <<\_ACEOF
11381 #define USE_TOOLKIT_SCROLL_BARS 1
11382 _ACEOF
11383
11384 USE_TOOLKIT_SCROLL_BARS=yes
11385 fi
11386 fi
11387
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394
11395 #include <X11/Xlib.h>
11396 #include <X11/Xresource.h>
11397 int
11398 main ()
11399 {
11400 XIMProc callback;
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 HAVE_XIM=yes
11427
11428 cat >>confdefs.h <<\_ACEOF
11429 #define HAVE_XIM 1
11430 _ACEOF
11431
11432 else
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 HAVE_XIM=no
11437 fi
11438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11439
11440
11441 if test "${with_xim}" != "no"; then
11442
11443 cat >>confdefs.h <<\_ACEOF
11444 #define USE_XIM 1
11445 _ACEOF
11446
11447 fi
11448
11449
11450 if test "${HAVE_XIM}" != "no"; then
11451 late_CFLAGS=$CFLAGS
11452 if test "$GCC" = yes; then
11453 CFLAGS="$CFLAGS --pedantic-errors"
11454 fi
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461
11462 #include <X11/Xlib.h>
11463 #include <X11/Xresource.h>
11464 int
11465 main ()
11466 {
11467 Display *display;
11468 XrmDatabase db;
11469 char *res_name;
11470 char *res_class;
11471 XIMProc callback;
11472 XPointer *client_data;
11473 #ifndef __GNUC__
11474 /* If we're not using GCC, it's probably not XFree86, and this is
11475 probably right, but we can't use something like --pedantic-errors. */
11476 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11477 char*, XIMProc, XPointer*);
11478 #endif
11479 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11480 client_data);
11481 ;
11482 return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 emacs_cv_arg6_star=yes
11507 else
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 fi
11512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513
11514 if test "$emacs_cv_arg6_star" = yes; then
11515 cat >>confdefs.h <<\_ACEOF
11516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11517 _ACEOF
11518
11519 else
11520 cat >>confdefs.h <<\_ACEOF
11521 #define XRegisterIMInstantiateCallback_arg6 XPointer
11522 _ACEOF
11523
11524 fi
11525 CFLAGS=$late_CFLAGS
11526 fi
11527
11528 ### Use -lXpm if available, unless `--with-xpm=no'.
11529 HAVE_XPM=no
11530 if test "${HAVE_X11}" = "yes"; then
11531 if test "${with_xpm}" != "no"; then
11532 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11533 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11534 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11535 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 fi
11538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11539 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11540 else
11541 # Is the header compilable?
11542 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11543 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <X11/xpm.h>
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_header_compiler=yes
11575 else
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579 ac_header_compiler=no
11580 fi
11581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11583 echo "${ECHO_T}$ac_header_compiler" >&6
11584
11585 # Is the header present?
11586 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11587 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h. */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include <X11/xpm.h>
11595 _ACEOF
11596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } >/dev/null; then
11604 if test -s conftest.err; then
11605 ac_cpp_err=$ac_c_preproc_warn_flag
11606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11607 else
11608 ac_cpp_err=
11609 fi
11610 else
11611 ac_cpp_err=yes
11612 fi
11613 if test -z "$ac_cpp_err"; then
11614 ac_header_preproc=yes
11615 else
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 ac_header_preproc=no
11620 fi
11621 rm -f conftest.err conftest.$ac_ext
11622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11623 echo "${ECHO_T}$ac_header_preproc" >&6
11624
11625 # So? What about this header?
11626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11627 yes:no: )
11628 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11629 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11631 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11632 ac_header_preproc=yes
11633 ;;
11634 no:yes:* )
11635 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11636 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11638 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11640 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11642 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11644 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11646 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11647 (
11648 cat <<\_ASBOX
11649 ## ------------------------------------------ ##
11650 ## Report this to the AC_PACKAGE_NAME lists. ##
11651 ## ------------------------------------------ ##
11652 _ASBOX
11653 ) |
11654 sed "s/^/$as_me: WARNING: /" >&2
11655 ;;
11656 esac
11657 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11658 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11659 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 ac_cv_header_X11_xpm_h=$ac_header_preproc
11663 fi
11664 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11665 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11666
11667 fi
11668 if test $ac_cv_header_X11_xpm_h = yes; then
11669 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11670 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11671 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_check_lib_save_LIBS=$LIBS
11675 LIBS="-lXpm -lX11 $LIBS"
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682
11683 /* Override any gcc2 internal prototype to avoid an error. */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 /* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689 char XpmReadFileToPixmap ();
11690 int
11691 main ()
11692 {
11693 XpmReadFileToPixmap ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11725 fi
11726 rm -f conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_lib_save_LIBS
11729 fi
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11731 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11732 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11733 HAVE_XPM=yes
11734 fi
11735
11736 fi
11737
11738
11739 if test "${HAVE_XPM}" = "yes"; then
11740 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11741 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h. */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include "X11/xpm.h"
11749 #ifndef XpmReturnAllocPixels
11750 no_return_alloc_pixels
11751 #endif
11752
11753 _ACEOF
11754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11755 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11756 HAVE_XPM=no
11757 else
11758 HAVE_XPM=yes
11759 fi
11760 rm -f conftest*
11761
11762
11763 if test "${HAVE_XPM}" = "yes"; then
11764 echo "$as_me:$LINENO: result: yes" >&5
11765 echo "${ECHO_T}yes" >&6
11766 else
11767 echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11769 fi
11770 fi
11771 fi
11772
11773 if test "${HAVE_XPM}" = "yes"; then
11774
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_XPM 1
11777 _ACEOF
11778
11779 fi
11780 fi
11781
11782 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11783 HAVE_JPEG=no
11784 if test "${HAVE_X11}" = "yes"; then
11785 if test "${with_jpeg}" != "no"; then
11786 if test "${ac_cv_header_jerror_h+set}" = set; then
11787 echo "$as_me:$LINENO: checking for jerror.h" >&5
11788 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11789 if test "${ac_cv_header_jerror_h+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 fi
11792 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11793 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11794 else
11795 # Is the header compilable?
11796 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11797 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 #include <jerror.h>
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_header_compiler=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_header_compiler=no
11834 fi
11835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6
11838
11839 # Is the header present?
11840 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11841 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <jerror.h>
11849 _ACEOF
11850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } >/dev/null; then
11858 if test -s conftest.err; then
11859 ac_cpp_err=$ac_c_preproc_warn_flag
11860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11861 else
11862 ac_cpp_err=
11863 fi
11864 else
11865 ac_cpp_err=yes
11866 fi
11867 if test -z "$ac_cpp_err"; then
11868 ac_header_preproc=yes
11869 else
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873 ac_header_preproc=no
11874 fi
11875 rm -f conftest.err conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877 echo "${ECHO_T}$ac_header_preproc" >&6
11878
11879 # So? What about this header?
11880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11881 yes:no: )
11882 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11883 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11885 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11886 ac_header_preproc=yes
11887 ;;
11888 no:yes:* )
11889 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11894 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11896 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11898 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11900 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11901 (
11902 cat <<\_ASBOX
11903 ## ------------------------------------------ ##
11904 ## Report this to the AC_PACKAGE_NAME lists. ##
11905 ## ------------------------------------------ ##
11906 _ASBOX
11907 ) |
11908 sed "s/^/$as_me: WARNING: /" >&2
11909 ;;
11910 esac
11911 echo "$as_me:$LINENO: checking for jerror.h" >&5
11912 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11913 if test "${ac_cv_header_jerror_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916 ac_cv_header_jerror_h=$ac_header_preproc
11917 fi
11918 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11919 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11920
11921 fi
11922 if test $ac_cv_header_jerror_h = yes; then
11923 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11924 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11925 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-ljpeg $LIBS"
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936
11937 /* Override any gcc2 internal prototype to avoid an error. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 /* We use char because int might match the return type of a gcc2
11942 builtin and then its argument prototype would still apply. */
11943 char jpeg_destroy_compress ();
11944 int
11945 main ()
11946 {
11947 jpeg_destroy_compress ();
11948 ;
11949 return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11979 fi
11980 rm -f conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982 LIBS=$ac_check_lib_save_LIBS
11983 fi
11984 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11985 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11986 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11987 HAVE_JPEG=yes
11988 fi
11989
11990 fi
11991
11992
11993 fi
11994
11995
11996 if test "${HAVE_JPEG}" = "yes"; then
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_JPEG 1
11999 _ACEOF
12000
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <jpeglib.h>
12008 version=JPEG_LIB_VERSION
12009
12010 _ACEOF
12011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12013 cat >>confdefs.h <<\_ACEOF
12014 #define HAVE_JPEG 1
12015 _ACEOF
12016
12017 else
12018 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12019 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12020 HAVE_JPEG=no
12021 fi
12022 rm -f conftest*
12023
12024 fi
12025 fi
12026
12027 ### Use -lpng if available, unless `--with-png=no'.
12028 HAVE_PNG=no
12029 if test "${HAVE_X11}" = "yes"; then
12030 if test "${with_png}" != "no"; then
12031 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12032 # in /usr/include/libpng.
12033
12034
12035 for ac_header in png.h libpng/png.h
12036 do
12037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12039 echo "$as_me:$LINENO: checking for $ac_header" >&5
12040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 fi
12044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12046 else
12047 # Is the header compilable?
12048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 $ac_includes_default
12057 #include <$ac_header>
12058 _ACEOF
12059 rm -f conftest.$ac_objext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try='test -s conftest.$ac_objext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_header_compiler=yes
12081 else
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 ac_header_compiler=no
12086 fi
12087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12089 echo "${ECHO_T}$ac_header_compiler" >&6
12090
12091 # Is the header present?
12092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 #include <$ac_header>
12101 _ACEOF
12102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
12112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12113 else
12114 ac_cpp_err=
12115 fi
12116 else
12117 ac_cpp_err=yes
12118 fi
12119 if test -z "$ac_cpp_err"; then
12120 ac_header_preproc=yes
12121 else
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 ac_header_preproc=no
12126 fi
12127 rm -f conftest.err conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12129 echo "${ECHO_T}$ac_header_preproc" >&6
12130
12131 # So? What about this header?
12132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12133 yes:no: )
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12138 ac_header_preproc=yes
12139 ;;
12140 no:yes:* )
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12153 (
12154 cat <<\_ASBOX
12155 ## ------------------------------------------ ##
12156 ## Report this to the AC_PACKAGE_NAME lists. ##
12157 ## ------------------------------------------ ##
12158 _ASBOX
12159 ) |
12160 sed "s/^/$as_me: WARNING: /" >&2
12161 ;;
12162 esac
12163 echo "$as_me:$LINENO: checking for $ac_header" >&5
12164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 eval "$as_ac_Header=\$ac_header_preproc"
12169 fi
12170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12172
12173 fi
12174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12177 _ACEOF
12178
12179 fi
12180
12181 done
12182
12183 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12184 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12185 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12186 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189 ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lpng -lz -lm $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204 char png_get_channels ();
12205 int
12206 main ()
12207 {
12208 png_get_channels ();
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_png_png_get_channels=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_lib_png_png_get_channels=no
12240 fi
12241 rm -f conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 LIBS=$ac_check_lib_save_LIBS
12244 fi
12245 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12246 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12247 if test $ac_cv_lib_png_png_get_channels = yes; then
12248 HAVE_PNG=yes
12249 fi
12250
12251 fi
12252 fi
12253
12254 if test "${HAVE_PNG}" = "yes"; then
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_PNG 1
12258 _ACEOF
12259
12260 fi
12261 fi
12262
12263 ### Use -ltiff if available, unless `--with-tiff=no'.
12264 HAVE_TIFF=no
12265 if test "${HAVE_X11}" = "yes"; then
12266 if test "${with_tiff}" != "no"; then
12267 if test "${ac_cv_header_tiffio_h+set}" = set; then
12268 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12269 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12270 if test "${ac_cv_header_tiffio_h+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 fi
12273 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12274 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12275 else
12276 # Is the header compilable?
12277 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12278 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12279 cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h. */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285 $ac_includes_default
12286 #include <tiffio.h>
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_header_compiler=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_header_compiler=no
12315 fi
12316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 echo "${ECHO_T}$ac_header_compiler" >&6
12319
12320 # Is the header present?
12321 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12322 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <tiffio.h>
12330 _ACEOF
12331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } >/dev/null; then
12339 if test -s conftest.err; then
12340 ac_cpp_err=$ac_c_preproc_warn_flag
12341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12342 else
12343 ac_cpp_err=
12344 fi
12345 else
12346 ac_cpp_err=yes
12347 fi
12348 if test -z "$ac_cpp_err"; then
12349 ac_header_preproc=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 ac_header_preproc=no
12355 fi
12356 rm -f conftest.err conftest.$ac_ext
12357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 echo "${ECHO_T}$ac_header_preproc" >&6
12359
12360 # So? What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12362 yes:no: )
12363 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12364 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12366 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12367 ac_header_preproc=yes
12368 ;;
12369 no:yes:* )
12370 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12371 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12373 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12375 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12377 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12379 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12381 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12382 (
12383 cat <<\_ASBOX
12384 ## ------------------------------------------ ##
12385 ## Report this to the AC_PACKAGE_NAME lists. ##
12386 ## ------------------------------------------ ##
12387 _ASBOX
12388 ) |
12389 sed "s/^/$as_me: WARNING: /" >&2
12390 ;;
12391 esac
12392 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12393 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12394 if test "${ac_cv_header_tiffio_h+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397 ac_cv_header_tiffio_h=$ac_header_preproc
12398 fi
12399 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12400 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12401
12402 fi
12403 if test $ac_cv_header_tiffio_h = yes; then
12404 tifflibs="-lz -lm"
12405 # At least one tiff package requires the jpeg library.
12406 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12407 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12408 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12409 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-ltiff $tifflibs $LIBS"
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420
12421 /* Override any gcc2 internal prototype to avoid an error. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427 char TIFFGetVersion ();
12428 int
12429 main ()
12430 {
12431 TIFFGetVersion ();
12432 ;
12433 return 0;
12434 }
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12438 (eval $ac_link) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_lib_tiff_TIFFGetVersion=yes
12458 else
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ac_cv_lib_tiff_TIFFGetVersion=no
12463 fi
12464 rm -f conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12467 fi
12468 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12469 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12470 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12471 HAVE_TIFF=yes
12472 fi
12473
12474 fi
12475
12476
12477 fi
12478
12479 if test "${HAVE_TIFF}" = "yes"; then
12480
12481 cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_TIFF 1
12483 _ACEOF
12484
12485 fi
12486 fi
12487
12488 ### Use -lgif if available, unless `--with-gif=no'.
12489 HAVE_GIF=no
12490 if test "${HAVE_X11}" = "yes"; then
12491 if test "${with_gif}" != "no"; then
12492 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12493 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12494 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12495 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 fi
12498 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12499 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12500 else
12501 # Is the header compilable?
12502 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12503 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 $ac_includes_default
12511 #include <gif_lib.h>
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest.$ac_objext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_header_compiler=yes
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_header_compiler=no
12540 fi
12541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12543 echo "${ECHO_T}$ac_header_compiler" >&6
12544
12545 # Is the header present?
12546 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12547 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include <gif_lib.h>
12555 _ACEOF
12556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } >/dev/null; then
12564 if test -s conftest.err; then
12565 ac_cpp_err=$ac_c_preproc_warn_flag
12566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12567 else
12568 ac_cpp_err=
12569 fi
12570 else
12571 ac_cpp_err=yes
12572 fi
12573 if test -z "$ac_cpp_err"; then
12574 ac_header_preproc=yes
12575 else
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_header_preproc=no
12580 fi
12581 rm -f conftest.err conftest.$ac_ext
12582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12583 echo "${ECHO_T}$ac_header_preproc" >&6
12584
12585 # So? What about this header?
12586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12587 yes:no: )
12588 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12589 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12591 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12592 ac_header_preproc=yes
12593 ;;
12594 no:yes:* )
12595 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12596 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12598 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12600 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12602 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12604 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12606 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12607 (
12608 cat <<\_ASBOX
12609 ## ------------------------------------------ ##
12610 ## Report this to the AC_PACKAGE_NAME lists. ##
12611 ## ------------------------------------------ ##
12612 _ASBOX
12613 ) |
12614 sed "s/^/$as_me: WARNING: /" >&2
12615 ;;
12616 esac
12617 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12618 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12619 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 ac_cv_header_gif_lib_h=$ac_header_preproc
12623 fi
12624 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12625 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12626
12627 fi
12628 if test $ac_cv_header_gif_lib_h = yes; then
12629 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12630 # Earlier versions can crash Emacs.
12631 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12632 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12633 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636 ac_check_lib_save_LIBS=$LIBS
12637 LIBS="-lungif $LIBS"
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644
12645 /* Override any gcc2 internal prototype to avoid an error. */
12646 #ifdef __cplusplus
12647 extern "C"
12648 #endif
12649 /* We use char because int might match the return type of a gcc2
12650 builtin and then its argument prototype would still apply. */
12651 char EGifPutExtensionLast ();
12652 int
12653 main ()
12654 {
12655 EGifPutExtensionLast ();
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662 (eval $ac_link) 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12682 else
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ac_cv_lib_ungif_EGifPutExtensionLast=no
12687 fi
12688 rm -f conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS
12691 fi
12692 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12693 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12694 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12695 HAVE_GIF=yes
12696 fi
12697
12698 fi
12699
12700
12701 fi
12702
12703 if test "${HAVE_GIF}" = "yes"; then
12704
12705 cat >>confdefs.h <<\_ACEOF
12706 #define HAVE_GIF 1
12707 _ACEOF
12708
12709 fi
12710 fi
12711
12712 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12713 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12714 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12715 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 fi
12718 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12720 else
12721 # Is the header compilable?
12722 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12723 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <malloc/malloc.h>
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_header_compiler=yes
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759 ac_header_compiler=no
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12763 echo "${ECHO_T}$ac_header_compiler" >&6
12764
12765 # Is the header present?
12766 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12767 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 #include <malloc/malloc.h>
12775 _ACEOF
12776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev/null; then
12784 if test -s conftest.err; then
12785 ac_cpp_err=$ac_c_preproc_warn_flag
12786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12787 else
12788 ac_cpp_err=
12789 fi
12790 else
12791 ac_cpp_err=yes
12792 fi
12793 if test -z "$ac_cpp_err"; then
12794 ac_header_preproc=yes
12795 else
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_header_preproc=no
12800 fi
12801 rm -f conftest.err conftest.$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12803 echo "${ECHO_T}$ac_header_preproc" >&6
12804
12805 # So? What about this header?
12806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12807 yes:no: )
12808 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12809 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12811 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12812 ac_header_preproc=yes
12813 ;;
12814 no:yes:* )
12815 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12816 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12818 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12820 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12822 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12824 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12826 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12827 (
12828 cat <<\_ASBOX
12829 ## ------------------------------------------ ##
12830 ## Report this to the AC_PACKAGE_NAME lists. ##
12831 ## ------------------------------------------ ##
12832 _ASBOX
12833 ) |
12834 sed "s/^/$as_me: WARNING: /" >&2
12835 ;;
12836 esac
12837 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12838 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12843 fi
12844 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12846
12847 fi
12848 if test $ac_cv_header_malloc_malloc_h = yes; then
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_MALLOC_MALLOC_H 1
12852 _ACEOF
12853
12854 fi
12855
12856
12857
12858 ### Use Mac OS X Carbon API to implement GUI.
12859 if test "${HAVE_CARBON}" = "yes"; then
12860
12861 cat >>confdefs.h <<\_ACEOF
12862 #define HAVE_CARBON 1
12863 _ACEOF
12864
12865 ## Specify the install directory
12866 carbon_appdir=
12867 if test "${carbon_appdir_x}" != ""; then
12868 case ${carbon_appdir_x} in
12869 y | ye | yes) carbon_appdir=/Applications ;;
12870 * ) carbon_appdir=${carbon_appdir_x} ;;
12871 esac
12872 fi
12873 # We also have mouse menus.
12874 HAVE_MENUS=yes
12875
12876 tmp_CFLAGS="$CFLAGS"
12877 CFLAGS="$CFLAGS -framework Carbon"
12878 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12879 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12880 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12891 #define CancelMenuTracking innocuous_CancelMenuTracking
12892
12893 /* System header to define __stub macros and hopefully few prototypes,
12894 which can conflict with char CancelMenuTracking (); below.
12895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12896 <limits.h> exists even on freestanding compilers. */
12897
12898 #ifdef __STDC__
12899 # include <limits.h>
12900 #else
12901 # include <assert.h>
12902 #endif
12903
12904 #undef CancelMenuTracking
12905
12906 /* Override any gcc2 internal prototype to avoid an error. */
12907 #ifdef __cplusplus
12908 extern "C"
12909 {
12910 #endif
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913 char CancelMenuTracking ();
12914 /* The GNU C library defines this for functions which it implements
12915 to always fail with ENOSYS. Some functions are actually named
12916 something starting with __ and the normal name is an alias. */
12917 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12918 choke me
12919 #else
12920 char (*f) () = CancelMenuTracking;
12921 #endif
12922 #ifdef __cplusplus
12923 }
12924 #endif
12925
12926 int
12927 main ()
12928 {
12929 return f != CancelMenuTracking;
12930 ;
12931 return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936 (eval $ac_link) 2>conftest.er1
12937 ac_status=$?
12938 grep -v '^ *+' conftest.er1 >conftest.err
12939 rm -f conftest.er1
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 ac_cv_func_CancelMenuTracking=yes
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960 ac_cv_func_CancelMenuTracking=no
12961 fi
12962 rm -f conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
12964 fi
12965 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12966 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12967 if test $ac_cv_func_CancelMenuTracking = yes; then
12968 have_cmt=yes
12969 else
12970 have_cmt=no
12971 fi
12972
12973 if test "$have_cmt" = yes; then
12974
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_CANCELMENUTRACKING 1
12977 _ACEOF
12978
12979 fi
12980 CFLAGS="$tmp_CFLAGS"
12981 fi
12982
12983 ### Use session management (-lSM -lICE) if available
12984 HAVE_X_SM=no
12985 if test "${HAVE_X11}" = "yes"; then
12986 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12987 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12988 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12989 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 fi
12992 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12993 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12994 else
12995 # Is the header compilable?
12996 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12997 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 $ac_includes_default
13005 #include <X11/SM/SMlib.h>
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try='test -s conftest.$ac_objext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_header_compiler=yes
13029 else
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 ac_header_compiler=no
13034 fi
13035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13037 echo "${ECHO_T}$ac_header_compiler" >&6
13038
13039 # Is the header present?
13040 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13041 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 #include <X11/SM/SMlib.h>
13049 _ACEOF
13050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_c_preproc_warn_flag
13060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13061 else
13062 ac_cpp_err=
13063 fi
13064 else
13065 ac_cpp_err=yes
13066 fi
13067 if test -z "$ac_cpp_err"; then
13068 ac_header_preproc=yes
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ac_header_preproc=no
13074 fi
13075 rm -f conftest.err conftest.$ac_ext
13076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13077 echo "${ECHO_T}$ac_header_preproc" >&6
13078
13079 # So? What about this header?
13080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13081 yes:no: )
13082 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13083 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13084 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13085 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13086 ac_header_preproc=yes
13087 ;;
13088 no:yes:* )
13089 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13090 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13092 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13094 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13096 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13098 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13100 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13101 (
13102 cat <<\_ASBOX
13103 ## ------------------------------------------ ##
13104 ## Report this to the AC_PACKAGE_NAME lists. ##
13105 ## ------------------------------------------ ##
13106 _ASBOX
13107 ) |
13108 sed "s/^/$as_me: WARNING: /" >&2
13109 ;;
13110 esac
13111 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13112 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13113 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13117 fi
13118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13119 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13120
13121 fi
13122 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13123 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13124 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13125 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lSM -lICE $LIBS"
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136
13137 /* Override any gcc2 internal prototype to avoid an error. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 /* We use char because int might match the return type of a gcc2
13142 builtin and then its argument prototype would still apply. */
13143 char SmcOpenConnection ();
13144 int
13145 main ()
13146 {
13147 SmcOpenConnection ();
13148 ;
13149 return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest$ac_exeext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_lib_SM_SmcOpenConnection=yes
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 ac_cv_lib_SM_SmcOpenConnection=no
13179 fi
13180 rm -f conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13183 fi
13184 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13185 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13186 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13187 HAVE_X_SM=yes
13188 fi
13189
13190 fi
13191
13192
13193
13194 if test "${HAVE_X_SM}" = "yes"; then
13195
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_X_SM 1
13198 _ACEOF
13199
13200 case "$LIBS" in
13201 *-lSM*) ;;
13202 *) LIBS="-lSM -lICE $LIBS" ;;
13203 esac
13204 fi
13205 fi
13206
13207 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13208 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13209 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13210 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h. */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 #include <netdb.h>
13220 int
13221 main ()
13222 {
13223 return h_errno;
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230 (eval $ac_link) 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 emacs_cv_netdb_declares_h_errno=yes
13250 else
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 emacs_cv_netdb_declares_h_errno=no
13255 fi
13256 rm -f conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 fi
13259 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13260 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13261 if test $emacs_cv_netdb_declares_h_errno = yes; then
13262
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_H_ERRNO 1
13265 _ACEOF
13266
13267 fi
13268
13269 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13270 # for constant arguments. Useless!
13271 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13272 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13273 if test "${ac_cv_working_alloca_h+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <alloca.h>
13283 int
13284 main ()
13285 {
13286 char *p = (char *) alloca (2 * sizeof (int));
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 rm -f conftest.$ac_objext conftest$ac_exeext
13292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13293 (eval $ac_link) 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest$ac_exeext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_working_alloca_h=yes
13313 else
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_working_alloca_h=no
13318 fi
13319 rm -f conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 fi
13322 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13323 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13324 if test $ac_cv_working_alloca_h = yes; then
13325
13326 cat >>confdefs.h <<\_ACEOF
13327 #define HAVE_ALLOCA_H 1
13328 _ACEOF
13329
13330 fi
13331
13332 echo "$as_me:$LINENO: checking for alloca" >&5
13333 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13334 if test "${ac_cv_func_alloca_works+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 #ifdef __GNUC__
13344 # define alloca __builtin_alloca
13345 #else
13346 # ifdef _MSC_VER
13347 # include <malloc.h>
13348 # define alloca _alloca
13349 # else
13350 # if HAVE_ALLOCA_H
13351 # include <alloca.h>
13352 # else
13353 # ifdef _AIX
13354 #pragma alloca
13355 # else
13356 # ifndef alloca /* predefined by HP cc +Olibcalls */
13357 char *alloca ();
13358 # endif
13359 # endif
13360 # endif
13361 # endif
13362 #endif
13363
13364 int
13365 main ()
13366 {
13367 char *p = (char *) alloca (1);
13368 ;
13369 return 0;
13370 }
13371 _ACEOF
13372 rm -f conftest.$ac_objext conftest$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374 (eval $ac_link) 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_func_alloca_works=yes
13394 else
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398 ac_cv_func_alloca_works=no
13399 fi
13400 rm -f conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 fi
13403 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13404 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13405
13406 if test $ac_cv_func_alloca_works = yes; then
13407
13408 cat >>confdefs.h <<\_ACEOF
13409 #define HAVE_ALLOCA 1
13410 _ACEOF
13411
13412 else
13413 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13414 # that cause trouble. Some versions do not even contain alloca or
13415 # contain a buggy version. If you still want to use their alloca,
13416 # use ar to extract alloca.o from them instead of compiling alloca.c.
13417
13418 ALLOCA=alloca.$ac_objext
13419
13420 cat >>confdefs.h <<\_ACEOF
13421 #define C_ALLOCA 1
13422 _ACEOF
13423
13424
13425 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13426 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13427 if test "${ac_cv_os_cray+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h. */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #if defined(CRAY) && ! defined(CRAY2)
13437 webecray
13438 #else
13439 wenotbecray
13440 #endif
13441
13442 _ACEOF
13443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13444 $EGREP "webecray" >/dev/null 2>&1; then
13445 ac_cv_os_cray=yes
13446 else
13447 ac_cv_os_cray=no
13448 fi
13449 rm -f conftest*
13450
13451 fi
13452 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13453 echo "${ECHO_T}$ac_cv_os_cray" >&6
13454 if test $ac_cv_os_cray = yes; then
13455 for ac_func in _getb67 GETB67 getb67; do
13456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13457 echo "$as_me:$LINENO: checking for $ac_func" >&5
13458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13459 if eval "test \"\${$as_ac_var+set}\" = set"; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h. */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13470 #define $ac_func innocuous_$ac_func
13471
13472 /* System header to define __stub macros and hopefully few prototypes,
13473 which can conflict with char $ac_func (); below.
13474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13475 <limits.h> exists even on freestanding compilers. */
13476
13477 #ifdef __STDC__
13478 # include <limits.h>
13479 #else
13480 # include <assert.h>
13481 #endif
13482
13483 #undef $ac_func
13484
13485 /* Override any gcc2 internal prototype to avoid an error. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 {
13489 #endif
13490 /* We use char because int might match the return type of a gcc2
13491 builtin and then its argument prototype would still apply. */
13492 char $ac_func ();
13493 /* The GNU C library defines this for functions which it implements
13494 to always fail with ENOSYS. Some functions are actually named
13495 something starting with __ and the normal name is an alias. */
13496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13497 choke me
13498 #else
13499 char (*f) () = $ac_func;
13500 #endif
13501 #ifdef __cplusplus
13502 }
13503 #endif
13504
13505 int
13506 main ()
13507 {
13508 return f != $ac_func;
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515 (eval $ac_link) 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 eval "$as_ac_var=yes"
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 eval "$as_ac_var=no"
13540 fi
13541 rm -f conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 fi
13544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13546 if test `eval echo '${'$as_ac_var'}'` = yes; then
13547
13548 cat >>confdefs.h <<_ACEOF
13549 #define CRAY_STACKSEG_END $ac_func
13550 _ACEOF
13551
13552 break
13553 fi
13554
13555 done
13556 fi
13557
13558 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13559 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13560 if test "${ac_cv_c_stack_direction+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563 if test "$cross_compiling" = yes; then
13564 ac_cv_c_stack_direction=0
13565 else
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h. */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 int
13573 find_stack_direction ()
13574 {
13575 static char *addr = 0;
13576 auto char dummy;
13577 if (addr == 0)
13578 {
13579 addr = &dummy;
13580 return find_stack_direction ();
13581 }
13582 else
13583 return (&dummy > addr) ? 1 : -1;
13584 }
13585
13586 int
13587 main ()
13588 {
13589 exit (find_stack_direction () < 0);
13590 }
13591 _ACEOF
13592 rm -f conftest$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 (eval $ac_link) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_c_stack_direction=1
13604 else
13605 echo "$as_me: program exited with status $ac_status" >&5
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13608
13609 ( exit $ac_status )
13610 ac_cv_c_stack_direction=-1
13611 fi
13612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13613 fi
13614 fi
13615 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13616 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13617
13618 cat >>confdefs.h <<_ACEOF
13619 #define STACK_DIRECTION $ac_cv_c_stack_direction
13620 _ACEOF
13621
13622
13623 fi
13624
13625
13626 # fmod, logb, and frexp are found in -lm on most systems.
13627 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13628
13629 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13630 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13631 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 ac_check_lib_save_LIBS=$LIBS
13635 LIBS="-lm $LIBS"
13636 cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h. */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642
13643 /* Override any gcc2 internal prototype to avoid an error. */
13644 #ifdef __cplusplus
13645 extern "C"
13646 #endif
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13649 char sqrt ();
13650 int
13651 main ()
13652 {
13653 sqrt ();
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13660 (eval $ac_link) 2>conftest.er1
13661 ac_status=$?
13662 grep -v '^ *+' conftest.er1 >conftest.err
13663 rm -f conftest.er1
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 ac_cv_lib_m_sqrt=yes
13680 else
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 ac_cv_lib_m_sqrt=no
13685 fi
13686 rm -f conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13689 fi
13690 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13691 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13692 if test $ac_cv_lib_m_sqrt = yes; then
13693 cat >>confdefs.h <<_ACEOF
13694 #define HAVE_LIBM 1
13695 _ACEOF
13696
13697 LIBS="-lm $LIBS"
13698
13699 fi
13700
13701
13702 # Check for mail-locking functions in a "mail" library. Probably this should
13703 # have the same check as for liblockfile below.
13704
13705 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13706 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13707 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 ac_check_lib_save_LIBS=$LIBS
13711 LIBS="-lmail $LIBS"
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718
13719 /* Override any gcc2 internal prototype to avoid an error. */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 /* We use char because int might match the return type of a gcc2
13724 builtin and then its argument prototype would still apply. */
13725 char maillock ();
13726 int
13727 main ()
13728 {
13729 maillock ();
13730 ;
13731 return 0;
13732 }
13733 _ACEOF
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest$ac_exeext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_lib_mail_maillock=yes
13756 else
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ac_cv_lib_mail_maillock=no
13761 fi
13762 rm -f conftest.err conftest.$ac_objext \
13763 conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS
13765 fi
13766 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13767 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13768 if test $ac_cv_lib_mail_maillock = yes; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_LIBMAIL 1
13771 _ACEOF
13772
13773 LIBS="-lmail $LIBS"
13774
13775 fi
13776
13777
13778 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13779 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13780 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783 ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-llockfile $LIBS"
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791
13792 /* Override any gcc2 internal prototype to avoid an error. */
13793 #ifdef __cplusplus
13794 extern "C"
13795 #endif
13796 /* We use char because int might match the return type of a gcc2
13797 builtin and then its argument prototype would still apply. */
13798 char maillock ();
13799 int
13800 main ()
13801 {
13802 maillock ();
13803 ;
13804 return 0;
13805 }
13806 _ACEOF
13807 rm -f conftest.$ac_objext conftest$ac_exeext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13809 (eval $ac_link) 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_lib_lockfile_maillock=yes
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ac_cv_lib_lockfile_maillock=no
13834 fi
13835 rm -f conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13838 fi
13839 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13840 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13841 if test $ac_cv_lib_lockfile_maillock = yes; then
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_LIBLOCKFILE 1
13844 _ACEOF
13845
13846 LIBS="-llockfile $LIBS"
13847
13848 fi
13849
13850 # If we have the shared liblockfile, assume we must use it for mail
13851 # locking (e.g. Debian). If we couldn't link against liblockfile
13852 # (no liblockfile.a installed), ensure that we don't need to.
13853 if test "$ac_cv_lib_lockfile_maillock" = no; then
13854 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13855 set dummy liblockfile.so; ac_word=$2
13856 echo "$as_me:$LINENO: checking for $ac_word" >&5
13857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13858 if test "${ac_cv_prog_liblockfile+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 if test -n "$liblockfile"; then
13862 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13866 for as_dir in $as_dummy
13867 do
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_prog_liblockfile="yes"
13873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 break 2
13875 fi
13876 done
13877 done
13878
13879 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13880 fi
13881 fi
13882 liblockfile=$ac_cv_prog_liblockfile
13883 if test -n "$liblockfile"; then
13884 echo "$as_me:$LINENO: result: $liblockfile" >&5
13885 echo "${ECHO_T}$liblockfile" >&6
13886 else
13887 echo "$as_me:$LINENO: result: no" >&5
13888 echo "${ECHO_T}no" >&6
13889 fi
13890
13891 if test $ac_cv_prog_liblockfile = yes; then
13892 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13893 This probably means that movemail could lose mail.
13894 There may be a \`development' package to install containing liblockfile." >&5
13895 echo "$as_me: error: Shared liblockfile found but can't link against it.
13896 This probably means that movemail could lose mail.
13897 There may be a \`development' package to install containing liblockfile." >&2;}
13898 { (exit 1); exit 1; }; }
13899 else :
13900 fi
13901 fi
13902
13903 for ac_func in touchlock
13904 do
13905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13906 echo "$as_me:$LINENO: checking for $ac_func" >&5
13907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13908 if eval "test \"\${$as_ac_var+set}\" = set"; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13919 #define $ac_func innocuous_$ac_func
13920
13921 /* System header to define __stub macros and hopefully few prototypes,
13922 which can conflict with char $ac_func (); below.
13923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13924 <limits.h> exists even on freestanding compilers. */
13925
13926 #ifdef __STDC__
13927 # include <limits.h>
13928 #else
13929 # include <assert.h>
13930 #endif
13931
13932 #undef $ac_func
13933
13934 /* Override any gcc2 internal prototype to avoid an error. */
13935 #ifdef __cplusplus
13936 extern "C"
13937 {
13938 #endif
13939 /* We use char because int might match the return type of a gcc2
13940 builtin and then its argument prototype would still apply. */
13941 char $ac_func ();
13942 /* The GNU C library defines this for functions which it implements
13943 to always fail with ENOSYS. Some functions are actually named
13944 something starting with __ and the normal name is an alias. */
13945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13946 choke me
13947 #else
13948 char (*f) () = $ac_func;
13949 #endif
13950 #ifdef __cplusplus
13951 }
13952 #endif
13953
13954 int
13955 main ()
13956 {
13957 return f != $ac_func;
13958 ;
13959 return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext conftest$ac_exeext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13964 (eval $ac_link) 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest$ac_exeext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 eval "$as_ac_var=yes"
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 eval "$as_ac_var=no"
13989 fi
13990 rm -f conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13992 fi
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13995 if test `eval echo '${'$as_ac_var'}'` = yes; then
13996 cat >>confdefs.h <<_ACEOF
13997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13998 _ACEOF
13999
14000 fi
14001 done
14002
14003
14004 for ac_header in maillock.h
14005 do
14006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 fi
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 else
14016 # Is the header compilable?
14017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 $ac_includes_default
14026 #include <$ac_header>
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_header_compiler=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_header_compiler=no
14055 fi
14056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14059
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 #include <$ac_header>
14070 _ACEOF
14071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } >/dev/null; then
14079 if test -s conftest.err; then
14080 ac_cpp_err=$ac_c_preproc_warn_flag
14081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14082 else
14083 ac_cpp_err=
14084 fi
14085 else
14086 ac_cpp_err=yes
14087 fi
14088 if test -z "$ac_cpp_err"; then
14089 ac_header_preproc=yes
14090 else
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094 ac_header_preproc=no
14095 fi
14096 rm -f conftest.err conftest.$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14099
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14102 yes:no: )
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14107 ac_header_preproc=yes
14108 ;;
14109 no:yes:* )
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14122 (
14123 cat <<\_ASBOX
14124 ## ------------------------------------------ ##
14125 ## Report this to the AC_PACKAGE_NAME lists. ##
14126 ## ------------------------------------------ ##
14127 _ASBOX
14128 ) |
14129 sed "s/^/$as_me: WARNING: /" >&2
14130 ;;
14131 esac
14132 echo "$as_me:$LINENO: checking for $ac_header" >&5
14133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 eval "$as_ac_Header=\$ac_header_preproc"
14138 fi
14139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14141
14142 fi
14143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14144 cat >>confdefs.h <<_ACEOF
14145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14146 _ACEOF
14147
14148 fi
14149
14150 done
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221 for ac_func in gethostname getdomainname dup2 \
14222 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14223 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14224 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14225 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14226 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14227 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14228 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14229 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14230 do
14231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14234 if eval "test \"\${$as_ac_var+set}\" = set"; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14246
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14251
14252 #ifdef __STDC__
14253 # include <limits.h>
14254 #else
14255 # include <assert.h>
14256 #endif
14257
14258 #undef $ac_func
14259
14260 /* Override any gcc2 internal prototype to avoid an error. */
14261 #ifdef __cplusplus
14262 extern "C"
14263 {
14264 #endif
14265 /* We use char because int might match the return type of a gcc2
14266 builtin and then its argument prototype would still apply. */
14267 char $ac_func ();
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14272 choke me
14273 #else
14274 char (*f) () = $ac_func;
14275 #endif
14276 #ifdef __cplusplus
14277 }
14278 #endif
14279
14280 int
14281 main ()
14282 {
14283 return f != $ac_func;
14284 ;
14285 return 0;
14286 }
14287 _ACEOF
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14290 (eval $ac_link) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 eval "$as_ac_var=yes"
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 eval "$as_ac_var=no"
14315 fi
14316 rm -f conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 fi
14319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14321 if test `eval echo '${'$as_ac_var'}'` = yes; then
14322 cat >>confdefs.h <<_ACEOF
14323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 fi
14327 done
14328
14329
14330
14331 for ac_header in sys/un.h
14332 do
14333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 fi
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342 else
14343 # Is the header compilable?
14344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #include <$ac_header>
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 ac_header_compiler=no
14382 fi
14383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14385 echo "${ECHO_T}$ac_header_compiler" >&6
14386
14387 # Is the header present?
14388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h. */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 #include <$ac_header>
14397 _ACEOF
14398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } >/dev/null; then
14406 if test -s conftest.err; then
14407 ac_cpp_err=$ac_c_preproc_warn_flag
14408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14409 else
14410 ac_cpp_err=
14411 fi
14412 else
14413 ac_cpp_err=yes
14414 fi
14415 if test -z "$ac_cpp_err"; then
14416 ac_header_preproc=yes
14417 else
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 ac_header_preproc=no
14422 fi
14423 rm -f conftest.err conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6
14426
14427 # So? What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14429 yes:no: )
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14434 ac_header_preproc=yes
14435 ;;
14436 no:yes:* )
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14449 (
14450 cat <<\_ASBOX
14451 ## ------------------------------------------ ##
14452 ## Report this to the AC_PACKAGE_NAME lists. ##
14453 ## ------------------------------------------ ##
14454 _ASBOX
14455 ) |
14456 sed "s/^/$as_me: WARNING: /" >&2
14457 ;;
14458 esac
14459 echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 eval "$as_ac_Header=\$ac_header_preproc"
14465 fi
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14468
14469 fi
14470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14471 cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14473 _ACEOF
14474
14475 fi
14476
14477 done
14478
14479
14480
14481
14482
14483 for ac_header in stdlib.h sys/time.h unistd.h
14484 do
14485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 fi
14492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14494 else
14495 # Is the header compilable?
14496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14505 #include <$ac_header>
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_header_compiler=yes
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_header_compiler=no
14534 fi
14535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6
14538
14539 # Is the header present?
14540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 #include <$ac_header>
14549 _ACEOF
14550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } >/dev/null; then
14558 if test -s conftest.err; then
14559 ac_cpp_err=$ac_c_preproc_warn_flag
14560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14561 else
14562 ac_cpp_err=
14563 fi
14564 else
14565 ac_cpp_err=yes
14566 fi
14567 if test -z "$ac_cpp_err"; then
14568 ac_header_preproc=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_header_preproc=no
14574 fi
14575 rm -f conftest.err conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14577 echo "${ECHO_T}$ac_header_preproc" >&6
14578
14579 # So? What about this header?
14580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14581 yes:no: )
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14586 ac_header_preproc=yes
14587 ;;
14588 no:yes:* )
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14601 (
14602 cat <<\_ASBOX
14603 ## ------------------------------------------ ##
14604 ## Report this to the AC_PACKAGE_NAME lists. ##
14605 ## ------------------------------------------ ##
14606 _ASBOX
14607 ) |
14608 sed "s/^/$as_me: WARNING: /" >&2
14609 ;;
14610 esac
14611 echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 eval "$as_ac_Header=\$ac_header_preproc"
14617 fi
14618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14620
14621 fi
14622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14623 cat >>confdefs.h <<_ACEOF
14624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14625 _ACEOF
14626
14627 fi
14628
14629 done
14630
14631
14632 for ac_func in alarm
14633 do
14634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14635 echo "$as_me:$LINENO: checking for $ac_func" >&5
14636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14637 if eval "test \"\${$as_ac_var+set}\" = set"; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14648 #define $ac_func innocuous_$ac_func
14649
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char $ac_func (); below.
14652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14653 <limits.h> exists even on freestanding compilers. */
14654
14655 #ifdef __STDC__
14656 # include <limits.h>
14657 #else
14658 # include <assert.h>
14659 #endif
14660
14661 #undef $ac_func
14662
14663 /* Override any gcc2 internal prototype to avoid an error. */
14664 #ifdef __cplusplus
14665 extern "C"
14666 {
14667 #endif
14668 /* We use char because int might match the return type of a gcc2
14669 builtin and then its argument prototype would still apply. */
14670 char $ac_func ();
14671 /* The GNU C library defines this for functions which it implements
14672 to always fail with ENOSYS. Some functions are actually named
14673 something starting with __ and the normal name is an alias. */
14674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14675 choke me
14676 #else
14677 char (*f) () = $ac_func;
14678 #endif
14679 #ifdef __cplusplus
14680 }
14681 #endif
14682
14683 int
14684 main ()
14685 {
14686 return f != $ac_func;
14687 ;
14688 return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693 (eval $ac_link) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest$ac_exeext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 eval "$as_ac_var=yes"
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 eval "$as_ac_var=no"
14718 fi
14719 rm -f conftest.err conftest.$ac_objext \
14720 conftest$ac_exeext conftest.$ac_ext
14721 fi
14722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14724 if test `eval echo '${'$as_ac_var'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14727 _ACEOF
14728
14729 fi
14730 done
14731
14732 echo "$as_me:$LINENO: checking for working mktime" >&5
14733 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14734 if test "${ac_cv_func_working_mktime+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737 if test "$cross_compiling" = yes; then
14738 ac_cv_func_working_mktime=no
14739 else
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 /* Test program from Paul Eggert and Tony Leneis. */
14747 #if TIME_WITH_SYS_TIME
14748 # include <sys/time.h>
14749 # include <time.h>
14750 #else
14751 # if HAVE_SYS_TIME_H
14752 # include <sys/time.h>
14753 # else
14754 # include <time.h>
14755 # endif
14756 #endif
14757
14758 #if HAVE_STDLIB_H
14759 # include <stdlib.h>
14760 #endif
14761
14762 #if HAVE_UNISTD_H
14763 # include <unistd.h>
14764 #endif
14765
14766 #if !HAVE_ALARM
14767 # define alarm(X) /* empty */
14768 #endif
14769
14770 /* Work around redefinition to rpl_putenv by other config tests. */
14771 #undef putenv
14772
14773 static time_t time_t_max;
14774 static time_t time_t_min;
14775
14776 /* Values we'll use to set the TZ environment variable. */
14777 static char *tz_strings[] = {
14778 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14779 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14780 };
14781 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14782
14783 /* Fail if mktime fails to convert a date in the spring-forward gap.
14784 Based on a problem report from Andreas Jaeger. */
14785 static void
14786 spring_forward_gap ()
14787 {
14788 /* glibc (up to about 1998-10-07) failed this test. */
14789 struct tm tm;
14790
14791 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14792 instead of "TZ=America/Vancouver" in order to detect the bug even
14793 on systems that don't support the Olson extension, or don't have the
14794 full zoneinfo tables installed. */
14795 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14796
14797 tm.tm_year = 98;
14798 tm.tm_mon = 3;
14799 tm.tm_mday = 5;
14800 tm.tm_hour = 2;
14801 tm.tm_min = 0;
14802 tm.tm_sec = 0;
14803 tm.tm_isdst = -1;
14804 if (mktime (&tm) == (time_t)-1)
14805 exit (1);
14806 }
14807
14808 static void
14809 mktime_test1 (now)
14810 time_t now;
14811 {
14812 struct tm *lt;
14813 if ((lt = localtime (&now)) && mktime (lt) != now)
14814 exit (1);
14815 }
14816
14817 static void
14818 mktime_test (now)
14819 time_t now;
14820 {
14821 mktime_test1 (now);
14822 mktime_test1 ((time_t) (time_t_max - now));
14823 mktime_test1 ((time_t) (time_t_min + now));
14824 }
14825
14826 static void
14827 irix_6_4_bug ()
14828 {
14829 /* Based on code from Ariel Faigon. */
14830 struct tm tm;
14831 tm.tm_year = 96;
14832 tm.tm_mon = 3;
14833 tm.tm_mday = 0;
14834 tm.tm_hour = 0;
14835 tm.tm_min = 0;
14836 tm.tm_sec = 0;
14837 tm.tm_isdst = -1;
14838 mktime (&tm);
14839 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14840 exit (1);
14841 }
14842
14843 static void
14844 bigtime_test (j)
14845 int j;
14846 {
14847 struct tm tm;
14848 time_t now;
14849 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14850 now = mktime (&tm);
14851 if (now != (time_t) -1)
14852 {
14853 struct tm *lt = localtime (&now);
14854 if (! (lt
14855 && lt->tm_year == tm.tm_year
14856 && lt->tm_mon == tm.tm_mon
14857 && lt->tm_mday == tm.tm_mday
14858 && lt->tm_hour == tm.tm_hour
14859 && lt->tm_min == tm.tm_min
14860 && lt->tm_sec == tm.tm_sec
14861 && lt->tm_yday == tm.tm_yday
14862 && lt->tm_wday == tm.tm_wday
14863 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14864 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14865 exit (1);
14866 }
14867 }
14868
14869 int
14870 main ()
14871 {
14872 time_t t, delta;
14873 int i, j;
14874
14875 /* This test makes some buggy mktime implementations loop.
14876 Give up after 60 seconds; a mktime slower than that
14877 isn't worth using anyway. */
14878 alarm (60);
14879
14880 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14881 continue;
14882 time_t_max--;
14883 if ((time_t) -1 < 0)
14884 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14885 continue;
14886 delta = time_t_max / 997; /* a suitable prime number */
14887 for (i = 0; i < N_STRINGS; i++)
14888 {
14889 if (tz_strings[i])
14890 putenv (tz_strings[i]);
14891
14892 for (t = 0; t <= time_t_max - delta; t += delta)
14893 mktime_test (t);
14894 mktime_test ((time_t) 1);
14895 mktime_test ((time_t) (60 * 60));
14896 mktime_test ((time_t) (60 * 60 * 24));
14897
14898 for (j = 1; 0 < j; j *= 2)
14899 bigtime_test (j);
14900 bigtime_test (j - 1);
14901 }
14902 irix_6_4_bug ();
14903 spring_forward_gap ();
14904 exit (0);
14905 }
14906 _ACEOF
14907 rm -f conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_func_working_mktime=yes
14919 else
14920 echo "$as_me: program exited with status $ac_status" >&5
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 ( exit $ac_status )
14925 ac_cv_func_working_mktime=no
14926 fi
14927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14928 fi
14929 fi
14930 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14931 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14932 if test $ac_cv_func_working_mktime = no; then
14933 case $LIBOBJS in
14934 "mktime.$ac_objext" | \
14935 *" mktime.$ac_objext" | \
14936 "mktime.$ac_objext "* | \
14937 *" mktime.$ac_objext "* ) ;;
14938 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14939 esac
14940
14941 fi
14942
14943 if test "$ac_cv_func_working_mktime" = no; then
14944
14945 cat >>confdefs.h <<\_ACEOF
14946 #define BROKEN_MKTIME 1
14947 _ACEOF
14948
14949 fi
14950
14951 ac_have_func=no # yes means we've found a way to get the load average.
14952
14953 # Make sure getloadavg.c is where it belongs, at configure-time.
14954 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14955 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14956 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14957 { (exit 1); exit 1; }; }
14958
14959 ac_save_LIBS=$LIBS
14960
14961 # Check for getloadavg, but be sure not to touch the cache variable.
14962 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14963 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14964 if test "${ac_cv_func_getloadavg+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14975 #define getloadavg innocuous_getloadavg
14976
14977 /* System header to define __stub macros and hopefully few prototypes,
14978 which can conflict with char getloadavg (); below.
14979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14980 <limits.h> exists even on freestanding compilers. */
14981
14982 #ifdef __STDC__
14983 # include <limits.h>
14984 #else
14985 # include <assert.h>
14986 #endif
14987
14988 #undef getloadavg
14989
14990 /* Override any gcc2 internal prototype to avoid an error. */
14991 #ifdef __cplusplus
14992 extern "C"
14993 {
14994 #endif
14995 /* We use char because int might match the return type of a gcc2
14996 builtin and then its argument prototype would still apply. */
14997 char getloadavg ();
14998 /* The GNU C library defines this for functions which it implements
14999 to always fail with ENOSYS. Some functions are actually named
15000 something starting with __ and the normal name is an alias. */
15001 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15002 choke me
15003 #else
15004 char (*f) () = getloadavg;
15005 #endif
15006 #ifdef __cplusplus
15007 }
15008 #endif
15009
15010 int
15011 main ()
15012 {
15013 return f != getloadavg;
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_func_getloadavg=yes
15040 else
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044 ac_cv_func_getloadavg=no
15045 fi
15046 rm -f conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 fi
15049 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15050 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15051 if test $ac_cv_func_getloadavg = yes; then
15052 exit 0
15053 else
15054 exit 1
15055 fi
15056 ) && ac_have_func=yes
15057
15058 # On HPUX9, an unprivileged user can get load averages through this function.
15059
15060 for ac_func in pstat_getdynamic
15061 do
15062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 echo "$as_me:$LINENO: checking for $ac_func" >&5
15064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15065 if eval "test \"\${$as_ac_var+set}\" = set"; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 else
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h. */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15076 #define $ac_func innocuous_$ac_func
15077
15078 /* System header to define __stub macros and hopefully few prototypes,
15079 which can conflict with char $ac_func (); below.
15080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15081 <limits.h> exists even on freestanding compilers. */
15082
15083 #ifdef __STDC__
15084 # include <limits.h>
15085 #else
15086 # include <assert.h>
15087 #endif
15088
15089 #undef $ac_func
15090
15091 /* Override any gcc2 internal prototype to avoid an error. */
15092 #ifdef __cplusplus
15093 extern "C"
15094 {
15095 #endif
15096 /* We use char because int might match the return type of a gcc2
15097 builtin and then its argument prototype would still apply. */
15098 char $ac_func ();
15099 /* The GNU C library defines this for functions which it implements
15100 to always fail with ENOSYS. Some functions are actually named
15101 something starting with __ and the normal name is an alias. */
15102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15103 choke me
15104 #else
15105 char (*f) () = $ac_func;
15106 #endif
15107 #ifdef __cplusplus
15108 }
15109 #endif
15110
15111 int
15112 main ()
15113 {
15114 return f != $ac_func;
15115 ;
15116 return 0;
15117 }
15118 _ACEOF
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>conftest.er1
15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest$ac_exeext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 eval "$as_ac_var=yes"
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15144
15145 eval "$as_ac_var=no"
15146 fi
15147 rm -f conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15149 fi
15150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15152 if test `eval echo '${'$as_ac_var'}'` = yes; then
15153 cat >>confdefs.h <<_ACEOF
15154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15155 _ACEOF
15156
15157 fi
15158 done
15159
15160
15161 # Solaris has libkstat which does not require root.
15162
15163 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15164 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15165 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 ac_check_lib_save_LIBS=$LIBS
15169 LIBS="-lkstat $LIBS"
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176
15177 /* Override any gcc2 internal prototype to avoid an error. */
15178 #ifdef __cplusplus
15179 extern "C"
15180 #endif
15181 /* We use char because int might match the return type of a gcc2
15182 builtin and then its argument prototype would still apply. */
15183 char kstat_open ();
15184 int
15185 main ()
15186 {
15187 kstat_open ();
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext conftest$ac_exeext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15194 (eval $ac_link) 2>conftest.er1
15195 ac_status=$?
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_lib_kstat_kstat_open=yes
15214 else
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_cv_lib_kstat_kstat_open=no
15219 fi
15220 rm -f conftest.err conftest.$ac_objext \
15221 conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15223 fi
15224 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15225 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15226 if test $ac_cv_lib_kstat_kstat_open = yes; then
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_LIBKSTAT 1
15229 _ACEOF
15230
15231 LIBS="-lkstat $LIBS"
15232
15233 fi
15234
15235 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15236
15237 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15238 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15239 # to get the right answer into the cache.
15240 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15241 if test $ac_have_func = no; then
15242 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15243 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15244 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247 ac_check_lib_save_LIBS=$LIBS
15248 LIBS="-lelf $LIBS"
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255
15256 /* Override any gcc2 internal prototype to avoid an error. */
15257 #ifdef __cplusplus
15258 extern "C"
15259 #endif
15260 /* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15262 char elf_begin ();
15263 int
15264 main ()
15265 {
15266 elf_begin ();
15267 ;
15268 return 0;
15269 }
15270 _ACEOF
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; } &&
15286 { ac_try='test -s conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 ac_cv_lib_elf_elf_begin=yes
15293 else
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15296
15297 ac_cv_lib_elf_elf_begin=no
15298 fi
15299 rm -f conftest.err conftest.$ac_objext \
15300 conftest$ac_exeext conftest.$ac_ext
15301 LIBS=$ac_check_lib_save_LIBS
15302 fi
15303 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15304 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15305 if test $ac_cv_lib_elf_elf_begin = yes; then
15306 LIBS="-lelf $LIBS"
15307 fi
15308
15309 fi
15310 if test $ac_have_func = no; then
15311 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15312 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15313 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lkvm $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324
15325 /* Override any gcc2 internal prototype to avoid an error. */
15326 #ifdef __cplusplus
15327 extern "C"
15328 #endif
15329 /* We use char because int might match the return type of a gcc2
15330 builtin and then its argument prototype would still apply. */
15331 char kvm_open ();
15332 int
15333 main ()
15334 {
15335 kvm_open ();
15336 ;
15337 return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15342 (eval $ac_link) 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_cv_lib_kvm_kvm_open=yes
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_cv_lib_kvm_kvm_open=no
15367 fi
15368 rm -f conftest.err conftest.$ac_objext \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_check_lib_save_LIBS
15371 fi
15372 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15373 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15374 if test $ac_cv_lib_kvm_kvm_open = yes; then
15375 LIBS="-lkvm $LIBS"
15376 fi
15377
15378 # Check for the 4.4BSD definition of getloadavg.
15379 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15380 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15381 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384 ac_check_lib_save_LIBS=$LIBS
15385 LIBS="-lutil $LIBS"
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392
15393 /* Override any gcc2 internal prototype to avoid an error. */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399 char getloadavg ();
15400 int
15401 main ()
15402 {
15403 getloadavg ();
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest$ac_exeext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_lib_util_getloadavg=yes
15430 else
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434 ac_cv_lib_util_getloadavg=no
15435 fi
15436 rm -f conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15439 fi
15440 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15441 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15442 if test $ac_cv_lib_util_getloadavg = yes; then
15443 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15444 fi
15445
15446 fi
15447
15448 if test $ac_have_func = no; then
15449 # There is a commonly available library for RS/6000 AIX.
15450 # Since it is not a standard part of AIX, it might be installed locally.
15451 ac_getloadavg_LIBS=$LIBS
15452 LIBS="-L/usr/local/lib $LIBS"
15453 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15454 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15455 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 ac_check_lib_save_LIBS=$LIBS
15459 LIBS="-lgetloadavg $LIBS"
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466
15467 /* Override any gcc2 internal prototype to avoid an error. */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15473 char getloadavg ();
15474 int
15475 main ()
15476 {
15477 getloadavg ();
15478 ;
15479 return 0;
15480 }
15481 _ACEOF
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; } &&
15497 { ac_try='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_lib_getloadavg_getloadavg=yes
15504 else
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15507
15508 ac_cv_lib_getloadavg_getloadavg=no
15509 fi
15510 rm -f conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15512 LIBS=$ac_check_lib_save_LIBS
15513 fi
15514 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15515 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15516 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15517 LIBS="-lgetloadavg $LIBS"
15518 else
15519 LIBS=$ac_getloadavg_LIBS
15520 fi
15521
15522 fi
15523
15524 # Make sure it is really in the library, if we think we found it,
15525 # otherwise set up the replacement function.
15526
15527 for ac_func in getloadavg
15528 do
15529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15530 echo "$as_me:$LINENO: checking for $ac_func" >&5
15531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15532 if eval "test \"\${$as_ac_var+set}\" = set"; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15543 #define $ac_func innocuous_$ac_func
15544
15545 /* System header to define __stub macros and hopefully few prototypes,
15546 which can conflict with char $ac_func (); below.
15547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548 <limits.h> exists even on freestanding compilers. */
15549
15550 #ifdef __STDC__
15551 # include <limits.h>
15552 #else
15553 # include <assert.h>
15554 #endif
15555
15556 #undef $ac_func
15557
15558 /* Override any gcc2 internal prototype to avoid an error. */
15559 #ifdef __cplusplus
15560 extern "C"
15561 {
15562 #endif
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15565 char $ac_func ();
15566 /* The GNU C library defines this for functions which it implements
15567 to always fail with ENOSYS. Some functions are actually named
15568 something starting with __ and the normal name is an alias. */
15569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15570 choke me
15571 #else
15572 char (*f) () = $ac_func;
15573 #endif
15574 #ifdef __cplusplus
15575 }
15576 #endif
15577
15578 int
15579 main ()
15580 {
15581 return f != $ac_func;
15582 ;
15583 return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try='test -s conftest$ac_exeext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 eval "$as_ac_var=yes"
15608 else
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612 eval "$as_ac_var=no"
15613 fi
15614 rm -f conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616 fi
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15619 if test `eval echo '${'$as_ac_var'}'` = yes; then
15620 cat >>confdefs.h <<_ACEOF
15621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15622 _ACEOF
15623
15624 else
15625 case $LIBOBJS in
15626 "getloadavg.$ac_objext" | \
15627 *" getloadavg.$ac_objext" | \
15628 "getloadavg.$ac_objext "* | \
15629 *" getloadavg.$ac_objext "* ) ;;
15630 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15631 esac
15632
15633
15634 cat >>confdefs.h <<\_ACEOF
15635 #define C_GETLOADAVG 1
15636 _ACEOF
15637
15638 # Figure out what our getloadavg.c needs.
15639 ac_have_func=no
15640 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15641 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15642 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 fi
15646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15647 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15648 else
15649 # Is the header compilable?
15650 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15651 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 $ac_includes_default
15659 #include <sys/dg_sys_info.h>
15660 _ACEOF
15661 rm -f conftest.$ac_objext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_header_compiler=yes
15683 else
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15686
15687 ac_header_compiler=no
15688 fi
15689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15691 echo "${ECHO_T}$ac_header_compiler" >&6
15692
15693 # Is the header present?
15694 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15695 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <sys/dg_sys_info.h>
15703 _ACEOF
15704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } >/dev/null; then
15712 if test -s conftest.err; then
15713 ac_cpp_err=$ac_c_preproc_warn_flag
15714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15715 else
15716 ac_cpp_err=
15717 fi
15718 else
15719 ac_cpp_err=yes
15720 fi
15721 if test -z "$ac_cpp_err"; then
15722 ac_header_preproc=yes
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_header_preproc=no
15728 fi
15729 rm -f conftest.err conftest.$ac_ext
15730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6
15732
15733 # So? What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15735 yes:no: )
15736 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15740 ac_header_preproc=yes
15741 ;;
15742 no:yes:* )
15743 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15755 (
15756 cat <<\_ASBOX
15757 ## ------------------------------------------ ##
15758 ## Report this to the AC_PACKAGE_NAME lists. ##
15759 ## ------------------------------------------ ##
15760 _ASBOX
15761 ) |
15762 sed "s/^/$as_me: WARNING: /" >&2
15763 ;;
15764 esac
15765 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15766 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15767 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15771 fi
15772 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15773 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15774
15775 fi
15776 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15777 ac_have_func=yes
15778
15779 cat >>confdefs.h <<\_ACEOF
15780 #define DGUX 1
15781 _ACEOF
15782
15783
15784 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15785 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15786 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789 ac_check_lib_save_LIBS=$LIBS
15790 LIBS="-ldgc $LIBS"
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
15798 /* Override any gcc2 internal prototype to avoid an error. */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15804 char dg_sys_info ();
15805 int
15806 main ()
15807 {
15808 dg_sys_info ();
15809 ;
15810 return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>conftest.er1
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest$ac_exeext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_cv_lib_dgc_dg_sys_info=yes
15835 else
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 ac_cv_lib_dgc_dg_sys_info=no
15840 fi
15841 rm -f conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 LIBS=$ac_check_lib_save_LIBS
15844 fi
15845 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15846 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15847 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_LIBDGC 1
15850 _ACEOF
15851
15852 LIBS="-ldgc $LIBS"
15853
15854 fi
15855
15856 fi
15857
15858
15859
15860 if test "${ac_cv_header_locale_h+set}" = set; then
15861 echo "$as_me:$LINENO: checking for locale.h" >&5
15862 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15863 if test "${ac_cv_header_locale_h+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 fi
15866 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15867 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15868 else
15869 # Is the header compilable?
15870 echo "$as_me:$LINENO: checking locale.h usability" >&5
15871 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <locale.h>
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_header_compiler=yes
15903 else
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_header_compiler=no
15908 fi
15909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911 echo "${ECHO_T}$ac_header_compiler" >&6
15912
15913 # Is the header present?
15914 echo "$as_me:$LINENO: checking locale.h presence" >&5
15915 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <locale.h>
15923 _ACEOF
15924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 else
15936 ac_cpp_err=
15937 fi
15938 else
15939 ac_cpp_err=yes
15940 fi
15941 if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15943 else
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15946
15947 ac_header_preproc=no
15948 fi
15949 rm -f conftest.err conftest.$ac_ext
15950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6
15952
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955 yes:no: )
15956 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15961 ;;
15962 no:yes:* )
15963 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15975 (
15976 cat <<\_ASBOX
15977 ## ------------------------------------------ ##
15978 ## Report this to the AC_PACKAGE_NAME lists. ##
15979 ## ------------------------------------------ ##
15980 _ASBOX
15981 ) |
15982 sed "s/^/$as_me: WARNING: /" >&2
15983 ;;
15984 esac
15985 echo "$as_me:$LINENO: checking for locale.h" >&5
15986 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15987 if test "${ac_cv_header_locale_h+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 ac_cv_header_locale_h=$ac_header_preproc
15991 fi
15992 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15993 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15994
15995 fi
15996
15997
15998
15999 for ac_func in setlocale
16000 do
16001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16002 echo "$as_me:$LINENO: checking for $ac_func" >&5
16003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16004 if eval "test \"\${$as_ac_var+set}\" = set"; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16015 #define $ac_func innocuous_$ac_func
16016
16017 /* System header to define __stub macros and hopefully few prototypes,
16018 which can conflict with char $ac_func (); below.
16019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16020 <limits.h> exists even on freestanding compilers. */
16021
16022 #ifdef __STDC__
16023 # include <limits.h>
16024 #else
16025 # include <assert.h>
16026 #endif
16027
16028 #undef $ac_func
16029
16030 /* Override any gcc2 internal prototype to avoid an error. */
16031 #ifdef __cplusplus
16032 extern "C"
16033 {
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037 char $ac_func ();
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16042 choke me
16043 #else
16044 char (*f) () = $ac_func;
16045 #endif
16046 #ifdef __cplusplus
16047 }
16048 #endif
16049
16050 int
16051 main ()
16052 {
16053 return f != $ac_func;
16054 ;
16055 return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 eval "$as_ac_var=yes"
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 eval "$as_ac_var=no"
16085 fi
16086 rm -f conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16088 fi
16089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16091 if test `eval echo '${'$as_ac_var'}'` = yes; then
16092 cat >>confdefs.h <<_ACEOF
16093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16094 _ACEOF
16095
16096 fi
16097 done
16098
16099
16100 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16101 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16102 # Irix 4.0.5F has the header but not the library.
16103 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16104 ac_have_func=yes
16105
16106 cat >>confdefs.h <<\_ACEOF
16107 #define SVR4 1
16108 _ACEOF
16109
16110 fi
16111
16112 if test $ac_have_func = no; then
16113 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16114 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16115 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16116 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 fi
16119 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16120 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16121 else
16122 # Is the header compilable?
16123 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16124 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16132 #include <inq_stats/cpustats.h>
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 ac_header_compiler=yes
16156 else
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_header_compiler=no
16161 fi
16162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6
16165
16166 # Is the header present?
16167 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16168 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <inq_stats/cpustats.h>
16176 _ACEOF
16177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } >/dev/null; then
16185 if test -s conftest.err; then
16186 ac_cpp_err=$ac_c_preproc_warn_flag
16187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16188 else
16189 ac_cpp_err=
16190 fi
16191 else
16192 ac_cpp_err=yes
16193 fi
16194 if test -z "$ac_cpp_err"; then
16195 ac_header_preproc=yes
16196 else
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 ac_header_preproc=no
16201 fi
16202 rm -f conftest.err conftest.$ac_ext
16203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16204 echo "${ECHO_T}$ac_header_preproc" >&6
16205
16206 # So? What about this header?
16207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16208 yes:no: )
16209 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16210 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16212 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16213 ac_header_preproc=yes
16214 ;;
16215 no:yes:* )
16216 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16217 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16219 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16221 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16223 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16225 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16227 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16228 (
16229 cat <<\_ASBOX
16230 ## ------------------------------------------ ##
16231 ## Report this to the AC_PACKAGE_NAME lists. ##
16232 ## ------------------------------------------ ##
16233 _ASBOX
16234 ) |
16235 sed "s/^/$as_me: WARNING: /" >&2
16236 ;;
16237 esac
16238 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16239 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16240 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16244 fi
16245 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16246 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16247
16248 fi
16249 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16250 ac_have_func=yes
16251
16252 cat >>confdefs.h <<\_ACEOF
16253 #define UMAX 1
16254 _ACEOF
16255
16256
16257 cat >>confdefs.h <<\_ACEOF
16258 #define UMAX4_3 1
16259 _ACEOF
16260
16261 fi
16262
16263
16264 fi
16265
16266 if test $ac_have_func = no; then
16267 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16268 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16269 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16270 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 fi
16273 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16274 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16275 else
16276 # Is the header compilable?
16277 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16278 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 #include <sys/cpustats.h>
16287 _ACEOF
16288 rm -f conftest.$ac_objext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_header_compiler=yes
16310 else
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ac_header_compiler=no
16315 fi
16316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16318 echo "${ECHO_T}$ac_header_compiler" >&6
16319
16320 # Is the header present?
16321 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16322 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16323 cat >conftest.$ac_ext <<_ACEOF
16324 /* confdefs.h. */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16329 #include <sys/cpustats.h>
16330 _ACEOF
16331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16333 ac_status=$?
16334 grep -v '^ *+' conftest.er1 >conftest.err
16335 rm -f conftest.er1
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } >/dev/null; then
16339 if test -s conftest.err; then
16340 ac_cpp_err=$ac_c_preproc_warn_flag
16341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16342 else
16343 ac_cpp_err=
16344 fi
16345 else
16346 ac_cpp_err=yes
16347 fi
16348 if test -z "$ac_cpp_err"; then
16349 ac_header_preproc=yes
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 ac_header_preproc=no
16355 fi
16356 rm -f conftest.err conftest.$ac_ext
16357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16358 echo "${ECHO_T}$ac_header_preproc" >&6
16359
16360 # So? What about this header?
16361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16362 yes:no: )
16363 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16364 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16366 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16367 ac_header_preproc=yes
16368 ;;
16369 no:yes:* )
16370 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16371 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16373 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16375 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16377 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16379 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16381 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16382 (
16383 cat <<\_ASBOX
16384 ## ------------------------------------------ ##
16385 ## Report this to the AC_PACKAGE_NAME lists. ##
16386 ## ------------------------------------------ ##
16387 _ASBOX
16388 ) |
16389 sed "s/^/$as_me: WARNING: /" >&2
16390 ;;
16391 esac
16392 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16393 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16394 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16398 fi
16399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16400 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16401
16402 fi
16403 if test $ac_cv_header_sys_cpustats_h = yes; then
16404 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16405 #define UMAX 1
16406 _ACEOF
16407
16408 fi
16409
16410
16411 fi
16412
16413 if test $ac_have_func = no; then
16414
16415 for ac_header in mach/mach.h
16416 do
16417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16419 echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 fi
16424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16426 else
16427 # Is the header compilable?
16428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16430 cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h. */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 $ac_includes_default
16437 #include <$ac_header>
16438 _ACEOF
16439 rm -f conftest.$ac_objext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_header_compiler=yes
16461 else
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_header_compiler=no
16466 fi
16467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16469 echo "${ECHO_T}$ac_header_compiler" >&6
16470
16471 # Is the header present?
16472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 #include <$ac_header>
16481 _ACEOF
16482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16484 ac_status=$?
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } >/dev/null; then
16490 if test -s conftest.err; then
16491 ac_cpp_err=$ac_c_preproc_warn_flag
16492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16493 else
16494 ac_cpp_err=
16495 fi
16496 else
16497 ac_cpp_err=yes
16498 fi
16499 if test -z "$ac_cpp_err"; then
16500 ac_header_preproc=yes
16501 else
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505 ac_header_preproc=no
16506 fi
16507 rm -f conftest.err conftest.$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16509 echo "${ECHO_T}$ac_header_preproc" >&6
16510
16511 # So? What about this header?
16512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16513 yes:no: )
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16518 ac_header_preproc=yes
16519 ;;
16520 no:yes:* )
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16533 (
16534 cat <<\_ASBOX
16535 ## ------------------------------------------ ##
16536 ## Report this to the AC_PACKAGE_NAME lists. ##
16537 ## ------------------------------------------ ##
16538 _ASBOX
16539 ) |
16540 sed "s/^/$as_me: WARNING: /" >&2
16541 ;;
16542 esac
16543 echo "$as_me:$LINENO: checking for $ac_header" >&5
16544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 eval "$as_ac_Header=\$ac_header_preproc"
16549 fi
16550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16552
16553 fi
16554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16555 cat >>confdefs.h <<_ACEOF
16556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16557 _ACEOF
16558
16559 fi
16560
16561 done
16562
16563 fi
16564
16565
16566 for ac_header in nlist.h
16567 do
16568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16570 echo "$as_me:$LINENO: checking for $ac_header" >&5
16571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 fi
16575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16577 else
16578 # Is the header compilable?
16579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 $ac_includes_default
16588 #include <$ac_header>
16589 _ACEOF
16590 rm -f conftest.$ac_objext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_header_compiler=yes
16612 else
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 ac_header_compiler=no
16617 fi
16618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16620 echo "${ECHO_T}$ac_header_compiler" >&6
16621
16622 # Is the header present?
16623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 #include <$ac_header>
16632 _ACEOF
16633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev/null; then
16641 if test -s conftest.err; then
16642 ac_cpp_err=$ac_c_preproc_warn_flag
16643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16644 else
16645 ac_cpp_err=
16646 fi
16647 else
16648 ac_cpp_err=yes
16649 fi
16650 if test -z "$ac_cpp_err"; then
16651 ac_header_preproc=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_header_preproc=no
16657 fi
16658 rm -f conftest.err conftest.$ac_ext
16659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16660 echo "${ECHO_T}$ac_header_preproc" >&6
16661
16662 # So? What about this header?
16663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16664 yes:no: )
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16669 ac_header_preproc=yes
16670 ;;
16671 no:yes:* )
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16684 (
16685 cat <<\_ASBOX
16686 ## ------------------------------------------ ##
16687 ## Report this to the AC_PACKAGE_NAME lists. ##
16688 ## ------------------------------------------ ##
16689 _ASBOX
16690 ) |
16691 sed "s/^/$as_me: WARNING: /" >&2
16692 ;;
16693 esac
16694 echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699 eval "$as_ac_Header=\$ac_header_preproc"
16700 fi
16701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16703
16704 fi
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16708 _ACEOF
16709 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16710 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16711 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714 cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 #include <nlist.h>
16721
16722 int
16723 main ()
16724 {
16725 static struct nlist ac_aggr;
16726 if (ac_aggr.n_un.n_name)
16727 return 0;
16728 ;
16729 return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try='test -s conftest.$ac_objext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_member_struct_nlist_n_un_n_name=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 #include <nlist.h>
16765
16766 int
16767 main ()
16768 {
16769 static struct nlist ac_aggr;
16770 if (sizeof ac_aggr.n_un.n_name)
16771 return 0;
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest.$ac_objext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_member_struct_nlist_n_un_n_name=yes
16798 else
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 ac_cv_member_struct_nlist_n_un_n_name=no
16803 fi
16804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16805 fi
16806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16807 fi
16808 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16809 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16810 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16811
16812 cat >>confdefs.h <<_ACEOF
16813 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16814 _ACEOF
16815
16816
16817 cat >>confdefs.h <<\_ACEOF
16818 #define NLIST_NAME_UNION 1
16819 _ACEOF
16820
16821 fi
16822
16823
16824 fi
16825
16826 done
16827
16828 fi
16829 done
16830
16831
16832 # Some definitions of getloadavg require that the program be installed setgid.
16833 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16834 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16835 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h. */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16845 #ifdef LDAV_PRIVILEGED
16846 Yowza Am I SETGID yet
16847 #endif
16848 _ACEOF
16849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16850 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16851 ac_cv_func_getloadavg_setgid=yes
16852 else
16853 ac_cv_func_getloadavg_setgid=no
16854 fi
16855 rm -f conftest*
16856
16857 fi
16858 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16859 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16860 if test $ac_cv_func_getloadavg_setgid = yes; then
16861 NEED_SETGID=true
16862
16863 cat >>confdefs.h <<\_ACEOF
16864 #define GETLOADAVG_PRIVILEGED 1
16865 _ACEOF
16866
16867 else
16868 NEED_SETGID=false
16869 fi
16870
16871 if test $ac_cv_func_getloadavg_setgid = yes; then
16872 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16873 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16874 if test "${ac_cv_group_kmem+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16878 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16879 # If we got an error (system does not support symlinks), try without -L.
16880 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16881 ac_cv_group_kmem=`echo $ac_ls_output \
16882 | sed -ne 's/[ ][ ]*/ /g;
16883 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16884 / /s/.* //;p;'`
16885
16886 fi
16887 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16888 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16889 KMEM_GROUP=$ac_cv_group_kmem
16890 fi
16891 if test "x$ac_save_LIBS" = x; then
16892 GETLOADAVG_LIBS=$LIBS
16893 else
16894 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16895 fi
16896 LIBS=$ac_save_LIBS
16897
16898
16899
16900 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16901 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16902 if test "${ac_cv_sys_largefile_source+set}" = set; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905 while :; do
16906 ac_cv_sys_largefile_source=no
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 #include <stdio.h>
16914 int
16915 main ()
16916 {
16917 return !fseeko;
16918 ;
16919 return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16924 (eval $ac_compile) 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 break
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 fi
16949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16950 cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h. */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16956 #define _LARGEFILE_SOURCE 1
16957 #include <stdio.h>
16958 int
16959 main ()
16960 {
16961 return !fseeko;
16962 ;
16963 return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_sys_largefile_source=1; break
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 fi
16993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16994 break
16995 done
16996 fi
16997 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16998 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16999 if test "$ac_cv_sys_largefile_source" != no; then
17000
17001 cat >>confdefs.h <<_ACEOF
17002 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17003 _ACEOF
17004
17005 fi
17006 rm -f conftest*
17007
17008 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17009 # in glibc 2.1.3, but that breaks too many other things.
17010 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17011 echo "$as_me:$LINENO: checking for fseeko" >&5
17012 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17013 if test "${ac_cv_func_fseeko+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016 cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 #include <stdio.h>
17023 int
17024 main ()
17025 {
17026 return fseeko && fseeko (stdin, 0, 0);
17027 ;
17028 return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try='test -s conftest$ac_exeext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_func_fseeko=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057 ac_cv_func_fseeko=no
17058 fi
17059 rm -f conftest.err conftest.$ac_objext \
17060 conftest$ac_exeext conftest.$ac_ext
17061 fi
17062 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17063 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17064 if test $ac_cv_func_fseeko = yes; then
17065
17066 cat >>confdefs.h <<\_ACEOF
17067 #define HAVE_FSEEKO 1
17068 _ACEOF
17069
17070 fi
17071
17072
17073 # Configure getopt.
17074 # getopt.m4 serial 10
17075
17076 # The getopt module assume you want GNU getopt, with getopt_long etc,
17077 # rather than vanilla POSIX getopt. This means your your code should
17078 # always include <getopt.h> for the getopt prototypes.
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090 # Prerequisites of lib/getopt*.
17091
17092
17093
17094
17095 GETOPT_H=
17096
17097 for ac_header in getopt.h
17098 do
17099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17101 echo "$as_me:$LINENO: checking for $ac_header" >&5
17102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 fi
17106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17108 else
17109 # Is the header compilable?
17110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h. */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 $ac_includes_default
17119 #include <$ac_header>
17120 _ACEOF
17121 rm -f conftest.$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_header_compiler=yes
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ac_header_compiler=no
17148 fi
17149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151 echo "${ECHO_T}$ac_header_compiler" >&6
17152
17153 # Is the header present?
17154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <$ac_header>
17163 _ACEOF
17164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } >/dev/null; then
17172 if test -s conftest.err; then
17173 ac_cpp_err=$ac_c_preproc_warn_flag
17174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17175 else
17176 ac_cpp_err=
17177 fi
17178 else
17179 ac_cpp_err=yes
17180 fi
17181 if test -z "$ac_cpp_err"; then
17182 ac_header_preproc=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 ac_header_preproc=no
17188 fi
17189 rm -f conftest.err conftest.$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17191 echo "${ECHO_T}$ac_header_preproc" >&6
17192
17193 # So? What about this header?
17194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17195 yes:no: )
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17200 ac_header_preproc=yes
17201 ;;
17202 no:yes:* )
17203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17215 (
17216 cat <<\_ASBOX
17217 ## ------------------------------------------ ##
17218 ## Report this to the AC_PACKAGE_NAME lists. ##
17219 ## ------------------------------------------ ##
17220 _ASBOX
17221 ) |
17222 sed "s/^/$as_me: WARNING: /" >&2
17223 ;;
17224 esac
17225 echo "$as_me:$LINENO: checking for $ac_header" >&5
17226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 eval "$as_ac_Header=\$ac_header_preproc"
17231 fi
17232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17234
17235 fi
17236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 else
17242 GETOPT_H=getopt.h
17243 fi
17244
17245 done
17246
17247 if test -z "$GETOPT_H"; then
17248
17249 for ac_func in getopt_long_only
17250 do
17251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17252 echo "$as_me:$LINENO: checking for $ac_func" >&5
17253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17254 if eval "test \"\${$as_ac_var+set}\" = set"; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257 cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h. */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17265 #define $ac_func innocuous_$ac_func
17266
17267 /* System header to define __stub macros and hopefully few prototypes,
17268 which can conflict with char $ac_func (); below.
17269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17270 <limits.h> exists even on freestanding compilers. */
17271
17272 #ifdef __STDC__
17273 # include <limits.h>
17274 #else
17275 # include <assert.h>
17276 #endif
17277
17278 #undef $ac_func
17279
17280 /* Override any gcc2 internal prototype to avoid an error. */
17281 #ifdef __cplusplus
17282 extern "C"
17283 {
17284 #endif
17285 /* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17287 char $ac_func ();
17288 /* The GNU C library defines this for functions which it implements
17289 to always fail with ENOSYS. Some functions are actually named
17290 something starting with __ and the normal name is an alias. */
17291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17292 choke me
17293 #else
17294 char (*f) () = $ac_func;
17295 #endif
17296 #ifdef __cplusplus
17297 }
17298 #endif
17299
17300 int
17301 main ()
17302 {
17303 return f != $ac_func;
17304 ;
17305 return 0;
17306 }
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest$ac_exeext'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 eval "$as_ac_var=yes"
17330 else
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334 eval "$as_ac_var=no"
17335 fi
17336 rm -f conftest.err conftest.$ac_objext \
17337 conftest$ac_exeext conftest.$ac_ext
17338 fi
17339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17341 if test `eval echo '${'$as_ac_var'}'` = yes; then
17342 cat >>confdefs.h <<_ACEOF
17343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17344 _ACEOF
17345
17346 else
17347 GETOPT_H=getopt.h
17348 fi
17349 done
17350
17351 fi
17352
17353 if test -z "$GETOPT_H"; then
17354 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17355 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17356 if test "${ac_cv_have_decl_optreset+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 #include <getopt.h>
17366
17367 int
17368 main ()
17369 {
17370 #ifndef optreset
17371 char *p = (char *) optreset;
17372 #endif
17373
17374 ;
17375 return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380 (eval $ac_compile) 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_have_decl_optreset=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_have_decl_optreset=no
17405 fi
17406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17407 fi
17408 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17409 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17410 if test $ac_cv_have_decl_optreset = yes; then
17411 GETOPT_H=getopt.h
17412 fi
17413
17414 fi
17415
17416 if test -z "$GETOPT_H"; then
17417 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17418 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17419 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422 if test "$cross_compiling" = yes; then
17423 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17424 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17425 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428 cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h. */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 #include <getopt.h>
17435
17436 int
17437 main ()
17438 {
17439 #ifndef getopt_clip
17440 char *p = (char *) getopt_clip;
17441 #endif
17442
17443 ;
17444 return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449 (eval $ac_compile) 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest.$ac_objext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_have_decl_getopt_clip=yes
17469 else
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473 ac_cv_have_decl_getopt_clip=no
17474 fi
17475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17476 fi
17477 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17478 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17479 if test $ac_cv_have_decl_getopt_clip = yes; then
17480 gl_cv_func_gnu_getopt=no
17481 else
17482 gl_cv_func_gnu_getopt=yes
17483 fi
17484
17485 else
17486 cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h. */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 #include <getopt.h>
17493 int
17494 main ()
17495 {
17496
17497 char *myargv[3];
17498 myargv[0] = "conftest";
17499 myargv[1] = "-+";
17500 myargv[2] = 0;
17501 return getopt (2, myargv, "+a") != '?';
17502
17503 ;
17504 return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 gl_cv_func_gnu_getopt=yes
17519 else
17520 echo "$as_me: program exited with status $ac_status" >&5
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ( exit $ac_status )
17525 gl_cv_func_gnu_getopt=no
17526 fi
17527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17528 fi
17529 fi
17530 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17531 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17532 if test "$gl_cv_func_gnu_getopt" = "no"; then
17533 GETOPT_H=getopt.h
17534 fi
17535 fi
17536
17537
17538
17539 if test -n "$GETOPT_H"; then
17540
17541
17542 GETOPT_H=getopt.h
17543
17544 cat >>confdefs.h <<\_ACEOF
17545 #define __GETOPT_PREFIX rpl_
17546 _ACEOF
17547
17548
17549
17550 :
17551 GETOPTOBJS='getopt.o getopt1.o'
17552
17553 fi
17554
17555
17556
17557
17558 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17559 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17560 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 # Use it with a single arg.
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h. */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 $ac_includes_default
17571 int
17572 main ()
17573 {
17574 getpgrp (0);
17575 ;
17576 return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_cv_func_getpgrp_void=no
17601 else
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605 ac_cv_func_getpgrp_void=yes
17606 fi
17607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17608
17609 fi
17610 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17611 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17612 if test $ac_cv_func_getpgrp_void = yes; then
17613
17614 cat >>confdefs.h <<\_ACEOF
17615 #define GETPGRP_VOID 1
17616 _ACEOF
17617
17618 fi
17619
17620
17621
17622 for ac_func in strftime
17623 do
17624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17625 echo "$as_me:$LINENO: checking for $ac_func" >&5
17626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17627 if eval "test \"\${$as_ac_var+set}\" = set"; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h. */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17638 #define $ac_func innocuous_$ac_func
17639
17640 /* System header to define __stub macros and hopefully few prototypes,
17641 which can conflict with char $ac_func (); below.
17642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17643 <limits.h> exists even on freestanding compilers. */
17644
17645 #ifdef __STDC__
17646 # include <limits.h>
17647 #else
17648 # include <assert.h>
17649 #endif
17650
17651 #undef $ac_func
17652
17653 /* Override any gcc2 internal prototype to avoid an error. */
17654 #ifdef __cplusplus
17655 extern "C"
17656 {
17657 #endif
17658 /* We use char because int might match the return type of a gcc2
17659 builtin and then its argument prototype would still apply. */
17660 char $ac_func ();
17661 /* The GNU C library defines this for functions which it implements
17662 to always fail with ENOSYS. Some functions are actually named
17663 something starting with __ and the normal name is an alias. */
17664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17665 choke me
17666 #else
17667 char (*f) () = $ac_func;
17668 #endif
17669 #ifdef __cplusplus
17670 }
17671 #endif
17672
17673 int
17674 main ()
17675 {
17676 return f != $ac_func;
17677 ;
17678 return 0;
17679 }
17680 _ACEOF
17681 rm -f conftest.$ac_objext conftest$ac_exeext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17683 (eval $ac_link) 2>conftest.er1
17684 ac_status=$?
17685 grep -v '^ *+' conftest.er1 >conftest.err
17686 rm -f conftest.er1
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest$ac_exeext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 eval "$as_ac_var=yes"
17703 else
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 eval "$as_ac_var=no"
17708 fi
17709 rm -f conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
17711 fi
17712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717 _ACEOF
17718
17719 else
17720 # strftime is in -lintl on SCO UNIX.
17721 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17722 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17723 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726 ac_check_lib_save_LIBS=$LIBS
17727 LIBS="-lintl $LIBS"
17728 cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h. */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734
17735 /* Override any gcc2 internal prototype to avoid an error. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17741 char strftime ();
17742 int
17743 main ()
17744 {
17745 strftime ();
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_intl_strftime=yes
17772 else
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_lib_intl_strftime=no
17777 fi
17778 rm -f conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LIBS=$ac_check_lib_save_LIBS
17781 fi
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17783 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17784 if test $ac_cv_lib_intl_strftime = yes; then
17785 cat >>confdefs.h <<\_ACEOF
17786 #define HAVE_STRFTIME 1
17787 _ACEOF
17788
17789 LIBS="-lintl $LIBS"
17790 fi
17791
17792 fi
17793 done
17794
17795
17796 # UNIX98 PTYs.
17797
17798 for ac_func in grantpt
17799 do
17800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17801 echo "$as_me:$LINENO: checking for $ac_func" >&5
17802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17803 if eval "test \"\${$as_ac_var+set}\" = set"; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17814 #define $ac_func innocuous_$ac_func
17815
17816 /* System header to define __stub macros and hopefully few prototypes,
17817 which can conflict with char $ac_func (); below.
17818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17819 <limits.h> exists even on freestanding compilers. */
17820
17821 #ifdef __STDC__
17822 # include <limits.h>
17823 #else
17824 # include <assert.h>
17825 #endif
17826
17827 #undef $ac_func
17828
17829 /* Override any gcc2 internal prototype to avoid an error. */
17830 #ifdef __cplusplus
17831 extern "C"
17832 {
17833 #endif
17834 /* We use char because int might match the return type of a gcc2
17835 builtin and then its argument prototype would still apply. */
17836 char $ac_func ();
17837 /* The GNU C library defines this for functions which it implements
17838 to always fail with ENOSYS. Some functions are actually named
17839 something starting with __ and the normal name is an alias. */
17840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17841 choke me
17842 #else
17843 char (*f) () = $ac_func;
17844 #endif
17845 #ifdef __cplusplus
17846 }
17847 #endif
17848
17849 int
17850 main ()
17851 {
17852 return f != $ac_func;
17853 ;
17854 return 0;
17855 }
17856 _ACEOF
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859 (eval $ac_link) 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest$ac_exeext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 eval "$as_ac_var=yes"
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 eval "$as_ac_var=no"
17884 fi
17885 rm -f conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17887 fi
17888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893 _ACEOF
17894
17895 fi
17896 done
17897
17898
17899 # PTY-related GNU extensions.
17900
17901 for ac_func in getpt
17902 do
17903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17904 echo "$as_me:$LINENO: checking for $ac_func" >&5
17905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17906 if eval "test \"\${$as_ac_var+set}\" = set"; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17917 #define $ac_func innocuous_$ac_func
17918
17919 /* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char $ac_func (); below.
17921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 <limits.h> exists even on freestanding compilers. */
17923
17924 #ifdef __STDC__
17925 # include <limits.h>
17926 #else
17927 # include <assert.h>
17928 #endif
17929
17930 #undef $ac_func
17931
17932 /* Override any gcc2 internal prototype to avoid an error. */
17933 #ifdef __cplusplus
17934 extern "C"
17935 {
17936 #endif
17937 /* We use char because int might match the return type of a gcc2
17938 builtin and then its argument prototype would still apply. */
17939 char $ac_func ();
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17944 choke me
17945 #else
17946 char (*f) () = $ac_func;
17947 #endif
17948 #ifdef __cplusplus
17949 }
17950 #endif
17951
17952 int
17953 main ()
17954 {
17955 return f != $ac_func;
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest$ac_exeext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 eval "$as_ac_var=yes"
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986 eval "$as_ac_var=no"
17987 fi
17988 rm -f conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990 fi
17991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17993 if test `eval echo '${'$as_ac_var'}'` = yes; then
17994 cat >>confdefs.h <<_ACEOF
17995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17996 _ACEOF
17997
17998 fi
17999 done
18000
18001
18002 # Check this now, so that we will NOT find the above functions in ncurses.
18003 # That is because we have not set up to link ncurses in lib-src.
18004 # It's better to believe a function is not available
18005 # than to expect to find it in ncurses.
18006
18007 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18008 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18009 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012 ac_check_lib_save_LIBS=$LIBS
18013 LIBS="-lncurses $LIBS"
18014 cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h. */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18020
18021 /* Override any gcc2 internal prototype to avoid an error. */
18022 #ifdef __cplusplus
18023 extern "C"
18024 #endif
18025 /* We use char because int might match the return type of a gcc2
18026 builtin and then its argument prototype would still apply. */
18027 char tparm ();
18028 int
18029 main ()
18030 {
18031 tparm ();
18032 ;
18033 return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18038 (eval $ac_link) 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_lib_ncurses_tparm=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_cv_lib_ncurses_tparm=no
18063 fi
18064 rm -f conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18067 fi
18068 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18069 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18070 if test $ac_cv_lib_ncurses_tparm = yes; then
18071 cat >>confdefs.h <<_ACEOF
18072 #define HAVE_LIBNCURSES 1
18073 _ACEOF
18074
18075 LIBS="-lncurses $LIBS"
18076
18077 fi
18078
18079
18080 # Do we need the Hesiod library to provide the support routines?
18081 if test "$with_hesiod" = yes ; then
18082 # Don't set $LIBS here -- see comments above.
18083 resolv=no
18084 echo "$as_me:$LINENO: checking for res_send" >&5
18085 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18086 if test "${ac_cv_func_res_send+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089 cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h. */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18097 #define res_send innocuous_res_send
18098
18099 /* System header to define __stub macros and hopefully few prototypes,
18100 which can conflict with char res_send (); below.
18101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102 <limits.h> exists even on freestanding compilers. */
18103
18104 #ifdef __STDC__
18105 # include <limits.h>
18106 #else
18107 # include <assert.h>
18108 #endif
18109
18110 #undef res_send
18111
18112 /* Override any gcc2 internal prototype to avoid an error. */
18113 #ifdef __cplusplus
18114 extern "C"
18115 {
18116 #endif
18117 /* We use char because int might match the return type of a gcc2
18118 builtin and then its argument prototype would still apply. */
18119 char res_send ();
18120 /* The GNU C library defines this for functions which it implements
18121 to always fail with ENOSYS. Some functions are actually named
18122 something starting with __ and the normal name is an alias. */
18123 #if defined (__stub_res_send) || defined (__stub___res_send)
18124 choke me
18125 #else
18126 char (*f) () = res_send;
18127 #endif
18128 #ifdef __cplusplus
18129 }
18130 #endif
18131
18132 int
18133 main ()
18134 {
18135 return f != res_send;
18136 ;
18137 return 0;
18138 }
18139 _ACEOF
18140 rm -f conftest.$ac_objext conftest$ac_exeext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142 (eval $ac_link) 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_func_res_send=yes
18162 else
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ac_cv_func_res_send=no
18167 fi
18168 rm -f conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18170 fi
18171 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18172 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18173 if test $ac_cv_func_res_send = yes; then
18174 :
18175 else
18176 echo "$as_me:$LINENO: checking for __res_send" >&5
18177 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18178 if test "${ac_cv_func___res_send+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181 cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h. */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define __res_send innocuous___res_send
18190
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char __res_send (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18195
18196 #ifdef __STDC__
18197 # include <limits.h>
18198 #else
18199 # include <assert.h>
18200 #endif
18201
18202 #undef __res_send
18203
18204 /* Override any gcc2 internal prototype to avoid an error. */
18205 #ifdef __cplusplus
18206 extern "C"
18207 {
18208 #endif
18209 /* We use char because int might match the return type of a gcc2
18210 builtin and then its argument prototype would still apply. */
18211 char __res_send ();
18212 /* The GNU C library defines this for functions which it implements
18213 to always fail with ENOSYS. Some functions are actually named
18214 something starting with __ and the normal name is an alias. */
18215 #if defined (__stub___res_send) || defined (__stub_____res_send)
18216 choke me
18217 #else
18218 char (*f) () = __res_send;
18219 #endif
18220 #ifdef __cplusplus
18221 }
18222 #endif
18223
18224 int
18225 main ()
18226 {
18227 return f != __res_send;
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 rm -f conftest.$ac_objext conftest$ac_exeext
18233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234 (eval $ac_link) 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18253 ac_cv_func___res_send=yes
18254 else
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18257
18258 ac_cv_func___res_send=no
18259 fi
18260 rm -f conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18262 fi
18263 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18264 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18265 if test $ac_cv_func___res_send = yes; then
18266 :
18267 else
18268 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18269 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18270 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273 ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lresolv $LIBS"
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281
18282 /* Override any gcc2 internal prototype to avoid an error. */
18283 #ifdef __cplusplus
18284 extern "C"
18285 #endif
18286 /* We use char because int might match the return type of a gcc2
18287 builtin and then its argument prototype would still apply. */
18288 char res_send ();
18289 int
18290 main ()
18291 {
18292 res_send ();
18293 ;
18294 return 0;
18295 }
18296 _ACEOF
18297 rm -f conftest.$ac_objext conftest$ac_exeext
18298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18299 (eval $ac_link) 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_cv_lib_resolv_res_send=yes
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 ac_cv_lib_resolv_res_send=no
18324 fi
18325 rm -f conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18327 LIBS=$ac_check_lib_save_LIBS
18328 fi
18329 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18330 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18331 if test $ac_cv_lib_resolv_res_send = yes; then
18332 resolv=yes
18333 else
18334 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18335 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18336 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339 ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-lresolv $LIBS"
18341 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h. */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347
18348 /* Override any gcc2 internal prototype to avoid an error. */
18349 #ifdef __cplusplus
18350 extern "C"
18351 #endif
18352 /* We use char because int might match the return type of a gcc2
18353 builtin and then its argument prototype would still apply. */
18354 char __res_send ();
18355 int
18356 main ()
18357 {
18358 __res_send ();
18359 ;
18360 return 0;
18361 }
18362 _ACEOF
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365 (eval $ac_link) 2>conftest.er1
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest$ac_exeext'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_lib_resolv___res_send=yes
18385 else
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18388
18389 ac_cv_lib_resolv___res_send=no
18390 fi
18391 rm -f conftest.err conftest.$ac_objext \
18392 conftest$ac_exeext conftest.$ac_ext
18393 LIBS=$ac_check_lib_save_LIBS
18394 fi
18395 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18396 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18397 if test $ac_cv_lib_resolv___res_send = yes; then
18398 resolv=yes
18399 fi
18400
18401 fi
18402
18403 fi
18404
18405 fi
18406
18407 if test "$resolv" = yes ; then
18408 RESOLVLIB=-lresolv
18409
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE_LIBRESOLV 1
18412 _ACEOF
18413
18414 else
18415 RESOLVLIB=
18416 fi
18417 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18418 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18419 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 else
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18430 #define hes_getmailhost innocuous_hes_getmailhost
18431
18432 /* System header to define __stub macros and hopefully few prototypes,
18433 which can conflict with char hes_getmailhost (); below.
18434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18435 <limits.h> exists even on freestanding compilers. */
18436
18437 #ifdef __STDC__
18438 # include <limits.h>
18439 #else
18440 # include <assert.h>
18441 #endif
18442
18443 #undef hes_getmailhost
18444
18445 /* Override any gcc2 internal prototype to avoid an error. */
18446 #ifdef __cplusplus
18447 extern "C"
18448 {
18449 #endif
18450 /* We use char because int might match the return type of a gcc2
18451 builtin and then its argument prototype would still apply. */
18452 char hes_getmailhost ();
18453 /* The GNU C library defines this for functions which it implements
18454 to always fail with ENOSYS. Some functions are actually named
18455 something starting with __ and the normal name is an alias. */
18456 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18457 choke me
18458 #else
18459 char (*f) () = hes_getmailhost;
18460 #endif
18461 #ifdef __cplusplus
18462 }
18463 #endif
18464
18465 int
18466 main ()
18467 {
18468 return f != hes_getmailhost;
18469 ;
18470 return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest.$ac_objext conftest$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>conftest.er1
18476 ac_status=$?
18477 grep -v '^ *+' conftest.er1 >conftest.err
18478 rm -f conftest.er1
18479 cat conftest.err >&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
18482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try='test -s conftest$ac_exeext'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 ac_cv_func_hes_getmailhost=yes
18495 else
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499 ac_cv_func_hes_getmailhost=no
18500 fi
18501 rm -f conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503 fi
18504 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18505 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18506 if test $ac_cv_func_hes_getmailhost = yes; then
18507 :
18508 else
18509 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18510 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18511 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 ac_check_lib_save_LIBS=$LIBS
18515 LIBS="-lhesiod $RESOLVLIB $LIBS"
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522
18523 /* Override any gcc2 internal prototype to avoid an error. */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 /* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18529 char hes_getmailhost ();
18530 int
18531 main ()
18532 {
18533 hes_getmailhost ();
18534 ;
18535 return 0;
18536 }
18537 _ACEOF
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>conftest.er1
18541 ac_status=$?
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } &&
18547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest$ac_exeext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_lib_hesiod_hes_getmailhost=yes
18560 else
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ac_cv_lib_hesiod_hes_getmailhost=no
18565 fi
18566 rm -f conftest.err conftest.$ac_objext \
18567 conftest$ac_exeext conftest.$ac_ext
18568 LIBS=$ac_check_lib_save_LIBS
18569 fi
18570 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18571 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18572 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18573
18574 cat >>confdefs.h <<\_ACEOF
18575 #define HAVE_LIBHESIOD 1
18576 _ACEOF
18577
18578 else
18579 :
18580 fi
18581
18582 fi
18583
18584 fi
18585
18586 # These tell us which Kerberos-related libraries to use.
18587 if test "${with_kerberos+set}" = set; then
18588
18589 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18590 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18591 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594 ac_check_lib_save_LIBS=$LIBS
18595 LIBS="-lcom_err $LIBS"
18596 cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h. */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602
18603 /* Override any gcc2 internal prototype to avoid an error. */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 /* We use char because int might match the return type of a gcc2
18608 builtin and then its argument prototype would still apply. */
18609 char com_err ();
18610 int
18611 main ()
18612 {
18613 com_err ();
18614 ;
18615 return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620 (eval $ac_link) 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest$ac_exeext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_lib_com_err_com_err=yes
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 ac_cv_lib_com_err_com_err=no
18645 fi
18646 rm -f conftest.err conftest.$ac_objext \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS
18649 fi
18650 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18651 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18652 if test $ac_cv_lib_com_err_com_err = yes; then
18653 cat >>confdefs.h <<_ACEOF
18654 #define HAVE_LIBCOM_ERR 1
18655 _ACEOF
18656
18657 LIBS="-lcom_err $LIBS"
18658
18659 fi
18660
18661
18662 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18663 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18664 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 ac_check_lib_save_LIBS=$LIBS
18668 LIBS="-lk5crypto $LIBS"
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675
18676 /* Override any gcc2 internal prototype to avoid an error. */
18677 #ifdef __cplusplus
18678 extern "C"
18679 #endif
18680 /* We use char because int might match the return type of a gcc2
18681 builtin and then its argument prototype would still apply. */
18682 char mit_des_cbc_encrypt ();
18683 int
18684 main ()
18685 {
18686 mit_des_cbc_encrypt ();
18687 ;
18688 return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18693 (eval $ac_link) 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18713 else
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18718 fi
18719 rm -f conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18722 fi
18723 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18724 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18725 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18726 cat >>confdefs.h <<_ACEOF
18727 #define HAVE_LIBK5CRYPTO 1
18728 _ACEOF
18729
18730 LIBS="-lk5crypto $LIBS"
18731
18732 fi
18733
18734
18735 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18736 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18737 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 else
18740 ac_check_lib_save_LIBS=$LIBS
18741 LIBS="-lcrypto $LIBS"
18742 cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h. */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748
18749 /* Override any gcc2 internal prototype to avoid an error. */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 /* We use char because int might match the return type of a gcc2
18754 builtin and then its argument prototype would still apply. */
18755 char mit_des_cbc_encrypt ();
18756 int
18757 main ()
18758 {
18759 mit_des_cbc_encrypt ();
18760 ;
18761 return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766 (eval $ac_link) 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18791 fi
18792 rm -f conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18795 fi
18796 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18797 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18798 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define HAVE_LIBCRYPTO 1
18801 _ACEOF
18802
18803 LIBS="-lcrypto $LIBS"
18804
18805 fi
18806
18807
18808 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18809 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18810 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 else
18813 ac_check_lib_save_LIBS=$LIBS
18814 LIBS="-lkrb5 $LIBS"
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821
18822 /* Override any gcc2 internal prototype to avoid an error. */
18823 #ifdef __cplusplus
18824 extern "C"
18825 #endif
18826 /* We use char because int might match the return type of a gcc2
18827 builtin and then its argument prototype would still apply. */
18828 char krb5_init_context ();
18829 int
18830 main ()
18831 {
18832 krb5_init_context ();
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>conftest.er1
18840 ac_status=$?
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_cv_lib_krb5_krb5_init_context=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_lib_krb5_krb5_init_context=no
18864 fi
18865 rm -f conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18868 fi
18869 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18870 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18871 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18872 cat >>confdefs.h <<_ACEOF
18873 #define HAVE_LIBKRB5 1
18874 _ACEOF
18875
18876 LIBS="-lkrb5 $LIBS"
18877
18878 fi
18879
18880 if test "${with_kerberos5+set}" != set; then
18881
18882 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18883 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18884 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-ldes425 $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895
18896 /* Override any gcc2 internal prototype to avoid an error. */
18897 #ifdef __cplusplus
18898 extern "C"
18899 #endif
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18902 char des_cbc_encrypt ();
18903 int
18904 main ()
18905 {
18906 des_cbc_encrypt ();
18907 ;
18908 return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18913 (eval $ac_link) 2>conftest.er1
18914 ac_status=$?
18915 grep -v '^ *+' conftest.er1 >conftest.err
18916 rm -f conftest.er1
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
18920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest$ac_exeext'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_lib_des425_des_cbc_encrypt=yes
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 ac_cv_lib_des425_des_cbc_encrypt=no
18938 fi
18939 rm -f conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18941 LIBS=$ac_check_lib_save_LIBS
18942 fi
18943 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18944 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18945 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define HAVE_LIBDES425 1
18948 _ACEOF
18949
18950 LIBS="-ldes425 $LIBS"
18951
18952 else
18953
18954 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18955 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18956 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959 ac_check_lib_save_LIBS=$LIBS
18960 LIBS="-ldes $LIBS"
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967
18968 /* Override any gcc2 internal prototype to avoid an error. */
18969 #ifdef __cplusplus
18970 extern "C"
18971 #endif
18972 /* We use char because int might match the return type of a gcc2
18973 builtin and then its argument prototype would still apply. */
18974 char des_cbc_encrypt ();
18975 int
18976 main ()
18977 {
18978 des_cbc_encrypt ();
18979 ;
18980 return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18985 (eval $ac_link) 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest$ac_exeext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_lib_des_des_cbc_encrypt=yes
19005 else
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 ac_cv_lib_des_des_cbc_encrypt=no
19010 fi
19011 rm -f conftest.err conftest.$ac_objext \
19012 conftest$ac_exeext conftest.$ac_ext
19013 LIBS=$ac_check_lib_save_LIBS
19014 fi
19015 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19016 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19017 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19018 cat >>confdefs.h <<_ACEOF
19019 #define HAVE_LIBDES 1
19020 _ACEOF
19021
19022 LIBS="-ldes $LIBS"
19023
19024 fi
19025
19026 fi
19027
19028
19029 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19030 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19031 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034 ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-lkrb4 $LIBS"
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042
19043 /* Override any gcc2 internal prototype to avoid an error. */
19044 #ifdef __cplusplus
19045 extern "C"
19046 #endif
19047 /* We use char because int might match the return type of a gcc2
19048 builtin and then its argument prototype would still apply. */
19049 char krb_get_cred ();
19050 int
19051 main ()
19052 {
19053 krb_get_cred ();
19054 ;
19055 return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060 (eval $ac_link) 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_krb4_krb_get_cred=yes
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_cv_lib_krb4_krb_get_cred=no
19085 fi
19086 rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19089 fi
19090 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19091 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19092 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19093 cat >>confdefs.h <<_ACEOF
19094 #define HAVE_LIBKRB4 1
19095 _ACEOF
19096
19097 LIBS="-lkrb4 $LIBS"
19098
19099 else
19100
19101 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19102 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19103 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106 ac_check_lib_save_LIBS=$LIBS
19107 LIBS="-lkrb $LIBS"
19108 cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h. */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114
19115 /* Override any gcc2 internal prototype to avoid an error. */
19116 #ifdef __cplusplus
19117 extern "C"
19118 #endif
19119 /* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19121 char krb_get_cred ();
19122 int
19123 main ()
19124 {
19125 krb_get_cred ();
19126 ;
19127 return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>conftest.er1
19133 ac_status=$?
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest$ac_exeext'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; }; then
19151 ac_cv_lib_krb_krb_get_cred=yes
19152 else
19153 echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 ac_cv_lib_krb_krb_get_cred=no
19157 fi
19158 rm -f conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19161 fi
19162 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19163 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19164 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19165 cat >>confdefs.h <<_ACEOF
19166 #define HAVE_LIBKRB 1
19167 _ACEOF
19168
19169 LIBS="-lkrb $LIBS"
19170
19171 fi
19172
19173 fi
19174
19175 fi
19176
19177 if test "${with_kerberos5+set}" = set; then
19178
19179 for ac_header in krb5.h
19180 do
19181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19183 echo "$as_me:$LINENO: checking for $ac_header" >&5
19184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 fi
19188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19190 else
19191 # Is the header compilable?
19192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 $ac_includes_default
19201 #include <$ac_header>
19202 _ACEOF
19203 rm -f conftest.$ac_objext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205 (eval $ac_compile) 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_header_compiler=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_header_compiler=no
19230 fi
19231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19233 echo "${ECHO_T}$ac_header_compiler" >&6
19234
19235 # Is the header present?
19236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <$ac_header>
19245 _ACEOF
19246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } >/dev/null; then
19254 if test -s conftest.err; then
19255 ac_cpp_err=$ac_c_preproc_warn_flag
19256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19257 else
19258 ac_cpp_err=
19259 fi
19260 else
19261 ac_cpp_err=yes
19262 fi
19263 if test -z "$ac_cpp_err"; then
19264 ac_header_preproc=yes
19265 else
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19268
19269 ac_header_preproc=no
19270 fi
19271 rm -f conftest.err conftest.$ac_ext
19272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19273 echo "${ECHO_T}$ac_header_preproc" >&6
19274
19275 # So? What about this header?
19276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19277 yes:no: )
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19282 ac_header_preproc=yes
19283 ;;
19284 no:yes:* )
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19297 (
19298 cat <<\_ASBOX
19299 ## ------------------------------------------ ##
19300 ## Report this to the AC_PACKAGE_NAME lists. ##
19301 ## ------------------------------------------ ##
19302 _ASBOX
19303 ) |
19304 sed "s/^/$as_me: WARNING: /" >&2
19305 ;;
19306 esac
19307 echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 eval "$as_ac_Header=\$ac_header_preproc"
19313 fi
19314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19316
19317 fi
19318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19319 cat >>confdefs.h <<_ACEOF
19320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19321 _ACEOF
19322
19323 fi
19324
19325 done
19326
19327 else
19328
19329 for ac_header in des.h
19330 do
19331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19333 echo "$as_me:$LINENO: checking for $ac_header" >&5
19334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 fi
19338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19340 else
19341 # Is the header compilable?
19342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 $ac_includes_default
19351 #include <$ac_header>
19352 _ACEOF
19353 rm -f conftest.$ac_objext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_header_compiler=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_header_compiler=no
19380 fi
19381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19383 echo "${ECHO_T}$ac_header_compiler" >&6
19384
19385 # Is the header present?
19386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19388 cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h. */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 #include <$ac_header>
19395 _ACEOF
19396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } >/dev/null; then
19404 if test -s conftest.err; then
19405 ac_cpp_err=$ac_c_preproc_warn_flag
19406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19407 else
19408 ac_cpp_err=
19409 fi
19410 else
19411 ac_cpp_err=yes
19412 fi
19413 if test -z "$ac_cpp_err"; then
19414 ac_header_preproc=yes
19415 else
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 ac_header_preproc=no
19420 fi
19421 rm -f conftest.err conftest.$ac_ext
19422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19423 echo "${ECHO_T}$ac_header_preproc" >&6
19424
19425 # So? What about this header?
19426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19427 yes:no: )
19428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19432 ac_header_preproc=yes
19433 ;;
19434 no:yes:* )
19435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19447 (
19448 cat <<\_ASBOX
19449 ## ------------------------------------------ ##
19450 ## Report this to the AC_PACKAGE_NAME lists. ##
19451 ## ------------------------------------------ ##
19452 _ASBOX
19453 ) |
19454 sed "s/^/$as_me: WARNING: /" >&2
19455 ;;
19456 esac
19457 echo "$as_me:$LINENO: checking for $ac_header" >&5
19458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462 eval "$as_ac_Header=\$ac_header_preproc"
19463 fi
19464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19466
19467 fi
19468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19471 _ACEOF
19472
19473 else
19474
19475 for ac_header in kerberosIV/des.h
19476 do
19477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19479 echo "$as_me:$LINENO: checking for $ac_header" >&5
19480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 fi
19484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19486 else
19487 # Is the header compilable?
19488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h. */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 $ac_includes_default
19497 #include <$ac_header>
19498 _ACEOF
19499 rm -f conftest.$ac_objext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19501 (eval $ac_compile) 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_header_compiler=yes
19521 else
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 ac_header_compiler=no
19526 fi
19527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19529 echo "${ECHO_T}$ac_header_compiler" >&6
19530
19531 # Is the header present?
19532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #include <$ac_header>
19541 _ACEOF
19542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } >/dev/null; then
19550 if test -s conftest.err; then
19551 ac_cpp_err=$ac_c_preproc_warn_flag
19552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19553 else
19554 ac_cpp_err=
19555 fi
19556 else
19557 ac_cpp_err=yes
19558 fi
19559 if test -z "$ac_cpp_err"; then
19560 ac_header_preproc=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 ac_header_preproc=no
19566 fi
19567 rm -f conftest.err conftest.$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19569 echo "${ECHO_T}$ac_header_preproc" >&6
19570
19571 # So? What about this header?
19572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19573 yes:no: )
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19578 ac_header_preproc=yes
19579 ;;
19580 no:yes:* )
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19593 (
19594 cat <<\_ASBOX
19595 ## ------------------------------------------ ##
19596 ## Report this to the AC_PACKAGE_NAME lists. ##
19597 ## ------------------------------------------ ##
19598 _ASBOX
19599 ) |
19600 sed "s/^/$as_me: WARNING: /" >&2
19601 ;;
19602 esac
19603 echo "$as_me:$LINENO: checking for $ac_header" >&5
19604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 else
19608 eval "$as_ac_Header=\$ac_header_preproc"
19609 fi
19610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19612
19613 fi
19614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615 cat >>confdefs.h <<_ACEOF
19616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19617 _ACEOF
19618
19619 else
19620
19621 for ac_header in kerberos/des.h
19622 do
19623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19625 echo "$as_me:$LINENO: checking for $ac_header" >&5
19626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 fi
19630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19632 else
19633 # Is the header compilable?
19634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 $ac_includes_default
19643 #include <$ac_header>
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_header_compiler=yes
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_header_compiler=no
19672 fi
19673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19675 echo "${ECHO_T}$ac_header_compiler" >&6
19676
19677 # Is the header present?
19678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h. */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 #include <$ac_header>
19687 _ACEOF
19688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } >/dev/null; then
19696 if test -s conftest.err; then
19697 ac_cpp_err=$ac_c_preproc_warn_flag
19698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19699 else
19700 ac_cpp_err=
19701 fi
19702 else
19703 ac_cpp_err=yes
19704 fi
19705 if test -z "$ac_cpp_err"; then
19706 ac_header_preproc=yes
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_header_preproc=no
19712 fi
19713 rm -f conftest.err conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19715 echo "${ECHO_T}$ac_header_preproc" >&6
19716
19717 # So? What about this header?
19718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19719 yes:no: )
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19724 ac_header_preproc=yes
19725 ;;
19726 no:yes:* )
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19739 (
19740 cat <<\_ASBOX
19741 ## ------------------------------------------ ##
19742 ## Report this to the AC_PACKAGE_NAME lists. ##
19743 ## ------------------------------------------ ##
19744 _ASBOX
19745 ) |
19746 sed "s/^/$as_me: WARNING: /" >&2
19747 ;;
19748 esac
19749 echo "$as_me:$LINENO: checking for $ac_header" >&5
19750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 eval "$as_ac_Header=\$ac_header_preproc"
19755 fi
19756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19758
19759 fi
19760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19763 _ACEOF
19764
19765 fi
19766
19767 done
19768
19769 fi
19770
19771 done
19772
19773 fi
19774
19775 done
19776
19777
19778 for ac_header in krb.h
19779 do
19780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 fi
19787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19789 else
19790 # Is the header compilable?
19791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804 (eval $ac_compile) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest.$ac_objext'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_header_compiler=yes
19824 else
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_header_compiler=no
19829 fi
19830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19832 echo "${ECHO_T}$ac_header_compiler" >&6
19833
19834 # Is the header present?
19835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19837 cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h. */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19843 #include <$ac_header>
19844 _ACEOF
19845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } >/dev/null; then
19853 if test -s conftest.err; then
19854 ac_cpp_err=$ac_c_preproc_warn_flag
19855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19856 else
19857 ac_cpp_err=
19858 fi
19859 else
19860 ac_cpp_err=yes
19861 fi
19862 if test -z "$ac_cpp_err"; then
19863 ac_header_preproc=yes
19864 else
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ac_header_preproc=no
19869 fi
19870 rm -f conftest.err conftest.$ac_ext
19871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872 echo "${ECHO_T}$ac_header_preproc" >&6
19873
19874 # So? What about this header?
19875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19876 yes:no: )
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19881 ac_header_preproc=yes
19882 ;;
19883 no:yes:* )
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19896 (
19897 cat <<\_ASBOX
19898 ## ------------------------------------------ ##
19899 ## Report this to the AC_PACKAGE_NAME lists. ##
19900 ## ------------------------------------------ ##
19901 _ASBOX
19902 ) |
19903 sed "s/^/$as_me: WARNING: /" >&2
19904 ;;
19905 esac
19906 echo "$as_me:$LINENO: checking for $ac_header" >&5
19907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911 eval "$as_ac_Header=\$ac_header_preproc"
19912 fi
19913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19915
19916 fi
19917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19918 cat >>confdefs.h <<_ACEOF
19919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19920 _ACEOF
19921
19922 else
19923
19924 for ac_header in kerberosIV/krb.h
19925 do
19926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19928 echo "$as_me:$LINENO: checking for $ac_header" >&5
19929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 fi
19933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19935 else
19936 # Is the header compilable?
19937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 $ac_includes_default
19946 #include <$ac_header>
19947 _ACEOF
19948 rm -f conftest.$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950 (eval $ac_compile) 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest.$ac_objext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 ac_header_compiler=yes
19970 else
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 ac_header_compiler=no
19975 fi
19976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978 echo "${ECHO_T}$ac_header_compiler" >&6
19979
19980 # Is the header present?
19981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h. */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <$ac_header>
19990 _ACEOF
19991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } >/dev/null; then
19999 if test -s conftest.err; then
20000 ac_cpp_err=$ac_c_preproc_warn_flag
20001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20002 else
20003 ac_cpp_err=
20004 fi
20005 else
20006 ac_cpp_err=yes
20007 fi
20008 if test -z "$ac_cpp_err"; then
20009 ac_header_preproc=yes
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_header_preproc=no
20015 fi
20016 rm -f conftest.err conftest.$ac_ext
20017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20018 echo "${ECHO_T}$ac_header_preproc" >&6
20019
20020 # So? What about this header?
20021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20022 yes:no: )
20023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20027 ac_header_preproc=yes
20028 ;;
20029 no:yes:* )
20030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20042 (
20043 cat <<\_ASBOX
20044 ## ------------------------------------------ ##
20045 ## Report this to the AC_PACKAGE_NAME lists. ##
20046 ## ------------------------------------------ ##
20047 _ASBOX
20048 ) |
20049 sed "s/^/$as_me: WARNING: /" >&2
20050 ;;
20051 esac
20052 echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057 eval "$as_ac_Header=\$ac_header_preproc"
20058 fi
20059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20061
20062 fi
20063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20066 _ACEOF
20067
20068 else
20069
20070 for ac_header in kerberos/krb.h
20071 do
20072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20074 echo "$as_me:$LINENO: checking for $ac_header" >&5
20075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 fi
20079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20081 else
20082 # Is the header compilable?
20083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 $ac_includes_default
20092 #include <$ac_header>
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_header_compiler=yes
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 ac_header_compiler=no
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20124 echo "${ECHO_T}$ac_header_compiler" >&6
20125
20126 # Is the header present?
20127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h. */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #include <$ac_header>
20136 _ACEOF
20137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } >/dev/null; then
20145 if test -s conftest.err; then
20146 ac_cpp_err=$ac_c_preproc_warn_flag
20147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20148 else
20149 ac_cpp_err=
20150 fi
20151 else
20152 ac_cpp_err=yes
20153 fi
20154 if test -z "$ac_cpp_err"; then
20155 ac_header_preproc=yes
20156 else
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_header_preproc=no
20161 fi
20162 rm -f conftest.err conftest.$ac_ext
20163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20164 echo "${ECHO_T}$ac_header_preproc" >&6
20165
20166 # So? What about this header?
20167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20168 yes:no: )
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20173 ac_header_preproc=yes
20174 ;;
20175 no:yes:* )
20176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20188 (
20189 cat <<\_ASBOX
20190 ## ------------------------------------------ ##
20191 ## Report this to the AC_PACKAGE_NAME lists. ##
20192 ## ------------------------------------------ ##
20193 _ASBOX
20194 ) |
20195 sed "s/^/$as_me: WARNING: /" >&2
20196 ;;
20197 esac
20198 echo "$as_me:$LINENO: checking for $ac_header" >&5
20199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203 eval "$as_ac_Header=\$ac_header_preproc"
20204 fi
20205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20207
20208 fi
20209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20210 cat >>confdefs.h <<_ACEOF
20211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20212 _ACEOF
20213
20214 fi
20215
20216 done
20217
20218 fi
20219
20220 done
20221
20222 fi
20223
20224 done
20225
20226 fi
20227
20228 for ac_header in com_err.h
20229 do
20230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20232 echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 fi
20237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20239 else
20240 # Is the header compilable?
20241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 $ac_includes_default
20250 #include <$ac_header>
20251 _ACEOF
20252 rm -f conftest.$ac_objext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20254 (eval $ac_compile) 2>conftest.er1
20255 ac_status=$?
20256 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } &&
20261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest.$ac_objext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_header_compiler=yes
20274 else
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278 ac_header_compiler=no
20279 fi
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6
20283
20284 # Is the header present?
20285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h. */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <$ac_header>
20294 _ACEOF
20295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20297 ac_status=$?
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } >/dev/null; then
20303 if test -s conftest.err; then
20304 ac_cpp_err=$ac_c_preproc_warn_flag
20305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20306 else
20307 ac_cpp_err=
20308 fi
20309 else
20310 ac_cpp_err=yes
20311 fi
20312 if test -z "$ac_cpp_err"; then
20313 ac_header_preproc=yes
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 ac_header_preproc=no
20319 fi
20320 rm -f conftest.err conftest.$ac_ext
20321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20322 echo "${ECHO_T}$ac_header_preproc" >&6
20323
20324 # So? What about this header?
20325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20326 yes:no: )
20327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20331 ac_header_preproc=yes
20332 ;;
20333 no:yes:* )
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20346 (
20347 cat <<\_ASBOX
20348 ## ------------------------------------------ ##
20349 ## Report this to the AC_PACKAGE_NAME lists. ##
20350 ## ------------------------------------------ ##
20351 _ASBOX
20352 ) |
20353 sed "s/^/$as_me: WARNING: /" >&2
20354 ;;
20355 esac
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361 eval "$as_ac_Header=\$ac_header_preproc"
20362 fi
20363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20365
20366 fi
20367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20370 _ACEOF
20371
20372 fi
20373
20374 done
20375
20376 fi
20377
20378 # Solaris requires -lintl if you want strerror (which calls dgettext)
20379 # to return localized messages.
20380
20381 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20382 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20383 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 else
20386 ac_check_lib_save_LIBS=$LIBS
20387 LIBS="-lintl $LIBS"
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394
20395 /* Override any gcc2 internal prototype to avoid an error. */
20396 #ifdef __cplusplus
20397 extern "C"
20398 #endif
20399 /* We use char because int might match the return type of a gcc2
20400 builtin and then its argument prototype would still apply. */
20401 char dgettext ();
20402 int
20403 main ()
20404 {
20405 dgettext ();
20406 ;
20407 return 0;
20408 }
20409 _ACEOF
20410 rm -f conftest.$ac_objext conftest$ac_exeext
20411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20412 (eval $ac_link) 2>conftest.er1
20413 ac_status=$?
20414 grep -v '^ *+' conftest.er1 >conftest.err
20415 rm -f conftest.er1
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try='test -s conftest$ac_exeext'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_cv_lib_intl_dgettext=yes
20432 else
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 ac_cv_lib_intl_dgettext=no
20437 fi
20438 rm -f conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20441 fi
20442 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20443 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20444 if test $ac_cv_lib_intl_dgettext = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define HAVE_LIBINTL 1
20447 _ACEOF
20448
20449 LIBS="-lintl $LIBS"
20450
20451 fi
20452
20453
20454 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20455 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20456 if test "${emacs_cv_localtime_cache+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459 if test x$ac_cv_func_tzset = xyes; then
20460 if test "$cross_compiling" = yes; then
20461 # If we have tzset, assume the worst when cross-compiling.
20462 emacs_cv_localtime_cache=yes
20463 else
20464 cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h. */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 #include <time.h>
20471 extern char **environ;
20472 unset_TZ ()
20473 {
20474 char **from, **to;
20475 for (to = from = environ; (*to = *from); from++)
20476 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20477 to++;
20478 }
20479 char TZ_GMT0[] = "TZ=GMT0";
20480 char TZ_PST8[] = "TZ=PST8";
20481 main()
20482 {
20483 time_t now = time ((time_t *) 0);
20484 int hour_GMT0, hour_unset;
20485 if (putenv (TZ_GMT0) != 0)
20486 exit (1);
20487 hour_GMT0 = localtime (&now)->tm_hour;
20488 unset_TZ ();
20489 hour_unset = localtime (&now)->tm_hour;
20490 if (putenv (TZ_PST8) != 0)
20491 exit (1);
20492 if (localtime (&now)->tm_hour == hour_GMT0)
20493 exit (1);
20494 unset_TZ ();
20495 if (localtime (&now)->tm_hour != hour_unset)
20496 exit (1);
20497 exit (0);
20498 }
20499 _ACEOF
20500 rm -f conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 emacs_cv_localtime_cache=no
20512 else
20513 echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 ( exit $ac_status )
20518 emacs_cv_localtime_cache=yes
20519 fi
20520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20521 fi
20522 else
20523 # If we lack tzset, report that localtime does not cache TZ,
20524 # since we can't invalidate the cache if we don't have tzset.
20525 emacs_cv_localtime_cache=no
20526 fi
20527 fi
20528 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20529 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20530 if test $emacs_cv_localtime_cache = yes; then
20531
20532 cat >>confdefs.h <<\_ACEOF
20533 #define LOCALTIME_CACHE 1
20534 _ACEOF
20535
20536 fi
20537
20538 if test "x$HAVE_TIMEVAL" = xyes; then
20539
20540 for ac_func in gettimeofday
20541 do
20542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20543 echo "$as_me:$LINENO: checking for $ac_func" >&5
20544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20545 if eval "test \"\${$as_ac_var+set}\" = set"; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548 cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h. */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20556 #define $ac_func innocuous_$ac_func
20557
20558 /* System header to define __stub macros and hopefully few prototypes,
20559 which can conflict with char $ac_func (); below.
20560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561 <limits.h> exists even on freestanding compilers. */
20562
20563 #ifdef __STDC__
20564 # include <limits.h>
20565 #else
20566 # include <assert.h>
20567 #endif
20568
20569 #undef $ac_func
20570
20571 /* Override any gcc2 internal prototype to avoid an error. */
20572 #ifdef __cplusplus
20573 extern "C"
20574 {
20575 #endif
20576 /* We use char because int might match the return type of a gcc2
20577 builtin and then its argument prototype would still apply. */
20578 char $ac_func ();
20579 /* The GNU C library defines this for functions which it implements
20580 to always fail with ENOSYS. Some functions are actually named
20581 something starting with __ and the normal name is an alias. */
20582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20583 choke me
20584 #else
20585 char (*f) () = $ac_func;
20586 #endif
20587 #ifdef __cplusplus
20588 }
20589 #endif
20590
20591 int
20592 main ()
20593 {
20594 return f != $ac_func;
20595 ;
20596 return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20601 (eval $ac_link) 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; } &&
20614 { ac_try='test -s conftest$ac_exeext'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 eval "$as_ac_var=yes"
20621 else
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 eval "$as_ac_var=no"
20626 fi
20627 rm -f conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
20629 fi
20630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20632 if test `eval echo '${'$as_ac_var'}'` = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20635 _ACEOF
20636
20637 fi
20638 done
20639
20640 if test $ac_cv_func_gettimeofday = yes; then
20641 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20642 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20643 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652
20653 #ifdef TIME_WITH_SYS_TIME
20654 #include <sys/time.h>
20655 #include <time.h>
20656 #else
20657 #ifdef HAVE_SYS_TIME_H
20658 #include <sys/time.h>
20659 #else
20660 #include <time.h>
20661 #endif
20662 #endif
20663 int
20664 main ()
20665 {
20666 struct timeval time;
20667 gettimeofday (&time, 0);
20668 ;
20669 return 0;
20670 }
20671 _ACEOF
20672 rm -f conftest.$ac_objext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20674 (eval $ac_compile) 2>conftest.er1
20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try='test -s conftest.$ac_objext'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 emacs_cv_gettimeofday_two_arguments=yes
20694 else
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698 emacs_cv_gettimeofday_two_arguments=no
20699 fi
20700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20701 fi
20702 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20703 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20704 if test $emacs_cv_gettimeofday_two_arguments = no; then
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20708 _ACEOF
20709
20710 fi
20711 fi
20712 fi
20713
20714 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20715 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20716 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20717 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720 cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h. */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 #include <sys/types.h>
20727 #include <$ac_cv_struct_tm>
20728
20729
20730 int
20731 main ()
20732 {
20733 static struct tm ac_aggr;
20734 if (ac_aggr.tm_zone)
20735 return 0;
20736 ;
20737 return 0;
20738 }
20739 _ACEOF
20740 rm -f conftest.$ac_objext
20741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20742 (eval $ac_compile) 2>conftest.er1
20743 ac_status=$?
20744 grep -v '^ *+' conftest.er1 >conftest.err
20745 rm -f conftest.er1
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_cv_member_struct_tm_tm_zone=yes
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 #include <sys/types.h>
20773 #include <$ac_cv_struct_tm>
20774
20775
20776 int
20777 main ()
20778 {
20779 static struct tm ac_aggr;
20780 if (sizeof ac_aggr.tm_zone)
20781 return 0;
20782 ;
20783 return 0;
20784 }
20785 _ACEOF
20786 rm -f conftest.$ac_objext
20787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20788 (eval $ac_compile) 2>conftest.er1
20789 ac_status=$?
20790 grep -v '^ *+' conftest.er1 >conftest.err
20791 rm -f conftest.er1
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } &&
20795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 ac_cv_member_struct_tm_tm_zone=yes
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20811
20812 ac_cv_member_struct_tm_tm_zone=no
20813 fi
20814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 fi
20816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20817 fi
20818 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20819 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20820 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20821
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_STRUCT_TM_TM_ZONE 1
20824 _ACEOF
20825
20826
20827 fi
20828
20829 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20830
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_TM_ZONE 1
20833 _ACEOF
20834
20835 else
20836 echo "$as_me:$LINENO: checking for tzname" >&5
20837 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20838 if test "${ac_cv_var_tzname+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 #include <time.h>
20848 #ifndef tzname /* For SGI. */
20849 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20850 #endif
20851
20852 int
20853 main ()
20854 {
20855 atoi(*tzname);
20856 ;
20857 return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20862 (eval $ac_link) 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; } &&
20875 { ac_try='test -s conftest$ac_exeext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_var_tzname=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 ac_cv_var_tzname=no
20887 fi
20888 rm -f conftest.err conftest.$ac_objext \
20889 conftest$ac_exeext conftest.$ac_ext
20890 fi
20891 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20892 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20893 if test $ac_cv_var_tzname = yes; then
20894
20895 cat >>confdefs.h <<\_ACEOF
20896 #define HAVE_TZNAME 1
20897 _ACEOF
20898
20899 fi
20900 fi
20901
20902
20903 if test "$ac_cv_func_gettimeofday" = yes; then
20904 echo "$as_me:$LINENO: checking for struct timezone" >&5
20905 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20906 if test "${emacs_cv_struct_timezone+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <sys/time.h>
20916 int
20917 main ()
20918 {
20919 struct timezone tz;
20920 ;
20921 return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20926 (eval $ac_compile) 2>conftest.er1
20927 ac_status=$?
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; } &&
20939 { ac_try='test -s conftest.$ac_objext'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; }; then
20945 if test "$cross_compiling" = yes; then
20946 emacs_cv_struct_timezone=yes
20947 else
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954
20955 #ifdef TIME_WITH_SYS_TIME
20956 #include <sys/time.h>
20957 #include <time.h>
20958 #else
20959 #ifdef HAVE_SYS_TIME_H
20960 #include <sys/time.h>
20961 #else
20962 #include <time.h>
20963 #endif
20964 #endif
20965 main () {
20966 struct timeval time;
20967 struct timezone dummy;
20968 exit (gettimeofday (&time, &dummy));
20969 }
20970 _ACEOF
20971 rm -f conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973 (eval $ac_link) 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 emacs_cv_struct_timezone=yes
20983 else
20984 echo "$as_me: program exited with status $ac_status" >&5
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ( exit $ac_status )
20989 emacs_cv_struct_timezone=no
20990 fi
20991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20992 fi
20993 else
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 emacs_cv_struct_timezone=no
20998 fi
20999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21000 fi
21001 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21002 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21003 fi
21004
21005 ok_so_far=yes
21006 echo "$as_me:$LINENO: checking for socket" >&5
21007 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21008 if test "${ac_cv_func_socket+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21019 #define socket innocuous_socket
21020
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char socket (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21025
21026 #ifdef __STDC__
21027 # include <limits.h>
21028 #else
21029 # include <assert.h>
21030 #endif
21031
21032 #undef socket
21033
21034 /* Override any gcc2 internal prototype to avoid an error. */
21035 #ifdef __cplusplus
21036 extern "C"
21037 {
21038 #endif
21039 /* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
21041 char socket ();
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined (__stub_socket) || defined (__stub___socket)
21046 choke me
21047 #else
21048 char (*f) () = socket;
21049 #endif
21050 #ifdef __cplusplus
21051 }
21052 #endif
21053
21054 int
21055 main ()
21056 {
21057 return f != socket;
21058 ;
21059 return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest$ac_exeext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_func_socket=yes
21084 else
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21087
21088 ac_cv_func_socket=no
21089 fi
21090 rm -f conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
21092 fi
21093 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21094 echo "${ECHO_T}$ac_cv_func_socket" >&6
21095 if test $ac_cv_func_socket = yes; then
21096 :
21097 else
21098 ok_so_far=no
21099 fi
21100
21101 if test $ok_so_far = yes; then
21102 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21103 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21104 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21105 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 fi
21108 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21109 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21110 else
21111 # Is the header compilable?
21112 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21113 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 #include <netinet/in.h>
21122 _ACEOF
21123 rm -f conftest.$ac_objext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21125 (eval $ac_compile) 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } &&
21132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; } &&
21138 { ac_try='test -s conftest.$ac_objext'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 ac_header_compiler=yes
21145 else
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 ac_header_compiler=no
21150 fi
21151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21153 echo "${ECHO_T}$ac_header_compiler" >&6
21154
21155 # Is the header present?
21156 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21157 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21158 cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h. */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 #include <netinet/in.h>
21165 _ACEOF
21166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21168 ac_status=$?
21169 grep -v '^ *+' conftest.er1 >conftest.err
21170 rm -f conftest.er1
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } >/dev/null; then
21174 if test -s conftest.err; then
21175 ac_cpp_err=$ac_c_preproc_warn_flag
21176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21177 else
21178 ac_cpp_err=
21179 fi
21180 else
21181 ac_cpp_err=yes
21182 fi
21183 if test -z "$ac_cpp_err"; then
21184 ac_header_preproc=yes
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 ac_header_preproc=no
21190 fi
21191 rm -f conftest.err conftest.$ac_ext
21192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21193 echo "${ECHO_T}$ac_header_preproc" >&6
21194
21195 # So? What about this header?
21196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21197 yes:no: )
21198 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21199 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21201 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21202 ac_header_preproc=yes
21203 ;;
21204 no:yes:* )
21205 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21206 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21208 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21210 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21212 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21214 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21216 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21217 (
21218 cat <<\_ASBOX
21219 ## ------------------------------------------ ##
21220 ## Report this to the AC_PACKAGE_NAME lists. ##
21221 ## ------------------------------------------ ##
21222 _ASBOX
21223 ) |
21224 sed "s/^/$as_me: WARNING: /" >&2
21225 ;;
21226 esac
21227 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21228 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21229 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232 ac_cv_header_netinet_in_h=$ac_header_preproc
21233 fi
21234 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21235 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21236
21237 fi
21238 if test $ac_cv_header_netinet_in_h = yes; then
21239 :
21240 else
21241 ok_so_far=no
21242 fi
21243
21244
21245 fi
21246 if test $ok_so_far = yes; then
21247 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21248 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21249 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21250 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 fi
21253 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21254 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21255 else
21256 # Is the header compilable?
21257 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21258 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h. */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21266 #include <arpa/inet.h>
21267 _ACEOF
21268 rm -f conftest.$ac_objext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest.$ac_objext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_header_compiler=yes
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_header_compiler=no
21295 fi
21296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 echo "${ECHO_T}$ac_header_compiler" >&6
21299
21300 # Is the header present?
21301 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21302 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21303 cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h. */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <arpa/inet.h>
21310 _ACEOF
21311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } >/dev/null; then
21319 if test -s conftest.err; then
21320 ac_cpp_err=$ac_c_preproc_warn_flag
21321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21322 else
21323 ac_cpp_err=
21324 fi
21325 else
21326 ac_cpp_err=yes
21327 fi
21328 if test -z "$ac_cpp_err"; then
21329 ac_header_preproc=yes
21330 else
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334 ac_header_preproc=no
21335 fi
21336 rm -f conftest.err conftest.$ac_ext
21337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6
21339
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342 yes:no: )
21343 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc=yes
21348 ;;
21349 no:yes:* )
21350 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21362 (
21363 cat <<\_ASBOX
21364 ## ------------------------------------------ ##
21365 ## Report this to the AC_PACKAGE_NAME lists. ##
21366 ## ------------------------------------------ ##
21367 _ASBOX
21368 ) |
21369 sed "s/^/$as_me: WARNING: /" >&2
21370 ;;
21371 esac
21372 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21373 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21374 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377 ac_cv_header_arpa_inet_h=$ac_header_preproc
21378 fi
21379 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21380 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21381
21382 fi
21383 if test $ac_cv_header_arpa_inet_h = yes; then
21384 :
21385 else
21386 ok_so_far=no
21387 fi
21388
21389
21390 fi
21391 if test $ok_so_far = yes; then
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_INET_SOCKETS 1
21395 _ACEOF
21396
21397 fi
21398
21399
21400 for ac_header in sys/ioctl.h
21401 do
21402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21404 echo "$as_me:$LINENO: checking for $ac_header" >&5
21405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 fi
21409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21411 else
21412 # Is the header compilable?
21413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 $ac_includes_default
21422 #include <$ac_header>
21423 _ACEOF
21424 rm -f conftest.$ac_objext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21426 (eval $ac_compile) 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; } &&
21439 { ac_try='test -s conftest.$ac_objext'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 ac_header_compiler=yes
21446 else
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450 ac_header_compiler=no
21451 fi
21452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21454 echo "${ECHO_T}$ac_header_compiler" >&6
21455
21456 # Is the header present?
21457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 #include <$ac_header>
21466 _ACEOF
21467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } >/dev/null; then
21475 if test -s conftest.err; then
21476 ac_cpp_err=$ac_c_preproc_warn_flag
21477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21478 else
21479 ac_cpp_err=
21480 fi
21481 else
21482 ac_cpp_err=yes
21483 fi
21484 if test -z "$ac_cpp_err"; then
21485 ac_header_preproc=yes
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490 ac_header_preproc=no
21491 fi
21492 rm -f conftest.err conftest.$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21494 echo "${ECHO_T}$ac_header_preproc" >&6
21495
21496 # So? What about this header?
21497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21498 yes:no: )
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21503 ac_header_preproc=yes
21504 ;;
21505 no:yes:* )
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21518 (
21519 cat <<\_ASBOX
21520 ## ------------------------------------------ ##
21521 ## Report this to the AC_PACKAGE_NAME lists. ##
21522 ## ------------------------------------------ ##
21523 _ASBOX
21524 ) |
21525 sed "s/^/$as_me: WARNING: /" >&2
21526 ;;
21527 esac
21528 echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533 eval "$as_ac_Header=\$ac_header_preproc"
21534 fi
21535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21537
21538 fi
21539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21540 cat >>confdefs.h <<_ACEOF
21541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21542 _ACEOF
21543
21544 fi
21545
21546 done
21547
21548
21549 if test -f /usr/lpp/X11/bin/smt.exp; then
21550
21551 cat >>confdefs.h <<\_ACEOF
21552 #define HAVE_AIX_SMT_EXP 1
21553 _ACEOF
21554
21555 fi
21556
21557 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21558 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21559 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21560 echo "$as_me:$LINENO: result: yes" >&5
21561 echo "${ECHO_T}yes" >&6
21562
21563 cat >>confdefs.h <<\_ACEOF
21564 #define HAVE_DEV_PTMX 1
21565 _ACEOF
21566
21567 else
21568 echo "$as_me:$LINENO: result: no" >&5
21569 echo "${ECHO_T}no" >&6
21570 fi
21571
21572 echo "$as_me:$LINENO: checking for pid_t" >&5
21573 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21574 if test "${ac_cv_type_pid_t+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h. */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 int
21585 main ()
21586 {
21587 if ((pid_t *) 0)
21588 return 0;
21589 if (sizeof (pid_t))
21590 return 0;
21591 ;
21592 return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597 (eval $ac_compile) 2>conftest.er1
21598 ac_status=$?
21599 grep -v '^ *+' conftest.er1 >conftest.err
21600 rm -f conftest.er1
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } &&
21604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; } &&
21610 { ac_try='test -s conftest.$ac_objext'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 ac_cv_type_pid_t=yes
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621 ac_cv_type_pid_t=no
21622 fi
21623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21624 fi
21625 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21626 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21627 if test $ac_cv_type_pid_t = yes; then
21628 :
21629 else
21630
21631 cat >>confdefs.h <<_ACEOF
21632 #define pid_t int
21633 _ACEOF
21634
21635 fi
21636
21637
21638
21639 for ac_header in unistd.h vfork.h
21640 do
21641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21643 echo "$as_me:$LINENO: checking for $ac_header" >&5
21644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 fi
21648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21650 else
21651 # Is the header compilable?
21652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 $ac_includes_default
21661 #include <$ac_header>
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_header_compiler=yes
21685 else
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 ac_header_compiler=no
21690 fi
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21693 echo "${ECHO_T}$ac_header_compiler" >&6
21694
21695 # Is the header present?
21696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21698 cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h. */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include <$ac_header>
21705 _ACEOF
21706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev/null; then
21714 if test -s conftest.err; then
21715 ac_cpp_err=$ac_c_preproc_warn_flag
21716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21717 else
21718 ac_cpp_err=
21719 fi
21720 else
21721 ac_cpp_err=yes
21722 fi
21723 if test -z "$ac_cpp_err"; then
21724 ac_header_preproc=yes
21725 else
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 ac_header_preproc=no
21730 fi
21731 rm -f conftest.err conftest.$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21733 echo "${ECHO_T}$ac_header_preproc" >&6
21734
21735 # So? What about this header?
21736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21737 yes:no: )
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21742 ac_header_preproc=yes
21743 ;;
21744 no:yes:* )
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21757 (
21758 cat <<\_ASBOX
21759 ## ------------------------------------------ ##
21760 ## Report this to the AC_PACKAGE_NAME lists. ##
21761 ## ------------------------------------------ ##
21762 _ASBOX
21763 ) |
21764 sed "s/^/$as_me: WARNING: /" >&2
21765 ;;
21766 esac
21767 echo "$as_me:$LINENO: checking for $ac_header" >&5
21768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772 eval "$as_ac_Header=\$ac_header_preproc"
21773 fi
21774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21776
21777 fi
21778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21779 cat >>confdefs.h <<_ACEOF
21780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21781 _ACEOF
21782
21783 fi
21784
21785 done
21786
21787
21788
21789 for ac_func in fork vfork
21790 do
21791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21792 echo "$as_me:$LINENO: checking for $ac_func" >&5
21793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21794 if eval "test \"\${$as_ac_var+set}\" = set"; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21805 #define $ac_func innocuous_$ac_func
21806
21807 /* System header to define __stub macros and hopefully few prototypes,
21808 which can conflict with char $ac_func (); below.
21809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21810 <limits.h> exists even on freestanding compilers. */
21811
21812 #ifdef __STDC__
21813 # include <limits.h>
21814 #else
21815 # include <assert.h>
21816 #endif
21817
21818 #undef $ac_func
21819
21820 /* Override any gcc2 internal prototype to avoid an error. */
21821 #ifdef __cplusplus
21822 extern "C"
21823 {
21824 #endif
21825 /* We use char because int might match the return type of a gcc2
21826 builtin and then its argument prototype would still apply. */
21827 char $ac_func ();
21828 /* The GNU C library defines this for functions which it implements
21829 to always fail with ENOSYS. Some functions are actually named
21830 something starting with __ and the normal name is an alias. */
21831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21832 choke me
21833 #else
21834 char (*f) () = $ac_func;
21835 #endif
21836 #ifdef __cplusplus
21837 }
21838 #endif
21839
21840 int
21841 main ()
21842 {
21843 return f != $ac_func;
21844 ;
21845 return 0;
21846 }
21847 _ACEOF
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>conftest.er1
21851 ac_status=$?
21852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
21857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest$ac_exeext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21866 ac_status=$?
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 eval "$as_ac_var=yes"
21870 else
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874 eval "$as_ac_var=no"
21875 fi
21876 rm -f conftest.err conftest.$ac_objext \
21877 conftest$ac_exeext conftest.$ac_ext
21878 fi
21879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21881 if test `eval echo '${'$as_ac_var'}'` = yes; then
21882 cat >>confdefs.h <<_ACEOF
21883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21884 _ACEOF
21885
21886 fi
21887 done
21888
21889 if test "x$ac_cv_func_fork" = xyes; then
21890 echo "$as_me:$LINENO: checking for working fork" >&5
21891 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21892 if test "${ac_cv_func_fork_works+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 else
21895 if test "$cross_compiling" = yes; then
21896 ac_cv_func_fork_works=cross
21897 else
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 int
21906 main ()
21907 {
21908
21909 /* By Ruediger Kuhlmann. */
21910 if (fork() < 0)
21911 exit (1);
21912 exit (0);
21913
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 rm -f conftest$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_func_fork_works=yes
21930 else
21931 echo "$as_me: program exited with status $ac_status" >&5
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935 ( exit $ac_status )
21936 ac_cv_func_fork_works=no
21937 fi
21938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21939 fi
21940 fi
21941 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21942 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21943
21944 else
21945 ac_cv_func_fork_works=$ac_cv_func_fork
21946 fi
21947 if test "x$ac_cv_func_fork_works" = xcross; then
21948 case $host in
21949 *-*-amigaos* | *-*-msdosdjgpp*)
21950 # Override, as these systems have only a dummy fork() stub
21951 ac_cv_func_fork_works=no
21952 ;;
21953 *)
21954 ac_cv_func_fork_works=yes
21955 ;;
21956 esac
21957 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21958 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21959 fi
21960 ac_cv_func_vfork_works=$ac_cv_func_vfork
21961 if test "x$ac_cv_func_vfork" = xyes; then
21962 echo "$as_me:$LINENO: checking for working vfork" >&5
21963 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21964 if test "${ac_cv_func_vfork_works+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967 if test "$cross_compiling" = yes; then
21968 ac_cv_func_vfork_works=cross
21969 else
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 /* Thanks to Paul Eggert for this test. */
21977 #include <stdio.h>
21978 #include <stdlib.h>
21979 #include <sys/types.h>
21980 #include <sys/stat.h>
21981 #include <sys/wait.h>
21982 #if HAVE_UNISTD_H
21983 # include <unistd.h>
21984 #endif
21985 #if HAVE_VFORK_H
21986 # include <vfork.h>
21987 #endif
21988 /* On some sparc systems, changes by the child to local and incoming
21989 argument registers are propagated back to the parent. The compiler
21990 is told about this with #include <vfork.h>, but some compilers
21991 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21992 static variable whose address is put into a register that is
21993 clobbered by the vfork. */
21994 static void
21995 #ifdef __cplusplus
21996 sparc_address_test (int arg)
21997 # else
21998 sparc_address_test (arg) int arg;
21999 #endif
22000 {
22001 static pid_t child;
22002 if (!child) {
22003 child = vfork ();
22004 if (child < 0) {
22005 perror ("vfork");
22006 _exit(2);
22007 }
22008 if (!child) {
22009 arg = getpid();
22010 write(-1, "", 0);
22011 _exit (arg);
22012 }
22013 }
22014 }
22015
22016 int
22017 main ()
22018 {
22019 pid_t parent = getpid ();
22020 pid_t child;
22021
22022 sparc_address_test (0);
22023
22024 child = vfork ();
22025
22026 if (child == 0) {
22027 /* Here is another test for sparc vfork register problems. This
22028 test uses lots of local variables, at least as many local
22029 variables as main has allocated so far including compiler
22030 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22031 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22032 reuse the register of parent for one of the local variables,
22033 since it will think that parent can't possibly be used any more
22034 in this routine. Assigning to the local variable will thus
22035 munge parent in the parent process. */
22036 pid_t
22037 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22038 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22039 /* Convince the compiler that p..p7 are live; otherwise, it might
22040 use the same hardware register for all 8 local variables. */
22041 if (p != p1 || p != p2 || p != p3 || p != p4
22042 || p != p5 || p != p6 || p != p7)
22043 _exit(1);
22044
22045 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22046 from child file descriptors. If the child closes a descriptor
22047 before it execs or exits, this munges the parent's descriptor
22048 as well. Test for this by closing stdout in the child. */
22049 _exit(close(fileno(stdout)) != 0);
22050 } else {
22051 int status;
22052 struct stat st;
22053
22054 while (wait(&status) != child)
22055 ;
22056 exit(
22057 /* Was there some problem with vforking? */
22058 child < 0
22059
22060 /* Did the child fail? (This shouldn't happen.) */
22061 || status
22062
22063 /* Did the vfork/compiler bug occur? */
22064 || parent != getpid()
22065
22066 /* Did the file descriptor bug occur? */
22067 || fstat(fileno(stdout), &st) != 0
22068 );
22069 }
22070 }
22071 _ACEOF
22072 rm -f conftest$ac_exeext
22073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22074 (eval $ac_link) 2>&5
22075 ac_status=$?
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_cv_func_vfork_works=yes
22084 else
22085 echo "$as_me: program exited with status $ac_status" >&5
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22088
22089 ( exit $ac_status )
22090 ac_cv_func_vfork_works=no
22091 fi
22092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22093 fi
22094 fi
22095 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22096 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22097
22098 fi;
22099 if test "x$ac_cv_func_fork_works" = xcross; then
22100 ac_cv_func_vfork_works=$ac_cv_func_vfork
22101 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22102 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22103 fi
22104
22105 if test "x$ac_cv_func_vfork_works" = xyes; then
22106
22107 cat >>confdefs.h <<\_ACEOF
22108 #define HAVE_WORKING_VFORK 1
22109 _ACEOF
22110
22111 else
22112
22113 cat >>confdefs.h <<\_ACEOF
22114 #define vfork fork
22115 _ACEOF
22116
22117 fi
22118 if test "x$ac_cv_func_fork_works" = xyes; then
22119
22120 cat >>confdefs.h <<\_ACEOF
22121 #define HAVE_WORKING_FORK 1
22122 _ACEOF
22123
22124 fi
22125
22126
22127 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22128 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22129 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 else
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h. */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <langinfo.h>
22139 int
22140 main ()
22141 {
22142 char* cs = nl_langinfo(CODESET);
22143 ;
22144 return 0;
22145 }
22146 _ACEOF
22147 rm -f conftest.$ac_objext conftest$ac_exeext
22148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22149 (eval $ac_link) 2>conftest.er1
22150 ac_status=$?
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } &&
22156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; } &&
22162 { ac_try='test -s conftest$ac_exeext'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; }; then
22168 emacs_cv_langinfo_codeset=yes
22169 else
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173 emacs_cv_langinfo_codeset=no
22174 fi
22175 rm -f conftest.err conftest.$ac_objext \
22176 conftest$ac_exeext conftest.$ac_ext
22177
22178 fi
22179 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22180 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22181 if test $emacs_cv_langinfo_codeset = yes; then
22182
22183 cat >>confdefs.h <<\_ACEOF
22184 #define HAVE_LANGINFO_CODESET 1
22185 _ACEOF
22186
22187 fi
22188
22189 echo "$as_me:$LINENO: checking for size_t" >&5
22190 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22191 if test "${ac_cv_type_size_t+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 else
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 $ac_includes_default
22201 int
22202 main ()
22203 {
22204 if ((size_t *) 0)
22205 return 0;
22206 if (sizeof (size_t))
22207 return 0;
22208 ;
22209 return 0;
22210 }
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214 (eval $ac_compile) 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
22221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try='test -s conftest.$ac_objext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 ac_cv_type_size_t=yes
22234 else
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 ac_cv_type_size_t=no
22239 fi
22240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22241 fi
22242 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22243 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22244 if test $ac_cv_type_size_t = yes; then
22245
22246 cat >>confdefs.h <<_ACEOF
22247 #define HAVE_SIZE_T 1
22248 _ACEOF
22249
22250
22251 fi
22252
22253
22254 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22255 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22256 if test "${ac_cv_type_mbstate_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259 cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h. */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22266 # include <wchar.h>
22267 int
22268 main ()
22269 {
22270 mbstate_t x; return sizeof x;
22271 ;
22272 return 0;
22273 }
22274 _ACEOF
22275 rm -f conftest.$ac_objext
22276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22277 (eval $ac_compile) 2>conftest.er1
22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } &&
22284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest.$ac_objext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 ac_cv_type_mbstate_t=yes
22297 else
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 ac_cv_type_mbstate_t=no
22302 fi
22303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22304 fi
22305 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22306 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22307 if test $ac_cv_type_mbstate_t = yes; then
22308
22309 cat >>confdefs.h <<\_ACEOF
22310 #define HAVE_MBSTATE_T 1
22311 _ACEOF
22312
22313 else
22314
22315 cat >>confdefs.h <<\_ACEOF
22316 #define mbstate_t int
22317 _ACEOF
22318
22319 fi
22320
22321 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22322 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22323 if test "${emacs_cv_c_restrict+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 void fred (int *restrict x);
22333 int
22334 main ()
22335 {
22336
22337 ;
22338 return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; } &&
22356 { ac_try='test -s conftest.$ac_objext'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 emacs_cv_c_restrict=yes
22363 else
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 void fred (int *__restrict x);
22374 int
22375 main ()
22376 {
22377
22378 ;
22379 return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; } &&
22397 { ac_try='test -s conftest.$ac_objext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 emacs_cv_c_restrict=__restrict
22404 else
22405 echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22407
22408 emacs_cv_c_restrict=no
22409 fi
22410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22411 fi
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413 fi
22414 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22415 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22416 case "$emacs_cv_c_restrict" in
22417 yes) emacs_restrict=restrict;;
22418 no) emacs_restrict="";;
22419 *) emacs_restrict="$emacs_cv_c_restrict";;
22420 esac
22421 if test "$emacs_restrict" != __restrict; then
22422
22423 cat >>confdefs.h <<_ACEOF
22424 #define __restrict $emacs_restrict
22425 _ACEOF
22426
22427 fi
22428
22429 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22430 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22431 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434 cat >conftest.$ac_ext <<_ACEOF
22435 /* confdefs.h. */
22436 _ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h. */
22440 void fred (int x[__restrict]);
22441 int
22442 main ()
22443 {
22444
22445 ;
22446 return 0;
22447 }
22448 _ACEOF
22449 rm -f conftest.$ac_objext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22451 (eval $ac_compile) 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
22458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try='test -s conftest.$ac_objext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 emacs_cv_c_restrict_arr=yes
22471 else
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475 emacs_cv_c_restrict_arr=no
22476 fi
22477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22478 fi
22479 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22480 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22481 if test "$emacs_cv_c_restrict_arr" = yes; then
22482
22483 cat >>confdefs.h <<\_ACEOF
22484 #define __restrict_arr __restrict
22485 _ACEOF
22486
22487 fi
22488
22489
22490
22491 # Set up the CFLAGS for real compilation, so we can substitute it.
22492 CFLAGS="$REAL_CFLAGS"
22493 CPPFLAGS="$REAL_CPPFLAGS"
22494
22495 #### Find out which version of Emacs this is.
22496 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22497 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22498 if test x"${version}" = x; then
22499 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22500 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22501 { (exit 1); exit 1; }; }
22502 fi
22503
22504 ### Specify what sort of things we'll be editing into Makefile and config.h.
22505 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541 cat >>confdefs.h <<_ACEOF
22542 #define EMACS_CONFIGURATION "${canonical}"
22543 _ACEOF
22544
22545
22546 cat >>confdefs.h <<_ACEOF
22547 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22548 _ACEOF
22549
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define config_machfile "${machfile}"
22553 _ACEOF
22554
22555
22556 cat >>confdefs.h <<_ACEOF
22557 #define config_opsysfile "${opsysfile}"
22558 _ACEOF
22559
22560
22561 cat >>confdefs.h <<_ACEOF
22562 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22563 _ACEOF
22564
22565
22566 cat >>confdefs.h <<_ACEOF
22567 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22568 _ACEOF
22569
22570
22571 cat >>confdefs.h <<_ACEOF
22572 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22573 _ACEOF
22574
22575
22576 cat >>confdefs.h <<_ACEOF
22577 #define UNEXEC_SRC ${UNEXEC_SRC}
22578 _ACEOF
22579
22580
22581 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22582
22583 cat >>confdefs.h <<\_ACEOF
22584 #define HAVE_X_WINDOWS 1
22585 _ACEOF
22586
22587 fi
22588 if test "${USE_X_TOOLKIT}" != "none" ; then
22589
22590 cat >>confdefs.h <<\_ACEOF
22591 #define USE_X_TOOLKIT 1
22592 _ACEOF
22593
22594 fi
22595 if test "${HAVE_X11}" = "yes" ; then
22596
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_X11 1
22599 _ACEOF
22600
22601 fi
22602 if test "${HAVE_XFREE386}" = "yes" ; then
22603
22604 cat >>confdefs.h <<\_ACEOF
22605 #define HAVE_XFREE386 1
22606 _ACEOF
22607
22608 fi
22609 if test "${HAVE_MENUS}" = "yes" ; then
22610
22611 cat >>confdefs.h <<\_ACEOF
22612 #define HAVE_MENUS 1
22613 _ACEOF
22614
22615 fi
22616 if test "${GNU_MALLOC}" = "yes" ; then
22617
22618 cat >>confdefs.h <<\_ACEOF
22619 #define GNU_MALLOC 1
22620 _ACEOF
22621
22622 fi
22623 if test "${REL_ALLOC}" = "yes" ; then
22624
22625 cat >>confdefs.h <<\_ACEOF
22626 #define REL_ALLOC 1
22627 _ACEOF
22628
22629 fi
22630
22631
22632
22633
22634
22635 #### Report on what we decided to do.
22636 #### Report GTK as a toolkit, even if it doesn't use Xt.
22637 #### It makes printing result more understandable as using GTK sets
22638 #### toolkit_scroll_bars to yes by default.
22639 if test "${HAVE_GTK}" = "yes"; then
22640 USE_X_TOOLKIT=GTK
22641 fi
22642
22643 echo "
22644 Configured for \`${canonical}'.
22645
22646 Where should the build process find the source code? ${srcdir}
22647 What operating system and machine description files should Emacs use?
22648 \`${opsysfile}' and \`${machfile}'
22649 What compiler should emacs be built with? ${CC} ${CFLAGS}
22650 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22651 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22652 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22653 What window system should Emacs use? ${window_system}
22654 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22655
22656 if test -n "${x_includes}"; then
22657 echo " Where do we find X Windows header files? ${x_includes}"
22658 else
22659 echo " Where do we find X Windows header files? Standard dirs"
22660 fi
22661 if test -n "${x_libraries}"; then
22662 echo " Where do we find X Windows libraries? ${x_libraries}"
22663 else
22664 echo " Where do we find X Windows libraries? Standard dirs"
22665 fi
22666
22667 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22668 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22669 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22670 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22671 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22672 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22673 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22674 echo
22675
22676 if test $USE_XASSERTS = yes; then
22677 echo " Compiling with asserts turned on."
22678 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22679 echo
22680 fi
22681
22682
22683
22684 # Remove any trailing slashes in these variables.
22685 test "${prefix}" != NONE &&
22686 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22687 test "${exec_prefix}" != NONE &&
22688 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22689
22690 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22691 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22692 ## from Makefile.c can correctly provide the arg `-traditional' to the
22693 ## C preprocessor.
22694
22695 cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h. */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22701 yes..yes
22702 _ACEOF
22703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22704 $EGREP "yes..yes" >/dev/null 2>&1; then
22705 CPP_NEED_TRADITIONAL=no
22706 else
22707 CPP_NEED_TRADITIONAL=yes
22708 fi
22709 rm -f conftest*
22710
22711
22712 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"
22713 ac_config_commands="$ac_config_commands default"
22714 cat >confcache <<\_ACEOF
22715 # This file is a shell script that caches the results of configure
22716 # tests run on this system so they can be shared between configure
22717 # scripts and configure runs, see configure's option --config-cache.
22718 # It is not useful on other systems. If it contains results you don't
22719 # want to keep, you may remove or edit it.
22720 #
22721 # config.status only pays attention to the cache file if you give it
22722 # the --recheck option to rerun configure.
22723 #
22724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22726 # following values.
22727
22728 _ACEOF
22729
22730 # The following way of writing the cache mishandles newlines in values,
22731 # but we know of no workaround that is simple, portable, and efficient.
22732 # So, don't put newlines in cache variables' values.
22733 # Ultrix sh set writes to stderr and can't be redirected directly,
22734 # and sets the high bit in the cache file unless we assign to the vars.
22735 {
22736 (set) 2>&1 |
22737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22738 *ac_space=\ *)
22739 # `set' does not quote correctly, so add quotes (double-quote
22740 # substitution turns \\\\ into \\, and sed turns \\ into \).
22741 sed -n \
22742 "s/'/'\\\\''/g;
22743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22744 ;;
22745 *)
22746 # `set' quotes correctly as required by POSIX, so do not add quotes.
22747 sed -n \
22748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22749 ;;
22750 esac;
22751 } |
22752 sed '
22753 t clear
22754 : clear
22755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22756 t end
22757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22758 : end' >>confcache
22759 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22760 if test -w $cache_file; then
22761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22762 cat confcache >$cache_file
22763 else
22764 echo "not updating unwritable cache $cache_file"
22765 fi
22766 fi
22767 rm -f confcache
22768
22769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22770 # Let make expand exec_prefix.
22771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22772
22773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22775 # trailing colons and then remove the whole line if VPATH becomes empty
22776 # (actually we leave an empty line to preserve line numbers).
22777 if test "x$srcdir" = x.; then
22778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22779 s/:*\$(srcdir):*/:/;
22780 s/:*\${srcdir}:*/:/;
22781 s/:*@srcdir@:*/:/;
22782 s/^\([^=]*=[ ]*\):*/\1/;
22783 s/:*$//;
22784 s/^[^=]*=[ ]*$//;
22785 }'
22786 fi
22787
22788 DEFS=-DHAVE_CONFIG_H
22789
22790 ac_libobjs=
22791 ac_ltlibobjs=
22792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22793 # 1. Remove the extension, and $U if already installed.
22794 ac_i=`echo "$ac_i" |
22795 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22796 # 2. Add them.
22797 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22798 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22799 done
22800 LIBOBJS=$ac_libobjs
22801
22802 LTLIBOBJS=$ac_ltlibobjs
22803
22804
22805
22806 : ${CONFIG_STATUS=./config.status}
22807 ac_clean_files_save=$ac_clean_files
22808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22811 cat >$CONFIG_STATUS <<_ACEOF
22812 #! $SHELL
22813 # Generated by $as_me.
22814 # Run this file to recreate the current configuration.
22815 # Compiler output produced by configure, useful for debugging
22816 # configure, is in config.log if it exists.
22817
22818 debug=false
22819 ac_cs_recheck=false
22820 ac_cs_silent=false
22821 SHELL=\${CONFIG_SHELL-$SHELL}
22822 _ACEOF
22823
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825 ## --------------------- ##
22826 ## M4sh Initialization. ##
22827 ## --------------------- ##
22828
22829 # Be Bourne compatible
22830 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22831 emulate sh
22832 NULLCMD=:
22833 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22834 # is contrary to our usage. Disable this feature.
22835 alias -g '${1+"$@"}'='"$@"'
22836 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22837 set -o posix
22838 fi
22839 DUALCASE=1; export DUALCASE # for MKS sh
22840
22841 # Support unset when possible.
22842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22843 as_unset=unset
22844 else
22845 as_unset=false
22846 fi
22847
22848
22849 # Work around bugs in pre-3.0 UWIN ksh.
22850 $as_unset ENV MAIL MAILPATH
22851 PS1='$ '
22852 PS2='> '
22853 PS4='+ '
22854
22855 # NLS nuisances.
22856 for as_var in \
22857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859 LC_TELEPHONE LC_TIME
22860 do
22861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862 eval $as_var=C; export $as_var
22863 else
22864 $as_unset $as_var
22865 fi
22866 done
22867
22868 # Required to use basename.
22869 if expr a : '\(a\)' >/dev/null 2>&1; then
22870 as_expr=expr
22871 else
22872 as_expr=false
22873 fi
22874
22875 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22876 as_basename=basename
22877 else
22878 as_basename=false
22879 fi
22880
22881
22882 # Name of the executable.
22883 as_me=`$as_basename "$0" ||
22884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22885 X"$0" : 'X\(//\)$' \| \
22886 X"$0" : 'X\(/\)$' \| \
22887 . : '\(.\)' 2>/dev/null ||
22888 echo X/"$0" |
22889 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22890 /^X\/\(\/\/\)$/{ s//\1/; q; }
22891 /^X\/\(\/\).*/{ s//\1/; q; }
22892 s/.*/./; q'`
22893
22894
22895 # PATH needs CR, and LINENO needs CR and PATH.
22896 # Avoid depending upon Character Ranges.
22897 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22898 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22899 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22900 as_cr_digits='0123456789'
22901 as_cr_alnum=$as_cr_Letters$as_cr_digits
22902
22903 # The user is always right.
22904 if test "${PATH_SEPARATOR+set}" != set; then
22905 echo "#! /bin/sh" >conf$$.sh
22906 echo "exit 0" >>conf$$.sh
22907 chmod +x conf$$.sh
22908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22909 PATH_SEPARATOR=';'
22910 else
22911 PATH_SEPARATOR=:
22912 fi
22913 rm -f conf$$.sh
22914 fi
22915
22916
22917 as_lineno_1=$LINENO
22918 as_lineno_2=$LINENO
22919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22920 test "x$as_lineno_1" != "x$as_lineno_2" &&
22921 test "x$as_lineno_3" = "x$as_lineno_2" || {
22922 # Find who we are. Look in the path if we contain no path at all
22923 # relative or not.
22924 case $0 in
22925 *[\\/]* ) as_myself=$0 ;;
22926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22927 for as_dir in $PATH
22928 do
22929 IFS=$as_save_IFS
22930 test -z "$as_dir" && as_dir=.
22931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22932 done
22933
22934 ;;
22935 esac
22936 # We did not find ourselves, most probably we were run as `sh COMMAND'
22937 # in which case we are not to be found in the path.
22938 if test "x$as_myself" = x; then
22939 as_myself=$0
22940 fi
22941 if test ! -f "$as_myself"; then
22942 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22943 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22944 { (exit 1); exit 1; }; }
22945 fi
22946 case $CONFIG_SHELL in
22947 '')
22948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22949 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22950 do
22951 IFS=$as_save_IFS
22952 test -z "$as_dir" && as_dir=.
22953 for as_base in sh bash ksh sh5; do
22954 case $as_dir in
22955 /*)
22956 if ("$as_dir/$as_base" -c '
22957 as_lineno_1=$LINENO
22958 as_lineno_2=$LINENO
22959 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22960 test "x$as_lineno_1" != "x$as_lineno_2" &&
22961 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22962 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22963 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22964 CONFIG_SHELL=$as_dir/$as_base
22965 export CONFIG_SHELL
22966 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22967 fi;;
22968 esac
22969 done
22970 done
22971 ;;
22972 esac
22973
22974 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22975 # uniformly replaced by the line number. The first 'sed' inserts a
22976 # line-number line before each line; the second 'sed' does the real
22977 # work. The second script uses 'N' to pair each line-number line
22978 # with the numbered line, and appends trailing '-' during
22979 # substitution so that $LINENO is not a special case at line end.
22980 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22981 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22982 sed '=' <$as_myself |
22983 sed '
22984 N
22985 s,$,-,
22986 : loop
22987 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22988 t loop
22989 s,-$,,
22990 s,^['$as_cr_digits']*\n,,
22991 ' >$as_me.lineno &&
22992 chmod +x $as_me.lineno ||
22993 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22994 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22995 { (exit 1); exit 1; }; }
22996
22997 # Don't try to exec as it changes $[0], causing all sort of problems
22998 # (the dirname of $[0] is not the place where we might find the
22999 # original and so on. Autoconf is especially sensible to this).
23000 . ./$as_me.lineno
23001 # Exit status is that of the last command.
23002 exit
23003 }
23004
23005
23006 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23007 *c*,-n*) ECHO_N= ECHO_C='
23008 ' ECHO_T=' ' ;;
23009 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23010 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23011 esac
23012
23013 if expr a : '\(a\)' >/dev/null 2>&1; then
23014 as_expr=expr
23015 else
23016 as_expr=false
23017 fi
23018
23019 rm -f conf$$ conf$$.exe conf$$.file
23020 echo >conf$$.file
23021 if ln -s conf$$.file conf$$ 2>/dev/null; then
23022 # We could just check for DJGPP; but this test a) works b) is more generic
23023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23024 if test -f conf$$.exe; then
23025 # Don't use ln at all; we don't have any links
23026 as_ln_s='cp -p'
23027 else
23028 as_ln_s='ln -s'
23029 fi
23030 elif ln conf$$.file conf$$ 2>/dev/null; then
23031 as_ln_s=ln
23032 else
23033 as_ln_s='cp -p'
23034 fi
23035 rm -f conf$$ conf$$.exe conf$$.file
23036
23037 if mkdir -p . 2>/dev/null; then
23038 as_mkdir_p=:
23039 else
23040 test -d ./-p && rmdir ./-p
23041 as_mkdir_p=false
23042 fi
23043
23044 as_executable_p="test -f"
23045
23046 # Sed expression to map a string onto a valid CPP name.
23047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23048
23049 # Sed expression to map a string onto a valid variable name.
23050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23051
23052
23053 # IFS
23054 # We need space, tab and new line, in precisely that order.
23055 as_nl='
23056 '
23057 IFS=" $as_nl"
23058
23059 # CDPATH.
23060 $as_unset CDPATH
23061
23062 exec 6>&1
23063
23064 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23065 # report actual input values of CONFIG_FILES etc. instead of their
23066 # values after options handling. Logging --version etc. is OK.
23067 exec 5>>config.log
23068 {
23069 echo
23070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23071 ## Running $as_me. ##
23072 _ASBOX
23073 } >&5
23074 cat >&5 <<_CSEOF
23075
23076 This file was extended by $as_me, which was
23077 generated by GNU Autoconf 2.59. Invocation command line was
23078
23079 CONFIG_FILES = $CONFIG_FILES
23080 CONFIG_HEADERS = $CONFIG_HEADERS
23081 CONFIG_LINKS = $CONFIG_LINKS
23082 CONFIG_COMMANDS = $CONFIG_COMMANDS
23083 $ $0 $@
23084
23085 _CSEOF
23086 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23087 echo >&5
23088 _ACEOF
23089
23090 # Files that config.status was made for.
23091 if test -n "$ac_config_files"; then
23092 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23093 fi
23094
23095 if test -n "$ac_config_headers"; then
23096 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23097 fi
23098
23099 if test -n "$ac_config_links"; then
23100 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23101 fi
23102
23103 if test -n "$ac_config_commands"; then
23104 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23105 fi
23106
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23108
23109 ac_cs_usage="\
23110 \`$as_me' instantiates files from templates according to the
23111 current configuration.
23112
23113 Usage: $0 [OPTIONS] [FILE]...
23114
23115 -h, --help print this help, then exit
23116 -V, --version print version number, then exit
23117 -q, --quiet do not print progress messages
23118 -d, --debug don't remove temporary files
23119 --recheck update $as_me by reconfiguring in the same conditions
23120 --file=FILE[:TEMPLATE]
23121 instantiate the configuration file FILE
23122 --header=FILE[:TEMPLATE]
23123 instantiate the configuration header FILE
23124
23125 Configuration files:
23126 $config_files
23127
23128 Configuration headers:
23129 $config_headers
23130
23131 Configuration commands:
23132 $config_commands
23133
23134 Report bugs to <bug-autoconf@gnu.org>."
23135 _ACEOF
23136
23137 cat >>$CONFIG_STATUS <<_ACEOF
23138 ac_cs_version="\\
23139 config.status
23140 configured by $0, generated by GNU Autoconf 2.59,
23141 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23142
23143 Copyright (C) 2003 Free Software Foundation, Inc.
23144 This config.status script is free software; the Free Software Foundation
23145 gives unlimited permission to copy, distribute and modify it."
23146 srcdir=$srcdir
23147 INSTALL="$INSTALL"
23148 _ACEOF
23149
23150 cat >>$CONFIG_STATUS <<\_ACEOF
23151 # If no file are specified by the user, then we need to provide default
23152 # value. By we need to know if files were specified by the user.
23153 ac_need_defaults=:
23154 while test $# != 0
23155 do
23156 case $1 in
23157 --*=*)
23158 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23160 ac_shift=:
23161 ;;
23162 -*)
23163 ac_option=$1
23164 ac_optarg=$2
23165 ac_shift=shift
23166 ;;
23167 *) # This is not an option, so the user has probably given explicit
23168 # arguments.
23169 ac_option=$1
23170 ac_need_defaults=false;;
23171 esac
23172
23173 case $ac_option in
23174 # Handling of the options.
23175 _ACEOF
23176 cat >>$CONFIG_STATUS <<\_ACEOF
23177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23178 ac_cs_recheck=: ;;
23179 --version | --vers* | -V )
23180 echo "$ac_cs_version"; exit 0 ;;
23181 --he | --h)
23182 # Conflict between --help and --header
23183 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23184 Try \`$0 --help' for more information." >&5
23185 echo "$as_me: error: ambiguous option: $1
23186 Try \`$0 --help' for more information." >&2;}
23187 { (exit 1); exit 1; }; };;
23188 --help | --hel | -h )
23189 echo "$ac_cs_usage"; exit 0 ;;
23190 --debug | --d* | -d )
23191 debug=: ;;
23192 --file | --fil | --fi | --f )
23193 $ac_shift
23194 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23195 ac_need_defaults=false;;
23196 --header | --heade | --head | --hea )
23197 $ac_shift
23198 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23199 ac_need_defaults=false;;
23200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23202 ac_cs_silent=: ;;
23203
23204 # This is an error.
23205 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23206 Try \`$0 --help' for more information." >&5
23207 echo "$as_me: error: unrecognized option: $1
23208 Try \`$0 --help' for more information." >&2;}
23209 { (exit 1); exit 1; }; } ;;
23210
23211 *) ac_config_targets="$ac_config_targets $1" ;;
23212
23213 esac
23214 shift
23215 done
23216
23217 ac_configure_extra_args=
23218
23219 if $ac_cs_silent; then
23220 exec 6>/dev/null
23221 ac_configure_extra_args="$ac_configure_extra_args --silent"
23222 fi
23223
23224 _ACEOF
23225 cat >>$CONFIG_STATUS <<_ACEOF
23226 if \$ac_cs_recheck; then
23227 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23228 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23229 fi
23230
23231 _ACEOF
23232
23233 cat >>$CONFIG_STATUS <<_ACEOF
23234 #
23235 # INIT-COMMANDS section.
23236 #
23237
23238 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23239
23240 _ACEOF
23241
23242
23243
23244 cat >>$CONFIG_STATUS <<\_ACEOF
23245 for ac_config_target in $ac_config_targets
23246 do
23247 case "$ac_config_target" in
23248 # Handling of arguments.
23249 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23250 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23251 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23252 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23253 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23254 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23255 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23256 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23257 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23258 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23259 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23260 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23261 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23262 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23263 { (exit 1); exit 1; }; };;
23264 esac
23265 done
23266
23267 # If the user did not use the arguments to specify the items to instantiate,
23268 # then the envvar interface is used. Set only those that are not.
23269 # We use the long form for the default assignment because of an extremely
23270 # bizarre bug on SunOS 4.1.3.
23271 if $ac_need_defaults; then
23272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23275 fi
23276
23277 # Have a temporary directory for convenience. Make it in the build tree
23278 # simply because there is no reason to put it here, and in addition,
23279 # creating and moving files from /tmp can sometimes cause problems.
23280 # Create a temporary directory, and hook for its removal unless debugging.
23281 $debug ||
23282 {
23283 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23284 trap '{ (exit 1); exit 1; }' 1 2 13 15
23285 }
23286
23287 # Create a (secure) tmp directory for tmp files.
23288
23289 {
23290 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23291 test -n "$tmp" && test -d "$tmp"
23292 } ||
23293 {
23294 tmp=./confstat$$-$RANDOM
23295 (umask 077 && mkdir $tmp)
23296 } ||
23297 {
23298 echo "$me: cannot create a temporary directory in ." >&2
23299 { (exit 1); exit 1; }
23300 }
23301
23302 _ACEOF
23303
23304 cat >>$CONFIG_STATUS <<_ACEOF
23305
23306 #
23307 # CONFIG_FILES section.
23308 #
23309
23310 # No need to generate the scripts if there are no CONFIG_FILES.
23311 # This happens for instance when ./config.status config.h
23312 if test -n "\$CONFIG_FILES"; then
23313 # Protect against being on the right side of a sed subst in config.status.
23314 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23315 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23316 s,@SHELL@,$SHELL,;t t
23317 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23318 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23319 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23320 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23321 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23322 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23323 s,@exec_prefix@,$exec_prefix,;t t
23324 s,@prefix@,$prefix,;t t
23325 s,@program_transform_name@,$program_transform_name,;t t
23326 s,@bindir@,$bindir,;t t
23327 s,@sbindir@,$sbindir,;t t
23328 s,@libexecdir@,$libexecdir,;t t
23329 s,@datadir@,$datadir,;t t
23330 s,@sysconfdir@,$sysconfdir,;t t
23331 s,@sharedstatedir@,$sharedstatedir,;t t
23332 s,@localstatedir@,$localstatedir,;t t
23333 s,@libdir@,$libdir,;t t
23334 s,@includedir@,$includedir,;t t
23335 s,@oldincludedir@,$oldincludedir,;t t
23336 s,@infodir@,$infodir,;t t
23337 s,@mandir@,$mandir,;t t
23338 s,@build_alias@,$build_alias,;t t
23339 s,@host_alias@,$host_alias,;t t
23340 s,@target_alias@,$target_alias,;t t
23341 s,@DEFS@,$DEFS,;t t
23342 s,@ECHO_C@,$ECHO_C,;t t
23343 s,@ECHO_N@,$ECHO_N,;t t
23344 s,@ECHO_T@,$ECHO_T,;t t
23345 s,@LIBS@,$LIBS,;t t
23346 s,@MAINT@,$MAINT,;t t
23347 s,@build@,$build,;t t
23348 s,@build_cpu@,$build_cpu,;t t
23349 s,@build_vendor@,$build_vendor,;t t
23350 s,@build_os@,$build_os,;t t
23351 s,@host@,$host,;t t
23352 s,@host_cpu@,$host_cpu,;t t
23353 s,@host_vendor@,$host_vendor,;t t
23354 s,@host_os@,$host_os,;t t
23355 s,@CC@,$CC,;t t
23356 s,@CFLAGS@,$CFLAGS,;t t
23357 s,@LDFLAGS@,$LDFLAGS,;t t
23358 s,@CPPFLAGS@,$CPPFLAGS,;t t
23359 s,@ac_ct_CC@,$ac_ct_CC,;t t
23360 s,@EXEEXT@,$EXEEXT,;t t
23361 s,@OBJEXT@,$OBJEXT,;t t
23362 s,@CPP@,$CPP,;t t
23363 s,@EGREP@,$EGREP,;t t
23364 s,@LN_S@,$LN_S,;t t
23365 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23366 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23367 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23368 s,@RANLIB@,$RANLIB,;t t
23369 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23370 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23371 s,@GZIP_PROG@,$GZIP_PROG,;t t
23372 s,@LIBSOUND@,$LIBSOUND,;t t
23373 s,@SET_MAKE@,$SET_MAKE,;t t
23374 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23375 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23376 s,@GTK_LIBS@,$GTK_LIBS,;t t
23377 s,@ALLOCA@,$ALLOCA,;t t
23378 s,@liblockfile@,$liblockfile,;t t
23379 s,@LIBOBJS@,$LIBOBJS,;t t
23380 s,@NEED_SETGID@,$NEED_SETGID,;t t
23381 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23382 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23383 s,@GETOPT_H@,$GETOPT_H,;t t
23384 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23385 s,@version@,$version,;t t
23386 s,@configuration@,$configuration,;t t
23387 s,@canonical@,$canonical,;t t
23388 s,@srcdir@,$srcdir,;t t
23389 s,@lispdir@,$lispdir,;t t
23390 s,@locallisppath@,$locallisppath,;t t
23391 s,@lisppath@,$lisppath,;t t
23392 s,@x_default_search_path@,$x_default_search_path,;t t
23393 s,@etcdir@,$etcdir,;t t
23394 s,@archlibdir@,$archlibdir,;t t
23395 s,@docdir@,$docdir,;t t
23396 s,@bitmapdir@,$bitmapdir,;t t
23397 s,@gamedir@,$gamedir,;t t
23398 s,@gameuser@,$gameuser,;t t
23399 s,@c_switch_system@,$c_switch_system,;t t
23400 s,@c_switch_machine@,$c_switch_machine,;t t
23401 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23402 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23403 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23404 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23405 s,@machfile@,$machfile,;t t
23406 s,@opsysfile@,$opsysfile,;t t
23407 s,@carbon_appdir@,$carbon_appdir,;t t
23408 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23409 CEOF
23410
23411 _ACEOF
23412
23413 cat >>$CONFIG_STATUS <<\_ACEOF
23414 # Split the substitutions into bite-sized pieces for seds with
23415 # small command number limits, like on Digital OSF/1 and HP-UX.
23416 ac_max_sed_lines=48
23417 ac_sed_frag=1 # Number of current file.
23418 ac_beg=1 # First line for current file.
23419 ac_end=$ac_max_sed_lines # Line after last line for current file.
23420 ac_more_lines=:
23421 ac_sed_cmds=
23422 while $ac_more_lines; do
23423 if test $ac_beg -gt 1; then
23424 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23425 else
23426 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23427 fi
23428 if test ! -s $tmp/subs.frag; then
23429 ac_more_lines=false
23430 else
23431 # The purpose of the label and of the branching condition is to
23432 # speed up the sed processing (if there are no `@' at all, there
23433 # is no need to browse any of the substitutions).
23434 # These are the two extra sed commands mentioned above.
23435 (echo ':t
23436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23437 if test -z "$ac_sed_cmds"; then
23438 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23439 else
23440 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23441 fi
23442 ac_sed_frag=`expr $ac_sed_frag + 1`
23443 ac_beg=$ac_end
23444 ac_end=`expr $ac_end + $ac_max_sed_lines`
23445 fi
23446 done
23447 if test -z "$ac_sed_cmds"; then
23448 ac_sed_cmds=cat
23449 fi
23450 fi # test -n "$CONFIG_FILES"
23451
23452 _ACEOF
23453 cat >>$CONFIG_STATUS <<\_ACEOF
23454 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23456 case $ac_file in
23457 - | *:- | *:-:* ) # input from stdin
23458 cat >$tmp/stdin
23459 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23461 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23463 * ) ac_file_in=$ac_file.in ;;
23464 esac
23465
23466 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23467 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23469 X"$ac_file" : 'X\(//\)[^/]' \| \
23470 X"$ac_file" : 'X\(//\)$' \| \
23471 X"$ac_file" : 'X\(/\)' \| \
23472 . : '\(.\)' 2>/dev/null ||
23473 echo X"$ac_file" |
23474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23476 /^X\(\/\/\)$/{ s//\1/; q; }
23477 /^X\(\/\).*/{ s//\1/; q; }
23478 s/.*/./; q'`
23479 { if $as_mkdir_p; then
23480 mkdir -p "$ac_dir"
23481 else
23482 as_dir="$ac_dir"
23483 as_dirs=
23484 while test ! -d "$as_dir"; do
23485 as_dirs="$as_dir $as_dirs"
23486 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23488 X"$as_dir" : 'X\(//\)[^/]' \| \
23489 X"$as_dir" : 'X\(//\)$' \| \
23490 X"$as_dir" : 'X\(/\)' \| \
23491 . : '\(.\)' 2>/dev/null ||
23492 echo X"$as_dir" |
23493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23495 /^X\(\/\/\)$/{ s//\1/; q; }
23496 /^X\(\/\).*/{ s//\1/; q; }
23497 s/.*/./; q'`
23498 done
23499 test ! -n "$as_dirs" || mkdir $as_dirs
23500 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23502 { (exit 1); exit 1; }; }; }
23503
23504 ac_builddir=.
23505
23506 if test "$ac_dir" != .; then
23507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23508 # A "../" for each directory in $ac_dir_suffix.
23509 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23510 else
23511 ac_dir_suffix= ac_top_builddir=
23512 fi
23513
23514 case $srcdir in
23515 .) # No --srcdir option. We are building in place.
23516 ac_srcdir=.
23517 if test -z "$ac_top_builddir"; then
23518 ac_top_srcdir=.
23519 else
23520 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23521 fi ;;
23522 [\\/]* | ?:[\\/]* ) # Absolute path.
23523 ac_srcdir=$srcdir$ac_dir_suffix;
23524 ac_top_srcdir=$srcdir ;;
23525 *) # Relative path.
23526 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23527 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23528 esac
23529
23530 # Do not use `cd foo && pwd` to compute absolute paths, because
23531 # the directories may not exist.
23532 case `pwd` in
23533 .) ac_abs_builddir="$ac_dir";;
23534 *)
23535 case "$ac_dir" in
23536 .) ac_abs_builddir=`pwd`;;
23537 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23538 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23539 esac;;
23540 esac
23541 case $ac_abs_builddir in
23542 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23543 *)
23544 case ${ac_top_builddir}. in
23545 .) ac_abs_top_builddir=$ac_abs_builddir;;
23546 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23547 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23548 esac;;
23549 esac
23550 case $ac_abs_builddir in
23551 .) ac_abs_srcdir=$ac_srcdir;;
23552 *)
23553 case $ac_srcdir in
23554 .) ac_abs_srcdir=$ac_abs_builddir;;
23555 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23556 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23557 esac;;
23558 esac
23559 case $ac_abs_builddir in
23560 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23561 *)
23562 case $ac_top_srcdir in
23563 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23564 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23565 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23566 esac;;
23567 esac
23568
23569
23570 case $INSTALL in
23571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23572 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23573 esac
23574
23575 # Let's still pretend it is `configure' which instantiates (i.e., don't
23576 # use $as_me), people would be surprised to read:
23577 # /* config.h. Generated by config.status. */
23578 if test x"$ac_file" = x-; then
23579 configure_input=
23580 else
23581 configure_input="$ac_file. "
23582 fi
23583 configure_input=$configure_input"Generated from `echo $ac_file_in |
23584 sed 's,.*/,,'` by configure."
23585
23586 # First look for the input files in the build tree, otherwise in the
23587 # src tree.
23588 ac_file_inputs=`IFS=:
23589 for f in $ac_file_in; do
23590 case $f in
23591 -) echo $tmp/stdin ;;
23592 [\\/$]*)
23593 # Absolute (can't be DOS-style, as IFS=:)
23594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23595 echo "$as_me: error: cannot find input file: $f" >&2;}
23596 { (exit 1); exit 1; }; }
23597 echo "$f";;
23598 *) # Relative
23599 if test -f "$f"; then
23600 # Build tree
23601 echo "$f"
23602 elif test -f "$srcdir/$f"; then
23603 # Source tree
23604 echo "$srcdir/$f"
23605 else
23606 # /dev/null tree
23607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23608 echo "$as_me: error: cannot find input file: $f" >&2;}
23609 { (exit 1); exit 1; }; }
23610 fi;;
23611 esac
23612 done` || { (exit 1); exit 1; }
23613
23614 if test x"$ac_file" != x-; then
23615 { echo "$as_me:$LINENO: creating $ac_file" >&5
23616 echo "$as_me: creating $ac_file" >&6;}
23617 rm -f "$ac_file"
23618 fi
23619 _ACEOF
23620 cat >>$CONFIG_STATUS <<_ACEOF
23621 sed "$ac_vpsub
23622 $extrasub
23623 _ACEOF
23624 cat >>$CONFIG_STATUS <<\_ACEOF
23625 :t
23626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23627 s,@configure_input@,$configure_input,;t t
23628 s,@srcdir@,$ac_srcdir,;t t
23629 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23630 s,@top_srcdir@,$ac_top_srcdir,;t t
23631 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23632 s,@builddir@,$ac_builddir,;t t
23633 s,@abs_builddir@,$ac_abs_builddir,;t t
23634 s,@top_builddir@,$ac_top_builddir,;t t
23635 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23636 s,@INSTALL@,$ac_INSTALL,;t t
23637 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23638 rm -f $tmp/stdin
23639 if test x"$ac_file" != x-; then
23640 mv $tmp/out $ac_file
23641 else
23642 cat $tmp/out
23643 rm -f $tmp/out
23644 fi
23645
23646 done
23647 _ACEOF
23648 cat >>$CONFIG_STATUS <<\_ACEOF
23649
23650 #
23651 # CONFIG_HEADER section.
23652 #
23653
23654 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23655 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23656 #
23657 # ac_d sets the value in "#define NAME VALUE" lines.
23658 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23659 ac_dB='[ ].*$,\1#\2'
23660 ac_dC=' '
23661 ac_dD=',;t'
23662 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23663 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23664 ac_uB='$,\1#\2define\3'
23665 ac_uC=' '
23666 ac_uD=',;t'
23667
23668 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23670 case $ac_file in
23671 - | *:- | *:-:* ) # input from stdin
23672 cat >$tmp/stdin
23673 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23674 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23675 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23676 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23677 * ) ac_file_in=$ac_file.in ;;
23678 esac
23679
23680 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23681 echo "$as_me: creating $ac_file" >&6;}
23682
23683 # First look for the input files in the build tree, otherwise in the
23684 # src tree.
23685 ac_file_inputs=`IFS=:
23686 for f in $ac_file_in; do
23687 case $f in
23688 -) echo $tmp/stdin ;;
23689 [\\/$]*)
23690 # Absolute (can't be DOS-style, as IFS=:)
23691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23692 echo "$as_me: error: cannot find input file: $f" >&2;}
23693 { (exit 1); exit 1; }; }
23694 # Do quote $f, to prevent DOS paths from being IFS'd.
23695 echo "$f";;
23696 *) # Relative
23697 if test -f "$f"; then
23698 # Build tree
23699 echo "$f"
23700 elif test -f "$srcdir/$f"; then
23701 # Source tree
23702 echo "$srcdir/$f"
23703 else
23704 # /dev/null tree
23705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23706 echo "$as_me: error: cannot find input file: $f" >&2;}
23707 { (exit 1); exit 1; }; }
23708 fi;;
23709 esac
23710 done` || { (exit 1); exit 1; }
23711 # Remove the trailing spaces.
23712 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23713
23714 _ACEOF
23715
23716 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23717 # `conftest.undefs', that substitutes the proper values into
23718 # config.h.in to produce config.h. The first handles `#define'
23719 # templates, and the second `#undef' templates.
23720 # And first: Protect against being on the right side of a sed subst in
23721 # config.status. Protect against being in an unquoted here document
23722 # in config.status.
23723 rm -f conftest.defines conftest.undefs
23724 # Using a here document instead of a string reduces the quoting nightmare.
23725 # Putting comments in sed scripts is not portable.
23726 #
23727 # `end' is used to avoid that the second main sed command (meant for
23728 # 0-ary CPP macros) applies to n-ary macro definitions.
23729 # See the Autoconf documentation for `clear'.
23730 cat >confdef2sed.sed <<\_ACEOF
23731 s/[\\&,]/\\&/g
23732 s,[\\$`],\\&,g
23733 t clear
23734 : clear
23735 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23736 t end
23737 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23738 : end
23739 _ACEOF
23740 # If some macros were called several times there might be several times
23741 # the same #defines, which is useless. Nevertheless, we may not want to
23742 # sort them, since we want the *last* AC-DEFINE to be honored.
23743 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23744 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23745 rm -f confdef2sed.sed
23746
23747 # This sed command replaces #undef with comments. This is necessary, for
23748 # example, in the case of _POSIX_SOURCE, which is predefined and required
23749 # on some systems where configure will not decide to define it.
23750 cat >>conftest.undefs <<\_ACEOF
23751 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23752 _ACEOF
23753
23754 # Break up conftest.defines because some shells have a limit on the size
23755 # of here documents, and old seds have small limits too (100 cmds).
23756 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23757 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23758 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23759 echo ' :' >>$CONFIG_STATUS
23760 rm -f conftest.tail
23761 while grep . conftest.defines >/dev/null
23762 do
23763 # Write a limited-size here document to $tmp/defines.sed.
23764 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23765 # Speed up: don't consider the non `#define' lines.
23766 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23767 # Work around the forget-to-reset-the-flag bug.
23768 echo 't clr' >>$CONFIG_STATUS
23769 echo ': clr' >>$CONFIG_STATUS
23770 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23771 echo 'CEOF
23772 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23773 rm -f $tmp/in
23774 mv $tmp/out $tmp/in
23775 ' >>$CONFIG_STATUS
23776 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23777 rm -f conftest.defines
23778 mv conftest.tail conftest.defines
23779 done
23780 rm -f conftest.defines
23781 echo ' fi # grep' >>$CONFIG_STATUS
23782 echo >>$CONFIG_STATUS
23783
23784 # Break up conftest.undefs because some shells have a limit on the size
23785 # of here documents, and old seds have small limits too (100 cmds).
23786 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23787 rm -f conftest.tail
23788 while grep . conftest.undefs >/dev/null
23789 do
23790 # Write a limited-size here document to $tmp/undefs.sed.
23791 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23792 # Speed up: don't consider the non `#undef'
23793 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23794 # Work around the forget-to-reset-the-flag bug.
23795 echo 't clr' >>$CONFIG_STATUS
23796 echo ': clr' >>$CONFIG_STATUS
23797 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23798 echo 'CEOF
23799 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23800 rm -f $tmp/in
23801 mv $tmp/out $tmp/in
23802 ' >>$CONFIG_STATUS
23803 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23804 rm -f conftest.undefs
23805 mv conftest.tail conftest.undefs
23806 done
23807 rm -f conftest.undefs
23808
23809 cat >>$CONFIG_STATUS <<\_ACEOF
23810 # Let's still pretend it is `configure' which instantiates (i.e., don't
23811 # use $as_me), people would be surprised to read:
23812 # /* config.h. Generated by config.status. */
23813 if test x"$ac_file" = x-; then
23814 echo "/* Generated by configure. */" >$tmp/config.h
23815 else
23816 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23817 fi
23818 cat $tmp/in >>$tmp/config.h
23819 rm -f $tmp/in
23820 if test x"$ac_file" != x-; then
23821 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23822 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23823 echo "$as_me: $ac_file is unchanged" >&6;}
23824 else
23825 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23827 X"$ac_file" : 'X\(//\)[^/]' \| \
23828 X"$ac_file" : 'X\(//\)$' \| \
23829 X"$ac_file" : 'X\(/\)' \| \
23830 . : '\(.\)' 2>/dev/null ||
23831 echo X"$ac_file" |
23832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23834 /^X\(\/\/\)$/{ s//\1/; q; }
23835 /^X\(\/\).*/{ s//\1/; q; }
23836 s/.*/./; q'`
23837 { if $as_mkdir_p; then
23838 mkdir -p "$ac_dir"
23839 else
23840 as_dir="$ac_dir"
23841 as_dirs=
23842 while test ! -d "$as_dir"; do
23843 as_dirs="$as_dir $as_dirs"
23844 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23846 X"$as_dir" : 'X\(//\)[^/]' \| \
23847 X"$as_dir" : 'X\(//\)$' \| \
23848 X"$as_dir" : 'X\(/\)' \| \
23849 . : '\(.\)' 2>/dev/null ||
23850 echo X"$as_dir" |
23851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23853 /^X\(\/\/\)$/{ s//\1/; q; }
23854 /^X\(\/\).*/{ s//\1/; q; }
23855 s/.*/./; q'`
23856 done
23857 test ! -n "$as_dirs" || mkdir $as_dirs
23858 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23859 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23860 { (exit 1); exit 1; }; }; }
23861
23862 rm -f $ac_file
23863 mv $tmp/config.h $ac_file
23864 fi
23865 else
23866 cat $tmp/config.h
23867 rm -f $tmp/config.h
23868 fi
23869 done
23870 _ACEOF
23871 cat >>$CONFIG_STATUS <<\_ACEOF
23872
23873 #
23874 # CONFIG_COMMANDS section.
23875 #
23876 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23877 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23878 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23879 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23880 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23881 X"$ac_dest" : 'X\(//\)[^/]' \| \
23882 X"$ac_dest" : 'X\(//\)$' \| \
23883 X"$ac_dest" : 'X\(/\)' \| \
23884 . : '\(.\)' 2>/dev/null ||
23885 echo X"$ac_dest" |
23886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23888 /^X\(\/\/\)$/{ s//\1/; q; }
23889 /^X\(\/\).*/{ s//\1/; q; }
23890 s/.*/./; q'`
23891 { if $as_mkdir_p; then
23892 mkdir -p "$ac_dir"
23893 else
23894 as_dir="$ac_dir"
23895 as_dirs=
23896 while test ! -d "$as_dir"; do
23897 as_dirs="$as_dir $as_dirs"
23898 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23900 X"$as_dir" : 'X\(//\)[^/]' \| \
23901 X"$as_dir" : 'X\(//\)$' \| \
23902 X"$as_dir" : 'X\(/\)' \| \
23903 . : '\(.\)' 2>/dev/null ||
23904 echo X"$as_dir" |
23905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23907 /^X\(\/\/\)$/{ s//\1/; q; }
23908 /^X\(\/\).*/{ s//\1/; q; }
23909 s/.*/./; q'`
23910 done
23911 test ! -n "$as_dirs" || mkdir $as_dirs
23912 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23913 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23914 { (exit 1); exit 1; }; }; }
23915
23916 ac_builddir=.
23917
23918 if test "$ac_dir" != .; then
23919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23920 # A "../" for each directory in $ac_dir_suffix.
23921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23922 else
23923 ac_dir_suffix= ac_top_builddir=
23924 fi
23925
23926 case $srcdir in
23927 .) # No --srcdir option. We are building in place.
23928 ac_srcdir=.
23929 if test -z "$ac_top_builddir"; then
23930 ac_top_srcdir=.
23931 else
23932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23933 fi ;;
23934 [\\/]* | ?:[\\/]* ) # Absolute path.
23935 ac_srcdir=$srcdir$ac_dir_suffix;
23936 ac_top_srcdir=$srcdir ;;
23937 *) # Relative path.
23938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23940 esac
23941
23942 # Do not use `cd foo && pwd` to compute absolute paths, because
23943 # the directories may not exist.
23944 case `pwd` in
23945 .) ac_abs_builddir="$ac_dir";;
23946 *)
23947 case "$ac_dir" in
23948 .) ac_abs_builddir=`pwd`;;
23949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23951 esac;;
23952 esac
23953 case $ac_abs_builddir in
23954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23955 *)
23956 case ${ac_top_builddir}. in
23957 .) ac_abs_top_builddir=$ac_abs_builddir;;
23958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23960 esac;;
23961 esac
23962 case $ac_abs_builddir in
23963 .) ac_abs_srcdir=$ac_srcdir;;
23964 *)
23965 case $ac_srcdir in
23966 .) ac_abs_srcdir=$ac_abs_builddir;;
23967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23969 esac;;
23970 esac
23971 case $ac_abs_builddir in
23972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23973 *)
23974 case $ac_top_srcdir in
23975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23978 esac;;
23979 esac
23980
23981
23982 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23983 echo "$as_me: executing $ac_dest commands" >&6;}
23984 case $ac_dest in
23985 default )
23986
23987 ### Make the necessary directories, if they don't exist.
23988 for dir in etc lisp ; do
23989 test -d ${dir} || mkdir ${dir}
23990 done
23991
23992 # Build src/Makefile from ${srcdir}/src/Makefile.c
23993 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23994 # This must be done after src/config.h is built, since we rely on that file.
23995
23996 # Now get this: Some word that is part of the ${srcdir} directory name
23997 # or the ${configuration} value might, just might, happen to be an
23998 # identifier like `sun4' or `i386' or something, and be predefined by
23999 # the C preprocessor to some helpful value like 1, or maybe the empty
24000 # string. Needless to say consequent macro substitutions are less
24001 # than conducive to the makefile finding the correct directory.
24002 undefs="`echo $top_srcdir $configuration $canonical |
24003 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24004 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24005 `"
24006
24007 echo creating src/epaths.h
24008 ${MAKE-make} epaths-force
24009
24010 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24011 # `..' to `. .' unless invoked with -traditional
24012
24013 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24014 CPPFLAGS="$CPPFLAGS -traditional"
24015 fi
24016
24017 echo creating lib-src/Makefile
24018 ( cd lib-src
24019 rm -f junk.c junk1.c junk2.c
24020 sed -e '/start of cpp stuff/q' \
24021 < Makefile.c > junk1.c
24022 sed -e '1,/start of cpp stuff/d'\
24023 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24024 < Makefile.c > junk.c
24025 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24026 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24027 cat junk1.c junk2.c > Makefile.new
24028 rm -f junk.c junk1.c junk2.c
24029 chmod 444 Makefile.new
24030 mv -f Makefile.new Makefile
24031 )
24032
24033 echo creating src/Makefile
24034 ( cd src
24035 rm -f junk.c junk1.c junk2.c
24036 sed -e '/start of cpp stuff/q' \
24037 < Makefile.c > junk1.c
24038 sed -e '1,/start of cpp stuff/d'\
24039 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24040 < Makefile.c > junk.c
24041 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24042 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24043 cat junk1.c junk2.c > Makefile.new
24044 rm -f junk.c junk1.c junk2.c
24045 chmod 444 Makefile.new
24046 mv -f Makefile.new Makefile
24047 )
24048
24049 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24050 echo creating src/.gdbinit
24051 echo source $srcdir/src/.gdbinit > src/.gdbinit
24052 fi
24053
24054 # This is how we know whether to re-run configure in certain cases.
24055 touch src/config.stamp
24056
24057 ;;
24058 esac
24059 done
24060 _ACEOF
24061
24062 cat >>$CONFIG_STATUS <<\_ACEOF
24063
24064 { (exit 0); exit 0; }
24065 _ACEOF
24066 chmod +x $CONFIG_STATUS
24067 ac_clean_files=$ac_clean_files_save
24068
24069
24070 # configure is writing to config.log, and then calls config.status.
24071 # config.status does its own redirection, appending to config.log.
24072 # Unfortunately, on DOS this fails, as config.log is still kept open
24073 # by configure, so config.status won't be able to write to it; its
24074 # output is simply discarded. So we exec the FD to /dev/null,
24075 # effectively closing config.log, so it can be properly (re)opened and
24076 # appended to by config.status. When coming back to configure, we
24077 # need to make the FD available again.
24078 if test "$no_create" != yes; then
24079 ac_cs_success=:
24080 ac_config_status_args=
24081 test "$silent" = yes &&
24082 ac_config_status_args="$ac_config_status_args --quiet"
24083 exec 5>/dev/null
24084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24085 exec 5>>config.log
24086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24087 # would make configure fail if this is the last instruction.
24088 $ac_cs_success || { (exit 1); exit 1; }
24089 fi
24090
24091