Merged from
[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 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2097 ;;
2098
2099 hppa*-*-linux-gnu* )
2100 machine=hp800 opsys=gnu-linux
2101 ;;
2102
2103 ## HP 9000 series 700 and 800, running HP/UX
2104 hppa*-hp-hpux* )
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2110 *.08.* ) machine=hp800 opsys=hpux8 ;;
2111 *.09.* ) machine=hp800 opsys=hpux9 ;;
2112 *) machine=hp800 opsys=hpux10 ;;
2113 esac
2114 ;;
2115 hppa*-*-nextstep* )
2116 machine=hp800 opsys=nextstep
2117 ;;
2118
2119 ## Orion machines
2120 orion-orion-bsd* )
2121 machine=orion opsys=bsd4-2
2122 ;;
2123 clipper-orion-bsd* )
2124 machine=orion105 opsys=bsd4-2
2125 ;;
2126
2127 ## IBM machines
2128 i[3456]86-ibm-aix1.1* )
2129 machine=ibmps2-aix opsys=usg5-2-2
2130 ;;
2131 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2132 machine=ibmps2-aix opsys=usg5-3
2133 ;;
2134 i370-ibm-aix*)
2135 machine=ibm370aix opsys=usg5-3
2136 ;;
2137 s390-*-linux-gnu* )
2138 machine=ibms390 opsys=gnu-linux
2139 ;;
2140 s390x-*-linux-gnu* )
2141 machine=ibms390x opsys=gnu-linux
2142 ;;
2143 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2144 machine=ibmrs6000 opsys=aix3-1
2145 ;;
2146 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2147 machine=ibmrs6000 opsys=aix3-2-5
2148 ;;
2149 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2150 machine=ibmrs6000 opsys=aix4-1
2151 ;;
2152 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2153 machine=ibmrs6000 opsys=aix4-2
2154 ;;
2155 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2156 machine=ibmrs6000 opsys=aix4-2
2157 ;;
2158 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2159 machine=ibmrs6000 opsys=aix4
2160 ;;
2161 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2162 machine=ibmrs6000 opsys=aix4-1
2163 ;;
2164 rs6000-ibm-aix* | powerpc-ibm-aix* )
2165 machine=ibmrs6000 opsys=aix3-2
2166 ;;
2167 romp-ibm-bsd4.3* )
2168 machine=ibmrt opsys=bsd4-3
2169 ;;
2170 romp-ibm-bsd4.2* )
2171 machine=ibmrt opsys=bsd4-2
2172 ;;
2173 romp-ibm-aos4.3* )
2174 machine=ibmrt opsys=bsd4-3
2175 ;;
2176 romp-ibm-aos4.2* )
2177 machine=ibmrt opsys=bsd4-2
2178 ;;
2179 romp-ibm-aos* )
2180 machine=ibmrt opsys=bsd4-3
2181 ;;
2182 romp-ibm-bsd* )
2183 machine=ibmrt opsys=bsd4-3
2184 ;;
2185 romp-ibm-aix* )
2186 machine=ibmrt-aix opsys=usg5-2-2
2187 ;;
2188
2189 ## Integrated Solutions `Optimum V'
2190 m68*-isi-bsd4.2* )
2191 machine=isi-ov opsys=bsd4-2
2192 ;;
2193 m68*-isi-bsd4.3* )
2194 machine=isi-ov opsys=bsd4-3
2195 ;;
2196
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i[3456]86-intsys-sysv* )
2199 machine=is386 opsys=usg5-2-2
2200 ;;
2201
2202 ## Prime EXL
2203 i[3456]86-prime-sysv* )
2204 machine=i386 opsys=usg5-3
2205 ;;
2206
2207 ## Sequent Symmetry running Dynix
2208 i[3456]86-sequent-bsd* )
2209 machine=symmetry opsys=bsd4-3
2210 ;;
2211
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2214 machine=sequent-ptx opsys=ptx4
2215 NON_GNU_CPP=/lib/cpp
2216 ;;
2217
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i[3456]86-sequent-ptx* )
2221 machine=sequent-ptx opsys=ptx
2222 NON_GNU_CPP="/lib/cpp"
2223 ;;
2224
2225 ## ncr machine running svr4.3.
2226 i[3456]86-ncr-sysv4.3 )
2227 machine=ncr386 opsys=usg5-4-3
2228 ;;
2229
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i[3456]86-ncr-sysv* )
2233 machine=ncr386 opsys=usg5-4-2
2234 ;;
2235
2236 ## Intel Paragon OSF/1
2237 i860-intel-osf1* )
2238 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2239 ;;
2240
2241 ## Intel 860
2242 i860-*-sysv4* )
2243 machine=i860 opsys=usg5-4
2244 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2246 ;;
2247
2248 ## Macintosh PowerPC
2249 powerpc*-*-linux-gnu* )
2250 machine=macppc opsys=gnu-linux
2251 ;;
2252
2253 ## Masscomp machines
2254 m68*-masscomp-rtu* )
2255 machine=masscomp opsys=rtu
2256 ;;
2257
2258 ## Megatest machines
2259 m68*-megatest-bsd* )
2260 machine=mega68 opsys=bsd4-2
2261 ;;
2262
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2266
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2274 mips-mips-usg* )
2275 machine=mips4
2276 ## Fall through to the general code at the bottom to decide on the OS.
2277 ;;
2278 mips-mips-riscos4* )
2279 machine=mips4 opsys=bsd4-3
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2282 ;;
2283 mips-mips-riscos5* )
2284 machine=mips4 opsys=riscos5
2285 NON_GNU_CC="cc -systype bsd43"
2286 NON_GNU_CPP="cc -systype bsd43 -E"
2287 ;;
2288 mips-mips-bsd* )
2289 machine=mips opsys=bsd4-3
2290 ;;
2291 mips-mips-* )
2292 machine=mips opsys=usg5-2-2
2293 ;;
2294
2295 ## NeXT
2296 m68*-next-* | m68k-*-nextstep* )
2297 machine=m68k opsys=nextstep
2298 ;;
2299
2300 ## The complete machine from National Semiconductor
2301 ns32k-ns-genix* )
2302 machine=ns32000 opsys=usg5-2
2303 ;;
2304
2305 ## NCR machines
2306 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2307 machine=tower32 opsys=usg5-2-2
2308 ;;
2309 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2310 machine=tower32v3 opsys=usg5-3
2311 ;;
2312
2313 ## NEC EWS4800
2314 mips-nec-sysv4*)
2315 machine=ews4800 opsys=ux4800
2316 ;;
2317
2318 ## Nixdorf Targon 31
2319 m68*-nixdorf-sysv* )
2320 machine=targon31 opsys=usg5-2-2
2321 ;;
2322
2323 ## Nu (TI or LMI)
2324 m68*-nu-sysv* )
2325 machine=nu opsys=usg5-2
2326 ;;
2327
2328 ## Plexus
2329 m68*-plexus-sysv* )
2330 machine=plexus opsys=usg5-2
2331 ;;
2332
2333 ## Pyramid machines
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd* )
2337 machine=pyramid opsys=bsd4-2
2338 ;;
2339
2340 ## Sequent Balance
2341 ns32k-sequent-bsd4.2* )
2342 machine=sequent opsys=bsd4-2
2343 ;;
2344 ns32k-sequent-bsd4.3* )
2345 machine=sequent opsys=bsd4-3
2346 ;;
2347
2348 ## Siemens Nixdorf
2349 mips-siemens-sysv* | mips-sni-sysv*)
2350 machine=mips-siemens opsys=usg5-4
2351 NON_GNU_CC=/usr/ccs/bin/cc
2352 NON_GNU_CPP=/usr/ccs/lib/cpp
2353 ;;
2354
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2357 m68*-sgi-iris3.5* )
2358 machine=irist opsys=iris3-5
2359 ;;
2360 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2361 machine=irist opsys=iris3-6
2362 ;;
2363 ## Iris 4D
2364 mips-sgi-irix3* )
2365 machine=iris4d opsys=irix3-3
2366 ;;
2367 mips-sgi-irix4* )
2368 machine=iris4d opsys=irix4-0
2369 ;;
2370 mips-sgi-irix6.5 )
2371 machine=iris4d opsys=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2377 ;;
2378 mips-sgi-irix6* )
2379 machine=iris4d opsys=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS=-32
2385 ;;
2386 mips-sgi-irix5.[01]* )
2387 machine=iris4d opsys=irix5-0
2388 ;;
2389 mips-sgi-irix5* | mips-sgi-irix* )
2390 machine=iris4d opsys=irix5-2
2391 ;;
2392
2393 ## SONY machines
2394 m68*-sony-bsd4.2* )
2395 machine=news opsys=bsd4-2
2396 ;;
2397 m68*-sony-bsd4.3* )
2398 machine=news opsys=bsd4-3
2399 ;;
2400 m68*-sony-newsos3* | m68*-sony-news3*)
2401 machine=news opsys=bsd4-3
2402 ;;
2403 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2404 machine=news-risc opsys=bsd4-3
2405 ;;
2406 mips-sony-newsos6* )
2407 machine=news-r6 opsys=newsos6
2408 ;;
2409 mips-sony-news* )
2410 machine=news-risc opsys=newsos5
2411 ;;
2412
2413 ## Stride
2414 m68*-stride-sysv* )
2415 machine=stride opsys=usg5-2
2416 ;;
2417
2418 ## Suns
2419 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2420 machine=sparc opsys=gnu-linux
2421 ;;
2422
2423 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2424 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2425 | rs6000-*-solaris2*)
2426 case "${canonical}" in
2427 m68*-sunos1* ) machine=sun1 ;;
2428 m68*-sunos2* ) machine=sun2 ;;
2429 m68* ) machine=sun3 ;;
2430 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2431 i[3456]86-*-* ) machine=intel386 ;;
2432 powerpcle* ) machine=powerpcle ;;
2433 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2434 sparc* ) machine=sparc ;;
2435 * ) unported=yes ;;
2436 esac
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2440 *-sunos4.0* ) opsys=sunos4-0 ;;
2441 *-sunos4.1.[3-9]*noshare )
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2444 opsys=sunos413
2445 NON_GNU_CPP=/usr/lib/cpp
2446 NON_GCC_TEST_OPTIONS=-Bstatic
2447 GCC_TEST_OPTIONS=-static
2448 ;;
2449 *-sunos4.1.[3-9]* | *-sunos4shr*)
2450 opsys=sunos4shr
2451 NON_GNU_CPP=/usr/lib/cpp
2452 ;;
2453 *-sunos4* | *-sunos )
2454 opsys=sunos4-1
2455 NON_GCC_TEST_OPTIONS=-Bstatic
2456 GCC_TEST_OPTIONS=-static
2457 ;;
2458 *-sunos5.3* | *-solaris2.3* )
2459 opsys=sol2-3
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 ;;
2462 *-sunos5.4* | *-solaris2.4* )
2463 opsys=sol2-4
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2466 ;;
2467 *-sunos5.5* | *-solaris2.5* )
2468 opsys=sol2-5
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2471 ;;
2472 *-sunos5.6* | *-solaris2.6* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 RANLIB="ar -ts"
2476 ;;
2477 *-sunos5* | *-solaris* )
2478 opsys=sol2-6
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2480 ;;
2481 * ) opsys=bsd4-2 ;;
2482 esac
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* | *-sunos5* )
2486 if [ "x$CC" = x/usr/ucb/cc ]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2489 unset CC
2490 fi
2491 ;;
2492 *) ;;
2493 esac
2494 ;;
2495 sparc-*-nextstep* )
2496 machine=sparc opsys=nextstep
2497 ;;
2498
2499 ## Tadpole 68k
2500 m68*-tadpole-sysv* )
2501 machine=tad68k opsys=usg5-3
2502 ;;
2503
2504 ## Tahoe machines
2505 tahoe-tahoe-bsd4.2* )
2506 machine=tahoe opsys=bsd4-2
2507 ;;
2508 tahoe-tahoe-bsd4.3* )
2509 machine=tahoe opsys=bsd4-3
2510 ;;
2511
2512 ## Tandem Integrity S2
2513 mips-tandem-sysv* )
2514 machine=tandem-s2 opsys=usg5-3
2515 ;;
2516
2517 ## Tektronix XD88
2518 m88k-tektronix-sysv3* )
2519 machine=tekxd88 opsys=usg5-3
2520 ;;
2521
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd* )
2524 machine=ns16000 opsys=bsd4-2
2525 ;;
2526 ## Tektronix 4300
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68*-tektronix-bsd* )
2529 machine=tek4300 opsys=bsd4-3
2530 ;;
2531
2532 ## Titan P2 or P3
2533 ## We seem to have lost the machine-description file titan.h!
2534 titan-titan-sysv* )
2535 machine=titan opsys=usg5-3
2536 ;;
2537
2538 ## Ustation E30 (SS5E)
2539 m68*-unisys-uniplus* )
2540 machine=ustation opsystem=unipl5-2
2541 ;;
2542
2543 ## Vaxen.
2544 vax-dec-* )
2545 machine=vax
2546 case "${canonical}" in
2547 *-bsd4.1* ) opsys=bsd4-1 ;;
2548 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2549 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2550 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2551 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2552 *-vms* ) opsys=vms ;;
2553 * ) unported=yes
2554 esac
2555 ;;
2556
2557 ## Whitechapel MG1
2558 ns16k-whitechapel-* )
2559 machine=mg1
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2562 ;;
2563
2564 ## Wicat
2565 m68*-wicat-sysv* )
2566 machine=wicat opsys=usg5-2
2567 ;;
2568
2569 ## IA-64
2570 ia64*-*-linux* )
2571 machine=ia64 opsys=gnu-linux
2572 ;;
2573
2574 ## Intel 386 machines where we don't care about the manufacturer
2575 i[3456]86-*-* )
2576 machine=intel386
2577 case "${canonical}" in
2578 *-cygwin ) opsys=cygwin ;;
2579 *-darwin* ) opsys=darwin
2580 CPP="${CC-cc} -E -no-cpp-precomp"
2581 ;;
2582 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2583 *-isc2.2* ) opsys=isc2-2 ;;
2584 *-isc4.0* ) opsys=isc4-0 ;;
2585 *-isc4.* ) opsys=isc4-1
2586 GCC_TEST_OPTIONS=-posix
2587 NON_GCC_TEST_OPTIONS=-Xp
2588 ;;
2589 *-isc* ) opsys=isc3-0 ;;
2590 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2591 *-esix* ) opsys=esix ;;
2592 *-xenix* ) opsys=xenix ;;
2593 *-linux-gnu* ) opsys=gnu-linux ;;
2594 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2595 *-sco3.2v5* ) opsys=sco5
2596 NON_GNU_CPP=/lib/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS=" "
2600 ;;
2601 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2602 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2604 *-386bsd* ) opsys=386bsd ;;
2605 *-nextstep* ) opsys=nextstep ;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2607 esac
2608 ;;
2609
2610 ## m68k Linux-based GNU system
2611 m68k-*-linux-gnu* )
2612 machine=m68k opsys=gnu-linux
2613 ;;
2614
2615 ## Mips Linux-based GNU system
2616 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2617 machine=mips opsys=gnu-linux
2618 ;;
2619
2620 ## UXP/DS
2621 sparc-fujitsu-sysv4* )
2622 machine=sparc opsys=uxpds
2623 NON_GNU_CPP=/usr/ccs/lib/cpp
2624 RANLIB="ar -ts"
2625 ;;
2626
2627 ## UXP/V
2628 f301-fujitsu-uxpv4.1)
2629 machine=f301 opsys=uxpv
2630 ;;
2631
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin* )
2634 machine=powermac opsys=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw/include && test -d /sw/lib; then
2639 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2640 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2642 fi
2643 ;;
2644
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-*-linux-gnu* )
2647 machine=amdx86-64 opsys=gnu-linux
2648 ;;
2649
2650 * )
2651 unported=yes
2652 ;;
2653 esac
2654
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2660 ### above.
2661 if test x"${opsys}" = x; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys=gnu ;;
2664 *-bsd4.[01] ) opsys=bsd4-1 ;;
2665 *-bsd4.2 ) opsys=bsd4-2 ;;
2666 *-bsd4.3 ) opsys=bsd4-3 ;;
2667 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2668 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2669 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2670 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2671 *-sysv4.2uw* ) opsys=unixware ;;
2672 *-sysv5uw* ) opsys=unixware ;;
2673 *-sysv5OpenUNIX* ) opsys=unixware ;;
2674 *-sysv4.1* | *-sysvr4.1* )
2675 NON_GNU_CPP=/usr/lib/cpp
2676 opsys=usg5-4 ;;
2677 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2678 if [ x$NON_GNU_CPP = x ]; then
2679 if [ -f /usr/ccs/lib/cpp ]; then
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2681 else
2682 NON_GNU_CPP=/lib/cpp
2683 fi
2684 fi
2685 opsys=usg5-4-2 ;;
2686 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2687 * )
2688 unported=yes
2689 ;;
2690 esac
2691 fi
2692
2693
2694
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2701 fi
2702
2703 machfile="m/${machine}.h"
2704 opsysfile="s/${opsys}.h"
2705
2706
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified=yes
2709
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS="$CFLAGS"
2712
2713 case ${with_gcc} in
2714 "yes" ) CC="gcc" GCC=yes ;;
2715 "no" ) : ${CC=cc} ;;
2716 * )
2717 esac
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747
2748 fi
2749 fi
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2757 fi
2758
2759 fi
2760 if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2792 else
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2795 fi
2796
2797 CC=$ac_ct_CC
2798 else
2799 CC="$ac_cv_prog_CC"
2800 fi
2801
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2834 else
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2837 fi
2838
2839 fi
2840 if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877 CC=$ac_ct_CC
2878 else
2879 CC="$ac_cv_prog_CC"
2880 fi
2881
2882 fi
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 ac_prog_rejected=no
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2904 continue
2905 fi
2906 ac_cv_prog_CC="cc"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924 fi
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2934 fi
2935
2936 fi
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl
2940 do
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2971 else
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2974 fi
2975
2976 test -n "$CC" && break
2977 done
2978 fi
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl
2982 do
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006
3007 fi
3008 fi
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018 test -n "$ac_ct_CC" && break
3019 done
3020
3021 CC=$ac_ct_CC
3022 fi
3023
3024 fi
3025
3026
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3032
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev/null >&5) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3072 # of exeext.
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3083 # resort.
3084
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3087 ac_cv_exeext=
3088 # b.out is created by i960 compilers.
3089 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3090 do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3094 ;;
3095 conftest.$ac_ext )
3096 # This is the source file.
3097 ;;
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3107 export ac_cv_exeext
3108 break;;
3109 * )
3110 break;;
3111 esac
3112 done
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3122 fi
3123
3124 ac_exeext=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3127
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 cross_compiling=no
3142 else
3143 if test "$cross_compiling" = maybe; then
3144 cross_compiling=yes
3145 else
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3153 fi
3154 fi
3155 fi
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3158
3159 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3160 ac_clean_files=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3167
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 export ac_cv_exeext
3185 break;;
3186 * ) break;;
3187 esac
3188 done
3189 else
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3195 fi
3196
3197 rm -f conftest$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3200
3201 rm -f conftest.$ac_ext
3202 EXEEXT=$ac_cv_exeext
3203 ac_exeext=$EXEEXT
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215
3216 int
3217 main ()
3218 {
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 break;;
3235 esac
3236 done
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3246 fi
3247
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3249 fi
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT=$ac_cv_objext
3253 ac_objext=$OBJEXT
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269 #ifndef __GNUC__
3270 choke me
3271 #endif
3272
3273 ;
3274 return 0;
3275 }
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_compiler_gnu=yes
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 ac_compiler_gnu=no
3304 fi
3305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3307
3308 fi
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS=${CFLAGS+set}
3313 ac_save_CFLAGS=$CFLAGS
3314 CFLAGS="-g"
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326
3327 int
3328 main ()
3329 {
3330
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_g=yes
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 ac_cv_prog_cc_g=no
3362 fi
3363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364 fi
3365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3367 if test "$ac_test_CFLAGS" = set; then
3368 CFLAGS=$ac_save_CFLAGS
3369 elif test $ac_cv_prog_cc_g = yes; then
3370 if test "$GCC" = yes; then
3371 CFLAGS="-g -O2"
3372 else
3373 CFLAGS="-g"
3374 fi
3375 else
3376 if test "$GCC" = yes; then
3377 CFLAGS="-O2"
3378 else
3379 CFLAGS=
3380 fi
3381 fi
3382 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3383 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3384 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 ac_cv_prog_cc_stdc=no
3388 ac_save_CC=$CC
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <stdarg.h>
3396 #include <stdio.h>
3397 #include <sys/types.h>
3398 #include <sys/stat.h>
3399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400 struct buf { int x; };
3401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402 static char *e (p, i)
3403 char **p;
3404 int i;
3405 {
3406 return p[i];
3407 }
3408 static char *f (char * (*g) (char **, int), char **p, ...)
3409 {
3410 char *s;
3411 va_list v;
3412 va_start (v,p);
3413 s = g (p, va_arg (v,int));
3414 va_end (v);
3415 return s;
3416 }
3417
3418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
3421 as 'x'. The following induces an error, until -std1 is added to get
3422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
3424 that's true only with -std1. */
3425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431 int argc;
3432 char **argv;
3433 int
3434 main ()
3435 {
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 # Don't try gcc -ansi; that turns off useful extensions and
3442 # breaks some systems' header files.
3443 # AIX -qlanglvl=ansi
3444 # Ultrix and OSF/1 -std1
3445 # HP-UX 10.20 and later -Ae
3446 # HP-UX older versions -Aa -D_HPUX_SOURCE
3447 # SVR4 -Xc -D__EXTENSIONS__
3448 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3449 do
3450 CC="$ac_save_CC $ac_arg"
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_prog_cc_stdc=$ac_arg
3473 break
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 fi
3479 rm -f conftest.err conftest.$ac_objext
3480 done
3481 rm -f conftest.$ac_ext conftest.$ac_objext
3482 CC=$ac_save_CC
3483
3484 fi
3485
3486 case "x$ac_cv_prog_cc_stdc" in
3487 x|xno)
3488 echo "$as_me:$LINENO: result: none needed" >&5
3489 echo "${ECHO_T}none needed" >&6 ;;
3490 *)
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3493 CC="$CC $ac_cv_prog_cc_stdc" ;;
3494 esac
3495
3496 # Some people use a C++ compiler to compile C. Since we use `exit',
3497 # in C++ we need to declare it. In case someone uses the same compiler
3498 # for both compiling C and C++ we need to have the C++ compiler decide
3499 # the declaration of exit, since it's the most demanding environment.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #ifndef __cplusplus
3502 choke me
3503 #endif
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 for ac_declaration in \
3527 '' \
3528 'extern "C" void std::exit (int) throw (); using std::exit;' \
3529 'extern "C" void std::exit (int); using std::exit;' \
3530 'extern "C" void exit (int) throw ();' \
3531 'extern "C" void exit (int);' \
3532 'void exit (int);'
3533 do
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 $ac_declaration
3541 #include <stdlib.h>
3542 int
3543 main ()
3544 {
3545 exit (42);
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 :
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 continue
3577 fi
3578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 $ac_declaration
3586 int
3587 main ()
3588 {
3589 exit (42);
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 break
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 fi
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 done
3623 rm -f conftest*
3624 if test -n "$ac_declaration"; then
3625 echo '#ifdef __cplusplus' >>confdefs.h
3626 echo $ac_declaration >>confdefs.h
3627 echo '#endif' >>confdefs.h
3628 fi
3629
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 fi
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642
3643 # On Suns, sometimes $CPP names a directory.
3644 if test -n "$CPP" && test -d "$CPP"; then
3645 CPP=
3646 fi
3647
3648 #### Some systems specify a CPP to use unless we are using GCC.
3649 #### Now that we know whether we are using GCC, we can decide whether
3650 #### to use that one.
3651 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3652 then
3653 CPP="$NON_GNU_CPP"
3654 fi
3655
3656 #### Some systems specify a CC to use unless we are using GCC.
3657 #### Now that we know whether we are using GCC, we can decide whether
3658 #### to use that one.
3659 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3660 test x$cc_specified != xyes
3661 then
3662 CC="$NON_GNU_CC"
3663 fi
3664
3665 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3666 then
3667 CC="$CC $GCC_TEST_OPTIONS"
3668 fi
3669
3670 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3671 then
3672 CC="$CC $NON_GCC_TEST_OPTIONS"
3673 fi
3674
3675
3676 ac_ext=c
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3683 # On Suns, sometimes $CPP names a directory.
3684 if test -n "$CPP" && test -d "$CPP"; then
3685 CPP=
3686 fi
3687 if test -z "$CPP"; then
3688 if test "${ac_cv_prog_CPP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 # Double quotes because CPP needs to be expanded
3692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3693 do
3694 ac_preproc_ok=false
3695 for ac_c_preproc_warn_flag in '' yes
3696 do
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 #ifdef __STDC__
3710 # include <limits.h>
3711 #else
3712 # include <assert.h>
3713 #endif
3714 Syntax error
3715 _ACEOF
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null; then
3724 if test -s conftest.err; then
3725 ac_cpp_err=$ac_c_preproc_warn_flag
3726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727 else
3728 ac_cpp_err=
3729 fi
3730 else
3731 ac_cpp_err=yes
3732 fi
3733 if test -z "$ac_cpp_err"; then
3734 :
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 # Broken: fails on valid input.
3740 continue
3741 fi
3742 rm -f conftest.err conftest.$ac_ext
3743
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3753 _ACEOF
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null; then
3762 if test -s conftest.err; then
3763 ac_cpp_err=$ac_c_preproc_warn_flag
3764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3765 else
3766 ac_cpp_err=
3767 fi
3768 else
3769 ac_cpp_err=yes
3770 fi
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3773 continue
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 # Passes both tests.
3779 ac_preproc_ok=:
3780 break
3781 fi
3782 rm -f conftest.err conftest.$ac_ext
3783
3784 done
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.$ac_ext
3787 if $ac_preproc_ok; then
3788 break
3789 fi
3790
3791 done
3792 ac_cv_prog_CPP=$CPP
3793
3794 fi
3795 CPP=$ac_cv_prog_CPP
3796 else
3797 ac_cv_prog_CPP=$CPP
3798 fi
3799 echo "$as_me:$LINENO: result: $CPP" >&5
3800 echo "${ECHO_T}$CPP" >&6
3801 ac_preproc_ok=false
3802 for ac_c_preproc_warn_flag in '' yes
3803 do
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #ifdef __STDC__
3817 # include <limits.h>
3818 #else
3819 # include <assert.h>
3820 #endif
3821 Syntax error
3822 _ACEOF
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null; then
3831 if test -s conftest.err; then
3832 ac_cpp_err=$ac_c_preproc_warn_flag
3833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3834 else
3835 ac_cpp_err=
3836 fi
3837 else
3838 ac_cpp_err=yes
3839 fi
3840 if test -z "$ac_cpp_err"; then
3841 :
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 # Broken: fails on valid input.
3847 continue
3848 fi
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether non-existent headers
3852 # can be detected and how.
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3860 _ACEOF
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3872 else
3873 ac_cpp_err=
3874 fi
3875 else
3876 ac_cpp_err=yes
3877 fi
3878 if test -z "$ac_cpp_err"; then
3879 # Broken: success on invalid input.
3880 continue
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 # Passes both tests.
3886 ac_preproc_ok=:
3887 break
3888 fi
3889 rm -f conftest.err conftest.$ac_ext
3890
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then
3895 :
3896 else
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }
3902 fi
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3910
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3917 then ac_cv_prog_egrep='grep -E'
3918 else ac_cv_prog_egrep='egrep'
3919 fi
3920 fi
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP=$ac_cv_prog_egrep
3924
3925
3926
3927 echo "$as_me:$LINENO: checking for AIX" >&5
3928 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #ifdef _AIX
3936 yes
3937 #endif
3938
3939 _ACEOF
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "yes" >/dev/null 2>&1; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _ALL_SOURCE 1
3946 _ACEOF
3947
3948 else
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3951 fi
3952 rm -f conftest*
3953
3954
3955
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _GNU_SOURCE 1
3958 _ACEOF
3959
3960
3961
3962 ### Use -Wno-pointer-sign if the compiler supports it
3963 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3964 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3965 SAVE_CFLAGS="$CFLAGS"
3966 CFLAGS="$CFLAGS -Wno-pointer-sign"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973
3974 int
3975 main ()
3976 {
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 has_option=yes
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 has_option=no
4009 fi
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011 if test $has_option = yes; then
4012 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4013 fi
4014 echo "$as_me:$LINENO: result: $has_option" >&5
4015 echo "${ECHO_T}$has_option" >&6
4016 CFLAGS="$SAVE_CFLAGS"
4017 unset has_option
4018 unset SAVE_CFLAGS
4019
4020 #### Some other nice autoconf tests.
4021
4022 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4023 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4024 LN_S=$as_ln_s
4025 if test "$LN_S" = "ln -s"; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027 echo "${ECHO_T}yes" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4030 echo "${ECHO_T}no, using $LN_S" >&6
4031 fi
4032
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP=
4043 fi
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050 do
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4053 do
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev/null; then
4081 if test -s conftest.err; then
4082 ac_cpp_err=$ac_c_preproc_warn_flag
4083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4084 else
4085 ac_cpp_err=
4086 fi
4087 else
4088 ac_cpp_err=yes
4089 fi
4090 if test -z "$ac_cpp_err"; then
4091 :
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 # Broken: fails on valid input.
4097 continue
4098 fi
4099 rm -f conftest.err conftest.$ac_ext
4100
4101 # OK, works on sane cases. Now check whether non-existent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev/null; then
4119 if test -s conftest.err; then
4120 ac_cpp_err=$ac_c_preproc_warn_flag
4121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4122 else
4123 ac_cpp_err=
4124 fi
4125 else
4126 ac_cpp_err=yes
4127 fi
4128 if test -z "$ac_cpp_err"; then
4129 # Broken: success on invalid input.
4130 continue
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4138 fi
4139 rm -f conftest.err conftest.$ac_ext
4140
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 break
4146 fi
4147
4148 done
4149 ac_cv_prog_CPP=$CPP
4150
4151 fi
4152 CPP=$ac_cv_prog_CPP
4153 else
4154 ac_cv_prog_CPP=$CPP
4155 fi
4156 echo "$as_me:$LINENO: result: $CPP" >&5
4157 echo "${ECHO_T}$CPP" >&6
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4160 do
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null; then
4188 if test -s conftest.err; then
4189 ac_cpp_err=$ac_c_preproc_warn_flag
4190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4191 else
4192 ac_cpp_err=
4193 fi
4194 else
4195 ac_cpp_err=yes
4196 fi
4197 if test -z "$ac_cpp_err"; then
4198 :
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 # Broken: fails on valid input.
4204 continue
4205 fi
4206 rm -f conftest.err conftest.$ac_ext
4207
4208 # OK, works on sane cases. Now check whether non-existent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null; then
4226 if test -s conftest.err; then
4227 ac_cpp_err=$ac_c_preproc_warn_flag
4228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4229 else
4230 ac_cpp_err=
4231 fi
4232 else
4233 ac_cpp_err=yes
4234 fi
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4237 continue
4238 else
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4245 fi
4246 rm -f conftest.err conftest.$ac_ext
4247
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then
4252 :
4253 else
4254 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details." >&5
4256 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4259 fi
4260
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267 # Find a good install program. We prefer a C program (faster),
4268 # so one script is as good as another. But avoid the broken or
4269 # incompatible versions:
4270 # SysV /etc/install, /usr/sbin/install
4271 # SunOS /usr/etc/install
4272 # IRIX /sbin/install
4273 # AIX /bin/install
4274 # AmigaOS /C/install, which installs bootblocks on floppy discs
4275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4278 # OS/2's system install, which has a completely different semantic
4279 # ./install, which can be erroneously created by make from ./install.sh.
4280 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4281 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4282 if test -z "$INSTALL"; then
4283 if test "${ac_cv_path_install+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 # Account for people who put trailing slashes in PATH elements.
4292 case $as_dir/ in
4293 ./ | .// | /cC/* | \
4294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4296 /usr/ucb/* ) ;;
4297 *)
4298 # OSF1 and SCO ODT 3.0 have their own names for install.
4299 # Don't use installbsd from OSF since it installs stuff as root
4300 # by default.
4301 for ac_prog in ginstall scoinst install; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4304 if test $ac_prog = install &&
4305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4306 # AIX install. It has an incompatible calling convention.
4307 :
4308 elif test $ac_prog = install &&
4309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4310 # program-specific install script used by HP pwplus--don't use.
4311 :
4312 else
4313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4314 break 3
4315 fi
4316 fi
4317 done
4318 done
4319 ;;
4320 esac
4321 done
4322
4323
4324 fi
4325 if test "${ac_cv_path_install+set}" = set; then
4326 INSTALL=$ac_cv_path_install
4327 else
4328 # As a last resort, use the slow shell script. We don't cache a
4329 # path for INSTALL within a source directory, because that will
4330 # break other packages using the cache if that directory is
4331 # removed, or if the path is relative.
4332 INSTALL=$ac_install_sh
4333 fi
4334 fi
4335 echo "$as_me:$LINENO: result: $INSTALL" >&5
4336 echo "${ECHO_T}$INSTALL" >&6
4337
4338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4339 # It thinks the first close brace ends the variable substitution.
4340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4341
4342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4343
4344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4345
4346 if test "x$RANLIB" = x; then
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_RANLIB+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$RANLIB"; then
4356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4368 fi
4369 done
4370 done
4371
4372 fi
4373 fi
4374 RANLIB=$ac_cv_prog_RANLIB
4375 if test -n "$RANLIB"; then
4376 echo "$as_me:$LINENO: result: $RANLIB" >&5
4377 echo "${ECHO_T}$RANLIB" >&6
4378 else
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4381 fi
4382
4383 fi
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib; ac_word=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_ac_ct_RANLIB="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4406 fi
4407 done
4408 done
4409
4410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4411 fi
4412 fi
4413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4420 fi
4421
4422 RANLIB=$ac_ct_RANLIB
4423 else
4424 RANLIB="$ac_cv_prog_RANLIB"
4425 fi
4426
4427 fi
4428 # Extract the first word of "install-info", so it can be a program name with args.
4429 set dummy install-info; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 case $INSTALL_INFO in
4436 [\\/]* | ?:[\\/]*)
4437 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4438 ;;
4439 *)
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451 done
4452 done
4453
4454 ;;
4455 esac
4456 fi
4457 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4458
4459 if test -n "$INSTALL_INFO"; then
4460 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4461 echo "${ECHO_T}$INSTALL_INFO" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4465 fi
4466
4467 # Extract the first word of "install-info", so it can be a program name with args.
4468 set dummy install-info; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 case $INSTALL_INFO in
4475 [\\/]* | ?:[\\/]*)
4476 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4477 ;;
4478 *)
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in /usr/sbin
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492
4493 ;;
4494 esac
4495 fi
4496 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4497
4498 if test -n "$INSTALL_INFO"; then
4499 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4500 echo "${ECHO_T}$INSTALL_INFO" >&6
4501 else
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506 # Extract the first word of "install-info", so it can be a program name with args.
4507 set dummy install-info; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 case $INSTALL_INFO in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in /sbin
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531
4532 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4533 ;;
4534 esac
4535 fi
4536 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4537
4538 if test -n "$INSTALL_INFO"; then
4539 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4540 echo "${ECHO_T}$INSTALL_INFO" >&6
4541 else
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544 fi
4545
4546 # Extract the first word of "gzip", so it can be a program name with args.
4547 set dummy gzip; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 case $GZIP_PROG in
4554 [\\/]* | ?:[\\/]*)
4555 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4556 ;;
4557 *)
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569 done
4570 done
4571
4572 ;;
4573 esac
4574 fi
4575 GZIP_PROG=$ac_cv_path_GZIP_PROG
4576
4577 if test -n "$GZIP_PROG"; then
4578 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4579 echo "${ECHO_T}$GZIP_PROG" >&6
4580 else
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4583 fi
4584
4585
4586
4587 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4588 then
4589 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4590 fi
4591
4592 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4593 then
4594 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4595 fi
4596
4597
4598 late_LDFLAGS=$LDFLAGS
4599 if test "$GCC" = yes; then
4600 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4601 else
4602 LDFLAGS="$LDFLAGS -znocombreloc"
4603 fi
4604
4605 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4606 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4608 main(){return 0;}
4609 _ACEOF
4610 rm -f conftest.$ac_objext conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6
4633 else
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 LDFLAGS=$late_LDFLAGS
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641 rm -f conftest.err conftest.$ac_objext \
4642 conftest$ac_exeext conftest.$ac_ext
4643
4644 #### Extract some information from the operating system and machine files.
4645
4646 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4647 - which libraries the lib-src programs will want, and
4648 - whether the GNU malloc routines are usable..." >&5
4649 echo "$as_me: checking the machine- and system-dependent files to find out
4650 - which libraries the lib-src programs will want, and
4651 - whether the GNU malloc routines are usable..." >&6;}
4652
4653 ### First figure out CFLAGS (which we use for running the compiler here)
4654 ### and REAL_CFLAGS (which we use for real compilation).
4655 ### The two are the same except on a few systems, where they are made
4656 ### different to work around various lossages. For example,
4657 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4658 ### as implying static linking.
4659
4660 ### If the CFLAGS env var is specified, we use that value
4661 ### instead of the default.
4662
4663 ### It's not important that this name contain the PID; you can't run
4664 ### two configures in the same directory and have anything work
4665 ### anyway.
4666 tempcname="conftest.c"
4667
4668 echo '
4669 #include "'${srcdir}'/src/'${opsysfile}'"
4670 #include "'${srcdir}'/src/'${machfile}'"
4671 #ifndef LIBS_MACHINE
4672 #define LIBS_MACHINE
4673 #endif
4674 #ifndef LIBS_SYSTEM
4675 #define LIBS_SYSTEM
4676 #endif
4677 #ifndef C_SWITCH_SYSTEM
4678 #define C_SWITCH_SYSTEM
4679 #endif
4680 #ifndef C_SWITCH_MACHINE
4681 #define C_SWITCH_MACHINE
4682 #endif
4683 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4684 configure___ c_switch_system=C_SWITCH_SYSTEM
4685 configure___ c_switch_machine=C_SWITCH_MACHINE
4686
4687 #ifndef LIB_X11_LIB
4688 #define LIB_X11_LIB -lX11
4689 #endif
4690
4691 #ifndef LIBX11_MACHINE
4692 #define LIBX11_MACHINE
4693 #endif
4694
4695 #ifndef LIBX11_SYSTEM
4696 #define LIBX11_SYSTEM
4697 #endif
4698 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4699
4700 #ifdef UNEXEC
4701 configure___ unexec=UNEXEC
4702 #else
4703 configure___ unexec=unexec.o
4704 #endif
4705
4706 #ifdef SYSTEM_MALLOC
4707 configure___ system_malloc=yes
4708 #else
4709 configure___ system_malloc=no
4710 #endif
4711
4712 #ifdef USE_MMAP_FOR_BUFFERS
4713 configure___ use_mmap_for_buffers=yes
4714 #else
4715 configure___ use_mmap_for_buffers=no
4716 #endif
4717
4718 #ifndef C_DEBUG_SWITCH
4719 #define C_DEBUG_SWITCH -g
4720 #endif
4721
4722 #ifndef C_OPTIMIZE_SWITCH
4723 #ifdef __GNUC__
4724 #define C_OPTIMIZE_SWITCH -O2
4725 #else
4726 #define C_OPTIMIZE_SWITCH -O
4727 #endif
4728 #endif
4729
4730 #ifndef C_WARNINGS_SWITCH
4731 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4732 #endif
4733
4734 #ifndef LD_SWITCH_MACHINE
4735 #define LD_SWITCH_MACHINE
4736 #endif
4737
4738 #ifndef LD_SWITCH_SYSTEM
4739 #define LD_SWITCH_SYSTEM
4740 #endif
4741
4742 #ifndef LD_SWITCH_X_SITE_AUX
4743 #define LD_SWITCH_X_SITE_AUX
4744 #endif
4745
4746 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4747 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4748
4749 #ifdef THIS_IS_CONFIGURE
4750
4751 /* Get the CFLAGS for tests in configure. */
4752 #ifdef __GNUC__
4753 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4754 #else
4755 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4756 #endif
4757
4758 #else /* not THIS_IS_CONFIGURE */
4759
4760 /* Get the CFLAGS for real compilation. */
4761 #ifdef __GNUC__
4762 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4763 #else
4764 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4765 #endif
4766
4767 #endif /* not THIS_IS_CONFIGURE */
4768 ' > ${tempcname}
4769
4770 # The value of CPP is a quoted variable reference, so we need to do this
4771 # to get its actual value...
4772 CPP=`eval "echo $CPP"`
4773 eval `${CPP} -Isrc ${tempcname} \
4774 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4775 if test "x$SPECIFIED_CFLAGS" = x; then
4776 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4777 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4778 else
4779 REAL_CFLAGS="$CFLAGS"
4780 fi
4781 rm ${tempcname}
4782
4783 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4784
4785 ### Make sure subsequent tests use flags consistent with the build flags.
4786
4787 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4788 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4789 else
4790 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4791 fi
4792
4793
4794
4795 # Check whether --enable-largefile or --disable-largefile was given.
4796 if test "${enable_largefile+set}" = set; then
4797 enableval="$enable_largefile"
4798
4799 fi;
4800 if test "$enable_largefile" != no; then
4801
4802 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 ac_cv_sys_largefile_CC=no
4808 if test "$GCC" != yes; then
4809 ac_save_CC=$CC
4810 while :; do
4811 # IRIX 6.2 and later do not support large files by default,
4812 # so use the C compiler's -n32 option if that helps.
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 /* Check that off_t can represent 2**63 - 1 correctly.
4821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4822 since some C++ compilers masquerading as C compilers
4823 incorrectly reject 9223372036854775807. */
4824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4826 && LARGE_OFF_T % 2147483647 == 1)
4827 ? 1 : -1];
4828 int
4829 main ()
4830 {
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 break
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 fi
4863 rm -f conftest.err conftest.$ac_objext
4864 CC="$CC -n32"
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_largefile_CC=' -n32'; break
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 fi
4892 rm -f conftest.err conftest.$ac_objext
4893 break
4894 done
4895 CC=$ac_save_CC
4896 rm -f conftest.$ac_ext
4897 fi
4898 fi
4899 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4900 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4901 if test "$ac_cv_sys_largefile_CC" != no; then
4902 CC=$CC$ac_cv_sys_largefile_CC
4903 fi
4904
4905 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4906 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4907 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 while :; do
4911 ac_cv_sys_file_offset_bits=no
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4926 ? 1 : -1];
4927 int
4928 main ()
4929 {
4930
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 break
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #define _FILE_OFFSET_BITS 64
4970 #include <sys/types.h>
4971 /* Check that off_t can represent 2**63 - 1 correctly.
4972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973 since some C++ compilers masquerading as C compilers
4974 incorrectly reject 9223372036854775807. */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977 && LARGE_OFF_T % 2147483647 == 1)
4978 ? 1 : -1];
4979 int
4980 main ()
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_sys_file_offset_bits=64; break
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 fi
5014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5015 break
5016 done
5017 fi
5018 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5019 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5020 if test "$ac_cv_sys_file_offset_bits" != no; then
5021
5022 cat >>confdefs.h <<_ACEOF
5023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5024 _ACEOF
5025
5026 fi
5027 rm -f conftest*
5028 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5029 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5030 if test "${ac_cv_sys_large_files+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 while :; do
5034 ac_cv_sys_large_files=no
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 /* Check that off_t can represent 2**63 - 1 correctly.
5043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5044 since some C++ compilers masquerading as C compilers
5045 incorrectly reject 9223372036854775807. */
5046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5048 && LARGE_OFF_T % 2147483647 == 1)
5049 ? 1 : -1];
5050 int
5051 main ()
5052 {
5053
5054 ;
5055 return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 break
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 fi
5085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #define _LARGE_FILES 1
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5101 ? 1 : -1];
5102 int
5103 main ()
5104 {
5105
5106 ;
5107 return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_sys_large_files=1; break
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 fi
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 break
5139 done
5140 fi
5141 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5143 if test "$ac_cv_sys_large_files" != no; then
5144
5145 cat >>confdefs.h <<_ACEOF
5146 #define _LARGE_FILES $ac_cv_sys_large_files
5147 _ACEOF
5148
5149 fi
5150 rm -f conftest*
5151 fi
5152
5153
5154 if test "${with_sound}" != "no"; then
5155 # Sound support for GNU/Linux and the free BSDs.
5156 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5157 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5158 if test "${ac_cv_header_stdc+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h. */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 #include <stdlib.h>
5168 #include <stdarg.h>
5169 #include <string.h>
5170 #include <float.h>
5171
5172 int
5173 main ()
5174 {
5175
5176 ;
5177 return 0;
5178 }
5179 _ACEOF
5180 rm -f conftest.$ac_objext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182 (eval $ac_compile) 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
5189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_header_stdc=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206 ac_cv_header_stdc=no
5207 fi
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209
5210 if test $ac_cv_header_stdc = yes; then
5211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #include <string.h>
5219
5220 _ACEOF
5221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5222 $EGREP "memchr" >/dev/null 2>&1; then
5223 :
5224 else
5225 ac_cv_header_stdc=no
5226 fi
5227 rm -f conftest*
5228
5229 fi
5230
5231 if test $ac_cv_header_stdc = yes; then
5232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240
5241 _ACEOF
5242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5243 $EGREP "free" >/dev/null 2>&1; then
5244 :
5245 else
5246 ac_cv_header_stdc=no
5247 fi
5248 rm -f conftest*
5249
5250 fi
5251
5252 if test $ac_cv_header_stdc = yes; then
5253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5254 if test "$cross_compiling" = yes; then
5255 :
5256 else
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <ctype.h>
5264 #if ((' ' & 0x0FF) == 0x020)
5265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5267 #else
5268 # define ISLOWER(c) \
5269 (('a' <= (c) && (c) <= 'i') \
5270 || ('j' <= (c) && (c) <= 'r') \
5271 || ('s' <= (c) && (c) <= 'z'))
5272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5273 #endif
5274
5275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5276 int
5277 main ()
5278 {
5279 int i;
5280 for (i = 0; i < 256; i++)
5281 if (XOR (islower (i), ISLOWER (i))
5282 || toupper (i) != TOUPPER (i))
5283 exit(2);
5284 exit (0);
5285 }
5286 _ACEOF
5287 rm -f conftest$ac_exeext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 :
5299 else
5300 echo "$as_me: program exited with status $ac_status" >&5
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304 ( exit $ac_status )
5305 ac_cv_header_stdc=no
5306 fi
5307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5308 fi
5309 fi
5310 fi
5311 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5312 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5313 if test $ac_cv_header_stdc = yes; then
5314
5315 cat >>confdefs.h <<\_ACEOF
5316 #define STDC_HEADERS 1
5317 _ACEOF
5318
5319 fi
5320
5321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5332 inttypes.h stdint.h unistd.h
5333 do
5334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5335 echo "$as_me:$LINENO: checking for $ac_header" >&5
5336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5347
5348 #include <$ac_header>
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 eval "$as_ac_Header=yes"
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 eval "$as_ac_Header=no"
5377 fi
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5383 cat >>confdefs.h <<_ACEOF
5384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385 _ACEOF
5386
5387 fi
5388
5389 done
5390
5391
5392
5393
5394
5395 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5396 do
5397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399 echo "$as_me:$LINENO: checking for $ac_header" >&5
5400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 fi
5404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 else
5407 # Is the header compilable?
5408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 $ac_includes_default
5417 #include <$ac_header>
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_header_compiler=yes
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 ac_header_compiler=no
5446 fi
5447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5449 echo "${ECHO_T}$ac_header_compiler" >&6
5450
5451 # Is the header present?
5452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <$ac_header>
5461 _ACEOF
5462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev/null; then
5470 if test -s conftest.err; then
5471 ac_cpp_err=$ac_c_preproc_warn_flag
5472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5473 else
5474 ac_cpp_err=
5475 fi
5476 else
5477 ac_cpp_err=yes
5478 fi
5479 if test -z "$ac_cpp_err"; then
5480 ac_header_preproc=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485 ac_header_preproc=no
5486 fi
5487 rm -f conftest.err conftest.$ac_ext
5488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5489 echo "${ECHO_T}$ac_header_preproc" >&6
5490
5491 # So? What about this header?
5492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5493 yes:no: )
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5498 ac_header_preproc=yes
5499 ;;
5500 no:yes:* )
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5513 (
5514 cat <<\_ASBOX
5515 ## ------------------------------------------ ##
5516 ## Report this to the AC_PACKAGE_NAME lists. ##
5517 ## ------------------------------------------ ##
5518 _ASBOX
5519 ) |
5520 sed "s/^/$as_me: WARNING: /" >&2
5521 ;;
5522 esac
5523 echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 eval "$as_ac_Header=\$ac_header_preproc"
5529 fi
5530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5532
5533 fi
5534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535 cat >>confdefs.h <<_ACEOF
5536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 _ACEOF
5538
5539 fi
5540
5541 done
5542
5543 # Emulation library used on NetBSD.
5544 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5545 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5546 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 ac_check_lib_save_LIBS=$LIBS
5550 LIBS="-lossaudio $LIBS"
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 #ifdef __cplusplus
5560 extern "C"
5561 #endif
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5564 char _oss_ioctl ();
5565 int
5566 main ()
5567 {
5568 _oss_ioctl ();
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_lib_ossaudio__oss_ioctl=yes
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599 ac_cv_lib_ossaudio__oss_ioctl=no
5600 fi
5601 rm -f conftest.err conftest.$ac_objext \
5602 conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_check_lib_save_LIBS
5604 fi
5605 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5606 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5607 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5608 LIBSOUND=-lossaudio
5609 else
5610 LIBSOUND=
5611 fi
5612
5613
5614 fi
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5642 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5643 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5644 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5645 sys/utsname.h pwd.h
5646 do
5647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649 echo "$as_me:$LINENO: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 fi
5654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5656 else
5657 # Is the header compilable?
5658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 $ac_includes_default
5667 #include <$ac_header>
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_header_compiler=yes
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 ac_header_compiler=no
5696 fi
5697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6
5700
5701 # Is the header present?
5702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <$ac_header>
5711 _ACEOF
5712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null; then
5720 if test -s conftest.err; then
5721 ac_cpp_err=$ac_c_preproc_warn_flag
5722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5723 else
5724 ac_cpp_err=
5725 fi
5726 else
5727 ac_cpp_err=yes
5728 fi
5729 if test -z "$ac_cpp_err"; then
5730 ac_header_preproc=yes
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 ac_header_preproc=no
5736 fi
5737 rm -f conftest.err conftest.$ac_ext
5738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5739 echo "${ECHO_T}$ac_header_preproc" >&6
5740
5741 # So? What about this header?
5742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5743 yes:no: )
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5748 ac_header_preproc=yes
5749 ;;
5750 no:yes:* )
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5763 (
5764 cat <<\_ASBOX
5765 ## ------------------------------------------ ##
5766 ## Report this to the AC_PACKAGE_NAME lists. ##
5767 ## ------------------------------------------ ##
5768 _ASBOX
5769 ) |
5770 sed "s/^/$as_me: WARNING: /" >&2
5771 ;;
5772 esac
5773 echo "$as_me:$LINENO: checking for $ac_header" >&5
5774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 eval "$as_ac_Header=\$ac_header_preproc"
5779 fi
5780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5782
5783 fi
5784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5785 cat >>confdefs.h <<_ACEOF
5786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5787 _ACEOF
5788
5789 fi
5790
5791 done
5792
5793
5794 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5795 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <sys/personality.h>
5803 int
5804 main ()
5805 {
5806 personality (PER_LINUX32)
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 emacs_cv_personality_linux32=yes
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 emacs_cv_personality_linux32=no
5838 fi
5839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5841 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5842
5843 if test $emacs_cv_personality_linux32 = yes; then
5844
5845 cat >>confdefs.h <<\_ACEOF
5846 #define HAVE_PERSONALITY_LINUX32 1
5847 _ACEOF
5848
5849 fi
5850
5851
5852 for ac_header in term.h
5853 do
5854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5855 echo "$as_me:$LINENO: checking for $ac_header" >&5
5856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h. */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 #include <$ac_header>
5867 _ACEOF
5868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } >/dev/null; then
5876 if test -s conftest.err; then
5877 ac_cpp_err=$ac_c_preproc_warn_flag
5878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5879 else
5880 ac_cpp_err=
5881 fi
5882 else
5883 ac_cpp_err=yes
5884 fi
5885 if test -z "$ac_cpp_err"; then
5886 eval "$as_ac_Header=yes"
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 eval "$as_ac_Header=no"
5892 fi
5893 rm -f conftest.err conftest.$ac_ext
5894 fi
5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5898 cat >>confdefs.h <<_ACEOF
5899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5900 _ACEOF
5901
5902 fi
5903
5904 done
5905
5906 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5907 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5908 if test "${ac_cv_header_stdc+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <stdlib.h>
5918 #include <stdarg.h>
5919 #include <string.h>
5920 #include <float.h>
5921
5922 int
5923 main ()
5924 {
5925
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_header_stdc=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_cv_header_stdc=no
5957 fi
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959
5960 if test $ac_cv_header_stdc = yes; then
5961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <string.h>
5969
5970 _ACEOF
5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972 $EGREP "memchr" >/dev/null 2>&1; then
5973 :
5974 else
5975 ac_cv_header_stdc=no
5976 fi
5977 rm -f conftest*
5978
5979 fi
5980
5981 if test $ac_cv_header_stdc = yes; then
5982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <stdlib.h>
5990
5991 _ACEOF
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "free" >/dev/null 2>&1; then
5994 :
5995 else
5996 ac_cv_header_stdc=no
5997 fi
5998 rm -f conftest*
5999
6000 fi
6001
6002 if test $ac_cv_header_stdc = yes; then
6003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6004 if test "$cross_compiling" = yes; then
6005 :
6006 else
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <ctype.h>
6014 #if ((' ' & 0x0FF) == 0x020)
6015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6017 #else
6018 # define ISLOWER(c) \
6019 (('a' <= (c) && (c) <= 'i') \
6020 || ('j' <= (c) && (c) <= 'r') \
6021 || ('s' <= (c) && (c) <= 'z'))
6022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6023 #endif
6024
6025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6026 int
6027 main ()
6028 {
6029 int i;
6030 for (i = 0; i < 256; i++)
6031 if (XOR (islower (i), ISLOWER (i))
6032 || toupper (i) != TOUPPER (i))
6033 exit(2);
6034 exit (0);
6035 }
6036 _ACEOF
6037 rm -f conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 :
6049 else
6050 echo "$as_me: program exited with status $ac_status" >&5
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ( exit $ac_status )
6055 ac_cv_header_stdc=no
6056 fi
6057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6058 fi
6059 fi
6060 fi
6061 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6062 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6063 if test $ac_cv_header_stdc = yes; then
6064
6065 cat >>confdefs.h <<\_ACEOF
6066 #define STDC_HEADERS 1
6067 _ACEOF
6068
6069 fi
6070
6071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6073 if test "${ac_cv_header_time+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <sys/types.h>
6083 #include <sys/time.h>
6084 #include <time.h>
6085
6086 int
6087 main ()
6088 {
6089 if ((struct tm *) 0)
6090 return 0;
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_header_time=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 ac_cv_header_time=no
6122 fi
6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6126 echo "${ECHO_T}$ac_cv_header_time" >&6
6127 if test $ac_cv_header_time = yes; then
6128
6129 cat >>confdefs.h <<\_ACEOF
6130 #define TIME_WITH_SYS_TIME 1
6131 _ACEOF
6132
6133 fi
6134
6135 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6136 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6137 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 $ac_includes_default
6147 int
6148 main ()
6149 {
6150 #ifndef sys_siglist
6151 char *p = (char *) sys_siglist;
6152 #endif
6153
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_have_decl_sys_siglist=yes
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 ac_cv_have_decl_sys_siglist=no
6185 fi
6186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6189 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6190 if test $ac_cv_have_decl_sys_siglist = yes; then
6191
6192 cat >>confdefs.h <<_ACEOF
6193 #define HAVE_DECL_SYS_SIGLIST 1
6194 _ACEOF
6195
6196
6197 else
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_DECL_SYS_SIGLIST 0
6200 _ACEOF
6201
6202
6203 fi
6204
6205
6206 if test $ac_cv_have_decl_sys_siglist != yes; then
6207 # For Tru64, at least:
6208 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6209 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6210 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6220 int
6221 main ()
6222 {
6223 #ifndef __sys_siglist
6224 char *p = (char *) __sys_siglist;
6225 #endif
6226
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_have_decl___sys_siglist=yes
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_cv_have_decl___sys_siglist=no
6258 fi
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6262 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6263 if test $ac_cv_have_decl___sys_siglist = yes; then
6264
6265 cat >>confdefs.h <<_ACEOF
6266 #define HAVE_DECL___SYS_SIGLIST 1
6267 _ACEOF
6268
6269
6270 else
6271 cat >>confdefs.h <<_ACEOF
6272 #define HAVE_DECL___SYS_SIGLIST 0
6273 _ACEOF
6274
6275
6276 fi
6277
6278
6279 if test $ac_cv_have_decl___sys_siglist = yes; then
6280
6281 cat >>confdefs.h <<\_ACEOF
6282 #define sys_siglist __sys_siglist
6283 _ACEOF
6284
6285 fi
6286 fi
6287 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6288 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6289 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <sys/types.h>
6299 #include <sys/wait.h>
6300 #ifndef WEXITSTATUS
6301 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6302 #endif
6303 #ifndef WIFEXITED
6304 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6305 #endif
6306
6307 int
6308 main ()
6309 {
6310 int s;
6311 wait (&s);
6312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6313 ;
6314 return 0;
6315 }
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_cv_header_sys_wait_h=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_cv_header_sys_wait_h=no
6344 fi
6345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6348 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6349 if test $ac_cv_header_sys_wait_h = yes; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define HAVE_SYS_WAIT_H 1
6353 _ACEOF
6354
6355 fi
6356
6357
6358 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6359 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6360 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #ifdef TIME_WITH_SYS_TIME
6370 #include <sys/time.h>
6371 #include <time.h>
6372 #else
6373 #ifdef HAVE_SYS_TIME_H
6374 #include <sys/time.h>
6375 #else
6376 #include <time.h>
6377 #endif
6378 #endif
6379 #ifdef HAVE_UTIME_H
6380 #include <utime.h>
6381 #endif
6382 int
6383 main ()
6384 {
6385 static struct utimbuf x; x.actime = x.modtime;
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 emacs_cv_struct_utimbuf=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 emacs_cv_struct_utimbuf=no
6417 fi
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6421 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6422 if test $emacs_cv_struct_utimbuf = yes; then
6423
6424 cat >>confdefs.h <<\_ACEOF
6425 #define HAVE_STRUCT_UTIMBUF 1
6426 _ACEOF
6427
6428 fi
6429
6430 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6431 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6432 if test "${ac_cv_type_signal+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <sys/types.h>
6442 #include <signal.h>
6443 #ifdef signal
6444 # undef signal
6445 #endif
6446 #ifdef __cplusplus
6447 extern "C" void (*signal (int, void (*)(int)))(int);
6448 #else
6449 void (*signal ()) ();
6450 #endif
6451
6452 int
6453 main ()
6454 {
6455 int i;
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest.$ac_objext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_type_signal=void
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 ac_cv_type_signal=int
6487 fi
6488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6489 fi
6490 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6491 echo "${ECHO_T}$ac_cv_type_signal" >&6
6492
6493 cat >>confdefs.h <<_ACEOF
6494 #define RETSIGTYPE $ac_cv_type_signal
6495 _ACEOF
6496
6497
6498
6499 echo "$as_me:$LINENO: checking for speed_t" >&5
6500 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6501 if test "${emacs_cv_speed_t+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <termios.h>
6511 int
6512 main ()
6513 {
6514 speed_t x = 1;
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 emacs_cv_speed_t=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 emacs_cv_speed_t=no
6546 fi
6547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6550 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6551 if test $emacs_cv_speed_t = yes; then
6552
6553 cat >>confdefs.h <<\_ACEOF
6554 #define HAVE_SPEED_T 1
6555 _ACEOF
6556
6557 fi
6558
6559 echo "$as_me:$LINENO: checking for struct timeval" >&5
6560 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6561 if test "${emacs_cv_struct_timeval+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #ifdef TIME_WITH_SYS_TIME
6571 #include <sys/time.h>
6572 #include <time.h>
6573 #else
6574 #ifdef HAVE_SYS_TIME_H
6575 #include <sys/time.h>
6576 #else
6577 #include <time.h>
6578 #endif
6579 #endif
6580 int
6581 main ()
6582 {
6583 static struct timeval x; x.tv_sec = x.tv_usec;
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 emacs_cv_struct_timeval=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 emacs_cv_struct_timeval=no
6615 fi
6616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617 fi
6618 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6619 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6620 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6621 if test $emacs_cv_struct_timeval = yes; then
6622
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_TIMEVAL 1
6625 _ACEOF
6626
6627 fi
6628
6629 echo "$as_me:$LINENO: checking for struct exception" >&5
6630 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6631 if test "${emacs_cv_struct_exception+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 #include <math.h>
6641 int
6642 main ()
6643 {
6644 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6645 ;
6646 return 0;
6647 }
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 (eval $ac_try) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest.$ac_objext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 emacs_cv_struct_exception=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675 emacs_cv_struct_exception=no
6676 fi
6677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678 fi
6679 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6680 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6681 HAVE_EXCEPTION=$emacs_cv_struct_exception
6682 if test $emacs_cv_struct_exception != yes; then
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define NO_MATHERR 1
6686 _ACEOF
6687
6688 fi
6689
6690
6691 for ac_header in sys/socket.h
6692 do
6693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 fi
6700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6702 else
6703 # Is the header compilable?
6704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6713 #include <$ac_header>
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_header_compiler=yes
6737 else
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 ac_header_compiler=no
6742 fi
6743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6745 echo "${ECHO_T}$ac_header_compiler" >&6
6746
6747 # Is the header present?
6748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <$ac_header>
6757 _ACEOF
6758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } >/dev/null; then
6766 if test -s conftest.err; then
6767 ac_cpp_err=$ac_c_preproc_warn_flag
6768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6769 else
6770 ac_cpp_err=
6771 fi
6772 else
6773 ac_cpp_err=yes
6774 fi
6775 if test -z "$ac_cpp_err"; then
6776 ac_header_preproc=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_header_preproc=no
6782 fi
6783 rm -f conftest.err conftest.$ac_ext
6784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6785 echo "${ECHO_T}$ac_header_preproc" >&6
6786
6787 # So? What about this header?
6788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6789 yes:no: )
6790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6794 ac_header_preproc=yes
6795 ;;
6796 no:yes:* )
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6809 (
6810 cat <<\_ASBOX
6811 ## ------------------------------------------ ##
6812 ## Report this to the AC_PACKAGE_NAME lists. ##
6813 ## ------------------------------------------ ##
6814 _ASBOX
6815 ) |
6816 sed "s/^/$as_me: WARNING: /" >&2
6817 ;;
6818 esac
6819 echo "$as_me:$LINENO: checking for $ac_header" >&5
6820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 eval "$as_ac_Header=\$ac_header_preproc"
6825 fi
6826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6828
6829 fi
6830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6831 cat >>confdefs.h <<_ACEOF
6832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6833 _ACEOF
6834
6835 fi
6836
6837 done
6838
6839
6840 for ac_header in net/if.h
6841 do
6842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6843 echo "$as_me:$LINENO: checking for $ac_header" >&5
6844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6855 #if HAVE_SYS_SOCKET_H
6856 #include <sys/socket.h>
6857 #endif
6858
6859 #include <$ac_header>
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 eval "$as_ac_Header=yes"
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 eval "$as_ac_Header=no"
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 fi
6891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6894 cat >>confdefs.h <<_ACEOF
6895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6896 _ACEOF
6897
6898 fi
6899
6900 done
6901
6902
6903 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6904 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6905 if test "${ac_cv_struct_tm+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <sys/types.h>
6915 #include <time.h>
6916
6917 int
6918 main ()
6919 {
6920 struct tm *tp; tp->tm_sec;
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 ac_cv_struct_tm=time.h
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ac_cv_struct_tm=sys/time.h
6952 fi
6953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6956 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6957 if test $ac_cv_struct_tm = sys/time.h; then
6958
6959 cat >>confdefs.h <<\_ACEOF
6960 #define TM_IN_SYS_TIME 1
6961 _ACEOF
6962
6963 fi
6964
6965 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6966 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6967 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <sys/types.h>
6977 #include <$ac_cv_struct_tm>
6978
6979
6980 int
6981 main ()
6982 {
6983 static struct tm ac_aggr;
6984 if (ac_aggr.tm_zone)
6985 return 0;
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992 (eval $ac_compile) 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest.$ac_objext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_member_struct_tm_tm_zone=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <sys/types.h>
7023 #include <$ac_cv_struct_tm>
7024
7025
7026 int
7027 main ()
7028 {
7029 static struct tm ac_aggr;
7030 if (sizeof ac_aggr.tm_zone)
7031 return 0;
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_member_struct_tm_tm_zone=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_member_struct_tm_tm_zone=no
7063 fi
7064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7065 fi
7066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7069 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7070 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7071
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_STRUCT_TM_TM_ZONE 1
7074 _ACEOF
7075
7076
7077 fi
7078
7079 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7080
7081 cat >>confdefs.h <<\_ACEOF
7082 #define HAVE_TM_ZONE 1
7083 _ACEOF
7084
7085 else
7086 echo "$as_me:$LINENO: checking for tzname" >&5
7087 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7088 if test "${ac_cv_var_tzname+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <time.h>
7098 #ifndef tzname /* For SGI. */
7099 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7100 #endif
7101
7102 int
7103 main ()
7104 {
7105 atoi(*tzname);
7106 ;
7107 return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_var_tzname=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ac_cv_var_tzname=no
7137 fi
7138 rm -f conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 fi
7141 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7142 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7143 if test $ac_cv_var_tzname = yes; then
7144
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_TZNAME 1
7147 _ACEOF
7148
7149 fi
7150 fi
7151
7152 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7153 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7154 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <time.h>
7164
7165 int
7166 main ()
7167 {
7168 static struct tm ac_aggr;
7169 if (ac_aggr.tm_gmtoff)
7170 return 0;
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_tm_tm_gmtoff=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <time.h>
7208
7209 int
7210 main ()
7211 {
7212 static struct tm ac_aggr;
7213 if (sizeof ac_aggr.tm_gmtoff)
7214 return 0;
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; } &&
7234 { ac_try='test -s conftest.$ac_objext'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 ac_cv_member_struct_tm_tm_gmtoff=yes
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245 ac_cv_member_struct_tm_tm_gmtoff=no
7246 fi
7247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7248 fi
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7252 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7253 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7254
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_TM_GMTOFF 1
7257 _ACEOF
7258
7259 fi
7260
7261 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7262 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7263 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h. */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7273 #if HAVE_SYS_SOCKET_H
7274 #include <sys/socket.h>
7275 #endif
7276 #if HAVE_NET_IF_H
7277 #include <net/if.h>
7278 #endif
7279
7280 int
7281 main ()
7282 {
7283 static struct ifreq ac_aggr;
7284 if (ac_aggr.ifr_flags)
7285 return 0;
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_member_struct_ifreq_ifr_flags=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 $ac_includes_default
7323 #if HAVE_SYS_SOCKET_H
7324 #include <sys/socket.h>
7325 #endif
7326 #if HAVE_NET_IF_H
7327 #include <net/if.h>
7328 #endif
7329
7330 int
7331 main ()
7332 {
7333 static struct ifreq ac_aggr;
7334 if (sizeof ac_aggr.ifr_flags)
7335 return 0;
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>conftest.er1
7343 ac_status=$?
7344 grep -v '^ *+' conftest.er1 >conftest.err
7345 rm -f conftest.er1
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_member_struct_ifreq_ifr_flags=yes
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366 ac_cv_member_struct_ifreq_ifr_flags=no
7367 fi
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 fi
7372 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7373 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7374 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7375
7376 cat >>confdefs.h <<_ACEOF
7377 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7378 _ACEOF
7379
7380
7381 fi
7382 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7383 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7384 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7394 #if HAVE_SYS_SOCKET_H
7395 #include <sys/socket.h>
7396 #endif
7397 #if HAVE_NET_IF_H
7398 #include <net/if.h>
7399 #endif
7400
7401 int
7402 main ()
7403 {
7404 static struct ifreq ac_aggr;
7405 if (ac_aggr.ifr_hwaddr)
7406 return 0;
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; } &&
7426 { ac_try='test -s conftest.$ac_objext'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7433 else
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7446 #endif
7447 #if HAVE_NET_IF_H
7448 #include <net/if.h>
7449 #endif
7450
7451 int
7452 main ()
7453 {
7454 static struct ifreq ac_aggr;
7455 if (sizeof ac_aggr.ifr_hwaddr)
7456 return 0;
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7488 fi
7489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7492 fi
7493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7494 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7495 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7496
7497 cat >>confdefs.h <<_ACEOF
7498 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7499 _ACEOF
7500
7501
7502 fi
7503 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7504 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7505 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #if HAVE_SYS_SOCKET_H
7516 #include <sys/socket.h>
7517 #endif
7518 #if HAVE_NET_IF_H
7519 #include <net/if.h>
7520 #endif
7521
7522 int
7523 main ()
7524 {
7525 static struct ifreq ac_aggr;
7526 if (ac_aggr.ifr_netmask)
7527 return 0;
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_member_struct_ifreq_ifr_netmask=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7565 #if HAVE_SYS_SOCKET_H
7566 #include <sys/socket.h>
7567 #endif
7568 #if HAVE_NET_IF_H
7569 #include <net/if.h>
7570 #endif
7571
7572 int
7573 main ()
7574 {
7575 static struct ifreq ac_aggr;
7576 if (sizeof ac_aggr.ifr_netmask)
7577 return 0;
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>conftest.er1
7585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_member_struct_ifreq_ifr_netmask=yes
7604 else
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608 ac_cv_member_struct_ifreq_ifr_netmask=no
7609 fi
7610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7611 fi
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 fi
7614 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7615 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7616 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7617
7618 cat >>confdefs.h <<_ACEOF
7619 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7620 _ACEOF
7621
7622
7623 fi
7624 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7625 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7626 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 $ac_includes_default
7636 #if HAVE_SYS_SOCKET_H
7637 #include <sys/socket.h>
7638 #endif
7639 #if HAVE_NET_IF_H
7640 #include <net/if.h>
7641 #endif
7642
7643 int
7644 main ()
7645 {
7646 static struct ifreq ac_aggr;
7647 if (ac_aggr.ifr_broadaddr)
7648 return 0;
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 rm -f conftest.$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 #if HAVE_SYS_SOCKET_H
7687 #include <sys/socket.h>
7688 #endif
7689 #if HAVE_NET_IF_H
7690 #include <net/if.h>
7691 #endif
7692
7693 int
7694 main ()
7695 {
7696 static struct ifreq ac_aggr;
7697 if (sizeof ac_aggr.ifr_broadaddr)
7698 return 0;
7699 ;
7700 return 0;
7701 }
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; } &&
7718 { ac_try='test -s conftest.$ac_objext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7725 else
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7730 fi
7731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7732 fi
7733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7736 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7737 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7741 _ACEOF
7742
7743
7744 fi
7745 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7746 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7747 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 #if HAVE_SYS_SOCKET_H
7758 #include <sys/socket.h>
7759 #endif
7760 #if HAVE_NET_IF_H
7761 #include <net/if.h>
7762 #endif
7763
7764 int
7765 main ()
7766 {
7767 static struct ifreq ac_aggr;
7768 if (ac_aggr.ifr_addr)
7769 return 0;
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest.$ac_objext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_member_struct_ifreq_ifr_addr=yes
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 $ac_includes_default
7807 #if HAVE_SYS_SOCKET_H
7808 #include <sys/socket.h>
7809 #endif
7810 #if HAVE_NET_IF_H
7811 #include <net/if.h>
7812 #endif
7813
7814 int
7815 main ()
7816 {
7817 static struct ifreq ac_aggr;
7818 if (sizeof ac_aggr.ifr_addr)
7819 return 0;
7820 ;
7821 return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest.$ac_objext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_member_struct_ifreq_ifr_addr=yes
7846 else
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 ac_cv_member_struct_ifreq_ifr_addr=no
7851 fi
7852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7853 fi
7854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7855 fi
7856 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7857 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7858 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7859
7860 cat >>confdefs.h <<_ACEOF
7861 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7862 _ACEOF
7863
7864
7865 fi
7866
7867
7868
7869 echo "$as_me:$LINENO: checking for function prototypes" >&5
7870 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7871 if test "$ac_cv_prog_cc_stdc" != no; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873 echo "${ECHO_T}yes" >&6
7874
7875 cat >>confdefs.h <<\_ACEOF
7876 #define PROTOTYPES 1
7877 _ACEOF
7878
7879
7880 cat >>confdefs.h <<\_ACEOF
7881 #define __PROTOTYPES 1
7882 _ACEOF
7883
7884 else
7885 echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6
7887 fi
7888
7889 echo "$as_me:$LINENO: checking for working volatile" >&5
7890 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7891 if test "${ac_cv_c_volatile+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900
7901 int
7902 main ()
7903 {
7904
7905 volatile int x;
7906 int * volatile y;
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest.$ac_objext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_c_volatile=yes
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937 ac_cv_c_volatile=no
7938 fi
7939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7940 fi
7941 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7942 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7943 if test $ac_cv_c_volatile = no; then
7944
7945 cat >>confdefs.h <<\_ACEOF
7946 #define volatile
7947 _ACEOF
7948
7949 fi
7950
7951 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7952 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7953 if test "${ac_cv_c_const+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962
7963 int
7964 main ()
7965 {
7966 /* FIXME: Include the comments suggested by Paul. */
7967 #ifndef __cplusplus
7968 /* Ultrix mips cc rejects this. */
7969 typedef int charset[2];
7970 const charset x;
7971 /* SunOS 4.1.1 cc rejects this. */
7972 char const *const *ccp;
7973 char **p;
7974 /* NEC SVR4.0.2 mips cc rejects this. */
7975 struct point {int x, y;};
7976 static struct point const zero = {0,0};
7977 /* AIX XL C 1.02.0.0 rejects this.
7978 It does not let you subtract one const X* pointer from another in
7979 an arm of an if-expression whose if-part is not a constant
7980 expression */
7981 const char *g = "string";
7982 ccp = &g + (g ? g-g : 0);
7983 /* HPUX 7.0 cc rejects these. */
7984 ++ccp;
7985 p = (char**) ccp;
7986 ccp = (char const *const *) p;
7987 { /* SCO 3.2v4 cc rejects this. */
7988 char *t;
7989 char const *s = 0 ? (char *) 0 : (char const *) 0;
7990
7991 *t++ = 0;
7992 }
7993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7994 int x[] = {25, 17};
7995 const int *foo = &x[0];
7996 ++foo;
7997 }
7998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7999 typedef const int *iptr;
8000 iptr p = 0;
8001 ++p;
8002 }
8003 { /* AIX XL C 1.02.0.0 rejects this saying
8004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8005 struct s { int j; const int *ap[3]; };
8006 struct s *b; b->j = 5;
8007 }
8008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8009 const int foo = 10;
8010 }
8011 #endif
8012
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_cv_c_const=yes
8039 else
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_cv_c_const=no
8044 fi
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046 fi
8047 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048 echo "${ECHO_T}$ac_cv_c_const" >&6
8049 if test $ac_cv_c_const = no; then
8050
8051 cat >>confdefs.h <<\_ACEOF
8052 #define const
8053 _ACEOF
8054
8055 fi
8056
8057 echo "$as_me:$LINENO: checking for void * support" >&5
8058 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8059 if test "${emacs_cv_void_star+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068
8069 int
8070 main ()
8071 {
8072 void * foo;
8073 ;
8074 return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 emacs_cv_void_star=yes
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 emacs_cv_void_star=no
8104 fi
8105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8108 echo "${ECHO_T}$emacs_cv_void_star" >&6
8109 if test $emacs_cv_void_star = yes; then
8110 cat >>confdefs.h <<\_ACEOF
8111 #define POINTER_TYPE void
8112 _ACEOF
8113
8114 else
8115 cat >>confdefs.h <<\_ACEOF
8116 #define POINTER_TYPE char
8117 _ACEOF
8118
8119 fi
8120
8121
8122
8123
8124
8125 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8126 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8127 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8128 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131 cat >conftest.make <<\_ACEOF
8132 all:
8133 @echo 'ac_maketemp="$(MAKE)"'
8134 _ACEOF
8135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8136 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8137 if test -n "$ac_maketemp"; then
8138 eval ac_cv_prog_make_${ac_make}_set=yes
8139 else
8140 eval ac_cv_prog_make_${ac_make}_set=no
8141 fi
8142 rm -f conftest.make
8143 fi
8144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8145 echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8147 SET_MAKE=
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6
8151 SET_MAKE="MAKE=${MAKE-make}"
8152 fi
8153
8154
8155 echo "$as_me:$LINENO: checking for long file names" >&5
8156 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8157 if test "${ac_cv_sys_long_file_names+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160 ac_cv_sys_long_file_names=yes
8161 # Test for long file names in all the places we know might matter:
8162 # . the current directory, where building will happen
8163 # $prefix/lib where we will be installing things
8164 # $exec_prefix/lib likewise
8165 # eval it to expand exec_prefix.
8166 # $TMPDIR if set, where it might want to write temporary files
8167 # if $TMPDIR is not set:
8168 # /tmp where it might want to write temporary files
8169 # /var/tmp likewise
8170 # /usr/tmp likewise
8171 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8172 ac_tmpdirs=$TMPDIR
8173 else
8174 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8175 fi
8176 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8177 test -d $ac_dir || continue
8178 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8179 ac_xdir=$ac_dir/cf$$
8180 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8181 ac_tf1=$ac_xdir/conftest9012345
8182 ac_tf2=$ac_xdir/conftest9012346
8183 (echo 1 >$ac_tf1) 2>/dev/null
8184 (echo 2 >$ac_tf2) 2>/dev/null
8185 ac_val=`cat $ac_tf1 2>/dev/null`
8186 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8187 ac_cv_sys_long_file_names=no
8188 rm -rf $ac_xdir 2>/dev/null
8189 break
8190 fi
8191 rm -rf $ac_xdir 2>/dev/null
8192 done
8193 fi
8194 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8195 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8196 if test $ac_cv_sys_long_file_names = yes; then
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define HAVE_LONG_FILE_NAMES 1
8200 _ACEOF
8201
8202 fi
8203
8204
8205 #### Choose a window system.
8206
8207 echo "$as_me:$LINENO: checking for X" >&5
8208 echo $ECHO_N "checking for X... $ECHO_C" >&6
8209
8210 ac_path_x_has_been_run=yes
8211
8212 # Check whether --with-x or --without-x was given.
8213 if test "${with_x+set}" = set; then
8214 withval="$with_x"
8215
8216 fi;
8217 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8218 if test "x$with_x" = xno; then
8219 # The user explicitly disabled X.
8220 have_x=disabled
8221 else
8222 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8223 # Both variables are already set.
8224 have_x=yes
8225 else
8226 if test "${ac_cv_have_x+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 # One or both of the vars are not set, and there is no cached value.
8230 ac_x_includes=no ac_x_libraries=no
8231 rm -fr conftest.dir
8232 if mkdir conftest.dir; then
8233 cd conftest.dir
8234 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8235 cat >Imakefile <<'_ACEOF'
8236 acfindx:
8237 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8238 _ACEOF
8239 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8241 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8242 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8243 for ac_extension in a so sl; do
8244 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8245 test -f $ac_im_libdir/libX11.$ac_extension; then
8246 ac_im_usrlibdir=$ac_im_libdir; break
8247 fi
8248 done
8249 # Screen out bogus values from the imake configuration. They are
8250 # bogus both because they are the default anyway, and because
8251 # using them would break gcc on systems where it needs fixed includes.
8252 case $ac_im_incroot in
8253 /usr/include) ;;
8254 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8255 esac
8256 case $ac_im_usrlibdir in
8257 /usr/lib | /lib) ;;
8258 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8259 esac
8260 fi
8261 cd ..
8262 rm -fr conftest.dir
8263 fi
8264
8265 # Standard set of common directories for X headers.
8266 # Check X11 before X11Rn because it is often a symlink to the current release.
8267 ac_x_header_dirs='
8268 /usr/X11/include
8269 /usr/X11R6/include
8270 /usr/X11R5/include
8271 /usr/X11R4/include
8272
8273 /usr/include/X11
8274 /usr/include/X11R6
8275 /usr/include/X11R5
8276 /usr/include/X11R4
8277
8278 /usr/local/X11/include
8279 /usr/local/X11R6/include
8280 /usr/local/X11R5/include
8281 /usr/local/X11R4/include
8282
8283 /usr/local/include/X11
8284 /usr/local/include/X11R6
8285 /usr/local/include/X11R5
8286 /usr/local/include/X11R4
8287
8288 /usr/X386/include
8289 /usr/x386/include
8290 /usr/XFree86/include/X11
8291
8292 /usr/include
8293 /usr/local/include
8294 /usr/unsupported/include
8295 /usr/athena/include
8296 /usr/local/x11r5/include
8297 /usr/lpp/Xamples/include
8298
8299 /usr/openwin/include
8300 /usr/openwin/share/include'
8301
8302 if test "$ac_x_includes" = no; then
8303 # Guess where to find include files, by looking for a specified header file.
8304 # First, try using that file with no special directory specified.
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 #include <X11/Xlib.h>
8312 _ACEOF
8313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } >/dev/null; then
8321 if test -s conftest.err; then
8322 ac_cpp_err=$ac_c_preproc_warn_flag
8323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8324 else
8325 ac_cpp_err=
8326 fi
8327 else
8328 ac_cpp_err=yes
8329 fi
8330 if test -z "$ac_cpp_err"; then
8331 # We can compile using X headers with no special include directory.
8332 ac_x_includes=
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 for ac_dir in $ac_x_header_dirs; do
8338 if test -r "$ac_dir/X11/Xlib.h"; then
8339 ac_x_includes=$ac_dir
8340 break
8341 fi
8342 done
8343 fi
8344 rm -f conftest.err conftest.$ac_ext
8345 fi # $ac_x_includes = no
8346
8347 if test "$ac_x_libraries" = no; then
8348 # Check for the libraries.
8349 # See if we find them without any special options.
8350 # Don't add to $LIBS permanently.
8351 ac_save_LIBS=$LIBS
8352 LIBS="-lX11 $LIBS"
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 #include <X11/Xlib.h>
8360 int
8361 main ()
8362 {
8363 XrmInitialize ()
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 LIBS=$ac_save_LIBS
8390 # We can link X programs with no special library path.
8391 ac_x_libraries=
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 LIBS=$ac_save_LIBS
8397 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8398 do
8399 # Don't even attempt the hair of trying to link an X program!
8400 for ac_extension in a so sl; do
8401 if test -r $ac_dir/libX11.$ac_extension; then
8402 ac_x_libraries=$ac_dir
8403 break 2
8404 fi
8405 done
8406 done
8407 fi
8408 rm -f conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 fi # $ac_x_libraries = no
8411
8412 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8413 # Didn't find X anywhere. Cache the known absence of X.
8414 ac_cv_have_x="have_x=no"
8415 else
8416 # Record where we found X for the cache.
8417 ac_cv_have_x="have_x=yes \
8418 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8419 fi
8420 fi
8421
8422 fi
8423 eval "$ac_cv_have_x"
8424 fi # $with_x != no
8425
8426 if test "$have_x" != yes; then
8427 echo "$as_me:$LINENO: result: $have_x" >&5
8428 echo "${ECHO_T}$have_x" >&6
8429 no_x=yes
8430 else
8431 # If each of the values was on the command line, it overrides each guess.
8432 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8433 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8434 # Update the cache value to reflect the command line values.
8435 ac_cv_have_x="have_x=yes \
8436 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8437 # It might be that x_includes is empty (headers are found in the
8438 # standard search path. Then output the corresponding message
8439 ac_out_x_includes=$x_includes
8440 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8441 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8442 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8443 fi
8444
8445 if test "$no_x" = yes; then
8446 window_system=none
8447 else
8448 window_system=x11
8449 fi
8450
8451 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8452 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8453 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8454 x_default_search_path=""
8455 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8456 x_search_path="\
8457 ${x_library}/X11/%L/%T/%N%C%S:\
8458 ${x_library}/X11/%l/%T/%N%C%S:\
8459 ${x_library}/X11/%T/%N%C%S:\
8460 ${x_library}/X11/%L/%T/%N%S:\
8461 ${x_library}/X11/%l/%T/%N%S:\
8462 ${x_library}/X11/%T/%N%S"
8463 if test x"${x_default_search_path}" = x; then
8464 x_default_search_path=${x_search_path}
8465 else
8466 x_default_search_path="${x_search_path}:${x_default_search_path}"
8467 fi
8468 done
8469 fi
8470 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8471 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8472 fi
8473
8474 if test x"${x_includes}" = x; then
8475 bitmapdir=/usr/include/X11/bitmaps
8476 else
8477 # accumulate include directories that have X11 bitmap subdirectories
8478 bmd_acc="dummyval"
8479 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8480 if test -d "${bmd}/X11/bitmaps"; then
8481 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8482 fi
8483 if test -d "${bmd}/bitmaps"; then
8484 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8485 fi
8486 done
8487 if test ${bmd_acc} != "dummyval"; then
8488 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8489 fi
8490 fi
8491
8492 HAVE_CARBON=no
8493 if test "${with_carbon}" != no; then
8494 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8495 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8501 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8502 else
8503 # Is the header compilable?
8504 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8505 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #include <Carbon/Carbon.h>
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_header_compiler=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_header_compiler=no
8542 fi
8543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8545 echo "${ECHO_T}$ac_header_compiler" >&6
8546
8547 # Is the header present?
8548 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8549 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 #include <Carbon/Carbon.h>
8557 _ACEOF
8558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } >/dev/null; then
8566 if test -s conftest.err; then
8567 ac_cpp_err=$ac_c_preproc_warn_flag
8568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8569 else
8570 ac_cpp_err=
8571 fi
8572 else
8573 ac_cpp_err=yes
8574 fi
8575 if test -z "$ac_cpp_err"; then
8576 ac_header_preproc=yes
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_header_preproc=no
8582 fi
8583 rm -f conftest.err conftest.$ac_ext
8584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8585 echo "${ECHO_T}$ac_header_preproc" >&6
8586
8587 # So? What about this header?
8588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8589 yes:no: )
8590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8591 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8593 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8594 ac_header_preproc=yes
8595 ;;
8596 no:yes:* )
8597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8598 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8600 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8602 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8604 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8608 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8609 (
8610 cat <<\_ASBOX
8611 ## ------------------------------------------ ##
8612 ## Report this to the AC_PACKAGE_NAME lists. ##
8613 ## ------------------------------------------ ##
8614 _ASBOX
8615 ) |
8616 sed "s/^/$as_me: WARNING: /" >&2
8617 ;;
8618 esac
8619 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8620 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8621 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8627 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8628
8629 fi
8630 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8631 HAVE_CARBON=yes
8632 fi
8633
8634
8635 fi
8636 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8637 if test "${with_carbon+set}" != set \
8638 && test "${carbon_appdir_x+set}" != set; then
8639 HAVE_CARBON=no
8640 fi
8641 fi
8642 if test "${HAVE_CARBON}" = yes; then
8643 window_system=mac
8644 fi
8645
8646 case "${window_system}" in
8647 x11 )
8648 HAVE_X_WINDOWS=yes
8649 HAVE_X11=yes
8650 case "${with_x_toolkit}" in
8651 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8652 motif ) USE_X_TOOLKIT=MOTIF ;;
8653 gtk ) with_gtk=yes
8654 USE_X_TOOLKIT=none ;;
8655 no ) USE_X_TOOLKIT=none ;;
8656 * ) USE_X_TOOLKIT=maybe ;;
8657 esac
8658 ;;
8659 mac | none )
8660 HAVE_X_WINDOWS=no
8661 HAVE_X11=no
8662 USE_X_TOOLKIT=none
8663 ;;
8664 esac
8665
8666 ### If we're using X11, we should use the X menu package.
8667 HAVE_MENUS=no
8668 case ${HAVE_X11} in
8669 yes ) HAVE_MENUS=yes ;;
8670 esac
8671
8672 if test "${opsys}" = "hpux9"; then
8673 case "${x_libraries}" in
8674 *X11R4* )
8675 opsysfile="s/hpux9-x11r4.h"
8676 ;;
8677 esac
8678 fi
8679
8680 if test "${opsys}" = "hpux9shr"; then
8681 case "${x_libraries}" in
8682 *X11R4* )
8683 opsysfile="s/hpux9shxr4.h"
8684 ;;
8685 esac
8686 fi
8687
8688 ### Compute the unexec source name from the object name.
8689 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8690
8691 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8692 # Assume not, until told otherwise.
8693 GNU_MALLOC=yes
8694 doug_lea_malloc=yes
8695 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8696 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8697 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700 cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h. */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708 #define malloc_get_state innocuous_malloc_get_state
8709
8710 /* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char malloc_get_state (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8714
8715 #ifdef __STDC__
8716 # include <limits.h>
8717 #else
8718 # include <assert.h>
8719 #endif
8720
8721 #undef malloc_get_state
8722
8723 /* Override any gcc2 internal prototype to avoid an error. */
8724 #ifdef __cplusplus
8725 extern "C"
8726 {
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730 char malloc_get_state ();
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8735 choke me
8736 #else
8737 char (*f) () = malloc_get_state;
8738 #endif
8739 #ifdef __cplusplus
8740 }
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return f != malloc_get_state;
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_func_malloc_get_state=yes
8773 else
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 ac_cv_func_malloc_get_state=no
8778 fi
8779 rm -f conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781 fi
8782 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8783 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8784 if test $ac_cv_func_malloc_get_state = yes; then
8785 :
8786 else
8787 doug_lea_malloc=no
8788 fi
8789
8790 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8791 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8792 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8803 #define malloc_set_state innocuous_malloc_set_state
8804
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char malloc_set_state (); below.
8807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 <limits.h> exists even on freestanding compilers. */
8809
8810 #ifdef __STDC__
8811 # include <limits.h>
8812 #else
8813 # include <assert.h>
8814 #endif
8815
8816 #undef malloc_set_state
8817
8818 /* Override any gcc2 internal prototype to avoid an error. */
8819 #ifdef __cplusplus
8820 extern "C"
8821 {
8822 #endif
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8825 char malloc_set_state ();
8826 /* The GNU C library defines this for functions which it implements
8827 to always fail with ENOSYS. Some functions are actually named
8828 something starting with __ and the normal name is an alias. */
8829 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8830 choke me
8831 #else
8832 char (*f) () = malloc_set_state;
8833 #endif
8834 #ifdef __cplusplus
8835 }
8836 #endif
8837
8838 int
8839 main ()
8840 {
8841 return f != malloc_set_state;
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_func_malloc_set_state=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 ac_cv_func_malloc_set_state=no
8873 fi
8874 rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8876 fi
8877 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8878 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8879 if test $ac_cv_func_malloc_set_state = yes; then
8880 :
8881 else
8882 doug_lea_malloc=no
8883 fi
8884
8885 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8886 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8887 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 extern void (* __after_morecore_hook)();
8897 int
8898 main ()
8899 {
8900 __after_morecore_hook = 0
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 (eval $ac_try) 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 emacs_cv_var___after_morecore_hook=yes
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 emacs_cv_var___after_morecore_hook=no
8932 fi
8933 rm -f conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 fi
8936 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8937 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8938 if test $emacs_cv_var___after_morecore_hook = no; then
8939 doug_lea_malloc=no
8940 fi
8941 if test "${system_malloc}" = "yes"; then
8942 GNU_MALLOC=no
8943 GNU_MALLOC_reason="
8944 (The GNU allocators don't work with this system configuration.)"
8945 fi
8946 if test "$doug_lea_malloc" = "yes" ; then
8947 if test "$GNU_MALLOC" = yes ; then
8948 GNU_MALLOC_reason="
8949 (Using Doug Lea's new malloc from the GNU C Library.)"
8950 fi
8951
8952 cat >>confdefs.h <<\_ACEOF
8953 #define DOUG_LEA_MALLOC 1
8954 _ACEOF
8955
8956 fi
8957
8958 if test x"${REL_ALLOC}" = x; then
8959 REL_ALLOC=${GNU_MALLOC}
8960 fi
8961
8962
8963
8964
8965 for ac_header in stdlib.h unistd.h
8966 do
8967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969 echo "$as_me:$LINENO: checking for $ac_header" >&5
8970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 fi
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8976 else
8977 # Is the header compilable?
8978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 $ac_includes_default
8987 #include <$ac_header>
8988 _ACEOF
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_header_compiler=yes
9011 else
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_header_compiler=no
9016 fi
9017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9019 echo "${ECHO_T}$ac_header_compiler" >&6
9020
9021 # Is the header present?
9022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 #include <$ac_header>
9031 _ACEOF
9032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } >/dev/null; then
9040 if test -s conftest.err; then
9041 ac_cpp_err=$ac_c_preproc_warn_flag
9042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9043 else
9044 ac_cpp_err=
9045 fi
9046 else
9047 ac_cpp_err=yes
9048 fi
9049 if test -z "$ac_cpp_err"; then
9050 ac_header_preproc=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_header_preproc=no
9056 fi
9057 rm -f conftest.err conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9059 echo "${ECHO_T}$ac_header_preproc" >&6
9060
9061 # So? What about this header?
9062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9063 yes:no: )
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9068 ac_header_preproc=yes
9069 ;;
9070 no:yes:* )
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9083 (
9084 cat <<\_ASBOX
9085 ## ------------------------------------------ ##
9086 ## Report this to the AC_PACKAGE_NAME lists. ##
9087 ## ------------------------------------------ ##
9088 _ASBOX
9089 ) |
9090 sed "s/^/$as_me: WARNING: /" >&2
9091 ;;
9092 esac
9093 echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 eval "$as_ac_Header=\$ac_header_preproc"
9099 fi
9100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9102
9103 fi
9104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9105 cat >>confdefs.h <<_ACEOF
9106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9107 _ACEOF
9108
9109 fi
9110
9111 done
9112
9113
9114 for ac_func in getpagesize
9115 do
9116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9117 echo "$as_me:$LINENO: checking for $ac_func" >&5
9118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9119 if eval "test \"\${$as_ac_var+set}\" = set"; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9130 #define $ac_func innocuous_$ac_func
9131
9132 /* System header to define __stub macros and hopefully few prototypes,
9133 which can conflict with char $ac_func (); below.
9134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9135 <limits.h> exists even on freestanding compilers. */
9136
9137 #ifdef __STDC__
9138 # include <limits.h>
9139 #else
9140 # include <assert.h>
9141 #endif
9142
9143 #undef $ac_func
9144
9145 /* Override any gcc2 internal prototype to avoid an error. */
9146 #ifdef __cplusplus
9147 extern "C"
9148 {
9149 #endif
9150 /* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9152 char $ac_func ();
9153 /* The GNU C library defines this for functions which it implements
9154 to always fail with ENOSYS. Some functions are actually named
9155 something starting with __ and the normal name is an alias. */
9156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9157 choke me
9158 #else
9159 char (*f) () = $ac_func;
9160 #endif
9161 #ifdef __cplusplus
9162 }
9163 #endif
9164
9165 int
9166 main ()
9167 {
9168 return f != $ac_func;
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 eval "$as_ac_var=yes"
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 eval "$as_ac_var=no"
9200 fi
9201 rm -f conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 fi
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9206 if test `eval echo '${'$as_ac_var'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9209 _ACEOF
9210
9211 fi
9212 done
9213
9214 echo "$as_me:$LINENO: checking for working mmap" >&5
9215 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9216 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 if test "$cross_compiling" = yes; then
9220 ac_cv_func_mmap_fixed_mapped=no
9221 else
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 /* malloc might have been renamed as rpl_malloc. */
9230 #undef malloc
9231
9232 /* Thanks to Mike Haertel and Jim Avera for this test.
9233 Here is a matrix of mmap possibilities:
9234 mmap private not fixed
9235 mmap private fixed at somewhere currently unmapped
9236 mmap private fixed at somewhere already mapped
9237 mmap shared not fixed
9238 mmap shared fixed at somewhere currently unmapped
9239 mmap shared fixed at somewhere already mapped
9240 For private mappings, we should verify that changes cannot be read()
9241 back from the file, nor mmap's back from the file at a different
9242 address. (There have been systems where private was not correctly
9243 implemented like the infamous i386 svr4.0, and systems where the
9244 VM page cache was not coherent with the file system buffer cache
9245 like early versions of FreeBSD and possibly contemporary NetBSD.)
9246 For shared mappings, we should conversely verify that changes get
9247 propagated back to all the places they're supposed to be.
9248
9249 Grep wants private fixed already mapped.
9250 The main things grep needs to know about mmap are:
9251 * does it exist and is it safe to write into the mmap'd area
9252 * how to use it (BSD variants) */
9253
9254 #include <fcntl.h>
9255 #include <sys/mman.h>
9256
9257 #if !STDC_HEADERS && !HAVE_STDLIB_H
9258 char *malloc ();
9259 #endif
9260
9261 /* This mess was copied from the GNU getpagesize.h. */
9262 #if !HAVE_GETPAGESIZE
9263 /* Assume that all systems that can run configure have sys/param.h. */
9264 # if !HAVE_SYS_PARAM_H
9265 # define HAVE_SYS_PARAM_H 1
9266 # endif
9267
9268 # ifdef _SC_PAGESIZE
9269 # define getpagesize() sysconf(_SC_PAGESIZE)
9270 # else /* no _SC_PAGESIZE */
9271 # if HAVE_SYS_PARAM_H
9272 # include <sys/param.h>
9273 # ifdef EXEC_PAGESIZE
9274 # define getpagesize() EXEC_PAGESIZE
9275 # else /* no EXEC_PAGESIZE */
9276 # ifdef NBPG
9277 # define getpagesize() NBPG * CLSIZE
9278 # ifndef CLSIZE
9279 # define CLSIZE 1
9280 # endif /* no CLSIZE */
9281 # else /* no NBPG */
9282 # ifdef NBPC
9283 # define getpagesize() NBPC
9284 # else /* no NBPC */
9285 # ifdef PAGESIZE
9286 # define getpagesize() PAGESIZE
9287 # endif /* PAGESIZE */
9288 # endif /* no NBPC */
9289 # endif /* no NBPG */
9290 # endif /* no EXEC_PAGESIZE */
9291 # else /* no HAVE_SYS_PARAM_H */
9292 # define getpagesize() 8192 /* punt totally */
9293 # endif /* no HAVE_SYS_PARAM_H */
9294 # endif /* no _SC_PAGESIZE */
9295
9296 #endif /* no HAVE_GETPAGESIZE */
9297
9298 int
9299 main ()
9300 {
9301 char *data, *data2, *data3;
9302 int i, pagesize;
9303 int fd;
9304
9305 pagesize = getpagesize ();
9306
9307 /* First, make a file with some known garbage in it. */
9308 data = (char *) malloc (pagesize);
9309 if (!data)
9310 exit (1);
9311 for (i = 0; i < pagesize; ++i)
9312 *(data + i) = rand ();
9313 umask (0);
9314 fd = creat ("conftest.mmap", 0600);
9315 if (fd < 0)
9316 exit (1);
9317 if (write (fd, data, pagesize) != pagesize)
9318 exit (1);
9319 close (fd);
9320
9321 /* Next, try to mmap the file at a fixed address which already has
9322 something else allocated at it. If we can, also make sure that
9323 we see the same garbage. */
9324 fd = open ("conftest.mmap", O_RDWR);
9325 if (fd < 0)
9326 exit (1);
9327 data2 = (char *) malloc (2 * pagesize);
9328 if (!data2)
9329 exit (1);
9330 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9331 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9332 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9333 exit (1);
9334 for (i = 0; i < pagesize; ++i)
9335 if (*(data + i) != *(data2 + i))
9336 exit (1);
9337
9338 /* Finally, make sure that changes to the mapped area do not
9339 percolate back to the file as seen by read(). (This is a bug on
9340 some variants of i386 svr4.0.) */
9341 for (i = 0; i < pagesize; ++i)
9342 *(data2 + i) = *(data2 + i) + 1;
9343 data3 = (char *) malloc (pagesize);
9344 if (!data3)
9345 exit (1);
9346 if (read (fd, data3, pagesize) != pagesize)
9347 exit (1);
9348 for (i = 0; i < pagesize; ++i)
9349 if (*(data + i) != *(data3 + i))
9350 exit (1);
9351 close (fd);
9352 exit (0);
9353 }
9354 _ACEOF
9355 rm -f conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_func_mmap_fixed_mapped=yes
9367 else
9368 echo "$as_me: program exited with status $ac_status" >&5
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 ( exit $ac_status )
9373 ac_cv_func_mmap_fixed_mapped=no
9374 fi
9375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 fi
9377 fi
9378 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9379 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9380 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9381
9382 cat >>confdefs.h <<\_ACEOF
9383 #define HAVE_MMAP 1
9384 _ACEOF
9385
9386 fi
9387 rm -f conftest.mmap
9388
9389 if test $use_mmap_for_buffers = yes; then
9390 REL_ALLOC=no
9391 fi
9392
9393 LIBS="$libsrc_libs $LIBS"
9394
9395
9396 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9397 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9398 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 ac_check_lib_save_LIBS=$LIBS
9402 LIBS="-ldnet $LIBS"
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409
9410 /* Override any gcc2 internal prototype to avoid an error. */
9411 #ifdef __cplusplus
9412 extern "C"
9413 #endif
9414 /* We use char because int might match the return type of a gcc2
9415 builtin and then its argument prototype would still apply. */
9416 char dnet_ntoa ();
9417 int
9418 main ()
9419 {
9420 dnet_ntoa ();
9421 ;
9422 return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_lib_dnet_dnet_ntoa=yes
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_cv_lib_dnet_dnet_ntoa=no
9452 fi
9453 rm -f conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 LIBS=$ac_check_lib_save_LIBS
9456 fi
9457 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9458 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9459 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_LIBDNET 1
9462 _ACEOF
9463
9464 LIBS="-ldnet $LIBS"
9465
9466 fi
9467
9468
9469 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9470 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9471 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-lXbsd $LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482
9483
9484 int
9485 main ()
9486 {
9487 main ();
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 (eval $ac_try) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_lib_Xbsd_main=yes
9514 else
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 ac_cv_lib_Xbsd_main=no
9519 fi
9520 rm -f conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9525 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9526 if test $ac_cv_lib_Xbsd_main = yes; then
9527 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9528 fi
9529
9530
9531
9532 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9533 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9534 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 ac_check_lib_save_LIBS=$LIBS
9538 LIBS="-lpthreads $LIBS"
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h. */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545
9546 /* Override any gcc2 internal prototype to avoid an error. */
9547 #ifdef __cplusplus
9548 extern "C"
9549 #endif
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552 char cma_open ();
9553 int
9554 main ()
9555 {
9556 cma_open ();
9557 ;
9558 return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_pthreads_cma_open=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 ac_cv_lib_pthreads_cma_open=no
9588 fi
9589 rm -f conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9594 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9595 if test $ac_cv_lib_pthreads_cma_open = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_LIBPTHREADS 1
9598 _ACEOF
9599
9600 LIBS="-lpthreads $LIBS"
9601
9602 fi
9603
9604
9605 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9606 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9607 if test -d /usr/X386/include; then
9608 HAVE_XFREE386=yes
9609 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9610 else
9611 HAVE_XFREE386=no
9612 fi
9613 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9614 echo "${ECHO_T}$HAVE_XFREE386" >&6
9615
9616
9617 case ${host_os} in
9618 aix*)
9619 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9620 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9621 if test "${gdb_cv_bigtoc+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624
9625 case $GCC in
9626 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9627 *) gdb_cv_bigtoc=-bbigtoc ;;
9628 esac
9629
9630 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637
9638 int
9639 main ()
9640 {
9641 int i;
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 :
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 gdb_cv_bigtoc=
9673 fi
9674 rm -f conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676
9677 fi
9678 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9679 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9680 ;;
9681 esac
9682
9683 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9684 # used for the tests that follow. We set them back to REAL_CFLAGS and
9685 # REAL_CPPFLAGS later on.
9686
9687 REAL_CPPFLAGS="$CPPFLAGS"
9688
9689 if test "${HAVE_X11}" = "yes"; then
9690 DEFS="$C_SWITCH_X_SITE $DEFS"
9691 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9692 LIBS="$LIBX $LIBS"
9693 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9694 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9695
9696 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9697 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9698 # but it's more convenient here to set LD_RUN_PATH
9699 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9700 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9701 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9702 export LD_RUN_PATH
9703 fi
9704
9705 if test "${opsys}" = "gnu-linux"; then
9706 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9707 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714
9715 int
9716 main ()
9717 {
9718 XOpenDisplay ("foo");
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 xlinux_first_failure=no
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 xlinux_first_failure=yes
9750 fi
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 if test "${xlinux_first_failure}" = "yes"; then
9754 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9755 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9756 OLD_CPPFLAGS="$CPPFLAGS"
9757 OLD_LIBS="$LIBS"
9758 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9759 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9760 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9761 LIBS="$LIBS -b i486-linuxaout"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768
9769 int
9770 main ()
9771 {
9772 XOpenDisplay ("foo");
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 xlinux_second_failure=no
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 xlinux_second_failure=yes
9804 fi
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 if test "${xlinux_second_failure}" = "yes"; then
9808 # If we get the same failure with -b, there is no use adding -b.
9809 # So take it out. This plays safe.
9810 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9811 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9812 CPPFLAGS="$OLD_CPPFLAGS"
9813 LIBS="$OLD_LIBS"
9814 echo "$as_me:$LINENO: result: no" >&5
9815 echo "${ECHO_T}no" >&6
9816 else
9817 echo "$as_me:$LINENO: result: yes" >&5
9818 echo "${ECHO_T}yes" >&6
9819 fi
9820 else
9821 echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6
9823 fi
9824 fi
9825
9826 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9827 # header files included from there.
9828 echo "$as_me:$LINENO: checking for Xkb" >&5
9829 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <X11/Xlib.h>
9837 #include <X11/XKBlib.h>
9838 int
9839 main ()
9840 {
9841 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 emacs_xkb=yes
9868 else
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 emacs_xkb=no
9873 fi
9874 rm -f conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9877 echo "${ECHO_T}$emacs_xkb" >&6
9878 if test $emacs_xkb = yes; then
9879
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_XKBGETKEYBOARD 1
9882 _ACEOF
9883
9884 fi
9885
9886
9887
9888
9889
9890 for ac_func in XrmSetDatabase XScreenResourceString \
9891 XScreenNumberOfScreen XSetWMProtocols
9892 do
9893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9894 echo "$as_me:$LINENO: checking for $ac_func" >&5
9895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9896 if eval "test \"\${$as_ac_var+set}\" = set"; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h. */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9907 #define $ac_func innocuous_$ac_func
9908
9909 /* System header to define __stub macros and hopefully few prototypes,
9910 which can conflict with char $ac_func (); below.
9911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9912 <limits.h> exists even on freestanding compilers. */
9913
9914 #ifdef __STDC__
9915 # include <limits.h>
9916 #else
9917 # include <assert.h>
9918 #endif
9919
9920 #undef $ac_func
9921
9922 /* Override any gcc2 internal prototype to avoid an error. */
9923 #ifdef __cplusplus
9924 extern "C"
9925 {
9926 #endif
9927 /* We use char because int might match the return type of a gcc2
9928 builtin and then its argument prototype would still apply. */
9929 char $ac_func ();
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 choke me
9935 #else
9936 char (*f) () = $ac_func;
9937 #endif
9938 #ifdef __cplusplus
9939 }
9940 #endif
9941
9942 int
9943 main ()
9944 {
9945 return f != $ac_func;
9946 ;
9947 return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 eval "$as_ac_var=yes"
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 eval "$as_ac_var=no"
9977 fi
9978 rm -f conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 fi
9981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9983 if test `eval echo '${'$as_ac_var'}'` = yes; then
9984 cat >>confdefs.h <<_ACEOF
9985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9986 _ACEOF
9987
9988 fi
9989 done
9990
9991 fi
9992
9993 if test "${window_system}" = "x11"; then
9994 echo "$as_me:$LINENO: checking X11 version 6" >&5
9995 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9996 if test "${emacs_cv_x11_version_6+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #include <X11/Xlib.h>
10006 int
10007 main ()
10008 {
10009 #if XlibSpecificationRelease < 6
10010 fail;
10011 #endif
10012
10013 ;
10014 return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 emacs_cv_x11_version_6=yes
10039 else
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 emacs_cv_x11_version_6=no
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 fi
10048
10049 if test $emacs_cv_x11_version_6 = yes; then
10050 echo "$as_me:$LINENO: result: 6 or newer" >&5
10051 echo "${ECHO_T}6 or newer" >&6
10052
10053 cat >>confdefs.h <<\_ACEOF
10054 #define HAVE_X11R6 1
10055 _ACEOF
10056
10057 else
10058 echo "$as_me:$LINENO: result: before 6" >&5
10059 echo "${ECHO_T}before 6" >&6
10060 fi
10061 fi
10062
10063 if test "${window_system}" = "x11"; then
10064 echo "$as_me:$LINENO: checking X11 version 5" >&5
10065 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10066 if test "${emacs_cv_x11_version_5+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <X11/Xlib.h>
10076 int
10077 main ()
10078 {
10079 #if XlibSpecificationRelease < 5
10080 fail;
10081 #endif
10082
10083 ;
10084 return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 emacs_cv_x11_version_5=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113 emacs_cv_x11_version_5=no
10114 fi
10115 rm -f conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 fi
10118
10119 if test $emacs_cv_x11_version_5 = yes; then
10120 echo "$as_me:$LINENO: result: 5 or newer" >&5
10121 echo "${ECHO_T}5 or newer" >&6
10122 HAVE_X11R5=yes
10123
10124 cat >>confdefs.h <<\_ACEOF
10125 #define HAVE_X11R5 1
10126 _ACEOF
10127
10128 else
10129 HAVE_X11R5=no
10130 echo "$as_me:$LINENO: result: before 5" >&5
10131 echo "${ECHO_T}before 5" >&6
10132 fi
10133 fi
10134
10135
10136
10137 HAVE_GTK=no
10138 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10139 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10140 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10141 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10142 { (exit 1); exit 1; }; };
10143 fi
10144 GLIB_REQUIRED=2.4
10145 GTK_REQUIRED=2.4
10146 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10147
10148 if test "X${with_pkg_config_prog}" != X; then
10149 PKG_CONFIG="${with_pkg_config_prog}"
10150 fi
10151
10152 succeeded=no
10153
10154 if test -z "$PKG_CONFIG"; then
10155 # Extract the first word of "pkg-config", so it can be a program name with args.
10156 set dummy pkg-config; ac_word=$2
10157 echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10159 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 case $PKG_CONFIG in
10163 [\\/]* | ?:[\\/]*)
10164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10165 ;;
10166 *)
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10177 fi
10178 done
10179 done
10180
10181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10182 ;;
10183 esac
10184 fi
10185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10186
10187 if test -n "$PKG_CONFIG"; then
10188 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10189 echo "${ECHO_T}$PKG_CONFIG" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6
10193 fi
10194
10195 fi
10196
10197 if test "$PKG_CONFIG" = "no" ; then
10198 echo "*** The pkg-config script could not be found. Make sure it is"
10199 echo "*** in your path, or give the full path to pkg-config with"
10200 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10201 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10202 else
10203 PKG_CONFIG_MIN_VERSION=0.9.0
10204 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10205 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10206 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10207
10208 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210 echo "${ECHO_T}yes" >&6
10211 succeeded=yes
10212
10213 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10214 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10215 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10216 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10217 echo "${ECHO_T}$GTK_CFLAGS" >&6
10218
10219 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10220 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10221 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10222 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10223 echo "${ECHO_T}$GTK_LIBS" >&6
10224 else
10225 GTK_CFLAGS=""
10226 GTK_LIBS=""
10227 ## If we have a custom action on failure, don't print errors, but
10228 ## do set a variable so people can do so.
10229 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10230 echo $GTK_PKG_ERRORS
10231 fi
10232
10233
10234
10235 else
10236 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10237 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10238 fi
10239 fi
10240
10241 if test $succeeded = yes; then
10242 :
10243 else
10244 { { 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
10245 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;}
10246 { (exit 1); exit 1; }; }
10247 fi
10248
10249
10250
10251 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10252 CFLAGS="$CFLAGS $GTK_CFLAGS"
10253 LIBS="$GTK_LIBS $LIBS"
10254 HAVE_GTK=yes
10255
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_GTK 1
10258 _ACEOF
10259
10260 USE_X_TOOLKIT=none
10261
10262 if test "$with_toolkit_scroll_bars" != no; then
10263 with_toolkit_scroll_bars=yes
10264 fi
10265
10266 HAVE_GTK_MULTIDISPLAY=no
10267
10268 HAVE_GTK_FILE_SELECTION=no
10269
10270 for ac_func in gtk_file_selection_new
10271 do
10272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10273 echo "$as_me:$LINENO: checking for $ac_func" >&5
10274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10275 if eval "test \"\${$as_ac_var+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10286 #define $ac_func innocuous_$ac_func
10287
10288 /* System header to define __stub macros and hopefully few prototypes,
10289 which can conflict with char $ac_func (); below.
10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10291 <limits.h> exists even on freestanding compilers. */
10292
10293 #ifdef __STDC__
10294 # include <limits.h>
10295 #else
10296 # include <assert.h>
10297 #endif
10298
10299 #undef $ac_func
10300
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 #ifdef __cplusplus
10303 extern "C"
10304 {
10305 #endif
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char $ac_func ();
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10313 choke me
10314 #else
10315 char (*f) () = $ac_func;
10316 #endif
10317 #ifdef __cplusplus
10318 }
10319 #endif
10320
10321 int
10322 main ()
10323 {
10324 return f != $ac_func;
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; } &&
10344 { ac_try='test -s conftest$ac_exeext'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 eval "$as_ac_var=yes"
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 eval "$as_ac_var=no"
10356 fi
10357 rm -f conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 fi
10360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10362 if test `eval echo '${'$as_ac_var'}'` = yes; then
10363 cat >>confdefs.h <<_ACEOF
10364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10365 _ACEOF
10366 HAVE_GTK_FILE_SELECTION=yes
10367 fi
10368 done
10369
10370
10371 HAVE_GTK_FILE_CHOOSER=no
10372
10373 for ac_func in gtk_file_chooser_dialog_new
10374 do
10375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376 echo "$as_me:$LINENO: checking for $ac_func" >&5
10377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_var+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10389 #define $ac_func innocuous_$ac_func
10390
10391 /* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char $ac_func (); below.
10393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394 <limits.h> exists even on freestanding compilers. */
10395
10396 #ifdef __STDC__
10397 # include <limits.h>
10398 #else
10399 # include <assert.h>
10400 #endif
10401
10402 #undef $ac_func
10403
10404 /* Override any gcc2 internal prototype to avoid an error. */
10405 #ifdef __cplusplus
10406 extern "C"
10407 {
10408 #endif
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411 char $ac_func ();
10412 /* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10416 choke me
10417 #else
10418 char (*f) () = $ac_func;
10419 #endif
10420 #ifdef __cplusplus
10421 }
10422 #endif
10423
10424 int
10425 main ()
10426 {
10427 return f != $ac_func;
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434 (eval $ac_link) 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458 eval "$as_ac_var=no"
10459 fi
10460 rm -f conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 _ACEOF
10469 HAVE_GTK_FILE_CHOOSER=yes
10470 fi
10471 done
10472
10473
10474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10476
10477 cat >>confdefs.h <<\_ACEOF
10478 #define HAVE_GTK_FILE_BOTH 1
10479 _ACEOF
10480
10481 fi
10482
10483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10484 HAVE_GTK_AND_PTHREAD=no
10485
10486 for ac_header in pthread.h
10487 do
10488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10490 echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 fi
10495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10497 else
10498 # Is the header compilable?
10499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h. */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 $ac_includes_default
10508 #include <$ac_header>
10509 _ACEOF
10510 rm -f conftest.$ac_objext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try='test -s conftest.$ac_objext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_header_compiler=yes
10532 else
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536 ac_header_compiler=no
10537 fi
10538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10540 echo "${ECHO_T}$ac_header_compiler" >&6
10541
10542 # Is the header present?
10543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <$ac_header>
10552 _ACEOF
10553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } >/dev/null; then
10561 if test -s conftest.err; then
10562 ac_cpp_err=$ac_c_preproc_warn_flag
10563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10564 else
10565 ac_cpp_err=
10566 fi
10567 else
10568 ac_cpp_err=yes
10569 fi
10570 if test -z "$ac_cpp_err"; then
10571 ac_header_preproc=yes
10572 else
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576 ac_header_preproc=no
10577 fi
10578 rm -f conftest.err conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10580 echo "${ECHO_T}$ac_header_preproc" >&6
10581
10582 # So? What about this header?
10583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10584 yes:no: )
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10589 ac_header_preproc=yes
10590 ;;
10591 no:yes:* )
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10604 (
10605 cat <<\_ASBOX
10606 ## ------------------------------------------ ##
10607 ## Report this to the AC_PACKAGE_NAME lists. ##
10608 ## ------------------------------------------ ##
10609 _ASBOX
10610 ) |
10611 sed "s/^/$as_me: WARNING: /" >&2
10612 ;;
10613 esac
10614 echo "$as_me:$LINENO: checking for $ac_header" >&5
10615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 eval "$as_ac_Header=\$ac_header_preproc"
10620 fi
10621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10623
10624 fi
10625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10628 _ACEOF
10629
10630 fi
10631
10632 done
10633
10634 if test "$ac_cv_header_pthread_h"; then
10635 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10636 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10637 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lpthread $LIBS"
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648
10649 /* Override any gcc2 internal prototype to avoid an error. */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char pthread_self ();
10656 int
10657 main ()
10658 {
10659 pthread_self ();
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest$ac_exeext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_lib_pthread_pthread_self=yes
10686 else
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 ac_cv_lib_pthread_pthread_self=no
10691 fi
10692 rm -f conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10695 fi
10696 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10697 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10698 if test $ac_cv_lib_pthread_pthread_self = yes; then
10699 HAVE_GTK_AND_PTHREAD=yes
10700 fi
10701
10702 fi
10703 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10704 GTK_LIBS="$GTK_LIBS -lpthread"
10705
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_GTK_AND_PTHREAD 1
10708 _ACEOF
10709
10710 fi
10711 fi
10712 fi
10713
10714 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10715 if test x"${HAVE_X11R5}" = xyes; then
10716 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10717 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10718 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727
10728 #include <X11/Intrinsic.h>
10729 #include <X11/Xaw/Simple.h>
10730 int
10731 main ()
10732 {
10733
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740 (eval $ac_link) 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest$ac_exeext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 emacs_cv_x11_version_5_with_xaw=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 emacs_cv_x11_version_5_with_xaw=no
10765 fi
10766 rm -f conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 fi
10769
10770 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10771 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10772 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10773 USE_X_TOOLKIT=LUCID
10774 else
10775 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10776 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10777 USE_X_TOOLKIT=none
10778 fi
10779 else
10780 USE_X_TOOLKIT=none
10781 fi
10782 fi
10783
10784 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10785
10786 if test "${USE_X_TOOLKIT}" != "none"; then
10787 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10788 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10789 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <X11/Intrinsic.h>
10799 int
10800 main ()
10801 {
10802 #if XtSpecificationRelease < 6
10803 fail;
10804 #endif
10805
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext conftest$ac_exeext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10812 (eval $ac_link) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest$ac_exeext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 emacs_cv_x11_toolkit_version_6=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 emacs_cv_x11_toolkit_version_6=no
10837 fi
10838 rm -f conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 fi
10841
10842 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10843 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10844 echo "$as_me:$LINENO: result: 6 or newer" >&5
10845 echo "${ECHO_T}6 or newer" >&6
10846
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_X11XTR6 1
10849 _ACEOF
10850
10851 else
10852 echo "$as_me:$LINENO: result: before 6" >&5
10853 echo "${ECHO_T}before 6" >&6
10854 fi
10855
10856 OLDLIBS="$LIBS"
10857 if test x$HAVE_X11XTR6 = xyes; then
10858 LIBS="-lXt -lSM -lICE $LIBS"
10859 else
10860 LIBS="-lXt $LIBS"
10861 fi
10862
10863 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10864 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10865 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868 ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-lXmu $LIBS"
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876
10877 /* Override any gcc2 internal prototype to avoid an error. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 /* We use char because int might match the return type of a gcc2
10882 builtin and then its argument prototype would still apply. */
10883 char XmuConvertStandardSelection ();
10884 int
10885 main ()
10886 {
10887 XmuConvertStandardSelection ();
10888 ;
10889 return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10919 fi
10920 rm -f conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LIBS=$ac_check_lib_save_LIBS
10923 fi
10924 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10925 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10926 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_LIBXMU 1
10929 _ACEOF
10930
10931 LIBS="-lXmu $LIBS"
10932
10933 fi
10934
10935 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10936 fi
10937
10938 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10939 if test "${HAVE_X11}" = "yes"; then
10940 if test "${USE_X_TOOLKIT}" != "none"; then
10941
10942 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10943 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10944 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-lXext $LIBS"
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962 char XShapeQueryExtension ();
10963 int
10964 main ()
10965 {
10966 XShapeQueryExtension ();
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 ac_cv_lib_Xext_XShapeQueryExtension=yes
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10996
10997 ac_cv_lib_Xext_XShapeQueryExtension=no
10998 fi
10999 rm -f conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11004 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11005 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_LIBXEXT 1
11008 _ACEOF
11009
11010 LIBS="-lXext $LIBS"
11011
11012 fi
11013
11014 fi
11015 fi
11016
11017 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11018 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11019 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11020 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <Xm/Xm.h>
11030 int
11031 main ()
11032 {
11033 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11034 int x = 5;
11035 #else
11036 Motif version prior to 2.1.
11037 #endif
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 emacs_cv_motif_version_2_1=yes
11064 else
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 emacs_cv_motif_version_2_1=no
11069 fi
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071 fi
11072 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11073 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11074 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11075 if test $emacs_cv_motif_version_2_1 = yes; then
11076 HAVE_LIBXP=no
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_MOTIF_2_1 1
11080 _ACEOF
11081
11082 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11083 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11084 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-lXp $LIBS"
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095
11096 /* Override any gcc2 internal prototype to avoid an error. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 /* We use char because int might match the return type of a gcc2
11101 builtin and then its argument prototype would still apply. */
11102 char XpCreateContext ();
11103 int
11104 main ()
11105 {
11106 XpCreateContext ();
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113 (eval $ac_link) 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; } &&
11126 { ac_try='test -s conftest$ac_exeext'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }; then
11132 ac_cv_lib_Xp_XpCreateContext=yes
11133 else
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11136
11137 ac_cv_lib_Xp_XpCreateContext=no
11138 fi
11139 rm -f conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11142 fi
11143 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11144 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11145 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11146 HAVE_LIBXP=yes
11147 fi
11148
11149 if test ${HAVE_LIBXP} = yes; then
11150
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_LIBXP 1
11153 _ACEOF
11154
11155 fi
11156 else
11157 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11158 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11159 if test "${emacs_cv_lesstif+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 # We put this in CFLAGS temporarily to precede other -I options
11163 # that might be in CFLAGS temporarily.
11164 # We put this in CPPFLAGS where it precedes the other -I options.
11165 OLD_CPPFLAGS=$CPPFLAGS
11166 OLD_CFLAGS=$CFLAGS
11167 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11168 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11176 int
11177 main ()
11178 {
11179 int x = 5;
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186 (eval $ac_compile) 2>conftest.er1
11187 ac_status=$?
11188 grep -v '^ *+' conftest.er1 >conftest.err
11189 rm -f conftest.er1
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 emacs_cv_lesstif=yes
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 emacs_cv_lesstif=no
11211 fi
11212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11213 fi
11214 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11215 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11216 if test $emacs_cv_lesstif = yes; then
11217 # Make sure this -I option remains in CPPFLAGS after it is set
11218 # back to REAL_CPPFLAGS.
11219 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11220 # have those other -I options anyway. Ultimately, having this
11221 # directory ultimately in CPPFLAGS will be enough.
11222 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11223 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11224 else
11225 CFLAGS=$OLD_CFLAGS
11226 CPPFLAGS=$OLD_CPPFLAGS
11227 fi
11228 fi
11229 fi
11230
11231 ### Is -lXaw3d available?
11232 HAVE_XAW3D=no
11233 if test "${HAVE_X11}" = "yes"; then
11234 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11235 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11236 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11237 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <X11/Xaw3d/Scrollbar.h>
11247 _ACEOF
11248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null; then
11256 if test -s conftest.err; then
11257 ac_cpp_err=$ac_c_preproc_warn_flag
11258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11259 else
11260 ac_cpp_err=
11261 fi
11262 else
11263 ac_cpp_err=yes
11264 fi
11265 if test -z "$ac_cpp_err"; then
11266 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11272 fi
11273 rm -f conftest.err conftest.$ac_ext
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11276 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11277 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11278 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11279 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11280 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283 ac_check_lib_save_LIBS=$LIBS
11284 LIBS="-lXaw3d $LIBS"
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291
11292 /* Override any gcc2 internal prototype to avoid an error. */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 /* We use char because int might match the return type of a gcc2
11297 builtin and then its argument prototype would still apply. */
11298 char XawScrollbarSetThumb ();
11299 int
11300 main ()
11301 {
11302 XawScrollbarSetThumb ();
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11334 fi
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11340 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11341 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11342 HAVE_XAW3D=yes
11343 fi
11344
11345 fi
11346
11347
11348 if test "${HAVE_XAW3D}" = "yes"; then
11349
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_XAW3D 1
11352 _ACEOF
11353
11354 fi
11355 fi
11356 fi
11357
11358
11359
11360 USE_TOOLKIT_SCROLL_BARS=no
11361 if test "${with_toolkit_scroll_bars}" != "no"; then
11362 if test "${USE_X_TOOLKIT}" != "none"; then
11363 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11364 cat >>confdefs.h <<\_ACEOF
11365 #define USE_TOOLKIT_SCROLL_BARS 1
11366 _ACEOF
11367
11368 HAVE_XAW3D=no
11369 USE_TOOLKIT_SCROLL_BARS=yes
11370 elif test "${HAVE_XAW3D}" = "yes"; then
11371 cat >>confdefs.h <<\_ACEOF
11372 #define USE_TOOLKIT_SCROLL_BARS 1
11373 _ACEOF
11374
11375 USE_TOOLKIT_SCROLL_BARS=yes
11376 fi
11377 elif test "${HAVE_GTK}" = "yes"; then
11378 cat >>confdefs.h <<\_ACEOF
11379 #define USE_TOOLKIT_SCROLL_BARS 1
11380 _ACEOF
11381
11382 USE_TOOLKIT_SCROLL_BARS=yes
11383 elif test "${HAVE_CARBON}" = "yes"; then
11384 cat >>confdefs.h <<\_ACEOF
11385 #define USE_TOOLKIT_SCROLL_BARS 1
11386 _ACEOF
11387
11388 USE_TOOLKIT_SCROLL_BARS=yes
11389 fi
11390 fi
11391
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h. */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398
11399 #include <X11/Xlib.h>
11400 #include <X11/Xresource.h>
11401 int
11402 main ()
11403 {
11404 XIMProc callback;
11405 ;
11406 return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 HAVE_XIM=yes
11431
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_XIM 1
11434 _ACEOF
11435
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 HAVE_XIM=no
11441 fi
11442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11443
11444
11445 if test "${with_xim}" != "no"; then
11446
11447 cat >>confdefs.h <<\_ACEOF
11448 #define USE_XIM 1
11449 _ACEOF
11450
11451 fi
11452
11453
11454 if test "${HAVE_XIM}" != "no"; then
11455 late_CFLAGS=$CFLAGS
11456 if test "$GCC" = yes; then
11457 CFLAGS="$CFLAGS --pedantic-errors"
11458 fi
11459 cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465
11466 #include <X11/Xlib.h>
11467 #include <X11/Xresource.h>
11468 int
11469 main ()
11470 {
11471 Display *display;
11472 XrmDatabase db;
11473 char *res_name;
11474 char *res_class;
11475 XIMProc callback;
11476 XPointer *client_data;
11477 #ifndef __GNUC__
11478 /* If we're not using GCC, it's probably not XFree86, and this is
11479 probably right, but we can't use something like --pedantic-errors. */
11480 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11481 char*, XIMProc, XPointer*);
11482 #endif
11483 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11484 client_data);
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 emacs_cv_arg6_star=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 fi
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517
11518 if test "$emacs_cv_arg6_star" = yes; then
11519 cat >>confdefs.h <<\_ACEOF
11520 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11521 _ACEOF
11522
11523 else
11524 cat >>confdefs.h <<\_ACEOF
11525 #define XRegisterIMInstantiateCallback_arg6 XPointer
11526 _ACEOF
11527
11528 fi
11529 CFLAGS=$late_CFLAGS
11530 fi
11531
11532 ### Use -lXpm if available, unless `--with-xpm=no'.
11533 HAVE_XPM=no
11534 if test "${HAVE_X11}" = "yes"; then
11535 if test "${with_xpm}" != "no"; then
11536 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11537 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11538 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11539 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 fi
11542 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11543 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11544 else
11545 # Is the header compilable?
11546 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11547 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h. */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 $ac_includes_default
11555 #include <X11/xpm.h>
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 ac_header_compiler=yes
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 ac_header_compiler=no
11584 fi
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11587 echo "${ECHO_T}$ac_header_compiler" >&6
11588
11589 # Is the header present?
11590 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11591 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 #include <X11/xpm.h>
11599 _ACEOF
11600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null; then
11608 if test -s conftest.err; then
11609 ac_cpp_err=$ac_c_preproc_warn_flag
11610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11611 else
11612 ac_cpp_err=
11613 fi
11614 else
11615 ac_cpp_err=yes
11616 fi
11617 if test -z "$ac_cpp_err"; then
11618 ac_header_preproc=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ac_header_preproc=no
11624 fi
11625 rm -f conftest.err conftest.$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11627 echo "${ECHO_T}$ac_header_preproc" >&6
11628
11629 # So? What about this header?
11630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11631 yes:no: )
11632 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11633 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11635 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11636 ac_header_preproc=yes
11637 ;;
11638 no:yes:* )
11639 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11640 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11642 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11644 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11646 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11648 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11650 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11651 (
11652 cat <<\_ASBOX
11653 ## ------------------------------------------ ##
11654 ## Report this to the AC_PACKAGE_NAME lists. ##
11655 ## ------------------------------------------ ##
11656 _ASBOX
11657 ) |
11658 sed "s/^/$as_me: WARNING: /" >&2
11659 ;;
11660 esac
11661 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11662 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11663 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 ac_cv_header_X11_xpm_h=$ac_header_preproc
11667 fi
11668 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11669 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11670
11671 fi
11672 if test $ac_cv_header_X11_xpm_h = yes; then
11673 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11674 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11675 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-lXpm -lX11 $LIBS"
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686
11687 /* Override any gcc2 internal prototype to avoid an error. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 /* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11693 char XpmReadFileToPixmap ();
11694 int
11695 main ()
11696 {
11697 XpmReadFileToPixmap ();
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11727
11728 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11729 fi
11730 rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11733 fi
11734 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11735 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11736 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11737 HAVE_XPM=yes
11738 fi
11739
11740 fi
11741
11742
11743 if test "${HAVE_XPM}" = "yes"; then
11744 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11745 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 #include "X11/xpm.h"
11753 #ifndef XpmReturnAllocPixels
11754 no_return_alloc_pixels
11755 #endif
11756
11757 _ACEOF
11758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11760 HAVE_XPM=no
11761 else
11762 HAVE_XPM=yes
11763 fi
11764 rm -f conftest*
11765
11766
11767 if test "${HAVE_XPM}" = "yes"; then
11768 echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6
11770 else
11771 echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6
11773 fi
11774 fi
11775 fi
11776
11777 if test "${HAVE_XPM}" = "yes"; then
11778
11779 cat >>confdefs.h <<\_ACEOF
11780 #define HAVE_XPM 1
11781 _ACEOF
11782
11783 fi
11784 fi
11785
11786 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11787 HAVE_JPEG=no
11788 if test "${HAVE_X11}" = "yes"; then
11789 if test "${with_jpeg}" != "no"; then
11790 if test "${ac_cv_header_jerror_h+set}" = set; then
11791 echo "$as_me:$LINENO: checking for jerror.h" >&5
11792 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11793 if test "${ac_cv_header_jerror_h+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11797 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11798 else
11799 # Is the header compilable?
11800 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11801 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <jerror.h>
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_header_compiler=yes
11833 else
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 ac_header_compiler=no
11838 fi
11839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11841 echo "${ECHO_T}$ac_header_compiler" >&6
11842
11843 # Is the header present?
11844 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11845 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 #include <jerror.h>
11853 _ACEOF
11854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } >/dev/null; then
11862 if test -s conftest.err; then
11863 ac_cpp_err=$ac_c_preproc_warn_flag
11864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11865 else
11866 ac_cpp_err=
11867 fi
11868 else
11869 ac_cpp_err=yes
11870 fi
11871 if test -z "$ac_cpp_err"; then
11872 ac_header_preproc=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 ac_header_preproc=no
11878 fi
11879 rm -f conftest.err conftest.$ac_ext
11880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11881 echo "${ECHO_T}$ac_header_preproc" >&6
11882
11883 # So? What about this header?
11884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11885 yes:no: )
11886 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11887 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11889 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11890 ac_header_preproc=yes
11891 ;;
11892 no:yes:* )
11893 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11894 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11896 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11898 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11900 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11902 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11904 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11905 (
11906 cat <<\_ASBOX
11907 ## ------------------------------------------ ##
11908 ## Report this to the AC_PACKAGE_NAME lists. ##
11909 ## ------------------------------------------ ##
11910 _ASBOX
11911 ) |
11912 sed "s/^/$as_me: WARNING: /" >&2
11913 ;;
11914 esac
11915 echo "$as_me:$LINENO: checking for jerror.h" >&5
11916 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11917 if test "${ac_cv_header_jerror_h+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 ac_cv_header_jerror_h=$ac_header_preproc
11921 fi
11922 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11923 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11924
11925 fi
11926 if test $ac_cv_header_jerror_h = yes; then
11927 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11928 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11929 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-ljpeg $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940
11941 /* Override any gcc2 internal prototype to avoid an error. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 /* We use char because int might match the return type of a gcc2
11946 builtin and then its argument prototype would still apply. */
11947 char jpeg_destroy_compress ();
11948 int
11949 main ()
11950 {
11951 jpeg_destroy_compress ();
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11983 fi
11984 rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11989 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11990 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11991 HAVE_JPEG=yes
11992 fi
11993
11994 fi
11995
11996
11997 fi
11998
11999
12000 if test "${HAVE_JPEG}" = "yes"; then
12001 cat >>confdefs.h <<\_ACEOF
12002 #define HAVE_JPEG 1
12003 _ACEOF
12004
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 #include <jpeglib.h>
12012 version=JPEG_LIB_VERSION
12013
12014 _ACEOF
12015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12016 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12017 cat >>confdefs.h <<\_ACEOF
12018 #define HAVE_JPEG 1
12019 _ACEOF
12020
12021 else
12022 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12023 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12024 HAVE_JPEG=no
12025 fi
12026 rm -f conftest*
12027
12028 fi
12029 fi
12030
12031 ### Use -lpng if available, unless `--with-png=no'.
12032 HAVE_PNG=no
12033 if test "${HAVE_X11}" = "yes"; then
12034 if test "${with_png}" != "no"; then
12035 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12036 # in /usr/include/libpng.
12037
12038
12039 for ac_header in png.h libpng/png.h
12040 do
12041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12043 echo "$as_me:$LINENO: checking for $ac_header" >&5
12044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 fi
12048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12050 else
12051 # Is the header compilable?
12052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 $ac_includes_default
12061 #include <$ac_header>
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065 (eval $ac_compile) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try='test -s conftest.$ac_objext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_header_compiler=yes
12085 else
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 ac_header_compiler=no
12090 fi
12091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12093 echo "${ECHO_T}$ac_header_compiler" >&6
12094
12095 # Is the header present?
12096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 #include <$ac_header>
12105 _ACEOF
12106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } >/dev/null; then
12114 if test -s conftest.err; then
12115 ac_cpp_err=$ac_c_preproc_warn_flag
12116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12117 else
12118 ac_cpp_err=
12119 fi
12120 else
12121 ac_cpp_err=yes
12122 fi
12123 if test -z "$ac_cpp_err"; then
12124 ac_header_preproc=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_header_preproc=no
12130 fi
12131 rm -f conftest.err conftest.$ac_ext
12132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12133 echo "${ECHO_T}$ac_header_preproc" >&6
12134
12135 # So? What about this header?
12136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12137 yes:no: )
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12142 ac_header_preproc=yes
12143 ;;
12144 no:yes:* )
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12157 (
12158 cat <<\_ASBOX
12159 ## ------------------------------------------ ##
12160 ## Report this to the AC_PACKAGE_NAME lists. ##
12161 ## ------------------------------------------ ##
12162 _ASBOX
12163 ) |
12164 sed "s/^/$as_me: WARNING: /" >&2
12165 ;;
12166 esac
12167 echo "$as_me:$LINENO: checking for $ac_header" >&5
12168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 eval "$as_ac_Header=\$ac_header_preproc"
12173 fi
12174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12176
12177 fi
12178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12181 _ACEOF
12182
12183 fi
12184
12185 done
12186
12187 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12188 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12189 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12190 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-lpng -lz -lm $LIBS"
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201
12202 /* Override any gcc2 internal prototype to avoid an error. */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208 char png_get_channels ();
12209 int
12210 main ()
12211 {
12212 png_get_channels ();
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_png_png_get_channels=yes
12239 else
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_lib_png_png_get_channels=no
12244 fi
12245 rm -f conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12248 fi
12249 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12250 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12251 if test $ac_cv_lib_png_png_get_channels = yes; then
12252 HAVE_PNG=yes
12253 fi
12254
12255 fi
12256 fi
12257
12258 if test "${HAVE_PNG}" = "yes"; then
12259
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_PNG 1
12262 _ACEOF
12263
12264 fi
12265 fi
12266
12267 ### Use -ltiff if available, unless `--with-tiff=no'.
12268 HAVE_TIFF=no
12269 if test "${HAVE_X11}" = "yes"; then
12270 if test "${with_tiff}" != "no"; then
12271 if test "${ac_cv_header_tiffio_h+set}" = set; then
12272 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12273 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12274 if test "${ac_cv_header_tiffio_h+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 fi
12277 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12278 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12279 else
12280 # Is the header compilable?
12281 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12282 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12290 #include <tiffio.h>
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest.$ac_objext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_header_compiler=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_header_compiler=no
12319 fi
12320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12322 echo "${ECHO_T}$ac_header_compiler" >&6
12323
12324 # Is the header present?
12325 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12326 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <tiffio.h>
12334 _ACEOF
12335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } >/dev/null; then
12343 if test -s conftest.err; then
12344 ac_cpp_err=$ac_c_preproc_warn_flag
12345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12346 else
12347 ac_cpp_err=
12348 fi
12349 else
12350 ac_cpp_err=yes
12351 fi
12352 if test -z "$ac_cpp_err"; then
12353 ac_header_preproc=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 ac_header_preproc=no
12359 fi
12360 rm -f conftest.err conftest.$ac_ext
12361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12362 echo "${ECHO_T}$ac_header_preproc" >&6
12363
12364 # So? What about this header?
12365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12366 yes:no: )
12367 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12368 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12370 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12371 ac_header_preproc=yes
12372 ;;
12373 no:yes:* )
12374 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12375 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12377 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12379 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12381 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12383 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12385 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12386 (
12387 cat <<\_ASBOX
12388 ## ------------------------------------------ ##
12389 ## Report this to the AC_PACKAGE_NAME lists. ##
12390 ## ------------------------------------------ ##
12391 _ASBOX
12392 ) |
12393 sed "s/^/$as_me: WARNING: /" >&2
12394 ;;
12395 esac
12396 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12397 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12398 if test "${ac_cv_header_tiffio_h+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 ac_cv_header_tiffio_h=$ac_header_preproc
12402 fi
12403 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12404 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12405
12406 fi
12407 if test $ac_cv_header_tiffio_h = yes; then
12408 tifflibs="-lz -lm"
12409 # At least one tiff package requires the jpeg library.
12410 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12411 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12412 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12413 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 ac_check_lib_save_LIBS=$LIBS
12417 LIBS="-ltiff $tifflibs $LIBS"
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424
12425 /* Override any gcc2 internal prototype to avoid an error. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char TIFFGetVersion ();
12432 int
12433 main ()
12434 {
12435 TIFFGetVersion ();
12436 ;
12437 return 0;
12438 }
12439 _ACEOF
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442 (eval $ac_link) 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest$ac_exeext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_lib_tiff_TIFFGetVersion=yes
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 ac_cv_lib_tiff_TIFFGetVersion=no
12467 fi
12468 rm -f conftest.err conftest.$ac_objext \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12471 fi
12472 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12473 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12474 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12475 HAVE_TIFF=yes
12476 fi
12477
12478 fi
12479
12480
12481 fi
12482
12483 if test "${HAVE_TIFF}" = "yes"; then
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define HAVE_TIFF 1
12487 _ACEOF
12488
12489 fi
12490 fi
12491
12492 ### Use -lgif if available, unless `--with-gif=no'.
12493 HAVE_GIF=no
12494 if test "${HAVE_X11}" = "yes"; then
12495 if test "${with_gif}" != "no"; then
12496 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12497 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12498 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12499 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 fi
12502 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12503 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12504 else
12505 # Is the header compilable?
12506 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12507 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 $ac_includes_default
12515 #include <gif_lib.h>
12516 _ACEOF
12517 rm -f conftest.$ac_objext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12519 (eval $ac_compile) 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ac_header_compiler=no
12544 fi
12545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12548
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12551 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <gif_lib.h>
12559 _ACEOF
12560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } >/dev/null; then
12568 if test -s conftest.err; then
12569 ac_cpp_err=$ac_c_preproc_warn_flag
12570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12571 else
12572 ac_cpp_err=
12573 fi
12574 else
12575 ac_cpp_err=yes
12576 fi
12577 if test -z "$ac_cpp_err"; then
12578 ac_header_preproc=yes
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_header_preproc=no
12584 fi
12585 rm -f conftest.err conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12588
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591 yes:no: )
12592 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12595 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc=yes
12597 ;;
12598 no:yes:* )
12599 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12600 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12602 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12604 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12606 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12608 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12610 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12611 (
12612 cat <<\_ASBOX
12613 ## ------------------------------------------ ##
12614 ## Report this to the AC_PACKAGE_NAME lists. ##
12615 ## ------------------------------------------ ##
12616 _ASBOX
12617 ) |
12618 sed "s/^/$as_me: WARNING: /" >&2
12619 ;;
12620 esac
12621 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12622 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12623 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626 ac_cv_header_gif_lib_h=$ac_header_preproc
12627 fi
12628 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12629 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12630
12631 fi
12632 if test $ac_cv_header_gif_lib_h = yes; then
12633 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12634 # Earlier versions can crash Emacs.
12635 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12636 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12637 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640 ac_check_lib_save_LIBS=$LIBS
12641 LIBS="-lungif $LIBS"
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648
12649 /* Override any gcc2 internal prototype to avoid an error. */
12650 #ifdef __cplusplus
12651 extern "C"
12652 #endif
12653 /* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
12655 char EGifPutExtensionLast ();
12656 int
12657 main ()
12658 {
12659 EGifPutExtensionLast ();
12660 ;
12661 return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12686 else
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_cv_lib_ungif_EGifPutExtensionLast=no
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 LIBS=$ac_check_lib_save_LIBS
12695 fi
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12697 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12698 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12699 HAVE_GIF=yes
12700 fi
12701
12702 fi
12703
12704
12705 fi
12706
12707 if test "${HAVE_GIF}" = "yes"; then
12708
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_GIF 1
12711 _ACEOF
12712
12713 fi
12714 fi
12715
12716 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12717 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12718 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12719 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 fi
12722 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12723 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12724 else
12725 # Is the header compilable?
12726 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12727 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12728 cat >conftest.$ac_ext <<_ACEOF
12729 /* confdefs.h. */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12734 $ac_includes_default
12735 #include <malloc/malloc.h>
12736 _ACEOF
12737 rm -f conftest.$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_header_compiler=yes
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_header_compiler=no
12764 fi
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12767 echo "${ECHO_T}$ac_header_compiler" >&6
12768
12769 # Is the header present?
12770 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12771 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 #include <malloc/malloc.h>
12779 _ACEOF
12780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } >/dev/null; then
12788 if test -s conftest.err; then
12789 ac_cpp_err=$ac_c_preproc_warn_flag
12790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12791 else
12792 ac_cpp_err=
12793 fi
12794 else
12795 ac_cpp_err=yes
12796 fi
12797 if test -z "$ac_cpp_err"; then
12798 ac_header_preproc=yes
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803 ac_header_preproc=no
12804 fi
12805 rm -f conftest.err conftest.$ac_ext
12806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12807 echo "${ECHO_T}$ac_header_preproc" >&6
12808
12809 # So? What about this header?
12810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12811 yes:no: )
12812 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12813 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12815 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12816 ac_header_preproc=yes
12817 ;;
12818 no:yes:* )
12819 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12820 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12822 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12824 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12826 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12828 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12829 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12830 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12831 (
12832 cat <<\_ASBOX
12833 ## ------------------------------------------ ##
12834 ## Report this to the AC_PACKAGE_NAME lists. ##
12835 ## ------------------------------------------ ##
12836 _ASBOX
12837 ) |
12838 sed "s/^/$as_me: WARNING: /" >&2
12839 ;;
12840 esac
12841 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12842 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12843 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12847 fi
12848 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12849 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12850
12851 fi
12852 if test $ac_cv_header_malloc_malloc_h = yes; then
12853
12854 cat >>confdefs.h <<\_ACEOF
12855 #define HAVE_MALLOC_MALLOC_H 1
12856 _ACEOF
12857
12858 fi
12859
12860
12861
12862 ### Use Mac OS X Carbon API to implement GUI.
12863 if test "${HAVE_CARBON}" = "yes"; then
12864
12865 cat >>confdefs.h <<\_ACEOF
12866 #define HAVE_CARBON 1
12867 _ACEOF
12868
12869 ## Specify the install directory
12870 carbon_appdir=
12871 if test "${carbon_appdir_x}" != ""; then
12872 case ${carbon_appdir_x} in
12873 y | ye | yes) carbon_appdir=/Applications ;;
12874 * ) carbon_appdir=${carbon_appdir_x} ;;
12875 esac
12876 fi
12877 # We also have mouse menus.
12878 HAVE_MENUS=yes
12879
12880 tmp_CFLAGS="$CFLAGS"
12881 CFLAGS="$CFLAGS -framework Carbon"
12882 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12883 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12884 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h. */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12895 #define CancelMenuTracking innocuous_CancelMenuTracking
12896
12897 /* System header to define __stub macros and hopefully few prototypes,
12898 which can conflict with char CancelMenuTracking (); below.
12899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12900 <limits.h> exists even on freestanding compilers. */
12901
12902 #ifdef __STDC__
12903 # include <limits.h>
12904 #else
12905 # include <assert.h>
12906 #endif
12907
12908 #undef CancelMenuTracking
12909
12910 /* Override any gcc2 internal prototype to avoid an error. */
12911 #ifdef __cplusplus
12912 extern "C"
12913 {
12914 #endif
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917 char CancelMenuTracking ();
12918 /* The GNU C library defines this for functions which it implements
12919 to always fail with ENOSYS. Some functions are actually named
12920 something starting with __ and the normal name is an alias. */
12921 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12922 choke me
12923 #else
12924 char (*f) () = CancelMenuTracking;
12925 #endif
12926 #ifdef __cplusplus
12927 }
12928 #endif
12929
12930 int
12931 main ()
12932 {
12933 return f != CancelMenuTracking;
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12940 (eval $ac_link) 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try='test -s conftest$ac_exeext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_func_CancelMenuTracking=yes
12960 else
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_cv_func_CancelMenuTracking=no
12965 fi
12966 rm -f conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext conftest.$ac_ext
12968 fi
12969 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12970 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12971 if test $ac_cv_func_CancelMenuTracking = yes; then
12972 have_cmt=yes
12973 else
12974 have_cmt=no
12975 fi
12976
12977 if test "$have_cmt" = yes; then
12978
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_CANCELMENUTRACKING 1
12981 _ACEOF
12982
12983 fi
12984 CFLAGS="$tmp_CFLAGS"
12985 fi
12986
12987 ### Use session management (-lSM -lICE) if available
12988 HAVE_X_SM=no
12989 if test "${HAVE_X11}" = "yes"; then
12990 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12991 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12992 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12993 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 fi
12996 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12997 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12998 else
12999 # Is the header compilable?
13000 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13001 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h. */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13009 #include <X11/SM/SMlib.h>
13010 _ACEOF
13011 rm -f conftest.$ac_objext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_header_compiler=yes
13033 else
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037 ac_header_compiler=no
13038 fi
13039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13041 echo "${ECHO_T}$ac_header_compiler" >&6
13042
13043 # Is the header present?
13044 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13045 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <X11/SM/SMlib.h>
13053 _ACEOF
13054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev/null; then
13062 if test -s conftest.err; then
13063 ac_cpp_err=$ac_c_preproc_warn_flag
13064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13065 else
13066 ac_cpp_err=
13067 fi
13068 else
13069 ac_cpp_err=yes
13070 fi
13071 if test -z "$ac_cpp_err"; then
13072 ac_header_preproc=yes
13073 else
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_header_preproc=no
13078 fi
13079 rm -f conftest.err conftest.$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13081 echo "${ECHO_T}$ac_header_preproc" >&6
13082
13083 # So? What about this header?
13084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13085 yes:no: )
13086 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13087 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13089 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13090 ac_header_preproc=yes
13091 ;;
13092 no:yes:* )
13093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13094 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13096 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13098 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13100 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13102 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13104 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13105 (
13106 cat <<\_ASBOX
13107 ## ------------------------------------------ ##
13108 ## Report this to the AC_PACKAGE_NAME lists. ##
13109 ## ------------------------------------------ ##
13110 _ASBOX
13111 ) |
13112 sed "s/^/$as_me: WARNING: /" >&2
13113 ;;
13114 esac
13115 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13116 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13117 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13121 fi
13122 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13123 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13124
13125 fi
13126 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13127 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13128 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13129 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lSM -lICE $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140
13141 /* Override any gcc2 internal prototype to avoid an error. */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 /* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147 char SmcOpenConnection ();
13148 int
13149 main ()
13150 {
13151 SmcOpenConnection ();
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest$ac_exeext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_lib_SM_SmcOpenConnection=yes
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_lib_SM_SmcOpenConnection=no
13183 fi
13184 rm -f conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13187 fi
13188 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13189 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13190 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13191 HAVE_X_SM=yes
13192 fi
13193
13194 fi
13195
13196
13197
13198 if test "${HAVE_X_SM}" = "yes"; then
13199
13200 cat >>confdefs.h <<\_ACEOF
13201 #define HAVE_X_SM 1
13202 _ACEOF
13203
13204 case "$LIBS" in
13205 *-lSM*) ;;
13206 *) LIBS="-lSM -lICE $LIBS" ;;
13207 esac
13208 fi
13209 fi
13210
13211 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13212 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13213 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13214 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217 cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h. */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <netdb.h>
13224 int
13225 main ()
13226 {
13227 return h_errno;
13228 ;
13229 return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234 (eval $ac_link) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 emacs_cv_netdb_declares_h_errno=yes
13254 else
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 emacs_cv_netdb_declares_h_errno=no
13259 fi
13260 rm -f conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 fi
13263 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13264 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13265 if test $emacs_cv_netdb_declares_h_errno = yes; then
13266
13267 cat >>confdefs.h <<\_ACEOF
13268 #define HAVE_H_ERRNO 1
13269 _ACEOF
13270
13271 fi
13272
13273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13274 # for constant arguments. Useless!
13275 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13276 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13277 if test "${ac_cv_working_alloca_h+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <alloca.h>
13287 int
13288 main ()
13289 {
13290 char *p = (char *) alloca (2 * sizeof (int));
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_working_alloca_h=yes
13317 else
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 ac_cv_working_alloca_h=no
13322 fi
13323 rm -f conftest.err conftest.$ac_objext \
13324 conftest$ac_exeext conftest.$ac_ext
13325 fi
13326 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13327 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13328 if test $ac_cv_working_alloca_h = yes; then
13329
13330 cat >>confdefs.h <<\_ACEOF
13331 #define HAVE_ALLOCA_H 1
13332 _ACEOF
13333
13334 fi
13335
13336 echo "$as_me:$LINENO: checking for alloca" >&5
13337 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13338 if test "${ac_cv_func_alloca_works+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h. */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 #ifdef __GNUC__
13348 # define alloca __builtin_alloca
13349 #else
13350 # ifdef _MSC_VER
13351 # include <malloc.h>
13352 # define alloca _alloca
13353 # else
13354 # if HAVE_ALLOCA_H
13355 # include <alloca.h>
13356 # else
13357 # ifdef _AIX
13358 #pragma alloca
13359 # else
13360 # ifndef alloca /* predefined by HP cc +Olibcalls */
13361 char *alloca ();
13362 # endif
13363 # endif
13364 # endif
13365 # endif
13366 #endif
13367
13368 int
13369 main ()
13370 {
13371 char *p = (char *) alloca (1);
13372 ;
13373 return 0;
13374 }
13375 _ACEOF
13376 rm -f conftest.$ac_objext conftest$ac_exeext
13377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13378 (eval $ac_link) 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_func_alloca_works=yes
13398 else
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_cv_func_alloca_works=no
13403 fi
13404 rm -f conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 fi
13407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13409
13410 if test $ac_cv_func_alloca_works = yes; then
13411
13412 cat >>confdefs.h <<\_ACEOF
13413 #define HAVE_ALLOCA 1
13414 _ACEOF
13415
13416 else
13417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13418 # that cause trouble. Some versions do not even contain alloca or
13419 # contain a buggy version. If you still want to use their alloca,
13420 # use ar to extract alloca.o from them instead of compiling alloca.c.
13421
13422 ALLOCA=alloca.$ac_objext
13423
13424 cat >>confdefs.h <<\_ACEOF
13425 #define C_ALLOCA 1
13426 _ACEOF
13427
13428
13429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13431 if test "${ac_cv_os_cray+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h. */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 #if defined(CRAY) && ! defined(CRAY2)
13441 webecray
13442 #else
13443 wenotbecray
13444 #endif
13445
13446 _ACEOF
13447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13448 $EGREP "webecray" >/dev/null 2>&1; then
13449 ac_cv_os_cray=yes
13450 else
13451 ac_cv_os_cray=no
13452 fi
13453 rm -f conftest*
13454
13455 fi
13456 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13457 echo "${ECHO_T}$ac_cv_os_cray" >&6
13458 if test $ac_cv_os_cray = yes; then
13459 for ac_func in _getb67 GETB67 getb67; do
13460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13461 echo "$as_me:$LINENO: checking for $ac_func" >&5
13462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_var+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 else
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13474 #define $ac_func innocuous_$ac_func
13475
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char $ac_func (); below.
13478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13479 <limits.h> exists even on freestanding compilers. */
13480
13481 #ifdef __STDC__
13482 # include <limits.h>
13483 #else
13484 # include <assert.h>
13485 #endif
13486
13487 #undef $ac_func
13488
13489 /* Override any gcc2 internal prototype to avoid an error. */
13490 #ifdef __cplusplus
13491 extern "C"
13492 {
13493 #endif
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13496 char $ac_func ();
13497 /* The GNU C library defines this for functions which it implements
13498 to always fail with ENOSYS. Some functions are actually named
13499 something starting with __ and the normal name is an alias. */
13500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13501 choke me
13502 #else
13503 char (*f) () = $ac_func;
13504 #endif
13505 #ifdef __cplusplus
13506 }
13507 #endif
13508
13509 int
13510 main ()
13511 {
13512 return f != $ac_func;
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
13532 { ac_try='test -s conftest$ac_exeext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 eval "$as_ac_var=yes"
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 eval "$as_ac_var=no"
13544 fi
13545 rm -f conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 fi
13548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13550 if test `eval echo '${'$as_ac_var'}'` = yes; then
13551
13552 cat >>confdefs.h <<_ACEOF
13553 #define CRAY_STACKSEG_END $ac_func
13554 _ACEOF
13555
13556 break
13557 fi
13558
13559 done
13560 fi
13561
13562 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13563 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13564 if test "${ac_cv_c_stack_direction+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567 if test "$cross_compiling" = yes; then
13568 ac_cv_c_stack_direction=0
13569 else
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 int
13577 find_stack_direction ()
13578 {
13579 static char *addr = 0;
13580 auto char dummy;
13581 if (addr == 0)
13582 {
13583 addr = &dummy;
13584 return find_stack_direction ();
13585 }
13586 else
13587 return (&dummy > addr) ? 1 : -1;
13588 }
13589
13590 int
13591 main ()
13592 {
13593 exit (find_stack_direction () < 0);
13594 }
13595 _ACEOF
13596 rm -f conftest$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_c_stack_direction=1
13608 else
13609 echo "$as_me: program exited with status $ac_status" >&5
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 ( exit $ac_status )
13614 ac_cv_c_stack_direction=-1
13615 fi
13616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13617 fi
13618 fi
13619 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13620 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13621
13622 cat >>confdefs.h <<_ACEOF
13623 #define STACK_DIRECTION $ac_cv_c_stack_direction
13624 _ACEOF
13625
13626
13627 fi
13628
13629
13630 # fmod, logb, and frexp are found in -lm on most systems.
13631 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13632
13633 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13634 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13635 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638 ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-lm $LIBS"
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h. */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646
13647 /* Override any gcc2 internal prototype to avoid an error. */
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 /* We use char because int might match the return type of a gcc2
13652 builtin and then its argument prototype would still apply. */
13653 char sqrt ();
13654 int
13655 main ()
13656 {
13657 sqrt ();
13658 ;
13659 return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>conftest.er1
13665 ac_status=$?
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_lib_m_sqrt=yes
13684 else
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688 ac_cv_lib_m_sqrt=no
13689 fi
13690 rm -f conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
13692 LIBS=$ac_check_lib_save_LIBS
13693 fi
13694 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13695 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13696 if test $ac_cv_lib_m_sqrt = yes; then
13697 cat >>confdefs.h <<_ACEOF
13698 #define HAVE_LIBM 1
13699 _ACEOF
13700
13701 LIBS="-lm $LIBS"
13702
13703 fi
13704
13705
13706 # Check for mail-locking functions in a "mail" library. Probably this should
13707 # have the same check as for liblockfile below.
13708
13709 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13710 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13711 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 ac_check_lib_save_LIBS=$LIBS
13715 LIBS="-lmail $LIBS"
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722
13723 /* Override any gcc2 internal prototype to avoid an error. */
13724 #ifdef __cplusplus
13725 extern "C"
13726 #endif
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13729 char maillock ();
13730 int
13731 main ()
13732 {
13733 maillock ();
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_lib_mail_maillock=yes
13760 else
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_cv_lib_mail_maillock=no
13765 fi
13766 rm -f conftest.err conftest.$ac_objext \
13767 conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13769 fi
13770 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13771 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13772 if test $ac_cv_lib_mail_maillock = yes; then
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_LIBMAIL 1
13775 _ACEOF
13776
13777 LIBS="-lmail $LIBS"
13778
13779 fi
13780
13781
13782 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13783 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13784 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 ac_check_lib_save_LIBS=$LIBS
13788 LIBS="-llockfile $LIBS"
13789 cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h. */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795
13796 /* Override any gcc2 internal prototype to avoid an error. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 /* We use char because int might match the return type of a gcc2
13801 builtin and then its argument prototype would still apply. */
13802 char maillock ();
13803 int
13804 main ()
13805 {
13806 maillock ();
13807 ;
13808 return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13813 (eval $ac_link) 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest$ac_exeext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_cv_lib_lockfile_maillock=yes
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13836
13837 ac_cv_lib_lockfile_maillock=no
13838 fi
13839 rm -f conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 LIBS=$ac_check_lib_save_LIBS
13842 fi
13843 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13844 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13845 if test $ac_cv_lib_lockfile_maillock = yes; then
13846 cat >>confdefs.h <<_ACEOF
13847 #define HAVE_LIBLOCKFILE 1
13848 _ACEOF
13849
13850 LIBS="-llockfile $LIBS"
13851
13852 fi
13853
13854 # If we have the shared liblockfile, assume we must use it for mail
13855 # locking (e.g. Debian). If we couldn't link against liblockfile
13856 # (no liblockfile.a installed), ensure that we don't need to.
13857 if test "$ac_cv_lib_lockfile_maillock" = no; then
13858 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13859 set dummy liblockfile.so; ac_word=$2
13860 echo "$as_me:$LINENO: checking for $ac_word" >&5
13861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13862 if test "${ac_cv_prog_liblockfile+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865 if test -n "$liblockfile"; then
13866 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13870 for as_dir in $as_dummy
13871 do
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13876 ac_cv_prog_liblockfile="yes"
13877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 break 2
13879 fi
13880 done
13881 done
13882
13883 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13884 fi
13885 fi
13886 liblockfile=$ac_cv_prog_liblockfile
13887 if test -n "$liblockfile"; then
13888 echo "$as_me:$LINENO: result: $liblockfile" >&5
13889 echo "${ECHO_T}$liblockfile" >&6
13890 else
13891 echo "$as_me:$LINENO: result: no" >&5
13892 echo "${ECHO_T}no" >&6
13893 fi
13894
13895 if test $ac_cv_prog_liblockfile = yes; then
13896 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13897 This probably means that movemail could lose mail.
13898 There may be a \`development' package to install containing liblockfile." >&5
13899 echo "$as_me: error: Shared liblockfile found but can't link against it.
13900 This probably means that movemail could lose mail.
13901 There may be a \`development' package to install containing liblockfile." >&2;}
13902 { (exit 1); exit 1; }; }
13903 else :
13904 fi
13905 fi
13906
13907 for ac_func in touchlock
13908 do
13909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13910 echo "$as_me:$LINENO: checking for $ac_func" >&5
13911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13912 if eval "test \"\${$as_ac_var+set}\" = set"; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h. */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13923 #define $ac_func innocuous_$ac_func
13924
13925 /* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char $ac_func (); below.
13927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13928 <limits.h> exists even on freestanding compilers. */
13929
13930 #ifdef __STDC__
13931 # include <limits.h>
13932 #else
13933 # include <assert.h>
13934 #endif
13935
13936 #undef $ac_func
13937
13938 /* Override any gcc2 internal prototype to avoid an error. */
13939 #ifdef __cplusplus
13940 extern "C"
13941 {
13942 #endif
13943 /* We use char because int might match the return type of a gcc2
13944 builtin and then its argument prototype would still apply. */
13945 char $ac_func ();
13946 /* The GNU C library defines this for functions which it implements
13947 to always fail with ENOSYS. Some functions are actually named
13948 something starting with __ and the normal name is an alias. */
13949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13950 choke me
13951 #else
13952 char (*f) () = $ac_func;
13953 #endif
13954 #ifdef __cplusplus
13955 }
13956 #endif
13957
13958 int
13959 main ()
13960 {
13961 return f != $ac_func;
13962 ;
13963 return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13968 (eval $ac_link) 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } &&
13981 { ac_try='test -s conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 eval "$as_ac_var=yes"
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 eval "$as_ac_var=no"
13993 fi
13994 rm -f conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 fi
13997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13999 if test `eval echo '${'$as_ac_var'}'` = yes; then
14000 cat >>confdefs.h <<_ACEOF
14001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14002 _ACEOF
14003
14004 fi
14005 done
14006
14007
14008 for ac_header in maillock.h
14009 do
14010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 fi
14017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14019 else
14020 # Is the header compilable?
14021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 $ac_includes_default
14030 #include <$ac_header>
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034 (eval $ac_compile) 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_header_compiler=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_header_compiler=no
14059 fi
14060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6
14063
14064 # Is the header present?
14065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <$ac_header>
14074 _ACEOF
14075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev/null; then
14083 if test -s conftest.err; then
14084 ac_cpp_err=$ac_c_preproc_warn_flag
14085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14086 else
14087 ac_cpp_err=
14088 fi
14089 else
14090 ac_cpp_err=yes
14091 fi
14092 if test -z "$ac_cpp_err"; then
14093 ac_header_preproc=yes
14094 else
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 ac_header_preproc=no
14099 fi
14100 rm -f conftest.err conftest.$ac_ext
14101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14102 echo "${ECHO_T}$ac_header_preproc" >&6
14103
14104 # So? What about this header?
14105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14106 yes:no: )
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14111 ac_header_preproc=yes
14112 ;;
14113 no:yes:* )
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14126 (
14127 cat <<\_ASBOX
14128 ## ------------------------------------------ ##
14129 ## Report this to the AC_PACKAGE_NAME lists. ##
14130 ## ------------------------------------------ ##
14131 _ASBOX
14132 ) |
14133 sed "s/^/$as_me: WARNING: /" >&2
14134 ;;
14135 esac
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141 eval "$as_ac_Header=\$ac_header_preproc"
14142 fi
14143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145
14146 fi
14147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14148 cat >>confdefs.h <<_ACEOF
14149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14150 _ACEOF
14151
14152 fi
14153
14154 done
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
14222
14223
14224
14225 for ac_func in gethostname getdomainname dup2 \
14226 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14227 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14228 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14229 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14230 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14231 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14232 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14233 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14234 do
14235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14236 echo "$as_me:$LINENO: checking for $ac_func" >&5
14237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14238 if eval "test \"\${$as_ac_var+set}\" = set"; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h. */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14249 #define $ac_func innocuous_$ac_func
14250
14251 /* System header to define __stub macros and hopefully few prototypes,
14252 which can conflict with char $ac_func (); below.
14253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14254 <limits.h> exists even on freestanding compilers. */
14255
14256 #ifdef __STDC__
14257 # include <limits.h>
14258 #else
14259 # include <assert.h>
14260 #endif
14261
14262 #undef $ac_func
14263
14264 /* Override any gcc2 internal prototype to avoid an error. */
14265 #ifdef __cplusplus
14266 extern "C"
14267 {
14268 #endif
14269 /* We use char because int might match the return type of a gcc2
14270 builtin and then its argument prototype would still apply. */
14271 char $ac_func ();
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276 choke me
14277 #else
14278 char (*f) () = $ac_func;
14279 #endif
14280 #ifdef __cplusplus
14281 }
14282 #endif
14283
14284 int
14285 main ()
14286 {
14287 return f != $ac_func;
14288 ;
14289 return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext conftest$ac_exeext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest$ac_exeext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 eval "$as_ac_var=yes"
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 eval "$as_ac_var=no"
14319 fi
14320 rm -f conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14322 fi
14323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14325 if test `eval echo '${'$as_ac_var'}'` = yes; then
14326 cat >>confdefs.h <<_ACEOF
14327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14328 _ACEOF
14329
14330 fi
14331 done
14332
14333
14334
14335 for ac_header in sys/un.h
14336 do
14337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo "$as_me:$LINENO: checking for $ac_header" >&5
14340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 fi
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14346 else
14347 # Is the header compilable?
14348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14357 #include <$ac_header>
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361 (eval $ac_compile) 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } &&
14368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; } &&
14374 { ac_try='test -s conftest.$ac_objext'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_header_compiler=yes
14381 else
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385 ac_header_compiler=no
14386 fi
14387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14389 echo "${ECHO_T}$ac_header_compiler" >&6
14390
14391 # Is the header present?
14392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <$ac_header>
14401 _ACEOF
14402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } >/dev/null; then
14410 if test -s conftest.err; then
14411 ac_cpp_err=$ac_c_preproc_warn_flag
14412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14413 else
14414 ac_cpp_err=
14415 fi
14416 else
14417 ac_cpp_err=yes
14418 fi
14419 if test -z "$ac_cpp_err"; then
14420 ac_header_preproc=yes
14421 else
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 ac_header_preproc=no
14426 fi
14427 rm -f conftest.err conftest.$ac_ext
14428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14429 echo "${ECHO_T}$ac_header_preproc" >&6
14430
14431 # So? What about this header?
14432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14433 yes:no: )
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14438 ac_header_preproc=yes
14439 ;;
14440 no:yes:* )
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14453 (
14454 cat <<\_ASBOX
14455 ## ------------------------------------------ ##
14456 ## Report this to the AC_PACKAGE_NAME lists. ##
14457 ## ------------------------------------------ ##
14458 _ASBOX
14459 ) |
14460 sed "s/^/$as_me: WARNING: /" >&2
14461 ;;
14462 esac
14463 echo "$as_me:$LINENO: checking for $ac_header" >&5
14464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468 eval "$as_ac_Header=\$ac_header_preproc"
14469 fi
14470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14472
14473 fi
14474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14475 cat >>confdefs.h <<_ACEOF
14476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14477 _ACEOF
14478
14479 fi
14480
14481 done
14482
14483
14484
14485
14486
14487 for ac_header in stdlib.h sys/time.h unistd.h
14488 do
14489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14491 echo "$as_me:$LINENO: checking for $ac_header" >&5
14492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 fi
14496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498 else
14499 # Is the header compilable?
14500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14509 #include <$ac_header>
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_header_compiler=yes
14533 else
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 ac_header_compiler=no
14538 fi
14539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541 echo "${ECHO_T}$ac_header_compiler" >&6
14542
14543 # Is the header present?
14544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14546 cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h. */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #include <$ac_header>
14553 _ACEOF
14554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } >/dev/null; then
14562 if test -s conftest.err; then
14563 ac_cpp_err=$ac_c_preproc_warn_flag
14564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14565 else
14566 ac_cpp_err=
14567 fi
14568 else
14569 ac_cpp_err=yes
14570 fi
14571 if test -z "$ac_cpp_err"; then
14572 ac_header_preproc=yes
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_header_preproc=no
14578 fi
14579 rm -f conftest.err conftest.$ac_ext
14580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14581 echo "${ECHO_T}$ac_header_preproc" >&6
14582
14583 # So? What about this header?
14584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14585 yes:no: )
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14590 ac_header_preproc=yes
14591 ;;
14592 no:yes:* )
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14605 (
14606 cat <<\_ASBOX
14607 ## ------------------------------------------ ##
14608 ## Report this to the AC_PACKAGE_NAME lists. ##
14609 ## ------------------------------------------ ##
14610 _ASBOX
14611 ) |
14612 sed "s/^/$as_me: WARNING: /" >&2
14613 ;;
14614 esac
14615 echo "$as_me:$LINENO: checking for $ac_header" >&5
14616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620 eval "$as_ac_Header=\$ac_header_preproc"
14621 fi
14622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14624
14625 fi
14626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14629 _ACEOF
14630
14631 fi
14632
14633 done
14634
14635
14636 for ac_func in alarm
14637 do
14638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14639 echo "$as_me:$LINENO: checking for $ac_func" >&5
14640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14641 if eval "test \"\${$as_ac_var+set}\" = set"; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14652 #define $ac_func innocuous_$ac_func
14653
14654 /* System header to define __stub macros and hopefully few prototypes,
14655 which can conflict with char $ac_func (); below.
14656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14657 <limits.h> exists even on freestanding compilers. */
14658
14659 #ifdef __STDC__
14660 # include <limits.h>
14661 #else
14662 # include <assert.h>
14663 #endif
14664
14665 #undef $ac_func
14666
14667 /* Override any gcc2 internal prototype to avoid an error. */
14668 #ifdef __cplusplus
14669 extern "C"
14670 {
14671 #endif
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14674 char $ac_func ();
14675 /* The GNU C library defines this for functions which it implements
14676 to always fail with ENOSYS. Some functions are actually named
14677 something starting with __ and the normal name is an alias. */
14678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14679 choke me
14680 #else
14681 char (*f) () = $ac_func;
14682 #endif
14683 #ifdef __cplusplus
14684 }
14685 #endif
14686
14687 int
14688 main ()
14689 {
14690 return f != $ac_func;
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14697 (eval $ac_link) 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest$ac_exeext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 eval "$as_ac_var=yes"
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 eval "$as_ac_var=no"
14722 fi
14723 rm -f conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725 fi
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14728 if test `eval echo '${'$as_ac_var'}'` = yes; then
14729 cat >>confdefs.h <<_ACEOF
14730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14731 _ACEOF
14732
14733 fi
14734 done
14735
14736 echo "$as_me:$LINENO: checking for working mktime" >&5
14737 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14738 if test "${ac_cv_func_working_mktime+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741 if test "$cross_compiling" = yes; then
14742 ac_cv_func_working_mktime=no
14743 else
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 /* Test program from Paul Eggert and Tony Leneis. */
14751 #if TIME_WITH_SYS_TIME
14752 # include <sys/time.h>
14753 # include <time.h>
14754 #else
14755 # if HAVE_SYS_TIME_H
14756 # include <sys/time.h>
14757 # else
14758 # include <time.h>
14759 # endif
14760 #endif
14761
14762 #if HAVE_STDLIB_H
14763 # include <stdlib.h>
14764 #endif
14765
14766 #if HAVE_UNISTD_H
14767 # include <unistd.h>
14768 #endif
14769
14770 #if !HAVE_ALARM
14771 # define alarm(X) /* empty */
14772 #endif
14773
14774 /* Work around redefinition to rpl_putenv by other config tests. */
14775 #undef putenv
14776
14777 static time_t time_t_max;
14778 static time_t time_t_min;
14779
14780 /* Values we'll use to set the TZ environment variable. */
14781 static char *tz_strings[] = {
14782 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14783 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14784 };
14785 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14786
14787 /* Fail if mktime fails to convert a date in the spring-forward gap.
14788 Based on a problem report from Andreas Jaeger. */
14789 static void
14790 spring_forward_gap ()
14791 {
14792 /* glibc (up to about 1998-10-07) failed this test. */
14793 struct tm tm;
14794
14795 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14796 instead of "TZ=America/Vancouver" in order to detect the bug even
14797 on systems that don't support the Olson extension, or don't have the
14798 full zoneinfo tables installed. */
14799 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14800
14801 tm.tm_year = 98;
14802 tm.tm_mon = 3;
14803 tm.tm_mday = 5;
14804 tm.tm_hour = 2;
14805 tm.tm_min = 0;
14806 tm.tm_sec = 0;
14807 tm.tm_isdst = -1;
14808 if (mktime (&tm) == (time_t)-1)
14809 exit (1);
14810 }
14811
14812 static void
14813 mktime_test1 (now)
14814 time_t now;
14815 {
14816 struct tm *lt;
14817 if ((lt = localtime (&now)) && mktime (lt) != now)
14818 exit (1);
14819 }
14820
14821 static void
14822 mktime_test (now)
14823 time_t now;
14824 {
14825 mktime_test1 (now);
14826 mktime_test1 ((time_t) (time_t_max - now));
14827 mktime_test1 ((time_t) (time_t_min + now));
14828 }
14829
14830 static void
14831 irix_6_4_bug ()
14832 {
14833 /* Based on code from Ariel Faigon. */
14834 struct tm tm;
14835 tm.tm_year = 96;
14836 tm.tm_mon = 3;
14837 tm.tm_mday = 0;
14838 tm.tm_hour = 0;
14839 tm.tm_min = 0;
14840 tm.tm_sec = 0;
14841 tm.tm_isdst = -1;
14842 mktime (&tm);
14843 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14844 exit (1);
14845 }
14846
14847 static void
14848 bigtime_test (j)
14849 int j;
14850 {
14851 struct tm tm;
14852 time_t now;
14853 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14854 now = mktime (&tm);
14855 if (now != (time_t) -1)
14856 {
14857 struct tm *lt = localtime (&now);
14858 if (! (lt
14859 && lt->tm_year == tm.tm_year
14860 && lt->tm_mon == tm.tm_mon
14861 && lt->tm_mday == tm.tm_mday
14862 && lt->tm_hour == tm.tm_hour
14863 && lt->tm_min == tm.tm_min
14864 && lt->tm_sec == tm.tm_sec
14865 && lt->tm_yday == tm.tm_yday
14866 && lt->tm_wday == tm.tm_wday
14867 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14868 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14869 exit (1);
14870 }
14871 }
14872
14873 int
14874 main ()
14875 {
14876 time_t t, delta;
14877 int i, j;
14878
14879 /* This test makes some buggy mktime implementations loop.
14880 Give up after 60 seconds; a mktime slower than that
14881 isn't worth using anyway. */
14882 alarm (60);
14883
14884 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14885 continue;
14886 time_t_max--;
14887 if ((time_t) -1 < 0)
14888 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14889 continue;
14890 delta = time_t_max / 997; /* a suitable prime number */
14891 for (i = 0; i < N_STRINGS; i++)
14892 {
14893 if (tz_strings[i])
14894 putenv (tz_strings[i]);
14895
14896 for (t = 0; t <= time_t_max - delta; t += delta)
14897 mktime_test (t);
14898 mktime_test ((time_t) 1);
14899 mktime_test ((time_t) (60 * 60));
14900 mktime_test ((time_t) (60 * 60 * 24));
14901
14902 for (j = 1; 0 < j; j *= 2)
14903 bigtime_test (j);
14904 bigtime_test (j - 1);
14905 }
14906 irix_6_4_bug ();
14907 spring_forward_gap ();
14908 exit (0);
14909 }
14910 _ACEOF
14911 rm -f conftest$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_func_working_mktime=yes
14923 else
14924 echo "$as_me: program exited with status $ac_status" >&5
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ( exit $ac_status )
14929 ac_cv_func_working_mktime=no
14930 fi
14931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14932 fi
14933 fi
14934 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14935 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14936 if test $ac_cv_func_working_mktime = no; then
14937 case $LIBOBJS in
14938 "mktime.$ac_objext" | \
14939 *" mktime.$ac_objext" | \
14940 "mktime.$ac_objext "* | \
14941 *" mktime.$ac_objext "* ) ;;
14942 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14943 esac
14944
14945 fi
14946
14947 if test "$ac_cv_func_working_mktime" = no; then
14948
14949 cat >>confdefs.h <<\_ACEOF
14950 #define BROKEN_MKTIME 1
14951 _ACEOF
14952
14953 fi
14954
14955 ac_have_func=no # yes means we've found a way to get the load average.
14956
14957 # Make sure getloadavg.c is where it belongs, at configure-time.
14958 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14959 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14960 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14961 { (exit 1); exit 1; }; }
14962
14963 ac_save_LIBS=$LIBS
14964
14965 # Check for getloadavg, but be sure not to touch the cache variable.
14966 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14967 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14968 if test "${ac_cv_func_getloadavg+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14979 #define getloadavg innocuous_getloadavg
14980
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char getloadavg (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. */
14985
14986 #ifdef __STDC__
14987 # include <limits.h>
14988 #else
14989 # include <assert.h>
14990 #endif
14991
14992 #undef getloadavg
14993
14994 /* Override any gcc2 internal prototype to avoid an error. */
14995 #ifdef __cplusplus
14996 extern "C"
14997 {
14998 #endif
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001 char getloadavg ();
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15006 choke me
15007 #else
15008 char (*f) () = getloadavg;
15009 #endif
15010 #ifdef __cplusplus
15011 }
15012 #endif
15013
15014 int
15015 main ()
15016 {
15017 return f != getloadavg;
15018 ;
15019 return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_func_getloadavg=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048 ac_cv_func_getloadavg=no
15049 fi
15050 rm -f conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 fi
15053 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15054 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15055 if test $ac_cv_func_getloadavg = yes; then
15056 exit 0
15057 else
15058 exit 1
15059 fi
15060 ) && ac_have_func=yes
15061
15062 # On HPUX9, an unprivileged user can get load averages through this function.
15063
15064 for ac_func in pstat_getdynamic
15065 do
15066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15069 if eval "test \"\${$as_ac_var+set}\" = set"; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072 cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h. */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15080 #define $ac_func innocuous_$ac_func
15081
15082 /* System header to define __stub macros and hopefully few prototypes,
15083 which can conflict with char $ac_func (); below.
15084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15085 <limits.h> exists even on freestanding compilers. */
15086
15087 #ifdef __STDC__
15088 # include <limits.h>
15089 #else
15090 # include <assert.h>
15091 #endif
15092
15093 #undef $ac_func
15094
15095 /* Override any gcc2 internal prototype to avoid an error. */
15096 #ifdef __cplusplus
15097 extern "C"
15098 {
15099 #endif
15100 /* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15102 char $ac_func ();
15103 /* The GNU C library defines this for functions which it implements
15104 to always fail with ENOSYS. Some functions are actually named
15105 something starting with __ and the normal name is an alias. */
15106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15107 choke me
15108 #else
15109 char (*f) () = $ac_func;
15110 #endif
15111 #ifdef __cplusplus
15112 }
15113 #endif
15114
15115 int
15116 main ()
15117 {
15118 return f != $ac_func;
15119 ;
15120 return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest$ac_exeext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 eval "$as_ac_var=yes"
15145 else
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149 eval "$as_ac_var=no"
15150 fi
15151 rm -f conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15153 fi
15154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15156 if test `eval echo '${'$as_ac_var'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15159 _ACEOF
15160
15161 fi
15162 done
15163
15164
15165 # Solaris has libkstat which does not require root.
15166
15167 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15168 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15169 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172 ac_check_lib_save_LIBS=$LIBS
15173 LIBS="-lkstat $LIBS"
15174 cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h. */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180
15181 /* Override any gcc2 internal prototype to avoid an error. */
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 /* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15187 char kstat_open ();
15188 int
15189 main ()
15190 {
15191 kstat_open ();
15192 ;
15193 return 0;
15194 }
15195 _ACEOF
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>conftest.er1
15199 ac_status=$?
15200 grep -v '^ *+' conftest.er1 >conftest.err
15201 rm -f conftest.er1
15202 cat conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest$ac_exeext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 ac_cv_lib_kstat_kstat_open=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222 ac_cv_lib_kstat_kstat_open=no
15223 fi
15224 rm -f conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15227 fi
15228 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15229 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15230 if test $ac_cv_lib_kstat_kstat_open = yes; then
15231 cat >>confdefs.h <<_ACEOF
15232 #define HAVE_LIBKSTAT 1
15233 _ACEOF
15234
15235 LIBS="-lkstat $LIBS"
15236
15237 fi
15238
15239 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15240
15241 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15242 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15243 # to get the right answer into the cache.
15244 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15245 if test $ac_have_func = no; then
15246 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15247 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15248 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251 ac_check_lib_save_LIBS=$LIBS
15252 LIBS="-lelf $LIBS"
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h. */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259
15260 /* Override any gcc2 internal prototype to avoid an error. */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 /* We use char because int might match the return type of a gcc2
15265 builtin and then its argument prototype would still apply. */
15266 char elf_begin ();
15267 int
15268 main ()
15269 {
15270 elf_begin ();
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try='test -s conftest$ac_exeext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_cv_lib_elf_elf_begin=yes
15297 else
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301 ac_cv_lib_elf_elf_begin=no
15302 fi
15303 rm -f conftest.err conftest.$ac_objext \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS
15306 fi
15307 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15308 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15309 if test $ac_cv_lib_elf_elf_begin = yes; then
15310 LIBS="-lelf $LIBS"
15311 fi
15312
15313 fi
15314 if test $ac_have_func = no; then
15315 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15316 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15317 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 ac_check_lib_save_LIBS=$LIBS
15321 LIBS="-lkvm $LIBS"
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328
15329 /* Override any gcc2 internal prototype to avoid an error. */
15330 #ifdef __cplusplus
15331 extern "C"
15332 #endif
15333 /* We use char because int might match the return type of a gcc2
15334 builtin and then its argument prototype would still apply. */
15335 char kvm_open ();
15336 int
15337 main ()
15338 {
15339 kvm_open ();
15340 ;
15341 return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 ac_cv_lib_kvm_kvm_open=yes
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 ac_cv_lib_kvm_kvm_open=no
15371 fi
15372 rm -f conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 LIBS=$ac_check_lib_save_LIBS
15375 fi
15376 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15377 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15378 if test $ac_cv_lib_kvm_kvm_open = yes; then
15379 LIBS="-lkvm $LIBS"
15380 fi
15381
15382 # Check for the 4.4BSD definition of getloadavg.
15383 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15384 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15385 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 ac_check_lib_save_LIBS=$LIBS
15389 LIBS="-lutil $LIBS"
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h. */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396
15397 /* Override any gcc2 internal prototype to avoid an error. */
15398 #ifdef __cplusplus
15399 extern "C"
15400 #endif
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15403 char getloadavg ();
15404 int
15405 main ()
15406 {
15407 getloadavg ();
15408 ;
15409 return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414 (eval $ac_link) 2>conftest.er1
15415 ac_status=$?
15416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_lib_util_getloadavg=yes
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 ac_cv_lib_util_getloadavg=no
15439 fi
15440 rm -f conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_check_lib_save_LIBS
15443 fi
15444 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15445 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15446 if test $ac_cv_lib_util_getloadavg = yes; then
15447 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15448 fi
15449
15450 fi
15451
15452 if test $ac_have_func = no; then
15453 # There is a commonly available library for RS/6000 AIX.
15454 # Since it is not a standard part of AIX, it might be installed locally.
15455 ac_getloadavg_LIBS=$LIBS
15456 LIBS="-L/usr/local/lib $LIBS"
15457 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15458 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15459 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462 ac_check_lib_save_LIBS=$LIBS
15463 LIBS="-lgetloadavg $LIBS"
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470
15471 /* Override any gcc2 internal prototype to avoid an error. */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char getloadavg ();
15478 int
15479 main ()
15480 {
15481 getloadavg ();
15482 ;
15483 return 0;
15484 }
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 ac_cv_lib_getloadavg_getloadavg=yes
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 ac_cv_lib_getloadavg_getloadavg=no
15513 fi
15514 rm -f conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15517 fi
15518 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15519 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15520 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15521 LIBS="-lgetloadavg $LIBS"
15522 else
15523 LIBS=$ac_getloadavg_LIBS
15524 fi
15525
15526 fi
15527
15528 # Make sure it is really in the library, if we think we found it,
15529 # otherwise set up the replacement function.
15530
15531 for ac_func in getloadavg
15532 do
15533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15534 echo "$as_me:$LINENO: checking for $ac_func" >&5
15535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15536 if eval "test \"\${$as_ac_var+set}\" = set"; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15547 #define $ac_func innocuous_$ac_func
15548
15549 /* System header to define __stub macros and hopefully few prototypes,
15550 which can conflict with char $ac_func (); below.
15551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15552 <limits.h> exists even on freestanding compilers. */
15553
15554 #ifdef __STDC__
15555 # include <limits.h>
15556 #else
15557 # include <assert.h>
15558 #endif
15559
15560 #undef $ac_func
15561
15562 /* Override any gcc2 internal prototype to avoid an error. */
15563 #ifdef __cplusplus
15564 extern "C"
15565 {
15566 #endif
15567 /* We use char because int might match the return type of a gcc2
15568 builtin and then its argument prototype would still apply. */
15569 char $ac_func ();
15570 /* The GNU C library defines this for functions which it implements
15571 to always fail with ENOSYS. Some functions are actually named
15572 something starting with __ and the normal name is an alias. */
15573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15574 choke me
15575 #else
15576 char (*f) () = $ac_func;
15577 #endif
15578 #ifdef __cplusplus
15579 }
15580 #endif
15581
15582 int
15583 main ()
15584 {
15585 return f != $ac_func;
15586 ;
15587 return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15592 (eval $ac_link) 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 eval "$as_ac_var=yes"
15612 else
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15615
15616 eval "$as_ac_var=no"
15617 fi
15618 rm -f conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15620 fi
15621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15623 if test `eval echo '${'$as_ac_var'}'` = yes; then
15624 cat >>confdefs.h <<_ACEOF
15625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15626 _ACEOF
15627
15628 else
15629 case $LIBOBJS in
15630 "getloadavg.$ac_objext" | \
15631 *" getloadavg.$ac_objext" | \
15632 "getloadavg.$ac_objext "* | \
15633 *" getloadavg.$ac_objext "* ) ;;
15634 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15635 esac
15636
15637
15638 cat >>confdefs.h <<\_ACEOF
15639 #define C_GETLOADAVG 1
15640 _ACEOF
15641
15642 # Figure out what our getloadavg.c needs.
15643 ac_have_func=no
15644 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15645 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15646 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15647 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 fi
15650 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15651 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15652 else
15653 # Is the header compilable?
15654 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15655 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 $ac_includes_default
15663 #include <sys/dg_sys_info.h>
15664 _ACEOF
15665 rm -f conftest.$ac_objext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667 (eval $ac_compile) 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_header_compiler=yes
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_header_compiler=no
15692 fi
15693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15695 echo "${ECHO_T}$ac_header_compiler" >&6
15696
15697 # Is the header present?
15698 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15699 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h. */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 #include <sys/dg_sys_info.h>
15707 _ACEOF
15708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } >/dev/null; then
15716 if test -s conftest.err; then
15717 ac_cpp_err=$ac_c_preproc_warn_flag
15718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15719 else
15720 ac_cpp_err=
15721 fi
15722 else
15723 ac_cpp_err=yes
15724 fi
15725 if test -z "$ac_cpp_err"; then
15726 ac_header_preproc=yes
15727 else
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731 ac_header_preproc=no
15732 fi
15733 rm -f conftest.err conftest.$ac_ext
15734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6
15736
15737 # So? What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739 yes:no: )
15740 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15744 ac_header_preproc=yes
15745 ;;
15746 no:yes:* )
15747 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15759 (
15760 cat <<\_ASBOX
15761 ## ------------------------------------------ ##
15762 ## Report this to the AC_PACKAGE_NAME lists. ##
15763 ## ------------------------------------------ ##
15764 _ASBOX
15765 ) |
15766 sed "s/^/$as_me: WARNING: /" >&2
15767 ;;
15768 esac
15769 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15770 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15771 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15775 fi
15776 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15777 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15778
15779 fi
15780 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15781 ac_have_func=yes
15782
15783 cat >>confdefs.h <<\_ACEOF
15784 #define DGUX 1
15785 _ACEOF
15786
15787
15788 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15789 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15790 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793 ac_check_lib_save_LIBS=$LIBS
15794 LIBS="-ldgc $LIBS"
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h. */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801
15802 /* Override any gcc2 internal prototype to avoid an error. */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 /* We use char because int might match the return type of a gcc2
15807 builtin and then its argument prototype would still apply. */
15808 char dg_sys_info ();
15809 int
15810 main ()
15811 {
15812 dg_sys_info ();
15813 ;
15814 return 0;
15815 }
15816 _ACEOF
15817 rm -f conftest.$ac_objext conftest$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819 (eval $ac_link) 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest$ac_exeext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_cv_lib_dgc_dg_sys_info=yes
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 ac_cv_lib_dgc_dg_sys_info=no
15844 fi
15845 rm -f conftest.err conftest.$ac_objext \
15846 conftest$ac_exeext conftest.$ac_ext
15847 LIBS=$ac_check_lib_save_LIBS
15848 fi
15849 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15850 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15851 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_LIBDGC 1
15854 _ACEOF
15855
15856 LIBS="-ldgc $LIBS"
15857
15858 fi
15859
15860 fi
15861
15862
15863
15864 if test "${ac_cv_header_locale_h+set}" = set; then
15865 echo "$as_me:$LINENO: checking for locale.h" >&5
15866 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15867 if test "${ac_cv_header_locale_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 fi
15870 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15871 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15872 else
15873 # Is the header compilable?
15874 echo "$as_me:$LINENO: checking locale.h usability" >&5
15875 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <locale.h>
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_header_compiler=yes
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15910
15911 ac_header_compiler=no
15912 fi
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15915 echo "${ECHO_T}$ac_header_compiler" >&6
15916
15917 # Is the header present?
15918 echo "$as_me:$LINENO: checking locale.h presence" >&5
15919 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <locale.h>
15927 _ACEOF
15928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev/null; then
15936 if test -s conftest.err; then
15937 ac_cpp_err=$ac_c_preproc_warn_flag
15938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15939 else
15940 ac_cpp_err=
15941 fi
15942 else
15943 ac_cpp_err=yes
15944 fi
15945 if test -z "$ac_cpp_err"; then
15946 ac_header_preproc=yes
15947 else
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ac_header_preproc=no
15952 fi
15953 rm -f conftest.err conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6
15956
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959 yes:no: )
15960 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc=yes
15965 ;;
15966 no:yes:* )
15967 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15979 (
15980 cat <<\_ASBOX
15981 ## ------------------------------------------ ##
15982 ## Report this to the AC_PACKAGE_NAME lists. ##
15983 ## ------------------------------------------ ##
15984 _ASBOX
15985 ) |
15986 sed "s/^/$as_me: WARNING: /" >&2
15987 ;;
15988 esac
15989 echo "$as_me:$LINENO: checking for locale.h" >&5
15990 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15991 if test "${ac_cv_header_locale_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 else
15994 ac_cv_header_locale_h=$ac_header_preproc
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15997 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15998
15999 fi
16000
16001
16002
16003 for ac_func in setlocale
16004 do
16005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16006 echo "$as_me:$LINENO: checking for $ac_func" >&5
16007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16008 if eval "test \"\${$as_ac_var+set}\" = set"; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16019 #define $ac_func innocuous_$ac_func
16020
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char $ac_func (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16025
16026 #ifdef __STDC__
16027 # include <limits.h>
16028 #else
16029 # include <assert.h>
16030 #endif
16031
16032 #undef $ac_func
16033
16034 /* Override any gcc2 internal prototype to avoid an error. */
16035 #ifdef __cplusplus
16036 extern "C"
16037 {
16038 #endif
16039 /* We use char because int might match the return type of a gcc2
16040 builtin and then its argument prototype would still apply. */
16041 char $ac_func ();
16042 /* The GNU C library defines this for functions which it implements
16043 to always fail with ENOSYS. Some functions are actually named
16044 something starting with __ and the normal name is an alias. */
16045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16046 choke me
16047 #else
16048 char (*f) () = $ac_func;
16049 #endif
16050 #ifdef __cplusplus
16051 }
16052 #endif
16053
16054 int
16055 main ()
16056 {
16057 return f != $ac_func;
16058 ;
16059 return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 eval "$as_ac_var=yes"
16084 else
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 eval "$as_ac_var=no"
16089 fi
16090 rm -f conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092 fi
16093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098 _ACEOF
16099
16100 fi
16101 done
16102
16103
16104 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16105 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16106 # Irix 4.0.5F has the header but not the library.
16107 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16108 ac_have_func=yes
16109
16110 cat >>confdefs.h <<\_ACEOF
16111 #define SVR4 1
16112 _ACEOF
16113
16114 fi
16115
16116 if test $ac_have_func = no; then
16117 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16118 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16119 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16120 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 fi
16123 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16124 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16125 else
16126 # Is the header compilable?
16127 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16128 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 $ac_includes_default
16136 #include <inq_stats/cpustats.h>
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try='test -s conftest.$ac_objext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 ac_header_compiler=yes
16160 else
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164 ac_header_compiler=no
16165 fi
16166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168 echo "${ECHO_T}$ac_header_compiler" >&6
16169
16170 # Is the header present?
16171 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16172 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <inq_stats/cpustats.h>
16180 _ACEOF
16181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } >/dev/null; then
16189 if test -s conftest.err; then
16190 ac_cpp_err=$ac_c_preproc_warn_flag
16191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16192 else
16193 ac_cpp_err=
16194 fi
16195 else
16196 ac_cpp_err=yes
16197 fi
16198 if test -z "$ac_cpp_err"; then
16199 ac_header_preproc=yes
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_header_preproc=no
16205 fi
16206 rm -f conftest.err conftest.$ac_ext
16207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208 echo "${ECHO_T}$ac_header_preproc" >&6
16209
16210 # So? What about this header?
16211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 yes:no: )
16213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16214 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16216 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc=yes
16218 ;;
16219 no:yes:* )
16220 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16221 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16223 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16225 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16227 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16229 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16231 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16232 (
16233 cat <<\_ASBOX
16234 ## ------------------------------------------ ##
16235 ## Report this to the AC_PACKAGE_NAME lists. ##
16236 ## ------------------------------------------ ##
16237 _ASBOX
16238 ) |
16239 sed "s/^/$as_me: WARNING: /" >&2
16240 ;;
16241 esac
16242 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16243 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16244 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16248 fi
16249 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16250 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16251
16252 fi
16253 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16254 ac_have_func=yes
16255
16256 cat >>confdefs.h <<\_ACEOF
16257 #define UMAX 1
16258 _ACEOF
16259
16260
16261 cat >>confdefs.h <<\_ACEOF
16262 #define UMAX4_3 1
16263 _ACEOF
16264
16265 fi
16266
16267
16268 fi
16269
16270 if test $ac_have_func = no; then
16271 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16272 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16273 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16274 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 fi
16277 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16278 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16279 else
16280 # Is the header compilable?
16281 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16282 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 #include <sys/cpustats.h>
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_header_compiler=yes
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_compiler=no
16319 fi
16320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6
16323
16324 # Is the header present?
16325 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16326 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <sys/cpustats.h>
16334 _ACEOF
16335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16337 ac_status=$?
16338 grep -v '^ *+' conftest.er1 >conftest.err
16339 rm -f conftest.er1
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } >/dev/null; then
16343 if test -s conftest.err; then
16344 ac_cpp_err=$ac_c_preproc_warn_flag
16345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16346 else
16347 ac_cpp_err=
16348 fi
16349 else
16350 ac_cpp_err=yes
16351 fi
16352 if test -z "$ac_cpp_err"; then
16353 ac_header_preproc=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358 ac_header_preproc=no
16359 fi
16360 rm -f conftest.err conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6
16363
16364 # So? What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16366 yes:no: )
16367 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16371 ac_header_preproc=yes
16372 ;;
16373 no:yes:* )
16374 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16386 (
16387 cat <<\_ASBOX
16388 ## ------------------------------------------ ##
16389 ## Report this to the AC_PACKAGE_NAME lists. ##
16390 ## ------------------------------------------ ##
16391 _ASBOX
16392 ) |
16393 sed "s/^/$as_me: WARNING: /" >&2
16394 ;;
16395 esac
16396 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16397 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16398 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16402 fi
16403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16404 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16405
16406 fi
16407 if test $ac_cv_header_sys_cpustats_h = yes; then
16408 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16409 #define UMAX 1
16410 _ACEOF
16411
16412 fi
16413
16414
16415 fi
16416
16417 if test $ac_have_func = no; then
16418
16419 for ac_header in mach/mach.h
16420 do
16421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16423 echo "$as_me:$LINENO: checking for $ac_header" >&5
16424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 fi
16428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16430 else
16431 # Is the header compilable?
16432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h. */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 $ac_includes_default
16441 #include <$ac_header>
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_header_compiler=yes
16465 else
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 ac_header_compiler=no
16470 fi
16471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16473 echo "${ECHO_T}$ac_header_compiler" >&6
16474
16475 # Is the header present?
16476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 #include <$ac_header>
16485 _ACEOF
16486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } >/dev/null; then
16494 if test -s conftest.err; then
16495 ac_cpp_err=$ac_c_preproc_warn_flag
16496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16497 else
16498 ac_cpp_err=
16499 fi
16500 else
16501 ac_cpp_err=yes
16502 fi
16503 if test -z "$ac_cpp_err"; then
16504 ac_header_preproc=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_header_preproc=no
16510 fi
16511 rm -f conftest.err conftest.$ac_ext
16512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16513 echo "${ECHO_T}$ac_header_preproc" >&6
16514
16515 # So? What about this header?
16516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16517 yes:no: )
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16522 ac_header_preproc=yes
16523 ;;
16524 no:yes:* )
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16537 (
16538 cat <<\_ASBOX
16539 ## ------------------------------------------ ##
16540 ## Report this to the AC_PACKAGE_NAME lists. ##
16541 ## ------------------------------------------ ##
16542 _ASBOX
16543 ) |
16544 sed "s/^/$as_me: WARNING: /" >&2
16545 ;;
16546 esac
16547 echo "$as_me:$LINENO: checking for $ac_header" >&5
16548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552 eval "$as_ac_Header=\$ac_header_preproc"
16553 fi
16554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16556
16557 fi
16558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16559 cat >>confdefs.h <<_ACEOF
16560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16561 _ACEOF
16562
16563 fi
16564
16565 done
16566
16567 fi
16568
16569
16570 for ac_header in nlist.h
16571 do
16572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16574 echo "$as_me:$LINENO: checking for $ac_header" >&5
16575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 fi
16579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16581 else
16582 # Is the header compilable?
16583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 $ac_includes_default
16592 #include <$ac_header>
16593 _ACEOF
16594 rm -f conftest.$ac_objext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16596 (eval $ac_compile) 2>conftest.er1
16597 ac_status=$?
16598 grep -v '^ *+' conftest.er1 >conftest.err
16599 rm -f conftest.er1
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try='test -s conftest.$ac_objext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_header_compiler=yes
16616 else
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 ac_header_compiler=no
16621 fi
16622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16624 echo "${ECHO_T}$ac_header_compiler" >&6
16625
16626 # Is the header present?
16627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <$ac_header>
16636 _ACEOF
16637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } >/dev/null; then
16645 if test -s conftest.err; then
16646 ac_cpp_err=$ac_c_preproc_warn_flag
16647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16648 else
16649 ac_cpp_err=
16650 fi
16651 else
16652 ac_cpp_err=yes
16653 fi
16654 if test -z "$ac_cpp_err"; then
16655 ac_header_preproc=yes
16656 else
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660 ac_header_preproc=no
16661 fi
16662 rm -f conftest.err conftest.$ac_ext
16663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16664 echo "${ECHO_T}$ac_header_preproc" >&6
16665
16666 # So? What about this header?
16667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16668 yes:no: )
16669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16673 ac_header_preproc=yes
16674 ;;
16675 no:yes:* )
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16688 (
16689 cat <<\_ASBOX
16690 ## ------------------------------------------ ##
16691 ## Report this to the AC_PACKAGE_NAME lists. ##
16692 ## ------------------------------------------ ##
16693 _ASBOX
16694 ) |
16695 sed "s/^/$as_me: WARNING: /" >&2
16696 ;;
16697 esac
16698 echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703 eval "$as_ac_Header=\$ac_header_preproc"
16704 fi
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16707
16708 fi
16709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16710 cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16712 _ACEOF
16713 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16714 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16715 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718 cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h. */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <nlist.h>
16725
16726 int
16727 main ()
16728 {
16729 static struct nlist ac_aggr;
16730 if (ac_aggr.n_un.n_name)
16731 return 0;
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest.$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738 (eval $ac_compile) 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest.$ac_objext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_member_struct_nlist_n_un_n_name=yes
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 #include <nlist.h>
16769
16770 int
16771 main ()
16772 {
16773 static struct nlist ac_aggr;
16774 if (sizeof ac_aggr.n_un.n_name)
16775 return 0;
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest.$ac_objext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_member_struct_nlist_n_un_n_name=yes
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 ac_cv_member_struct_nlist_n_un_n_name=no
16807 fi
16808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809 fi
16810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16811 fi
16812 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16813 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16814 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16818 _ACEOF
16819
16820
16821 cat >>confdefs.h <<\_ACEOF
16822 #define NLIST_NAME_UNION 1
16823 _ACEOF
16824
16825 fi
16826
16827
16828 fi
16829
16830 done
16831
16832 fi
16833 done
16834
16835
16836 # Some definitions of getloadavg require that the program be installed setgid.
16837 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16838 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16839 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842 cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h. */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16849 #ifdef LDAV_PRIVILEGED
16850 Yowza Am I SETGID yet
16851 #endif
16852 _ACEOF
16853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16854 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16855 ac_cv_func_getloadavg_setgid=yes
16856 else
16857 ac_cv_func_getloadavg_setgid=no
16858 fi
16859 rm -f conftest*
16860
16861 fi
16862 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16863 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16864 if test $ac_cv_func_getloadavg_setgid = yes; then
16865 NEED_SETGID=true
16866
16867 cat >>confdefs.h <<\_ACEOF
16868 #define GETLOADAVG_PRIVILEGED 1
16869 _ACEOF
16870
16871 else
16872 NEED_SETGID=false
16873 fi
16874
16875 if test $ac_cv_func_getloadavg_setgid = yes; then
16876 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16877 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16878 if test "${ac_cv_group_kmem+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16882 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16883 # If we got an error (system does not support symlinks), try without -L.
16884 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16885 ac_cv_group_kmem=`echo $ac_ls_output \
16886 | sed -ne 's/[ ][ ]*/ /g;
16887 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16888 / /s/.* //;p;'`
16889
16890 fi
16891 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16892 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16893 KMEM_GROUP=$ac_cv_group_kmem
16894 fi
16895 if test "x$ac_save_LIBS" = x; then
16896 GETLOADAVG_LIBS=$LIBS
16897 else
16898 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16899 fi
16900 LIBS=$ac_save_LIBS
16901
16902
16903
16904 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16905 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16906 if test "${ac_cv_sys_largefile_source+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909 while :; do
16910 ac_cv_sys_largefile_source=no
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h. */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 #include <stdio.h>
16918 int
16919 main ()
16920 {
16921 return !fseeko;
16922 ;
16923 return 0;
16924 }
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16928 (eval $ac_compile) 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try='test -s conftest.$ac_objext'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 break
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 fi
16953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #define _LARGEFILE_SOURCE 1
16961 #include <stdio.h>
16962 int
16963 main ()
16964 {
16965 return !fseeko;
16966 ;
16967 return 0;
16968 }
16969 _ACEOF
16970 rm -f conftest.$ac_objext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16972 (eval $ac_compile) 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest.$ac_objext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_sys_largefile_source=1; break
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 fi
16997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16998 break
16999 done
17000 fi
17001 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17002 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17003 if test "$ac_cv_sys_largefile_source" != no; then
17004
17005 cat >>confdefs.h <<_ACEOF
17006 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17007 _ACEOF
17008
17009 fi
17010 rm -f conftest*
17011
17012 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17013 # in glibc 2.1.3, but that breaks too many other things.
17014 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17015 echo "$as_me:$LINENO: checking for fseeko" >&5
17016 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17017 if test "${ac_cv_func_fseeko+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h. */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 #include <stdio.h>
17027 int
17028 main ()
17029 {
17030 return fseeko && fseeko (stdin, 0, 0);
17031 ;
17032 return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext conftest$ac_exeext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17037 (eval $ac_link) 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest$ac_exeext'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_cv_func_fseeko=yes
17057 else
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 ac_cv_func_fseeko=no
17062 fi
17063 rm -f conftest.err conftest.$ac_objext \
17064 conftest$ac_exeext conftest.$ac_ext
17065 fi
17066 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17067 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17068 if test $ac_cv_func_fseeko = yes; then
17069
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_FSEEKO 1
17072 _ACEOF
17073
17074 fi
17075
17076
17077 # Configure getopt.
17078 # getopt.m4 serial 10
17079
17080 # The getopt module assume you want GNU getopt, with getopt_long etc,
17081 # rather than vanilla POSIX getopt. This means your your code should
17082 # always include <getopt.h> for the getopt prototypes.
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094 # Prerequisites of lib/getopt*.
17095
17096
17097
17098
17099 GETOPT_H=
17100
17101 for ac_header in getopt.h
17102 do
17103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17105 echo "$as_me:$LINENO: checking for $ac_header" >&5
17106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 fi
17110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17112 else
17113 # Is the header compilable?
17114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17116 cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h. */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 #include <$ac_header>
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest.$ac_objext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_header_compiler=yes
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17150
17151 ac_header_compiler=no
17152 fi
17153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17155 echo "${ECHO_T}$ac_header_compiler" >&6
17156
17157 # Is the header present?
17158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 #include <$ac_header>
17167 _ACEOF
17168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17170 ac_status=$?
17171 grep -v '^ *+' conftest.er1 >conftest.err
17172 rm -f conftest.er1
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } >/dev/null; then
17176 if test -s conftest.err; then
17177 ac_cpp_err=$ac_c_preproc_warn_flag
17178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17179 else
17180 ac_cpp_err=
17181 fi
17182 else
17183 ac_cpp_err=yes
17184 fi
17185 if test -z "$ac_cpp_err"; then
17186 ac_header_preproc=yes
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 ac_header_preproc=no
17192 fi
17193 rm -f conftest.err conftest.$ac_ext
17194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17195 echo "${ECHO_T}$ac_header_preproc" >&6
17196
17197 # So? What about this header?
17198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17199 yes:no: )
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17204 ac_header_preproc=yes
17205 ;;
17206 no:yes:* )
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17219 (
17220 cat <<\_ASBOX
17221 ## ------------------------------------------ ##
17222 ## Report this to the AC_PACKAGE_NAME lists. ##
17223 ## ------------------------------------------ ##
17224 _ASBOX
17225 ) |
17226 sed "s/^/$as_me: WARNING: /" >&2
17227 ;;
17228 esac
17229 echo "$as_me:$LINENO: checking for $ac_header" >&5
17230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 eval "$as_ac_Header=\$ac_header_preproc"
17235 fi
17236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17238
17239 fi
17240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17241 cat >>confdefs.h <<_ACEOF
17242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17243 _ACEOF
17244
17245 else
17246 GETOPT_H=getopt.h
17247 fi
17248
17249 done
17250
17251 if test -z "$GETOPT_H"; then
17252
17253 for ac_func in getopt_long_only
17254 do
17255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17256 echo "$as_me:$LINENO: checking for $ac_func" >&5
17257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17258 if eval "test \"\${$as_ac_var+set}\" = set"; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17269 #define $ac_func innocuous_$ac_func
17270
17271 /* System header to define __stub macros and hopefully few prototypes,
17272 which can conflict with char $ac_func (); below.
17273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17274 <limits.h> exists even on freestanding compilers. */
17275
17276 #ifdef __STDC__
17277 # include <limits.h>
17278 #else
17279 # include <assert.h>
17280 #endif
17281
17282 #undef $ac_func
17283
17284 /* Override any gcc2 internal prototype to avoid an error. */
17285 #ifdef __cplusplus
17286 extern "C"
17287 {
17288 #endif
17289 /* We use char because int might match the return type of a gcc2
17290 builtin and then its argument prototype would still apply. */
17291 char $ac_func ();
17292 /* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17296 choke me
17297 #else
17298 char (*f) () = $ac_func;
17299 #endif
17300 #ifdef __cplusplus
17301 }
17302 #endif
17303
17304 int
17305 main ()
17306 {
17307 return f != $ac_func;
17308 ;
17309 return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17314 (eval $ac_link) 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 eval "$as_ac_var=yes"
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 eval "$as_ac_var=no"
17339 fi
17340 rm -f conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17342 fi
17343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17345 if test `eval echo '${'$as_ac_var'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17348 _ACEOF
17349
17350 else
17351 GETOPT_H=getopt.h
17352 fi
17353 done
17354
17355 fi
17356
17357 if test -z "$GETOPT_H"; then
17358 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17359 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17360 if test "${ac_cv_have_decl_optreset+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <getopt.h>
17370
17371 int
17372 main ()
17373 {
17374 #ifndef optreset
17375 char *p = (char *) optreset;
17376 #endif
17377
17378 ;
17379 return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest.$ac_objext'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 ac_cv_have_decl_optreset=yes
17404 else
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 ac_cv_have_decl_optreset=no
17409 fi
17410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17411 fi
17412 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17413 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17414 if test $ac_cv_have_decl_optreset = yes; then
17415 GETOPT_H=getopt.h
17416 fi
17417
17418 fi
17419
17420 if test -z "$GETOPT_H"; then
17421 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17422 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17423 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426 if test "$cross_compiling" = yes; then
17427 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17428 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17429 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432 cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h. */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438 #include <getopt.h>
17439
17440 int
17441 main ()
17442 {
17443 #ifndef getopt_clip
17444 char *p = (char *) getopt_clip;
17445 #endif
17446
17447 ;
17448 return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_have_decl_getopt_clip=yes
17473 else
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 ac_cv_have_decl_getopt_clip=no
17478 fi
17479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17482 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17483 if test $ac_cv_have_decl_getopt_clip = yes; then
17484 gl_cv_func_gnu_getopt=no
17485 else
17486 gl_cv_func_gnu_getopt=yes
17487 fi
17488
17489 else
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 #include <getopt.h>
17497 int
17498 main ()
17499 {
17500
17501 char *myargv[3];
17502 myargv[0] = "conftest";
17503 myargv[1] = "-+";
17504 myargv[2] = 0;
17505 return getopt (2, myargv, "+a") != '?';
17506
17507 ;
17508 return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 gl_cv_func_gnu_getopt=yes
17523 else
17524 echo "$as_me: program exited with status $ac_status" >&5
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528 ( exit $ac_status )
17529 gl_cv_func_gnu_getopt=no
17530 fi
17531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17532 fi
17533 fi
17534 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17535 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17536 if test "$gl_cv_func_gnu_getopt" = "no"; then
17537 GETOPT_H=getopt.h
17538 fi
17539 fi
17540
17541
17542
17543 if test -n "$GETOPT_H"; then
17544
17545
17546 GETOPT_H=getopt.h
17547
17548 cat >>confdefs.h <<\_ACEOF
17549 #define __GETOPT_PREFIX rpl_
17550 _ACEOF
17551
17552
17553
17554 :
17555 GETOPTOBJS='getopt.o getopt1.o'
17556
17557 fi
17558
17559
17560
17561
17562 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17563 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17564 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567 # Use it with a single arg.
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 $ac_includes_default
17575 int
17576 main ()
17577 {
17578 getpgrp (0);
17579 ;
17580 return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>conftest.er1
17586 ac_status=$?
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest.$ac_objext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_func_getpgrp_void=no
17605 else
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 ac_cv_func_getpgrp_void=yes
17610 fi
17611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17612
17613 fi
17614 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17615 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17616 if test $ac_cv_func_getpgrp_void = yes; then
17617
17618 cat >>confdefs.h <<\_ACEOF
17619 #define GETPGRP_VOID 1
17620 _ACEOF
17621
17622 fi
17623
17624
17625
17626 for ac_func in strftime
17627 do
17628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17629 echo "$as_me:$LINENO: checking for $ac_func" >&5
17630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17631 if eval "test \"\${$as_ac_var+set}\" = set"; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17642 #define $ac_func innocuous_$ac_func
17643
17644 /* System header to define __stub macros and hopefully few prototypes,
17645 which can conflict with char $ac_func (); below.
17646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17647 <limits.h> exists even on freestanding compilers. */
17648
17649 #ifdef __STDC__
17650 # include <limits.h>
17651 #else
17652 # include <assert.h>
17653 #endif
17654
17655 #undef $ac_func
17656
17657 /* Override any gcc2 internal prototype to avoid an error. */
17658 #ifdef __cplusplus
17659 extern "C"
17660 {
17661 #endif
17662 /* We use char because int might match the return type of a gcc2
17663 builtin and then its argument prototype would still apply. */
17664 char $ac_func ();
17665 /* The GNU C library defines this for functions which it implements
17666 to always fail with ENOSYS. Some functions are actually named
17667 something starting with __ and the normal name is an alias. */
17668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17669 choke me
17670 #else
17671 char (*f) () = $ac_func;
17672 #endif
17673 #ifdef __cplusplus
17674 }
17675 #endif
17676
17677 int
17678 main ()
17679 {
17680 return f != $ac_func;
17681 ;
17682 return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest$ac_exeext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 eval "$as_ac_var=yes"
17707 else
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 eval "$as_ac_var=no"
17712 fi
17713 rm -f conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17715 fi
17716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17718 if test `eval echo '${'$as_ac_var'}'` = yes; then
17719 cat >>confdefs.h <<_ACEOF
17720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17721 _ACEOF
17722
17723 else
17724 # strftime is in -lintl on SCO UNIX.
17725 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17726 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17727 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730 ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-lintl $LIBS"
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738
17739 /* Override any gcc2 internal prototype to avoid an error. */
17740 #ifdef __cplusplus
17741 extern "C"
17742 #endif
17743 /* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17745 char strftime ();
17746 int
17747 main ()
17748 {
17749 strftime ();
17750 ;
17751 return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest$ac_exeext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_lib_intl_strftime=yes
17776 else
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780 ac_cv_lib_intl_strftime=no
17781 fi
17782 rm -f conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 LIBS=$ac_check_lib_save_LIBS
17785 fi
17786 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17787 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17788 if test $ac_cv_lib_intl_strftime = yes; then
17789 cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_STRFTIME 1
17791 _ACEOF
17792
17793 LIBS="-lintl $LIBS"
17794 fi
17795
17796 fi
17797 done
17798
17799
17800 # UNIX98 PTYs.
17801
17802 for ac_func in grantpt
17803 do
17804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17805 echo "$as_me:$LINENO: checking for $ac_func" >&5
17806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17807 if eval "test \"\${$as_ac_var+set}\" = set"; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810 cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h. */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17818 #define $ac_func innocuous_$ac_func
17819
17820 /* System header to define __stub macros and hopefully few prototypes,
17821 which can conflict with char $ac_func (); below.
17822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17823 <limits.h> exists even on freestanding compilers. */
17824
17825 #ifdef __STDC__
17826 # include <limits.h>
17827 #else
17828 # include <assert.h>
17829 #endif
17830
17831 #undef $ac_func
17832
17833 /* Override any gcc2 internal prototype to avoid an error. */
17834 #ifdef __cplusplus
17835 extern "C"
17836 {
17837 #endif
17838 /* We use char because int might match the return type of a gcc2
17839 builtin and then its argument prototype would still apply. */
17840 char $ac_func ();
17841 /* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17845 choke me
17846 #else
17847 char (*f) () = $ac_func;
17848 #endif
17849 #ifdef __cplusplus
17850 }
17851 #endif
17852
17853 int
17854 main ()
17855 {
17856 return f != $ac_func;
17857 ;
17858 return 0;
17859 }
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17863 (eval $ac_link) 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 eval "$as_ac_var=yes"
17883 else
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 eval "$as_ac_var=no"
17888 fi
17889 rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17891 fi
17892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17894 if test `eval echo '${'$as_ac_var'}'` = yes; then
17895 cat >>confdefs.h <<_ACEOF
17896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17897 _ACEOF
17898
17899 fi
17900 done
17901
17902
17903 # PTY-related GNU extensions.
17904
17905 for ac_func in getpt
17906 do
17907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17908 echo "$as_me:$LINENO: checking for $ac_func" >&5
17909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17910 if eval "test \"\${$as_ac_var+set}\" = set"; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17921 #define $ac_func innocuous_$ac_func
17922
17923 /* System header to define __stub macros and hopefully few prototypes,
17924 which can conflict with char $ac_func (); below.
17925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17926 <limits.h> exists even on freestanding compilers. */
17927
17928 #ifdef __STDC__
17929 # include <limits.h>
17930 #else
17931 # include <assert.h>
17932 #endif
17933
17934 #undef $ac_func
17935
17936 /* Override any gcc2 internal prototype to avoid an error. */
17937 #ifdef __cplusplus
17938 extern "C"
17939 {
17940 #endif
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17943 char $ac_func ();
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17948 choke me
17949 #else
17950 char (*f) () = $ac_func;
17951 #endif
17952 #ifdef __cplusplus
17953 }
17954 #endif
17955
17956 int
17957 main ()
17958 {
17959 return f != $ac_func;
17960 ;
17961 return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 eval "$as_ac_var=yes"
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 eval "$as_ac_var=no"
17991 fi
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 fi
17995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17997 if test `eval echo '${'$as_ac_var'}'` = yes; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18000 _ACEOF
18001
18002 fi
18003 done
18004
18005
18006 # Check this now, so that we will NOT find the above functions in ncurses.
18007 # That is because we have not set up to link ncurses in lib-src.
18008 # It's better to believe a function is not available
18009 # than to expect to find it in ncurses.
18010
18011 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18012 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18013 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016 ac_check_lib_save_LIBS=$LIBS
18017 LIBS="-lncurses $LIBS"
18018 cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h. */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024
18025 /* Override any gcc2 internal prototype to avoid an error. */
18026 #ifdef __cplusplus
18027 extern "C"
18028 #endif
18029 /* We use char because int might match the return type of a gcc2
18030 builtin and then its argument prototype would still apply. */
18031 char tparm ();
18032 int
18033 main ()
18034 {
18035 tparm ();
18036 ;
18037 return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_lib_ncurses_tparm=yes
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 ac_cv_lib_ncurses_tparm=no
18067 fi
18068 rm -f conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18071 fi
18072 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18073 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18074 if test $ac_cv_lib_ncurses_tparm = yes; then
18075 cat >>confdefs.h <<_ACEOF
18076 #define HAVE_LIBNCURSES 1
18077 _ACEOF
18078
18079 LIBS="-lncurses $LIBS"
18080
18081 fi
18082
18083
18084 # Do we need the Hesiod library to provide the support routines?
18085 if test "$with_hesiod" = yes ; then
18086 # Don't set $LIBS here -- see comments above.
18087 resolv=no
18088 echo "$as_me:$LINENO: checking for res_send" >&5
18089 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18090 if test "${ac_cv_func_res_send+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101 #define res_send innocuous_res_send
18102
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char res_send (); below.
18105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106 <limits.h> exists even on freestanding compilers. */
18107
18108 #ifdef __STDC__
18109 # include <limits.h>
18110 #else
18111 # include <assert.h>
18112 #endif
18113
18114 #undef res_send
18115
18116 /* Override any gcc2 internal prototype to avoid an error. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 {
18120 #endif
18121 /* We use char because int might match the return type of a gcc2
18122 builtin and then its argument prototype would still apply. */
18123 char res_send ();
18124 /* The GNU C library defines this for functions which it implements
18125 to always fail with ENOSYS. Some functions are actually named
18126 something starting with __ and the normal name is an alias. */
18127 #if defined (__stub_res_send) || defined (__stub___res_send)
18128 choke me
18129 #else
18130 char (*f) () = res_send;
18131 #endif
18132 #ifdef __cplusplus
18133 }
18134 #endif
18135
18136 int
18137 main ()
18138 {
18139 return f != res_send;
18140 ;
18141 return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146 (eval $ac_link) 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest$ac_exeext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_func_res_send=yes
18166 else
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 ac_cv_func_res_send=no
18171 fi
18172 rm -f conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18174 fi
18175 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18176 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18177 if test $ac_cv_func_res_send = yes; then
18178 :
18179 else
18180 echo "$as_me:$LINENO: checking for __res_send" >&5
18181 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18182 if test "${ac_cv_func___res_send+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 else
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18193 #define __res_send innocuous___res_send
18194
18195 /* System header to define __stub macros and hopefully few prototypes,
18196 which can conflict with char __res_send (); below.
18197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18198 <limits.h> exists even on freestanding compilers. */
18199
18200 #ifdef __STDC__
18201 # include <limits.h>
18202 #else
18203 # include <assert.h>
18204 #endif
18205
18206 #undef __res_send
18207
18208 /* Override any gcc2 internal prototype to avoid an error. */
18209 #ifdef __cplusplus
18210 extern "C"
18211 {
18212 #endif
18213 /* We use char because int might match the return type of a gcc2
18214 builtin and then its argument prototype would still apply. */
18215 char __res_send ();
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined (__stub___res_send) || defined (__stub_____res_send)
18220 choke me
18221 #else
18222 char (*f) () = __res_send;
18223 #endif
18224 #ifdef __cplusplus
18225 }
18226 #endif
18227
18228 int
18229 main ()
18230 {
18231 return f != __res_send;
18232 ;
18233 return 0;
18234 }
18235 _ACEOF
18236 rm -f conftest.$ac_objext conftest$ac_exeext
18237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18238 (eval $ac_link) 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_cv_func___res_send=yes
18258 else
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18261
18262 ac_cv_func___res_send=no
18263 fi
18264 rm -f conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266 fi
18267 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18268 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18269 if test $ac_cv_func___res_send = yes; then
18270 :
18271 else
18272 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18273 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18274 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lresolv $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285
18286 /* Override any gcc2 internal prototype to avoid an error. */
18287 #ifdef __cplusplus
18288 extern "C"
18289 #endif
18290 /* We use char because int might match the return type of a gcc2
18291 builtin and then its argument prototype would still apply. */
18292 char res_send ();
18293 int
18294 main ()
18295 {
18296 res_send ();
18297 ;
18298 return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18303 (eval $ac_link) 2>conftest.er1
18304 ac_status=$?
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_cv_lib_resolv_res_send=yes
18323 else
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 ac_cv_lib_resolv_res_send=no
18328 fi
18329 rm -f conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18332 fi
18333 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18334 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18335 if test $ac_cv_lib_resolv_res_send = yes; then
18336 resolv=yes
18337 else
18338 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18339 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18340 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343 ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-lresolv $LIBS"
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h. */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351
18352 /* Override any gcc2 internal prototype to avoid an error. */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18358 char __res_send ();
18359 int
18360 main ()
18361 {
18362 __res_send ();
18363 ;
18364 return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_resolv___res_send=yes
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393 ac_cv_lib_resolv___res_send=no
18394 fi
18395 rm -f conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18398 fi
18399 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18400 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18401 if test $ac_cv_lib_resolv___res_send = yes; then
18402 resolv=yes
18403 fi
18404
18405 fi
18406
18407 fi
18408
18409 fi
18410
18411 if test "$resolv" = yes ; then
18412 RESOLVLIB=-lresolv
18413
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE_LIBRESOLV 1
18416 _ACEOF
18417
18418 else
18419 RESOLVLIB=
18420 fi
18421 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18422 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18423 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18434 #define hes_getmailhost innocuous_hes_getmailhost
18435
18436 /* System header to define __stub macros and hopefully few prototypes,
18437 which can conflict with char hes_getmailhost (); below.
18438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 <limits.h> exists even on freestanding compilers. */
18440
18441 #ifdef __STDC__
18442 # include <limits.h>
18443 #else
18444 # include <assert.h>
18445 #endif
18446
18447 #undef hes_getmailhost
18448
18449 /* Override any gcc2 internal prototype to avoid an error. */
18450 #ifdef __cplusplus
18451 extern "C"
18452 {
18453 #endif
18454 /* We use char because int might match the return type of a gcc2
18455 builtin and then its argument prototype would still apply. */
18456 char hes_getmailhost ();
18457 /* The GNU C library defines this for functions which it implements
18458 to always fail with ENOSYS. Some functions are actually named
18459 something starting with __ and the normal name is an alias. */
18460 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18461 choke me
18462 #else
18463 char (*f) () = hes_getmailhost;
18464 #endif
18465 #ifdef __cplusplus
18466 }
18467 #endif
18468
18469 int
18470 main ()
18471 {
18472 return f != hes_getmailhost;
18473 ;
18474 return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18479 (eval $ac_link) 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try='test -s conftest$ac_exeext'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 ac_cv_func_hes_getmailhost=yes
18499 else
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 ac_cv_func_hes_getmailhost=no
18504 fi
18505 rm -f conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18507 fi
18508 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18509 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18510 if test $ac_cv_func_hes_getmailhost = yes; then
18511 :
18512 else
18513 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18514 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18515 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 ac_check_lib_save_LIBS=$LIBS
18519 LIBS="-lhesiod $RESOLVLIB $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526
18527 /* Override any gcc2 internal prototype to avoid an error. */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533 char hes_getmailhost ();
18534 int
18535 main ()
18536 {
18537 hes_getmailhost ();
18538 ;
18539 return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_lib_hesiod_hes_getmailhost=yes
18564 else
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 ac_cv_lib_hesiod_hes_getmailhost=no
18569 fi
18570 rm -f conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572 LIBS=$ac_check_lib_save_LIBS
18573 fi
18574 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18575 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18576 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_LIBHESIOD 1
18580 _ACEOF
18581
18582 else
18583 :
18584 fi
18585
18586 fi
18587
18588 fi
18589
18590 # These tell us which Kerberos-related libraries to use.
18591 if test "${with_kerberos+set}" = set; then
18592
18593 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18594 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18595 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598 ac_check_lib_save_LIBS=$LIBS
18599 LIBS="-lcom_err $LIBS"
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606
18607 /* Override any gcc2 internal prototype to avoid an error. */
18608 #ifdef __cplusplus
18609 extern "C"
18610 #endif
18611 /* We use char because int might match the return type of a gcc2
18612 builtin and then its argument prototype would still apply. */
18613 char com_err ();
18614 int
18615 main ()
18616 {
18617 com_err ();
18618 ;
18619 return 0;
18620 }
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18624 (eval $ac_link) 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest$ac_exeext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_lib_com_err_com_err=yes
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648 ac_cv_lib_com_err_com_err=no
18649 fi
18650 rm -f conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18653 fi
18654 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18655 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18656 if test $ac_cv_lib_com_err_com_err = yes; then
18657 cat >>confdefs.h <<_ACEOF
18658 #define HAVE_LIBCOM_ERR 1
18659 _ACEOF
18660
18661 LIBS="-lcom_err $LIBS"
18662
18663 fi
18664
18665
18666 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18667 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18668 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671 ac_check_lib_save_LIBS=$LIBS
18672 LIBS="-lk5crypto $LIBS"
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679
18680 /* Override any gcc2 internal prototype to avoid an error. */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 /* We use char because int might match the return type of a gcc2
18685 builtin and then its argument prototype would still apply. */
18686 char mit_des_cbc_encrypt ();
18687 int
18688 main ()
18689 {
18690 mit_des_cbc_encrypt ();
18691 ;
18692 return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest$ac_exeext'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18717 else
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18722 fi
18723 rm -f conftest.err conftest.$ac_objext \
18724 conftest$ac_exeext conftest.$ac_ext
18725 LIBS=$ac_check_lib_save_LIBS
18726 fi
18727 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18728 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18729 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18730 cat >>confdefs.h <<_ACEOF
18731 #define HAVE_LIBK5CRYPTO 1
18732 _ACEOF
18733
18734 LIBS="-lk5crypto $LIBS"
18735
18736 fi
18737
18738
18739 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18740 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18741 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744 ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lcrypto $LIBS"
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h. */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18752
18753 /* Override any gcc2 internal prototype to avoid an error. */
18754 #ifdef __cplusplus
18755 extern "C"
18756 #endif
18757 /* We use char because int might match the return type of a gcc2
18758 builtin and then its argument prototype would still apply. */
18759 char mit_des_cbc_encrypt ();
18760 int
18761 main ()
18762 {
18763 mit_des_cbc_encrypt ();
18764 ;
18765 return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770 (eval $ac_link) 2>conftest.er1
18771 ac_status=$?
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest$ac_exeext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18790 else
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18795 fi
18796 rm -f conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18799 fi
18800 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18801 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18802 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_LIBCRYPTO 1
18805 _ACEOF
18806
18807 LIBS="-lcrypto $LIBS"
18808
18809 fi
18810
18811
18812 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18813 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18814 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 ac_check_lib_save_LIBS=$LIBS
18818 LIBS="-lkrb5 $LIBS"
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h. */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825
18826 /* Override any gcc2 internal prototype to avoid an error. */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 /* We use char because int might match the return type of a gcc2
18831 builtin and then its argument prototype would still apply. */
18832 char krb5_init_context ();
18833 int
18834 main ()
18835 {
18836 krb5_init_context ();
18837 ;
18838 return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext conftest$ac_exeext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18843 (eval $ac_link) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_lib_krb5_krb5_init_context=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867 ac_cv_lib_krb5_krb5_init_context=no
18868 fi
18869 rm -f conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18871 LIBS=$ac_check_lib_save_LIBS
18872 fi
18873 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18874 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18875 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18876 cat >>confdefs.h <<_ACEOF
18877 #define HAVE_LIBKRB5 1
18878 _ACEOF
18879
18880 LIBS="-lkrb5 $LIBS"
18881
18882 fi
18883
18884 if test "${with_kerberos5+set}" != set; then
18885
18886 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18887 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18888 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-ldes425 $LIBS"
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899
18900 /* Override any gcc2 internal prototype to avoid an error. */
18901 #ifdef __cplusplus
18902 extern "C"
18903 #endif
18904 /* We use char because int might match the return type of a gcc2
18905 builtin and then its argument prototype would still apply. */
18906 char des_cbc_encrypt ();
18907 int
18908 main ()
18909 {
18910 des_cbc_encrypt ();
18911 ;
18912 return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18917 (eval $ac_link) 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest$ac_exeext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_des425_des_cbc_encrypt=yes
18937 else
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_cv_lib_des425_des_cbc_encrypt=no
18942 fi
18943 rm -f conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_check_lib_save_LIBS
18946 fi
18947 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18948 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18949 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define HAVE_LIBDES425 1
18952 _ACEOF
18953
18954 LIBS="-ldes425 $LIBS"
18955
18956 else
18957
18958 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18959 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18960 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 ac_check_lib_save_LIBS=$LIBS
18964 LIBS="-ldes $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971
18972 /* Override any gcc2 internal prototype to avoid an error. */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 /* We use char because int might match the return type of a gcc2
18977 builtin and then its argument prototype would still apply. */
18978 char des_cbc_encrypt ();
18979 int
18980 main ()
18981 {
18982 des_cbc_encrypt ();
18983 ;
18984 return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18989 (eval $ac_link) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest$ac_exeext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_lib_des_des_cbc_encrypt=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 ac_cv_lib_des_des_cbc_encrypt=no
19014 fi
19015 rm -f conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
19017 LIBS=$ac_check_lib_save_LIBS
19018 fi
19019 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19020 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19021 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19022 cat >>confdefs.h <<_ACEOF
19023 #define HAVE_LIBDES 1
19024 _ACEOF
19025
19026 LIBS="-ldes $LIBS"
19027
19028 fi
19029
19030 fi
19031
19032
19033 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19034 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19035 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038 ac_check_lib_save_LIBS=$LIBS
19039 LIBS="-lkrb4 $LIBS"
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046
19047 /* Override any gcc2 internal prototype to avoid an error. */
19048 #ifdef __cplusplus
19049 extern "C"
19050 #endif
19051 /* We use char because int might match the return type of a gcc2
19052 builtin and then its argument prototype would still apply. */
19053 char krb_get_cred ();
19054 int
19055 main ()
19056 {
19057 krb_get_cred ();
19058 ;
19059 return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064 (eval $ac_link) 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
19071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_lib_krb4_krb_get_cred=yes
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_cv_lib_krb4_krb_get_cred=no
19089 fi
19090 rm -f conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19093 fi
19094 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19095 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19096 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_LIBKRB4 1
19099 _ACEOF
19100
19101 LIBS="-lkrb4 $LIBS"
19102
19103 else
19104
19105 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19106 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19107 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-lkrb $LIBS"
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118
19119 /* Override any gcc2 internal prototype to avoid an error. */
19120 #ifdef __cplusplus
19121 extern "C"
19122 #endif
19123 /* We use char because int might match the return type of a gcc2
19124 builtin and then its argument prototype would still apply. */
19125 char krb_get_cred ();
19126 int
19127 main ()
19128 {
19129 krb_get_cred ();
19130 ;
19131 return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>conftest.er1
19137 ac_status=$?
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest$ac_exeext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_lib_krb_krb_get_cred=yes
19156 else
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19159
19160 ac_cv_lib_krb_krb_get_cred=no
19161 fi
19162 rm -f conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19165 fi
19166 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19167 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19168 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_LIBKRB 1
19171 _ACEOF
19172
19173 LIBS="-lkrb $LIBS"
19174
19175 fi
19176
19177 fi
19178
19179 fi
19180
19181 if test "${with_kerberos5+set}" = set; then
19182
19183 for ac_header in krb5.h
19184 do
19185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19187 echo "$as_me:$LINENO: checking for $ac_header" >&5
19188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 fi
19192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19194 else
19195 # Is the header compilable?
19196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19198 cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h. */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204 $ac_includes_default
19205 #include <$ac_header>
19206 _ACEOF
19207 rm -f conftest.$ac_objext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19209 (eval $ac_compile) 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try='test -s conftest.$ac_objext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_header_compiler=yes
19229 else
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 ac_header_compiler=no
19234 fi
19235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19237 echo "${ECHO_T}$ac_header_compiler" >&6
19238
19239 # Is the header present?
19240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <$ac_header>
19249 _ACEOF
19250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19252 ac_status=$?
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } >/dev/null; then
19258 if test -s conftest.err; then
19259 ac_cpp_err=$ac_c_preproc_warn_flag
19260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19261 else
19262 ac_cpp_err=
19263 fi
19264 else
19265 ac_cpp_err=yes
19266 fi
19267 if test -z "$ac_cpp_err"; then
19268 ac_header_preproc=yes
19269 else
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273 ac_header_preproc=no
19274 fi
19275 rm -f conftest.err conftest.$ac_ext
19276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6
19278
19279 # So? What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19281 yes:no: )
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286 ac_header_preproc=yes
19287 ;;
19288 no:yes:* )
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19301 (
19302 cat <<\_ASBOX
19303 ## ------------------------------------------ ##
19304 ## Report this to the AC_PACKAGE_NAME lists. ##
19305 ## ------------------------------------------ ##
19306 _ASBOX
19307 ) |
19308 sed "s/^/$as_me: WARNING: /" >&2
19309 ;;
19310 esac
19311 echo "$as_me:$LINENO: checking for $ac_header" >&5
19312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316 eval "$as_ac_Header=\$ac_header_preproc"
19317 fi
19318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19320
19321 fi
19322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19325 _ACEOF
19326
19327 fi
19328
19329 done
19330
19331 else
19332
19333 for ac_header in des.h
19334 do
19335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19337 echo "$as_me:$LINENO: checking for $ac_header" >&5
19338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 fi
19342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19344 else
19345 # Is the header compilable?
19346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19348 cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h. */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19354 $ac_includes_default
19355 #include <$ac_header>
19356 _ACEOF
19357 rm -f conftest.$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_header_compiler=yes
19379 else
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_header_compiler=no
19384 fi
19385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19387 echo "${ECHO_T}$ac_header_compiler" >&6
19388
19389 # Is the header present?
19390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 #include <$ac_header>
19399 _ACEOF
19400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } >/dev/null; then
19408 if test -s conftest.err; then
19409 ac_cpp_err=$ac_c_preproc_warn_flag
19410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19411 else
19412 ac_cpp_err=
19413 fi
19414 else
19415 ac_cpp_err=yes
19416 fi
19417 if test -z "$ac_cpp_err"; then
19418 ac_header_preproc=yes
19419 else
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_header_preproc=no
19424 fi
19425 rm -f conftest.err conftest.$ac_ext
19426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19427 echo "${ECHO_T}$ac_header_preproc" >&6
19428
19429 # So? What about this header?
19430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19431 yes:no: )
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19436 ac_header_preproc=yes
19437 ;;
19438 no:yes:* )
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19451 (
19452 cat <<\_ASBOX
19453 ## ------------------------------------------ ##
19454 ## Report this to the AC_PACKAGE_NAME lists. ##
19455 ## ------------------------------------------ ##
19456 _ASBOX
19457 ) |
19458 sed "s/^/$as_me: WARNING: /" >&2
19459 ;;
19460 esac
19461 echo "$as_me:$LINENO: checking for $ac_header" >&5
19462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466 eval "$as_ac_Header=\$ac_header_preproc"
19467 fi
19468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19470
19471 fi
19472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19475 _ACEOF
19476
19477 else
19478
19479 for ac_header in kerberosIV/des.h
19480 do
19481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19483 echo "$as_me:$LINENO: checking for $ac_header" >&5
19484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 fi
19488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19490 else
19491 # Is the header compilable?
19492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h. */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 $ac_includes_default
19501 #include <$ac_header>
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_header_compiler=yes
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_header_compiler=no
19530 fi
19531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19533 echo "${ECHO_T}$ac_header_compiler" >&6
19534
19535 # Is the header present?
19536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19538 cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h. */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 #include <$ac_header>
19545 _ACEOF
19546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19548 ac_status=$?
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } >/dev/null; then
19554 if test -s conftest.err; then
19555 ac_cpp_err=$ac_c_preproc_warn_flag
19556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19557 else
19558 ac_cpp_err=
19559 fi
19560 else
19561 ac_cpp_err=yes
19562 fi
19563 if test -z "$ac_cpp_err"; then
19564 ac_header_preproc=yes
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_header_preproc=no
19570 fi
19571 rm -f conftest.err conftest.$ac_ext
19572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19573 echo "${ECHO_T}$ac_header_preproc" >&6
19574
19575 # So? What about this header?
19576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19577 yes:no: )
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19582 ac_header_preproc=yes
19583 ;;
19584 no:yes:* )
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19597 (
19598 cat <<\_ASBOX
19599 ## ------------------------------------------ ##
19600 ## Report this to the AC_PACKAGE_NAME lists. ##
19601 ## ------------------------------------------ ##
19602 _ASBOX
19603 ) |
19604 sed "s/^/$as_me: WARNING: /" >&2
19605 ;;
19606 esac
19607 echo "$as_me:$LINENO: checking for $ac_header" >&5
19608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 eval "$as_ac_Header=\$ac_header_preproc"
19613 fi
19614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19616
19617 fi
19618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19619 cat >>confdefs.h <<_ACEOF
19620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19621 _ACEOF
19622
19623 else
19624
19625 for ac_header in kerberos/des.h
19626 do
19627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19629 echo "$as_me:$LINENO: checking for $ac_header" >&5
19630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 fi
19634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19636 else
19637 # Is the header compilable?
19638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 $ac_includes_default
19647 #include <$ac_header>
19648 _ACEOF
19649 rm -f conftest.$ac_objext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651 (eval $ac_compile) 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; } &&
19664 { ac_try='test -s conftest.$ac_objext'
19665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666 (eval $ac_try) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; }; then
19670 ac_header_compiler=yes
19671 else
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19674
19675 ac_header_compiler=no
19676 fi
19677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19679 echo "${ECHO_T}$ac_header_compiler" >&6
19680
19681 # Is the header present?
19682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <$ac_header>
19691 _ACEOF
19692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } >/dev/null; then
19700 if test -s conftest.err; then
19701 ac_cpp_err=$ac_c_preproc_warn_flag
19702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19703 else
19704 ac_cpp_err=
19705 fi
19706 else
19707 ac_cpp_err=yes
19708 fi
19709 if test -z "$ac_cpp_err"; then
19710 ac_header_preproc=yes
19711 else
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715 ac_header_preproc=no
19716 fi
19717 rm -f conftest.err conftest.$ac_ext
19718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19719 echo "${ECHO_T}$ac_header_preproc" >&6
19720
19721 # So? What about this header?
19722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19723 yes:no: )
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19728 ac_header_preproc=yes
19729 ;;
19730 no:yes:* )
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19743 (
19744 cat <<\_ASBOX
19745 ## ------------------------------------------ ##
19746 ## Report this to the AC_PACKAGE_NAME lists. ##
19747 ## ------------------------------------------ ##
19748 _ASBOX
19749 ) |
19750 sed "s/^/$as_me: WARNING: /" >&2
19751 ;;
19752 esac
19753 echo "$as_me:$LINENO: checking for $ac_header" >&5
19754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758 eval "$as_ac_Header=\$ac_header_preproc"
19759 fi
19760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19762
19763 fi
19764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19765 cat >>confdefs.h <<_ACEOF
19766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19767 _ACEOF
19768
19769 fi
19770
19771 done
19772
19773 fi
19774
19775 done
19776
19777 fi
19778
19779 done
19780
19781
19782 for ac_header in krb.h
19783 do
19784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo "$as_me:$LINENO: checking for $ac_header" >&5
19787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 fi
19791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19793 else
19794 # Is the header compilable?
19795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19804 #include <$ac_header>
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest.$ac_objext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_header_compiler=yes
19828 else
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 ac_header_compiler=no
19833 fi
19834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19836 echo "${ECHO_T}$ac_header_compiler" >&6
19837
19838 # Is the header present?
19839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h. */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 #include <$ac_header>
19848 _ACEOF
19849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev/null; then
19857 if test -s conftest.err; then
19858 ac_cpp_err=$ac_c_preproc_warn_flag
19859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19860 else
19861 ac_cpp_err=
19862 fi
19863 else
19864 ac_cpp_err=yes
19865 fi
19866 if test -z "$ac_cpp_err"; then
19867 ac_header_preproc=yes
19868 else
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 ac_header_preproc=no
19873 fi
19874 rm -f conftest.err conftest.$ac_ext
19875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19876 echo "${ECHO_T}$ac_header_preproc" >&6
19877
19878 # So? What about this header?
19879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19880 yes:no: )
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19885 ac_header_preproc=yes
19886 ;;
19887 no:yes:* )
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19900 (
19901 cat <<\_ASBOX
19902 ## ------------------------------------------ ##
19903 ## Report this to the AC_PACKAGE_NAME lists. ##
19904 ## ------------------------------------------ ##
19905 _ASBOX
19906 ) |
19907 sed "s/^/$as_me: WARNING: /" >&2
19908 ;;
19909 esac
19910 echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915 eval "$as_ac_Header=\$ac_header_preproc"
19916 fi
19917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919
19920 fi
19921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 _ACEOF
19925
19926 else
19927
19928 for ac_header in kerberosIV/krb.h
19929 do
19930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19932 echo "$as_me:$LINENO: checking for $ac_header" >&5
19933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 fi
19937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19939 else
19940 # Is the header compilable?
19941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19950 #include <$ac_header>
19951 _ACEOF
19952 rm -f conftest.$ac_objext
19953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19954 (eval $ac_compile) 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19973 ac_header_compiler=yes
19974 else
19975 echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19977
19978 ac_header_compiler=no
19979 fi
19980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19982 echo "${ECHO_T}$ac_header_compiler" >&6
19983
19984 # Is the header present?
19985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h. */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993 #include <$ac_header>
19994 _ACEOF
19995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19997 ac_status=$?
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } >/dev/null; then
20003 if test -s conftest.err; then
20004 ac_cpp_err=$ac_c_preproc_warn_flag
20005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20006 else
20007 ac_cpp_err=
20008 fi
20009 else
20010 ac_cpp_err=yes
20011 fi
20012 if test -z "$ac_cpp_err"; then
20013 ac_header_preproc=yes
20014 else
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 ac_header_preproc=no
20019 fi
20020 rm -f conftest.err conftest.$ac_ext
20021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20022 echo "${ECHO_T}$ac_header_preproc" >&6
20023
20024 # So? What about this header?
20025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20026 yes:no: )
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20031 ac_header_preproc=yes
20032 ;;
20033 no:yes:* )
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20046 (
20047 cat <<\_ASBOX
20048 ## ------------------------------------------ ##
20049 ## Report this to the AC_PACKAGE_NAME lists. ##
20050 ## ------------------------------------------ ##
20051 _ASBOX
20052 ) |
20053 sed "s/^/$as_me: WARNING: /" >&2
20054 ;;
20055 esac
20056 echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061 eval "$as_ac_Header=\$ac_header_preproc"
20062 fi
20063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20065
20066 fi
20067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20068 cat >>confdefs.h <<_ACEOF
20069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20070 _ACEOF
20071
20072 else
20073
20074 for ac_header in kerberos/krb.h
20075 do
20076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20078 echo "$as_me:$LINENO: checking for $ac_header" >&5
20079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 fi
20083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20085 else
20086 # Is the header compilable?
20087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 $ac_includes_default
20096 #include <$ac_header>
20097 _ACEOF
20098 rm -f conftest.$ac_objext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20100 (eval $ac_compile) 2>conftest.er1
20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_header_compiler=yes
20120 else
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 ac_header_compiler=no
20125 fi
20126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20128 echo "${ECHO_T}$ac_header_compiler" >&6
20129
20130 # Is the header present?
20131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 #include <$ac_header>
20140 _ACEOF
20141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } >/dev/null; then
20149 if test -s conftest.err; then
20150 ac_cpp_err=$ac_c_preproc_warn_flag
20151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20152 else
20153 ac_cpp_err=
20154 fi
20155 else
20156 ac_cpp_err=yes
20157 fi
20158 if test -z "$ac_cpp_err"; then
20159 ac_header_preproc=yes
20160 else
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ac_header_preproc=no
20165 fi
20166 rm -f conftest.err conftest.$ac_ext
20167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20168 echo "${ECHO_T}$ac_header_preproc" >&6
20169
20170 # So? What about this header?
20171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20172 yes:no: )
20173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20177 ac_header_preproc=yes
20178 ;;
20179 no:yes:* )
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20192 (
20193 cat <<\_ASBOX
20194 ## ------------------------------------------ ##
20195 ## Report this to the AC_PACKAGE_NAME lists. ##
20196 ## ------------------------------------------ ##
20197 _ASBOX
20198 ) |
20199 sed "s/^/$as_me: WARNING: /" >&2
20200 ;;
20201 esac
20202 echo "$as_me:$LINENO: checking for $ac_header" >&5
20203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207 eval "$as_ac_Header=\$ac_header_preproc"
20208 fi
20209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20211
20212 fi
20213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20216 _ACEOF
20217
20218 fi
20219
20220 done
20221
20222 fi
20223
20224 done
20225
20226 fi
20227
20228 done
20229
20230 fi
20231
20232 for ac_header in com_err.h
20233 do
20234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20236 echo "$as_me:$LINENO: checking for $ac_header" >&5
20237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 fi
20241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20243 else
20244 # Is the header compilable?
20245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h. */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 $ac_includes_default
20254 #include <$ac_header>
20255 _ACEOF
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_header_compiler=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_header_compiler=no
20283 fi
20284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20286 echo "${ECHO_T}$ac_header_compiler" >&6
20287
20288 # Is the header present?
20289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20291 cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h. */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 #include <$ac_header>
20298 _ACEOF
20299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } >/dev/null; then
20307 if test -s conftest.err; then
20308 ac_cpp_err=$ac_c_preproc_warn_flag
20309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20310 else
20311 ac_cpp_err=
20312 fi
20313 else
20314 ac_cpp_err=yes
20315 fi
20316 if test -z "$ac_cpp_err"; then
20317 ac_header_preproc=yes
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 ac_header_preproc=no
20323 fi
20324 rm -f conftest.err conftest.$ac_ext
20325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20326 echo "${ECHO_T}$ac_header_preproc" >&6
20327
20328 # So? What about this header?
20329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20330 yes:no: )
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20335 ac_header_preproc=yes
20336 ;;
20337 no:yes:* )
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20350 (
20351 cat <<\_ASBOX
20352 ## ------------------------------------------ ##
20353 ## Report this to the AC_PACKAGE_NAME lists. ##
20354 ## ------------------------------------------ ##
20355 _ASBOX
20356 ) |
20357 sed "s/^/$as_me: WARNING: /" >&2
20358 ;;
20359 esac
20360 echo "$as_me:$LINENO: checking for $ac_header" >&5
20361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365 eval "$as_ac_Header=\$ac_header_preproc"
20366 fi
20367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20369
20370 fi
20371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20372 cat >>confdefs.h <<_ACEOF
20373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20374 _ACEOF
20375
20376 fi
20377
20378 done
20379
20380 fi
20381
20382 # Solaris requires -lintl if you want strerror (which calls dgettext)
20383 # to return localized messages.
20384
20385 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20386 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20387 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390 ac_check_lib_save_LIBS=$LIBS
20391 LIBS="-lintl $LIBS"
20392 cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h. */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398
20399 /* Override any gcc2 internal prototype to avoid an error. */
20400 #ifdef __cplusplus
20401 extern "C"
20402 #endif
20403 /* We use char because int might match the return type of a gcc2
20404 builtin and then its argument prototype would still apply. */
20405 char dgettext ();
20406 int
20407 main ()
20408 {
20409 dgettext ();
20410 ;
20411 return 0;
20412 }
20413 _ACEOF
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20416 (eval $ac_link) 2>conftest.er1
20417 ac_status=$?
20418 grep -v '^ *+' conftest.er1 >conftest.err
20419 rm -f conftest.er1
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } &&
20429 { ac_try='test -s conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_lib_intl_dgettext=yes
20436 else
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440 ac_cv_lib_intl_dgettext=no
20441 fi
20442 rm -f conftest.err conftest.$ac_objext \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20445 fi
20446 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20447 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20448 if test $ac_cv_lib_intl_dgettext = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LIBINTL 1
20451 _ACEOF
20452
20453 LIBS="-lintl $LIBS"
20454
20455 fi
20456
20457
20458 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20459 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20460 if test "${emacs_cv_localtime_cache+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463 if test x$ac_cv_func_tzset = xyes; then
20464 if test "$cross_compiling" = yes; then
20465 # If we have tzset, assume the worst when cross-compiling.
20466 emacs_cv_localtime_cache=yes
20467 else
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <time.h>
20475 extern char **environ;
20476 unset_TZ ()
20477 {
20478 char **from, **to;
20479 for (to = from = environ; (*to = *from); from++)
20480 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20481 to++;
20482 }
20483 char TZ_GMT0[] = "TZ=GMT0";
20484 char TZ_PST8[] = "TZ=PST8";
20485 main()
20486 {
20487 time_t now = time ((time_t *) 0);
20488 int hour_GMT0, hour_unset;
20489 if (putenv (TZ_GMT0) != 0)
20490 exit (1);
20491 hour_GMT0 = localtime (&now)->tm_hour;
20492 unset_TZ ();
20493 hour_unset = localtime (&now)->tm_hour;
20494 if (putenv (TZ_PST8) != 0)
20495 exit (1);
20496 if (localtime (&now)->tm_hour == hour_GMT0)
20497 exit (1);
20498 unset_TZ ();
20499 if (localtime (&now)->tm_hour != hour_unset)
20500 exit (1);
20501 exit (0);
20502 }
20503 _ACEOF
20504 rm -f conftest$ac_exeext
20505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20506 (eval $ac_link) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 emacs_cv_localtime_cache=no
20516 else
20517 echo "$as_me: program exited with status $ac_status" >&5
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 ( exit $ac_status )
20522 emacs_cv_localtime_cache=yes
20523 fi
20524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 else
20527 # If we lack tzset, report that localtime does not cache TZ,
20528 # since we can't invalidate the cache if we don't have tzset.
20529 emacs_cv_localtime_cache=no
20530 fi
20531 fi
20532 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20533 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20534 if test $emacs_cv_localtime_cache = yes; then
20535
20536 cat >>confdefs.h <<\_ACEOF
20537 #define LOCALTIME_CACHE 1
20538 _ACEOF
20539
20540 fi
20541
20542 if test "x$HAVE_TIMEVAL" = xyes; then
20543
20544 for ac_func in gettimeofday
20545 do
20546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20547 echo "$as_me:$LINENO: checking for $ac_func" >&5
20548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20549 if eval "test \"\${$as_ac_var+set}\" = set"; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20560 #define $ac_func innocuous_$ac_func
20561
20562 /* System header to define __stub macros and hopefully few prototypes,
20563 which can conflict with char $ac_func (); below.
20564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20565 <limits.h> exists even on freestanding compilers. */
20566
20567 #ifdef __STDC__
20568 # include <limits.h>
20569 #else
20570 # include <assert.h>
20571 #endif
20572
20573 #undef $ac_func
20574
20575 /* Override any gcc2 internal prototype to avoid an error. */
20576 #ifdef __cplusplus
20577 extern "C"
20578 {
20579 #endif
20580 /* We use char because int might match the return type of a gcc2
20581 builtin and then its argument prototype would still apply. */
20582 char $ac_func ();
20583 /* The GNU C library defines this for functions which it implements
20584 to always fail with ENOSYS. Some functions are actually named
20585 something starting with __ and the normal name is an alias. */
20586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20587 choke me
20588 #else
20589 char (*f) () = $ac_func;
20590 #endif
20591 #ifdef __cplusplus
20592 }
20593 #endif
20594
20595 int
20596 main ()
20597 {
20598 return f != $ac_func;
20599 ;
20600 return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext conftest$ac_exeext
20604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20605 (eval $ac_link) 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 eval "$as_ac_var=yes"
20625 else
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 eval "$as_ac_var=no"
20630 fi
20631 rm -f conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633 fi
20634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20636 if test `eval echo '${'$as_ac_var'}'` = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20639 _ACEOF
20640
20641 fi
20642 done
20643
20644 if test $ac_cv_func_gettimeofday = yes; then
20645 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20646 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20647 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656
20657 #ifdef TIME_WITH_SYS_TIME
20658 #include <sys/time.h>
20659 #include <time.h>
20660 #else
20661 #ifdef HAVE_SYS_TIME_H
20662 #include <sys/time.h>
20663 #else
20664 #include <time.h>
20665 #endif
20666 #endif
20667 int
20668 main ()
20669 {
20670 struct timeval time;
20671 gettimeofday (&time, 0);
20672 ;
20673 return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678 (eval $ac_compile) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20688 ac_status=$?
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try='test -s conftest.$ac_objext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 emacs_cv_gettimeofday_two_arguments=yes
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 emacs_cv_gettimeofday_two_arguments=no
20703 fi
20704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20705 fi
20706 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20707 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20708 if test $emacs_cv_gettimeofday_two_arguments = no; then
20709
20710 cat >>confdefs.h <<\_ACEOF
20711 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20712 _ACEOF
20713
20714 fi
20715 fi
20716 fi
20717
20718 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20719 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20720 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20721 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <sys/types.h>
20731 #include <$ac_cv_struct_tm>
20732
20733
20734 int
20735 main ()
20736 {
20737 static struct tm ac_aggr;
20738 if (ac_aggr.tm_zone)
20739 return 0;
20740 ;
20741 return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746 (eval $ac_compile) 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try='test -s conftest.$ac_objext'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 ac_cv_member_struct_tm_tm_zone=yes
20766 else
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <sys/types.h>
20777 #include <$ac_cv_struct_tm>
20778
20779
20780 int
20781 main ()
20782 {
20783 static struct tm ac_aggr;
20784 if (sizeof ac_aggr.tm_zone)
20785 return 0;
20786 ;
20787 return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest.$ac_objext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20792 (eval $ac_compile) 2>conftest.er1
20793 ac_status=$?
20794 grep -v '^ *+' conftest.er1 >conftest.err
20795 rm -f conftest.er1
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest.$ac_objext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_member_struct_tm_tm_zone=yes
20812 else
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ac_cv_member_struct_tm_tm_zone=no
20817 fi
20818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20819 fi
20820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20821 fi
20822 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20823 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20824 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define HAVE_STRUCT_TM_TM_ZONE 1
20828 _ACEOF
20829
20830
20831 fi
20832
20833 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20834
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_TM_ZONE 1
20837 _ACEOF
20838
20839 else
20840 echo "$as_me:$LINENO: checking for tzname" >&5
20841 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20842 if test "${ac_cv_var_tzname+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 else
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <time.h>
20852 #ifndef tzname /* For SGI. */
20853 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20854 #endif
20855
20856 int
20857 main ()
20858 {
20859 atoi(*tzname);
20860 ;
20861 return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20866 (eval $ac_link) 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; } &&
20879 { ac_try='test -s conftest$ac_exeext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_var_tzname=yes
20886 else
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890 ac_cv_var_tzname=no
20891 fi
20892 rm -f conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
20894 fi
20895 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20896 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20897 if test $ac_cv_var_tzname = yes; then
20898
20899 cat >>confdefs.h <<\_ACEOF
20900 #define HAVE_TZNAME 1
20901 _ACEOF
20902
20903 fi
20904 fi
20905
20906
20907 if test "$ac_cv_func_gettimeofday" = yes; then
20908 echo "$as_me:$LINENO: checking for struct timezone" >&5
20909 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20910 if test "${emacs_cv_struct_timezone+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <sys/time.h>
20920 int
20921 main ()
20922 {
20923 struct timezone tz;
20924 ;
20925 return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 if test "$cross_compiling" = yes; then
20950 emacs_cv_struct_timezone=yes
20951 else
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958
20959 #ifdef TIME_WITH_SYS_TIME
20960 #include <sys/time.h>
20961 #include <time.h>
20962 #else
20963 #ifdef HAVE_SYS_TIME_H
20964 #include <sys/time.h>
20965 #else
20966 #include <time.h>
20967 #endif
20968 #endif
20969 main () {
20970 struct timeval time;
20971 struct timezone dummy;
20972 exit (gettimeofday (&time, &dummy));
20973 }
20974 _ACEOF
20975 rm -f conftest$ac_exeext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20977 (eval $ac_link) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; }; then
20986 emacs_cv_struct_timezone=yes
20987 else
20988 echo "$as_me: program exited with status $ac_status" >&5
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 ( exit $ac_status )
20993 emacs_cv_struct_timezone=no
20994 fi
20995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20996 fi
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 emacs_cv_struct_timezone=no
21002 fi
21003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21004 fi
21005 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21006 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21007 fi
21008
21009 ok_so_far=yes
21010 echo "$as_me:$LINENO: checking for socket" >&5
21011 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21012 if test "${ac_cv_func_socket+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21023 #define socket innocuous_socket
21024
21025 /* System header to define __stub macros and hopefully few prototypes,
21026 which can conflict with char socket (); below.
21027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21028 <limits.h> exists even on freestanding compilers. */
21029
21030 #ifdef __STDC__
21031 # include <limits.h>
21032 #else
21033 # include <assert.h>
21034 #endif
21035
21036 #undef socket
21037
21038 /* Override any gcc2 internal prototype to avoid an error. */
21039 #ifdef __cplusplus
21040 extern "C"
21041 {
21042 #endif
21043 /* We use char because int might match the return type of a gcc2
21044 builtin and then its argument prototype would still apply. */
21045 char socket ();
21046 /* The GNU C library defines this for functions which it implements
21047 to always fail with ENOSYS. Some functions are actually named
21048 something starting with __ and the normal name is an alias. */
21049 #if defined (__stub_socket) || defined (__stub___socket)
21050 choke me
21051 #else
21052 char (*f) () = socket;
21053 #endif
21054 #ifdef __cplusplus
21055 }
21056 #endif
21057
21058 int
21059 main ()
21060 {
21061 return f != socket;
21062 ;
21063 return 0;
21064 }
21065 _ACEOF
21066 rm -f conftest.$ac_objext conftest$ac_exeext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21068 (eval $ac_link) 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest$ac_exeext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_func_socket=yes
21088 else
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 ac_cv_func_socket=no
21093 fi
21094 rm -f conftest.err conftest.$ac_objext \
21095 conftest$ac_exeext conftest.$ac_ext
21096 fi
21097 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21098 echo "${ECHO_T}$ac_cv_func_socket" >&6
21099 if test $ac_cv_func_socket = yes; then
21100 :
21101 else
21102 ok_so_far=no
21103 fi
21104
21105 if test $ok_so_far = yes; then
21106 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21107 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21108 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21109 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 fi
21112 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21113 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21114 else
21115 # Is the header compilable?
21116 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21117 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 $ac_includes_default
21125 #include <netinet/in.h>
21126 _ACEOF
21127 rm -f conftest.$ac_objext
21128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21129 (eval $ac_compile) 2>conftest.er1
21130 ac_status=$?
21131 grep -v '^ *+' conftest.er1 >conftest.err
21132 rm -f conftest.er1
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } &&
21136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; } &&
21142 { ac_try='test -s conftest.$ac_objext'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148 ac_header_compiler=yes
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 ac_header_compiler=no
21154 fi
21155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21157 echo "${ECHO_T}$ac_header_compiler" >&6
21158
21159 # Is the header present?
21160 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21161 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <netinet/in.h>
21169 _ACEOF
21170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21172 ac_status=$?
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } >/dev/null; then
21178 if test -s conftest.err; then
21179 ac_cpp_err=$ac_c_preproc_warn_flag
21180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21181 else
21182 ac_cpp_err=
21183 fi
21184 else
21185 ac_cpp_err=yes
21186 fi
21187 if test -z "$ac_cpp_err"; then
21188 ac_header_preproc=yes
21189 else
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_header_preproc=no
21194 fi
21195 rm -f conftest.err conftest.$ac_ext
21196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21197 echo "${ECHO_T}$ac_header_preproc" >&6
21198
21199 # So? What about this header?
21200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21201 yes:no: )
21202 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21203 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21205 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21206 ac_header_preproc=yes
21207 ;;
21208 no:yes:* )
21209 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21210 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21212 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21214 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21216 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21218 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21220 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21221 (
21222 cat <<\_ASBOX
21223 ## ------------------------------------------ ##
21224 ## Report this to the AC_PACKAGE_NAME lists. ##
21225 ## ------------------------------------------ ##
21226 _ASBOX
21227 ) |
21228 sed "s/^/$as_me: WARNING: /" >&2
21229 ;;
21230 esac
21231 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21232 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21233 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236 ac_cv_header_netinet_in_h=$ac_header_preproc
21237 fi
21238 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21239 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21240
21241 fi
21242 if test $ac_cv_header_netinet_in_h = yes; then
21243 :
21244 else
21245 ok_so_far=no
21246 fi
21247
21248
21249 fi
21250 if test $ok_so_far = yes; then
21251 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21252 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21253 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21254 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 fi
21257 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21258 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21259 else
21260 # Is the header compilable?
21261 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21262 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 #include <arpa/inet.h>
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21275 ac_status=$?
21276 grep -v '^ *+' conftest.er1 >conftest.err
21277 rm -f conftest.er1
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_header_compiler=yes
21294 else
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 ac_header_compiler=no
21299 fi
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21302 echo "${ECHO_T}$ac_header_compiler" >&6
21303
21304 # Is the header present?
21305 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21306 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <arpa/inet.h>
21314 _ACEOF
21315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } >/dev/null; then
21323 if test -s conftest.err; then
21324 ac_cpp_err=$ac_c_preproc_warn_flag
21325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21326 else
21327 ac_cpp_err=
21328 fi
21329 else
21330 ac_cpp_err=yes
21331 fi
21332 if test -z "$ac_cpp_err"; then
21333 ac_header_preproc=yes
21334 else
21335 echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338 ac_header_preproc=no
21339 fi
21340 rm -f conftest.err conftest.$ac_ext
21341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21342 echo "${ECHO_T}$ac_header_preproc" >&6
21343
21344 # So? What about this header?
21345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21346 yes:no: )
21347 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21348 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21350 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21351 ac_header_preproc=yes
21352 ;;
21353 no:yes:* )
21354 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21355 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21357 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21359 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21361 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21362 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21363 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21365 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21366 (
21367 cat <<\_ASBOX
21368 ## ------------------------------------------ ##
21369 ## Report this to the AC_PACKAGE_NAME lists. ##
21370 ## ------------------------------------------ ##
21371 _ASBOX
21372 ) |
21373 sed "s/^/$as_me: WARNING: /" >&2
21374 ;;
21375 esac
21376 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21377 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21378 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381 ac_cv_header_arpa_inet_h=$ac_header_preproc
21382 fi
21383 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21384 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21385
21386 fi
21387 if test $ac_cv_header_arpa_inet_h = yes; then
21388 :
21389 else
21390 ok_so_far=no
21391 fi
21392
21393
21394 fi
21395 if test $ok_so_far = yes; then
21396
21397 cat >>confdefs.h <<\_ACEOF
21398 #define HAVE_INET_SOCKETS 1
21399 _ACEOF
21400
21401 fi
21402
21403
21404 for ac_header in sys/ioctl.h
21405 do
21406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21408 echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 fi
21413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21415 else
21416 # Is the header compilable?
21417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21419 cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h. */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 $ac_includes_default
21426 #include <$ac_header>
21427 _ACEOF
21428 rm -f conftest.$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430 (eval $ac_compile) 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_header_compiler=yes
21450 else
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 ac_header_compiler=no
21455 fi
21456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21458 echo "${ECHO_T}$ac_header_compiler" >&6
21459
21460 # Is the header present?
21461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h. */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <$ac_header>
21470 _ACEOF
21471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21473 ac_status=$?
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } >/dev/null; then
21479 if test -s conftest.err; then
21480 ac_cpp_err=$ac_c_preproc_warn_flag
21481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21482 else
21483 ac_cpp_err=
21484 fi
21485 else
21486 ac_cpp_err=yes
21487 fi
21488 if test -z "$ac_cpp_err"; then
21489 ac_header_preproc=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21493
21494 ac_header_preproc=no
21495 fi
21496 rm -f conftest.err conftest.$ac_ext
21497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21498 echo "${ECHO_T}$ac_header_preproc" >&6
21499
21500 # So? What about this header?
21501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21502 yes:no: )
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21507 ac_header_preproc=yes
21508 ;;
21509 no:yes:* )
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21522 (
21523 cat <<\_ASBOX
21524 ## ------------------------------------------ ##
21525 ## Report this to the AC_PACKAGE_NAME lists. ##
21526 ## ------------------------------------------ ##
21527 _ASBOX
21528 ) |
21529 sed "s/^/$as_me: WARNING: /" >&2
21530 ;;
21531 esac
21532 echo "$as_me:$LINENO: checking for $ac_header" >&5
21533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537 eval "$as_ac_Header=\$ac_header_preproc"
21538 fi
21539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21541
21542 fi
21543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21544 cat >>confdefs.h <<_ACEOF
21545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21546 _ACEOF
21547
21548 fi
21549
21550 done
21551
21552
21553 if test -f /usr/lpp/X11/bin/smt.exp; then
21554
21555 cat >>confdefs.h <<\_ACEOF
21556 #define HAVE_AIX_SMT_EXP 1
21557 _ACEOF
21558
21559 fi
21560
21561 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21562 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21563 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21564 echo "$as_me:$LINENO: result: yes" >&5
21565 echo "${ECHO_T}yes" >&6
21566
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_DEV_PTMX 1
21569 _ACEOF
21570
21571 else
21572 echo "$as_me:$LINENO: result: no" >&5
21573 echo "${ECHO_T}no" >&6
21574 fi
21575
21576 echo "$as_me:$LINENO: checking for pid_t" >&5
21577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21578 if test "${ac_cv_type_pid_t+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h. */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 $ac_includes_default
21588 int
21589 main ()
21590 {
21591 if ((pid_t *) 0)
21592 return 0;
21593 if (sizeof (pid_t))
21594 return 0;
21595 ;
21596 return 0;
21597 }
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; } &&
21614 { ac_try='test -s conftest.$ac_objext'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ac_cv_type_pid_t=yes
21621 else
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 ac_cv_type_pid_t=no
21626 fi
21627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21628 fi
21629 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21630 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21631 if test $ac_cv_type_pid_t = yes; then
21632 :
21633 else
21634
21635 cat >>confdefs.h <<_ACEOF
21636 #define pid_t int
21637 _ACEOF
21638
21639 fi
21640
21641
21642
21643 for ac_header in unistd.h vfork.h
21644 do
21645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21647 echo "$as_me:$LINENO: checking for $ac_header" >&5
21648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 fi
21652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21654 else
21655 # Is the header compilable?
21656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h. */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 $ac_includes_default
21665 #include <$ac_header>
21666 _ACEOF
21667 rm -f conftest.$ac_objext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21669 (eval $ac_compile) 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } &&
21676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21679 ac_status=$?
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; } &&
21682 { ac_try='test -s conftest.$ac_objext'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688 ac_header_compiler=yes
21689 else
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21692
21693 ac_header_compiler=no
21694 fi
21695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21697 echo "${ECHO_T}$ac_header_compiler" >&6
21698
21699 # Is the header present?
21700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21702 cat >conftest.$ac_ext <<_ACEOF
21703 /* confdefs.h. */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21708 #include <$ac_header>
21709 _ACEOF
21710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21712 ac_status=$?
21713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } >/dev/null; then
21718 if test -s conftest.err; then
21719 ac_cpp_err=$ac_c_preproc_warn_flag
21720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21721 else
21722 ac_cpp_err=
21723 fi
21724 else
21725 ac_cpp_err=yes
21726 fi
21727 if test -z "$ac_cpp_err"; then
21728 ac_header_preproc=yes
21729 else
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733 ac_header_preproc=no
21734 fi
21735 rm -f conftest.err conftest.$ac_ext
21736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21737 echo "${ECHO_T}$ac_header_preproc" >&6
21738
21739 # So? What about this header?
21740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21741 yes:no: )
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21746 ac_header_preproc=yes
21747 ;;
21748 no:yes:* )
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21761 (
21762 cat <<\_ASBOX
21763 ## ------------------------------------------ ##
21764 ## Report this to the AC_PACKAGE_NAME lists. ##
21765 ## ------------------------------------------ ##
21766 _ASBOX
21767 ) |
21768 sed "s/^/$as_me: WARNING: /" >&2
21769 ;;
21770 esac
21771 echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776 eval "$as_ac_Header=\$ac_header_preproc"
21777 fi
21778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21780
21781 fi
21782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21783 cat >>confdefs.h <<_ACEOF
21784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21785 _ACEOF
21786
21787 fi
21788
21789 done
21790
21791
21792
21793 for ac_func in fork vfork
21794 do
21795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21796 echo "$as_me:$LINENO: checking for $ac_func" >&5
21797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21798 if eval "test \"\${$as_ac_var+set}\" = set"; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h. */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21809 #define $ac_func innocuous_$ac_func
21810
21811 /* System header to define __stub macros and hopefully few prototypes,
21812 which can conflict with char $ac_func (); below.
21813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814 <limits.h> exists even on freestanding compilers. */
21815
21816 #ifdef __STDC__
21817 # include <limits.h>
21818 #else
21819 # include <assert.h>
21820 #endif
21821
21822 #undef $ac_func
21823
21824 /* Override any gcc2 internal prototype to avoid an error. */
21825 #ifdef __cplusplus
21826 extern "C"
21827 {
21828 #endif
21829 /* We use char because int might match the return type of a gcc2
21830 builtin and then its argument prototype would still apply. */
21831 char $ac_func ();
21832 /* The GNU C library defines this for functions which it implements
21833 to always fail with ENOSYS. Some functions are actually named
21834 something starting with __ and the normal name is an alias. */
21835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21836 choke me
21837 #else
21838 char (*f) () = $ac_func;
21839 #endif
21840 #ifdef __cplusplus
21841 }
21842 #endif
21843
21844 int
21845 main ()
21846 {
21847 return f != $ac_func;
21848 ;
21849 return 0;
21850 }
21851 _ACEOF
21852 rm -f conftest.$ac_objext conftest$ac_exeext
21853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 (eval $ac_link) 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 eval "$as_ac_var=yes"
21874 else
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878 eval "$as_ac_var=no"
21879 fi
21880 rm -f conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882 fi
21883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21885 if test `eval echo '${'$as_ac_var'}'` = yes; then
21886 cat >>confdefs.h <<_ACEOF
21887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21888 _ACEOF
21889
21890 fi
21891 done
21892
21893 if test "x$ac_cv_func_fork" = xyes; then
21894 echo "$as_me:$LINENO: checking for working fork" >&5
21895 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21896 if test "${ac_cv_func_fork_works+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899 if test "$cross_compiling" = yes; then
21900 ac_cv_func_fork_works=cross
21901 else
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h. */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 $ac_includes_default
21909 int
21910 main ()
21911 {
21912
21913 /* By Ruediger Kuhlmann. */
21914 if (fork() < 0)
21915 exit (1);
21916 exit (0);
21917
21918 ;
21919 return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest$ac_exeext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; }; then
21933 ac_cv_func_fork_works=yes
21934 else
21935 echo "$as_me: program exited with status $ac_status" >&5
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939 ( exit $ac_status )
21940 ac_cv_func_fork_works=no
21941 fi
21942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21943 fi
21944 fi
21945 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21946 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21947
21948 else
21949 ac_cv_func_fork_works=$ac_cv_func_fork
21950 fi
21951 if test "x$ac_cv_func_fork_works" = xcross; then
21952 case $host in
21953 *-*-amigaos* | *-*-msdosdjgpp*)
21954 # Override, as these systems have only a dummy fork() stub
21955 ac_cv_func_fork_works=no
21956 ;;
21957 *)
21958 ac_cv_func_fork_works=yes
21959 ;;
21960 esac
21961 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21962 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21963 fi
21964 ac_cv_func_vfork_works=$ac_cv_func_vfork
21965 if test "x$ac_cv_func_vfork" = xyes; then
21966 echo "$as_me:$LINENO: checking for working vfork" >&5
21967 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21968 if test "${ac_cv_func_vfork_works+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971 if test "$cross_compiling" = yes; then
21972 ac_cv_func_vfork_works=cross
21973 else
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 /* Thanks to Paul Eggert for this test. */
21981 #include <stdio.h>
21982 #include <stdlib.h>
21983 #include <sys/types.h>
21984 #include <sys/stat.h>
21985 #include <sys/wait.h>
21986 #if HAVE_UNISTD_H
21987 # include <unistd.h>
21988 #endif
21989 #if HAVE_VFORK_H
21990 # include <vfork.h>
21991 #endif
21992 /* On some sparc systems, changes by the child to local and incoming
21993 argument registers are propagated back to the parent. The compiler
21994 is told about this with #include <vfork.h>, but some compilers
21995 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21996 static variable whose address is put into a register that is
21997 clobbered by the vfork. */
21998 static void
21999 #ifdef __cplusplus
22000 sparc_address_test (int arg)
22001 # else
22002 sparc_address_test (arg) int arg;
22003 #endif
22004 {
22005 static pid_t child;
22006 if (!child) {
22007 child = vfork ();
22008 if (child < 0) {
22009 perror ("vfork");
22010 _exit(2);
22011 }
22012 if (!child) {
22013 arg = getpid();
22014 write(-1, "", 0);
22015 _exit (arg);
22016 }
22017 }
22018 }
22019
22020 int
22021 main ()
22022 {
22023 pid_t parent = getpid ();
22024 pid_t child;
22025
22026 sparc_address_test (0);
22027
22028 child = vfork ();
22029
22030 if (child == 0) {
22031 /* Here is another test for sparc vfork register problems. This
22032 test uses lots of local variables, at least as many local
22033 variables as main has allocated so far including compiler
22034 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22035 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22036 reuse the register of parent for one of the local variables,
22037 since it will think that parent can't possibly be used any more
22038 in this routine. Assigning to the local variable will thus
22039 munge parent in the parent process. */
22040 pid_t
22041 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22042 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22043 /* Convince the compiler that p..p7 are live; otherwise, it might
22044 use the same hardware register for all 8 local variables. */
22045 if (p != p1 || p != p2 || p != p3 || p != p4
22046 || p != p5 || p != p6 || p != p7)
22047 _exit(1);
22048
22049 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22050 from child file descriptors. If the child closes a descriptor
22051 before it execs or exits, this munges the parent's descriptor
22052 as well. Test for this by closing stdout in the child. */
22053 _exit(close(fileno(stdout)) != 0);
22054 } else {
22055 int status;
22056 struct stat st;
22057
22058 while (wait(&status) != child)
22059 ;
22060 exit(
22061 /* Was there some problem with vforking? */
22062 child < 0
22063
22064 /* Did the child fail? (This shouldn't happen.) */
22065 || status
22066
22067 /* Did the vfork/compiler bug occur? */
22068 || parent != getpid()
22069
22070 /* Did the file descriptor bug occur? */
22071 || fstat(fileno(stdout), &st) != 0
22072 );
22073 }
22074 }
22075 _ACEOF
22076 rm -f conftest$ac_exeext
22077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22078 (eval $ac_link) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_func_vfork_works=yes
22088 else
22089 echo "$as_me: program exited with status $ac_status" >&5
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 ( exit $ac_status )
22094 ac_cv_func_vfork_works=no
22095 fi
22096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22097 fi
22098 fi
22099 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22100 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22101
22102 fi;
22103 if test "x$ac_cv_func_fork_works" = xcross; then
22104 ac_cv_func_vfork_works=$ac_cv_func_vfork
22105 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22106 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22107 fi
22108
22109 if test "x$ac_cv_func_vfork_works" = xyes; then
22110
22111 cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_WORKING_VFORK 1
22113 _ACEOF
22114
22115 else
22116
22117 cat >>confdefs.h <<\_ACEOF
22118 #define vfork fork
22119 _ACEOF
22120
22121 fi
22122 if test "x$ac_cv_func_fork_works" = xyes; then
22123
22124 cat >>confdefs.h <<\_ACEOF
22125 #define HAVE_WORKING_FORK 1
22126 _ACEOF
22127
22128 fi
22129
22130
22131 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22132 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22133 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 else
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 #include <langinfo.h>
22143 int
22144 main ()
22145 {
22146 char* cs = nl_langinfo(CODESET);
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 emacs_cv_langinfo_codeset=yes
22173 else
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 emacs_cv_langinfo_codeset=no
22178 fi
22179 rm -f conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22181
22182 fi
22183 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22184 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22185 if test $emacs_cv_langinfo_codeset = yes; then
22186
22187 cat >>confdefs.h <<\_ACEOF
22188 #define HAVE_LANGINFO_CODESET 1
22189 _ACEOF
22190
22191 fi
22192
22193 echo "$as_me:$LINENO: checking for size_t" >&5
22194 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22195 if test "${ac_cv_type_size_t+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h. */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22205 int
22206 main ()
22207 {
22208 if ((size_t *) 0)
22209 return 0;
22210 if (sizeof (size_t))
22211 return 0;
22212 ;
22213 return 0;
22214 }
22215 _ACEOF
22216 rm -f conftest.$ac_objext
22217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218 (eval $ac_compile) 2>conftest.er1
22219 ac_status=$?
22220 grep -v '^ *+' conftest.er1 >conftest.err
22221 rm -f conftest.er1
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
22225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; } &&
22231 { ac_try='test -s conftest.$ac_objext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 ac_cv_type_size_t=yes
22238 else
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242 ac_cv_type_size_t=no
22243 fi
22244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22245 fi
22246 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22247 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22248 if test $ac_cv_type_size_t = yes; then
22249
22250 cat >>confdefs.h <<_ACEOF
22251 #define HAVE_SIZE_T 1
22252 _ACEOF
22253
22254
22255 fi
22256
22257
22258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22259 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22260 if test "${ac_cv_type_mbstate_t+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 else
22263 cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h. */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 $ac_includes_default
22270 # include <wchar.h>
22271 int
22272 main ()
22273 {
22274 mbstate_t x; return sizeof x;
22275 ;
22276 return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22281 (eval $ac_compile) 2>conftest.er1
22282 ac_status=$?
22283 grep -v '^ *+' conftest.er1 >conftest.err
22284 rm -f conftest.er1
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } &&
22288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try='test -s conftest.$ac_objext'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 ac_cv_type_mbstate_t=yes
22301 else
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305 ac_cv_type_mbstate_t=no
22306 fi
22307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22308 fi
22309 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22310 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22311 if test $ac_cv_type_mbstate_t = yes; then
22312
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_MBSTATE_T 1
22315 _ACEOF
22316
22317 else
22318
22319 cat >>confdefs.h <<\_ACEOF
22320 #define mbstate_t int
22321 _ACEOF
22322
22323 fi
22324
22325 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22326 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22327 if test "${emacs_cv_c_restrict+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 void fred (int *restrict x);
22337 int
22338 main ()
22339 {
22340
22341 ;
22342 return 0;
22343 }
22344 _ACEOF
22345 rm -f conftest.$ac_objext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22347 (eval $ac_compile) 2>conftest.er1
22348 ac_status=$?
22349 grep -v '^ *+' conftest.er1 >conftest.err
22350 rm -f conftest.er1
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } &&
22354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; } &&
22360 { ac_try='test -s conftest.$ac_objext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 emacs_cv_c_restrict=yes
22367 else
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371 cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h. */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 void fred (int *__restrict x);
22378 int
22379 main ()
22380 {
22381
22382 ;
22383 return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388 (eval $ac_compile) 2>conftest.er1
22389 ac_status=$?
22390 grep -v '^ *+' conftest.er1 >conftest.err
22391 rm -f conftest.er1
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; } &&
22401 { ac_try='test -s conftest.$ac_objext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 emacs_cv_c_restrict=__restrict
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412 emacs_cv_c_restrict=no
22413 fi
22414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22415 fi
22416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22417 fi
22418 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22419 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22420 case "$emacs_cv_c_restrict" in
22421 yes) emacs_restrict=restrict;;
22422 no) emacs_restrict="";;
22423 *) emacs_restrict="$emacs_cv_c_restrict";;
22424 esac
22425 if test "$emacs_restrict" != __restrict; then
22426
22427 cat >>confdefs.h <<_ACEOF
22428 #define __restrict $emacs_restrict
22429 _ACEOF
22430
22431 fi
22432
22433 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22434 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22435 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 else
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h. */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 void fred (int x[__restrict]);
22445 int
22446 main ()
22447 {
22448
22449 ;
22450 return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22455 (eval $ac_compile) 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
22462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest.$ac_objext'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474 emacs_cv_c_restrict_arr=yes
22475 else
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479 emacs_cv_c_restrict_arr=no
22480 fi
22481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22484 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22485 if test "$emacs_cv_c_restrict_arr" = yes; then
22486
22487 cat >>confdefs.h <<\_ACEOF
22488 #define __restrict_arr __restrict
22489 _ACEOF
22490
22491 fi
22492
22493
22494
22495 # Set up the CFLAGS for real compilation, so we can substitute it.
22496 CFLAGS="$REAL_CFLAGS"
22497 CPPFLAGS="$REAL_CPPFLAGS"
22498
22499 #### Find out which version of Emacs this is.
22500 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22501 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22502 if test x"${version}" = x; then
22503 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22504 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22505 { (exit 1); exit 1; }; }
22506 fi
22507
22508 ### Specify what sort of things we'll be editing into Makefile and config.h.
22509 ### Use configuration here uncanonicalized to avoid exceeding size limits.
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
22542
22543
22544
22545 cat >>confdefs.h <<_ACEOF
22546 #define EMACS_CONFIGURATION "${canonical}"
22547 _ACEOF
22548
22549
22550 cat >>confdefs.h <<_ACEOF
22551 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22552 _ACEOF
22553
22554
22555 cat >>confdefs.h <<_ACEOF
22556 #define config_machfile "${machfile}"
22557 _ACEOF
22558
22559
22560 cat >>confdefs.h <<_ACEOF
22561 #define config_opsysfile "${opsysfile}"
22562 _ACEOF
22563
22564
22565 cat >>confdefs.h <<_ACEOF
22566 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22567 _ACEOF
22568
22569
22570 cat >>confdefs.h <<_ACEOF
22571 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22572 _ACEOF
22573
22574
22575 cat >>confdefs.h <<_ACEOF
22576 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22577 _ACEOF
22578
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define UNEXEC_SRC ${UNEXEC_SRC}
22582 _ACEOF
22583
22584
22585 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22586
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_X_WINDOWS 1
22589 _ACEOF
22590
22591 fi
22592 if test "${USE_X_TOOLKIT}" != "none" ; then
22593
22594 cat >>confdefs.h <<\_ACEOF
22595 #define USE_X_TOOLKIT 1
22596 _ACEOF
22597
22598 fi
22599 if test "${HAVE_X11}" = "yes" ; then
22600
22601 cat >>confdefs.h <<\_ACEOF
22602 #define HAVE_X11 1
22603 _ACEOF
22604
22605 fi
22606 if test "${HAVE_XFREE386}" = "yes" ; then
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_XFREE386 1
22610 _ACEOF
22611
22612 fi
22613 if test "${HAVE_MENUS}" = "yes" ; then
22614
22615 cat >>confdefs.h <<\_ACEOF
22616 #define HAVE_MENUS 1
22617 _ACEOF
22618
22619 fi
22620 if test "${GNU_MALLOC}" = "yes" ; then
22621
22622 cat >>confdefs.h <<\_ACEOF
22623 #define GNU_MALLOC 1
22624 _ACEOF
22625
22626 fi
22627 if test "${REL_ALLOC}" = "yes" ; then
22628
22629 cat >>confdefs.h <<\_ACEOF
22630 #define REL_ALLOC 1
22631 _ACEOF
22632
22633 fi
22634
22635
22636
22637
22638
22639 #### Report on what we decided to do.
22640 #### Report GTK as a toolkit, even if it doesn't use Xt.
22641 #### It makes printing result more understandable as using GTK sets
22642 #### toolkit_scroll_bars to yes by default.
22643 if test "${HAVE_GTK}" = "yes"; then
22644 USE_X_TOOLKIT=GTK
22645 fi
22646
22647 echo "
22648 Configured for \`${canonical}'.
22649
22650 Where should the build process find the source code? ${srcdir}
22651 What operating system and machine description files should Emacs use?
22652 \`${opsysfile}' and \`${machfile}'
22653 What compiler should emacs be built with? ${CC} ${CFLAGS}
22654 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22655 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22656 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22657 What window system should Emacs use? ${window_system}
22658 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22659
22660 if test -n "${x_includes}"; then
22661 echo " Where do we find X Windows header files? ${x_includes}"
22662 else
22663 echo " Where do we find X Windows header files? Standard dirs"
22664 fi
22665 if test -n "${x_libraries}"; then
22666 echo " Where do we find X Windows libraries? ${x_libraries}"
22667 else
22668 echo " Where do we find X Windows libraries? Standard dirs"
22669 fi
22670
22671 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22672 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22673 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22674 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22675 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22676 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22677 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22678 echo
22679
22680 if test $USE_XASSERTS = yes; then
22681 echo " Compiling with asserts turned on."
22682 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22683 echo
22684 fi
22685
22686
22687
22688 # Remove any trailing slashes in these variables.
22689 test "${prefix}" != NONE &&
22690 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22691 test "${exec_prefix}" != NONE &&
22692 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22693
22694 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22695 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22696 ## from Makefile.c can correctly provide the arg `-traditional' to the
22697 ## C preprocessor.
22698
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 yes..yes
22706 _ACEOF
22707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22708 $EGREP "yes..yes" >/dev/null 2>&1; then
22709 CPP_NEED_TRADITIONAL=no
22710 else
22711 CPP_NEED_TRADITIONAL=yes
22712 fi
22713 rm -f conftest*
22714
22715
22716 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"
22717 ac_config_commands="$ac_config_commands default"
22718 cat >confcache <<\_ACEOF
22719 # This file is a shell script that caches the results of configure
22720 # tests run on this system so they can be shared between configure
22721 # scripts and configure runs, see configure's option --config-cache.
22722 # It is not useful on other systems. If it contains results you don't
22723 # want to keep, you may remove or edit it.
22724 #
22725 # config.status only pays attention to the cache file if you give it
22726 # the --recheck option to rerun configure.
22727 #
22728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22730 # following values.
22731
22732 _ACEOF
22733
22734 # The following way of writing the cache mishandles newlines in values,
22735 # but we know of no workaround that is simple, portable, and efficient.
22736 # So, don't put newlines in cache variables' values.
22737 # Ultrix sh set writes to stderr and can't be redirected directly,
22738 # and sets the high bit in the cache file unless we assign to the vars.
22739 {
22740 (set) 2>&1 |
22741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22742 *ac_space=\ *)
22743 # `set' does not quote correctly, so add quotes (double-quote
22744 # substitution turns \\\\ into \\, and sed turns \\ into \).
22745 sed -n \
22746 "s/'/'\\\\''/g;
22747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22748 ;;
22749 *)
22750 # `set' quotes correctly as required by POSIX, so do not add quotes.
22751 sed -n \
22752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22753 ;;
22754 esac;
22755 } |
22756 sed '
22757 t clear
22758 : clear
22759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22760 t end
22761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22762 : end' >>confcache
22763 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22764 if test -w $cache_file; then
22765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22766 cat confcache >$cache_file
22767 else
22768 echo "not updating unwritable cache $cache_file"
22769 fi
22770 fi
22771 rm -f confcache
22772
22773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22774 # Let make expand exec_prefix.
22775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22776
22777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22779 # trailing colons and then remove the whole line if VPATH becomes empty
22780 # (actually we leave an empty line to preserve line numbers).
22781 if test "x$srcdir" = x.; then
22782 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22783 s/:*\$(srcdir):*/:/;
22784 s/:*\${srcdir}:*/:/;
22785 s/:*@srcdir@:*/:/;
22786 s/^\([^=]*=[ ]*\):*/\1/;
22787 s/:*$//;
22788 s/^[^=]*=[ ]*$//;
22789 }'
22790 fi
22791
22792 DEFS=-DHAVE_CONFIG_H
22793
22794 ac_libobjs=
22795 ac_ltlibobjs=
22796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22797 # 1. Remove the extension, and $U if already installed.
22798 ac_i=`echo "$ac_i" |
22799 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22800 # 2. Add them.
22801 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22802 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22803 done
22804 LIBOBJS=$ac_libobjs
22805
22806 LTLIBOBJS=$ac_ltlibobjs
22807
22808
22809
22810 : ${CONFIG_STATUS=./config.status}
22811 ac_clean_files_save=$ac_clean_files
22812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22815 cat >$CONFIG_STATUS <<_ACEOF
22816 #! $SHELL
22817 # Generated by $as_me.
22818 # Run this file to recreate the current configuration.
22819 # Compiler output produced by configure, useful for debugging
22820 # configure, is in config.log if it exists.
22821
22822 debug=false
22823 ac_cs_recheck=false
22824 ac_cs_silent=false
22825 SHELL=\${CONFIG_SHELL-$SHELL}
22826 _ACEOF
22827
22828 cat >>$CONFIG_STATUS <<\_ACEOF
22829 ## --------------------- ##
22830 ## M4sh Initialization. ##
22831 ## --------------------- ##
22832
22833 # Be Bourne compatible
22834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22835 emulate sh
22836 NULLCMD=:
22837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22838 # is contrary to our usage. Disable this feature.
22839 alias -g '${1+"$@"}'='"$@"'
22840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22841 set -o posix
22842 fi
22843 DUALCASE=1; export DUALCASE # for MKS sh
22844
22845 # Support unset when possible.
22846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22847 as_unset=unset
22848 else
22849 as_unset=false
22850 fi
22851
22852
22853 # Work around bugs in pre-3.0 UWIN ksh.
22854 $as_unset ENV MAIL MAILPATH
22855 PS1='$ '
22856 PS2='> '
22857 PS4='+ '
22858
22859 # NLS nuisances.
22860 for as_var in \
22861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22863 LC_TELEPHONE LC_TIME
22864 do
22865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22866 eval $as_var=C; export $as_var
22867 else
22868 $as_unset $as_var
22869 fi
22870 done
22871
22872 # Required to use basename.
22873 if expr a : '\(a\)' >/dev/null 2>&1; then
22874 as_expr=expr
22875 else
22876 as_expr=false
22877 fi
22878
22879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22880 as_basename=basename
22881 else
22882 as_basename=false
22883 fi
22884
22885
22886 # Name of the executable.
22887 as_me=`$as_basename "$0" ||
22888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22889 X"$0" : 'X\(//\)$' \| \
22890 X"$0" : 'X\(/\)$' \| \
22891 . : '\(.\)' 2>/dev/null ||
22892 echo X/"$0" |
22893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22894 /^X\/\(\/\/\)$/{ s//\1/; q; }
22895 /^X\/\(\/\).*/{ s//\1/; q; }
22896 s/.*/./; q'`
22897
22898
22899 # PATH needs CR, and LINENO needs CR and PATH.
22900 # Avoid depending upon Character Ranges.
22901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22904 as_cr_digits='0123456789'
22905 as_cr_alnum=$as_cr_Letters$as_cr_digits
22906
22907 # The user is always right.
22908 if test "${PATH_SEPARATOR+set}" != set; then
22909 echo "#! /bin/sh" >conf$$.sh
22910 echo "exit 0" >>conf$$.sh
22911 chmod +x conf$$.sh
22912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22913 PATH_SEPARATOR=';'
22914 else
22915 PATH_SEPARATOR=:
22916 fi
22917 rm -f conf$$.sh
22918 fi
22919
22920
22921 as_lineno_1=$LINENO
22922 as_lineno_2=$LINENO
22923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22924 test "x$as_lineno_1" != "x$as_lineno_2" &&
22925 test "x$as_lineno_3" = "x$as_lineno_2" || {
22926 # Find who we are. Look in the path if we contain no path at all
22927 # relative or not.
22928 case $0 in
22929 *[\\/]* ) as_myself=$0 ;;
22930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22931 for as_dir in $PATH
22932 do
22933 IFS=$as_save_IFS
22934 test -z "$as_dir" && as_dir=.
22935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22936 done
22937
22938 ;;
22939 esac
22940 # We did not find ourselves, most probably we were run as `sh COMMAND'
22941 # in which case we are not to be found in the path.
22942 if test "x$as_myself" = x; then
22943 as_myself=$0
22944 fi
22945 if test ! -f "$as_myself"; then
22946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22948 { (exit 1); exit 1; }; }
22949 fi
22950 case $CONFIG_SHELL in
22951 '')
22952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22954 do
22955 IFS=$as_save_IFS
22956 test -z "$as_dir" && as_dir=.
22957 for as_base in sh bash ksh sh5; do
22958 case $as_dir in
22959 /*)
22960 if ("$as_dir/$as_base" -c '
22961 as_lineno_1=$LINENO
22962 as_lineno_2=$LINENO
22963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22964 test "x$as_lineno_1" != "x$as_lineno_2" &&
22965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22968 CONFIG_SHELL=$as_dir/$as_base
22969 export CONFIG_SHELL
22970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22971 fi;;
22972 esac
22973 done
22974 done
22975 ;;
22976 esac
22977
22978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22979 # uniformly replaced by the line number. The first 'sed' inserts a
22980 # line-number line before each line; the second 'sed' does the real
22981 # work. The second script uses 'N' to pair each line-number line
22982 # with the numbered line, and appends trailing '-' during
22983 # substitution so that $LINENO is not a special case at line end.
22984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22986 sed '=' <$as_myself |
22987 sed '
22988 N
22989 s,$,-,
22990 : loop
22991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22992 t loop
22993 s,-$,,
22994 s,^['$as_cr_digits']*\n,,
22995 ' >$as_me.lineno &&
22996 chmod +x $as_me.lineno ||
22997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22999 { (exit 1); exit 1; }; }
23000
23001 # Don't try to exec as it changes $[0], causing all sort of problems
23002 # (the dirname of $[0] is not the place where we might find the
23003 # original and so on. Autoconf is especially sensible to this).
23004 . ./$as_me.lineno
23005 # Exit status is that of the last command.
23006 exit
23007 }
23008
23009
23010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23011 *c*,-n*) ECHO_N= ECHO_C='
23012 ' ECHO_T=' ' ;;
23013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23015 esac
23016
23017 if expr a : '\(a\)' >/dev/null 2>&1; then
23018 as_expr=expr
23019 else
23020 as_expr=false
23021 fi
23022
23023 rm -f conf$$ conf$$.exe conf$$.file
23024 echo >conf$$.file
23025 if ln -s conf$$.file conf$$ 2>/dev/null; then
23026 # We could just check for DJGPP; but this test a) works b) is more generic
23027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23028 if test -f conf$$.exe; then
23029 # Don't use ln at all; we don't have any links
23030 as_ln_s='cp -p'
23031 else
23032 as_ln_s='ln -s'
23033 fi
23034 elif ln conf$$.file conf$$ 2>/dev/null; then
23035 as_ln_s=ln
23036 else
23037 as_ln_s='cp -p'
23038 fi
23039 rm -f conf$$ conf$$.exe conf$$.file
23040
23041 if mkdir -p . 2>/dev/null; then
23042 as_mkdir_p=:
23043 else
23044 test -d ./-p && rmdir ./-p
23045 as_mkdir_p=false
23046 fi
23047
23048 as_executable_p="test -f"
23049
23050 # Sed expression to map a string onto a valid CPP name.
23051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23052
23053 # Sed expression to map a string onto a valid variable name.
23054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23055
23056
23057 # IFS
23058 # We need space, tab and new line, in precisely that order.
23059 as_nl='
23060 '
23061 IFS=" $as_nl"
23062
23063 # CDPATH.
23064 $as_unset CDPATH
23065
23066 exec 6>&1
23067
23068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23069 # report actual input values of CONFIG_FILES etc. instead of their
23070 # values after options handling. Logging --version etc. is OK.
23071 exec 5>>config.log
23072 {
23073 echo
23074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23075 ## Running $as_me. ##
23076 _ASBOX
23077 } >&5
23078 cat >&5 <<_CSEOF
23079
23080 This file was extended by $as_me, which was
23081 generated by GNU Autoconf 2.59. Invocation command line was
23082
23083 CONFIG_FILES = $CONFIG_FILES
23084 CONFIG_HEADERS = $CONFIG_HEADERS
23085 CONFIG_LINKS = $CONFIG_LINKS
23086 CONFIG_COMMANDS = $CONFIG_COMMANDS
23087 $ $0 $@
23088
23089 _CSEOF
23090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23091 echo >&5
23092 _ACEOF
23093
23094 # Files that config.status was made for.
23095 if test -n "$ac_config_files"; then
23096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23097 fi
23098
23099 if test -n "$ac_config_headers"; then
23100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23101 fi
23102
23103 if test -n "$ac_config_links"; then
23104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23105 fi
23106
23107 if test -n "$ac_config_commands"; then
23108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23109 fi
23110
23111 cat >>$CONFIG_STATUS <<\_ACEOF
23112
23113 ac_cs_usage="\
23114 \`$as_me' instantiates files from templates according to the
23115 current configuration.
23116
23117 Usage: $0 [OPTIONS] [FILE]...
23118
23119 -h, --help print this help, then exit
23120 -V, --version print version number, then exit
23121 -q, --quiet do not print progress messages
23122 -d, --debug don't remove temporary files
23123 --recheck update $as_me by reconfiguring in the same conditions
23124 --file=FILE[:TEMPLATE]
23125 instantiate the configuration file FILE
23126 --header=FILE[:TEMPLATE]
23127 instantiate the configuration header FILE
23128
23129 Configuration files:
23130 $config_files
23131
23132 Configuration headers:
23133 $config_headers
23134
23135 Configuration commands:
23136 $config_commands
23137
23138 Report bugs to <bug-autoconf@gnu.org>."
23139 _ACEOF
23140
23141 cat >>$CONFIG_STATUS <<_ACEOF
23142 ac_cs_version="\\
23143 config.status
23144 configured by $0, generated by GNU Autoconf 2.59,
23145 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23146
23147 Copyright (C) 2003 Free Software Foundation, Inc.
23148 This config.status script is free software; the Free Software Foundation
23149 gives unlimited permission to copy, distribute and modify it."
23150 srcdir=$srcdir
23151 INSTALL="$INSTALL"
23152 _ACEOF
23153
23154 cat >>$CONFIG_STATUS <<\_ACEOF
23155 # If no file are specified by the user, then we need to provide default
23156 # value. By we need to know if files were specified by the user.
23157 ac_need_defaults=:
23158 while test $# != 0
23159 do
23160 case $1 in
23161 --*=*)
23162 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23163 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23164 ac_shift=:
23165 ;;
23166 -*)
23167 ac_option=$1
23168 ac_optarg=$2
23169 ac_shift=shift
23170 ;;
23171 *) # This is not an option, so the user has probably given explicit
23172 # arguments.
23173 ac_option=$1
23174 ac_need_defaults=false;;
23175 esac
23176
23177 case $ac_option in
23178 # Handling of the options.
23179 _ACEOF
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23182 ac_cs_recheck=: ;;
23183 --version | --vers* | -V )
23184 echo "$ac_cs_version"; exit 0 ;;
23185 --he | --h)
23186 # Conflict between --help and --header
23187 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23188 Try \`$0 --help' for more information." >&5
23189 echo "$as_me: error: ambiguous option: $1
23190 Try \`$0 --help' for more information." >&2;}
23191 { (exit 1); exit 1; }; };;
23192 --help | --hel | -h )
23193 echo "$ac_cs_usage"; exit 0 ;;
23194 --debug | --d* | -d )
23195 debug=: ;;
23196 --file | --fil | --fi | --f )
23197 $ac_shift
23198 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23199 ac_need_defaults=false;;
23200 --header | --heade | --head | --hea )
23201 $ac_shift
23202 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23203 ac_need_defaults=false;;
23204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23206 ac_cs_silent=: ;;
23207
23208 # This is an error.
23209 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23210 Try \`$0 --help' for more information." >&5
23211 echo "$as_me: error: unrecognized option: $1
23212 Try \`$0 --help' for more information." >&2;}
23213 { (exit 1); exit 1; }; } ;;
23214
23215 *) ac_config_targets="$ac_config_targets $1" ;;
23216
23217 esac
23218 shift
23219 done
23220
23221 ac_configure_extra_args=
23222
23223 if $ac_cs_silent; then
23224 exec 6>/dev/null
23225 ac_configure_extra_args="$ac_configure_extra_args --silent"
23226 fi
23227
23228 _ACEOF
23229 cat >>$CONFIG_STATUS <<_ACEOF
23230 if \$ac_cs_recheck; then
23231 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23232 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23233 fi
23234
23235 _ACEOF
23236
23237 cat >>$CONFIG_STATUS <<_ACEOF
23238 #
23239 # INIT-COMMANDS section.
23240 #
23241
23242 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23243
23244 _ACEOF
23245
23246
23247
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23249 for ac_config_target in $ac_config_targets
23250 do
23251 case "$ac_config_target" in
23252 # Handling of arguments.
23253 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23254 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23255 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23256 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23257 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23258 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23259 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23260 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23261 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23262 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23263 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23264 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23267 { (exit 1); exit 1; }; };;
23268 esac
23269 done
23270
23271 # If the user did not use the arguments to specify the items to instantiate,
23272 # then the envvar interface is used. Set only those that are not.
23273 # We use the long form for the default assignment because of an extremely
23274 # bizarre bug on SunOS 4.1.3.
23275 if $ac_need_defaults; then
23276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23279 fi
23280
23281 # Have a temporary directory for convenience. Make it in the build tree
23282 # simply because there is no reason to put it here, and in addition,
23283 # creating and moving files from /tmp can sometimes cause problems.
23284 # Create a temporary directory, and hook for its removal unless debugging.
23285 $debug ||
23286 {
23287 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23288 trap '{ (exit 1); exit 1; }' 1 2 13 15
23289 }
23290
23291 # Create a (secure) tmp directory for tmp files.
23292
23293 {
23294 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23295 test -n "$tmp" && test -d "$tmp"
23296 } ||
23297 {
23298 tmp=./confstat$$-$RANDOM
23299 (umask 077 && mkdir $tmp)
23300 } ||
23301 {
23302 echo "$me: cannot create a temporary directory in ." >&2
23303 { (exit 1); exit 1; }
23304 }
23305
23306 _ACEOF
23307
23308 cat >>$CONFIG_STATUS <<_ACEOF
23309
23310 #
23311 # CONFIG_FILES section.
23312 #
23313
23314 # No need to generate the scripts if there are no CONFIG_FILES.
23315 # This happens for instance when ./config.status config.h
23316 if test -n "\$CONFIG_FILES"; then
23317 # Protect against being on the right side of a sed subst in config.status.
23318 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23319 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23320 s,@SHELL@,$SHELL,;t t
23321 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23322 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23323 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23324 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23325 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23326 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23327 s,@exec_prefix@,$exec_prefix,;t t
23328 s,@prefix@,$prefix,;t t
23329 s,@program_transform_name@,$program_transform_name,;t t
23330 s,@bindir@,$bindir,;t t
23331 s,@sbindir@,$sbindir,;t t
23332 s,@libexecdir@,$libexecdir,;t t
23333 s,@datadir@,$datadir,;t t
23334 s,@sysconfdir@,$sysconfdir,;t t
23335 s,@sharedstatedir@,$sharedstatedir,;t t
23336 s,@localstatedir@,$localstatedir,;t t
23337 s,@libdir@,$libdir,;t t
23338 s,@includedir@,$includedir,;t t
23339 s,@oldincludedir@,$oldincludedir,;t t
23340 s,@infodir@,$infodir,;t t
23341 s,@mandir@,$mandir,;t t
23342 s,@build_alias@,$build_alias,;t t
23343 s,@host_alias@,$host_alias,;t t
23344 s,@target_alias@,$target_alias,;t t
23345 s,@DEFS@,$DEFS,;t t
23346 s,@ECHO_C@,$ECHO_C,;t t
23347 s,@ECHO_N@,$ECHO_N,;t t
23348 s,@ECHO_T@,$ECHO_T,;t t
23349 s,@LIBS@,$LIBS,;t t
23350 s,@MAINT@,$MAINT,;t t
23351 s,@build@,$build,;t t
23352 s,@build_cpu@,$build_cpu,;t t
23353 s,@build_vendor@,$build_vendor,;t t
23354 s,@build_os@,$build_os,;t t
23355 s,@host@,$host,;t t
23356 s,@host_cpu@,$host_cpu,;t t
23357 s,@host_vendor@,$host_vendor,;t t
23358 s,@host_os@,$host_os,;t t
23359 s,@CC@,$CC,;t t
23360 s,@CFLAGS@,$CFLAGS,;t t
23361 s,@LDFLAGS@,$LDFLAGS,;t t
23362 s,@CPPFLAGS@,$CPPFLAGS,;t t
23363 s,@ac_ct_CC@,$ac_ct_CC,;t t
23364 s,@EXEEXT@,$EXEEXT,;t t
23365 s,@OBJEXT@,$OBJEXT,;t t
23366 s,@CPP@,$CPP,;t t
23367 s,@EGREP@,$EGREP,;t t
23368 s,@LN_S@,$LN_S,;t t
23369 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23370 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23371 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23372 s,@RANLIB@,$RANLIB,;t t
23373 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23374 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23375 s,@GZIP_PROG@,$GZIP_PROG,;t t
23376 s,@LIBSOUND@,$LIBSOUND,;t t
23377 s,@SET_MAKE@,$SET_MAKE,;t t
23378 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23379 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23380 s,@GTK_LIBS@,$GTK_LIBS,;t t
23381 s,@ALLOCA@,$ALLOCA,;t t
23382 s,@liblockfile@,$liblockfile,;t t
23383 s,@LIBOBJS@,$LIBOBJS,;t t
23384 s,@NEED_SETGID@,$NEED_SETGID,;t t
23385 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23386 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23387 s,@GETOPT_H@,$GETOPT_H,;t t
23388 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23389 s,@version@,$version,;t t
23390 s,@configuration@,$configuration,;t t
23391 s,@canonical@,$canonical,;t t
23392 s,@srcdir@,$srcdir,;t t
23393 s,@lispdir@,$lispdir,;t t
23394 s,@locallisppath@,$locallisppath,;t t
23395 s,@lisppath@,$lisppath,;t t
23396 s,@x_default_search_path@,$x_default_search_path,;t t
23397 s,@etcdir@,$etcdir,;t t
23398 s,@archlibdir@,$archlibdir,;t t
23399 s,@docdir@,$docdir,;t t
23400 s,@bitmapdir@,$bitmapdir,;t t
23401 s,@gamedir@,$gamedir,;t t
23402 s,@gameuser@,$gameuser,;t t
23403 s,@c_switch_system@,$c_switch_system,;t t
23404 s,@c_switch_machine@,$c_switch_machine,;t t
23405 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23406 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23407 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23408 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23409 s,@machfile@,$machfile,;t t
23410 s,@opsysfile@,$opsysfile,;t t
23411 s,@carbon_appdir@,$carbon_appdir,;t t
23412 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23413 CEOF
23414
23415 _ACEOF
23416
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 # Split the substitutions into bite-sized pieces for seds with
23419 # small command number limits, like on Digital OSF/1 and HP-UX.
23420 ac_max_sed_lines=48
23421 ac_sed_frag=1 # Number of current file.
23422 ac_beg=1 # First line for current file.
23423 ac_end=$ac_max_sed_lines # Line after last line for current file.
23424 ac_more_lines=:
23425 ac_sed_cmds=
23426 while $ac_more_lines; do
23427 if test $ac_beg -gt 1; then
23428 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23429 else
23430 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23431 fi
23432 if test ! -s $tmp/subs.frag; then
23433 ac_more_lines=false
23434 else
23435 # The purpose of the label and of the branching condition is to
23436 # speed up the sed processing (if there are no `@' at all, there
23437 # is no need to browse any of the substitutions).
23438 # These are the two extra sed commands mentioned above.
23439 (echo ':t
23440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23441 if test -z "$ac_sed_cmds"; then
23442 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23443 else
23444 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23445 fi
23446 ac_sed_frag=`expr $ac_sed_frag + 1`
23447 ac_beg=$ac_end
23448 ac_end=`expr $ac_end + $ac_max_sed_lines`
23449 fi
23450 done
23451 if test -z "$ac_sed_cmds"; then
23452 ac_sed_cmds=cat
23453 fi
23454 fi # test -n "$CONFIG_FILES"
23455
23456 _ACEOF
23457 cat >>$CONFIG_STATUS <<\_ACEOF
23458 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23460 case $ac_file in
23461 - | *:- | *:-:* ) # input from stdin
23462 cat >$tmp/stdin
23463 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23465 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23467 * ) ac_file_in=$ac_file.in ;;
23468 esac
23469
23470 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23471 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23473 X"$ac_file" : 'X\(//\)[^/]' \| \
23474 X"$ac_file" : 'X\(//\)$' \| \
23475 X"$ac_file" : 'X\(/\)' \| \
23476 . : '\(.\)' 2>/dev/null ||
23477 echo X"$ac_file" |
23478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23480 /^X\(\/\/\)$/{ s//\1/; q; }
23481 /^X\(\/\).*/{ s//\1/; q; }
23482 s/.*/./; q'`
23483 { if $as_mkdir_p; then
23484 mkdir -p "$ac_dir"
23485 else
23486 as_dir="$ac_dir"
23487 as_dirs=
23488 while test ! -d "$as_dir"; do
23489 as_dirs="$as_dir $as_dirs"
23490 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492 X"$as_dir" : 'X\(//\)[^/]' \| \
23493 X"$as_dir" : 'X\(//\)$' \| \
23494 X"$as_dir" : 'X\(/\)' \| \
23495 . : '\(.\)' 2>/dev/null ||
23496 echo X"$as_dir" |
23497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23499 /^X\(\/\/\)$/{ s//\1/; q; }
23500 /^X\(\/\).*/{ s//\1/; q; }
23501 s/.*/./; q'`
23502 done
23503 test ! -n "$as_dirs" || mkdir $as_dirs
23504 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23506 { (exit 1); exit 1; }; }; }
23507
23508 ac_builddir=.
23509
23510 if test "$ac_dir" != .; then
23511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23512 # A "../" for each directory in $ac_dir_suffix.
23513 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23514 else
23515 ac_dir_suffix= ac_top_builddir=
23516 fi
23517
23518 case $srcdir in
23519 .) # No --srcdir option. We are building in place.
23520 ac_srcdir=.
23521 if test -z "$ac_top_builddir"; then
23522 ac_top_srcdir=.
23523 else
23524 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23525 fi ;;
23526 [\\/]* | ?:[\\/]* ) # Absolute path.
23527 ac_srcdir=$srcdir$ac_dir_suffix;
23528 ac_top_srcdir=$srcdir ;;
23529 *) # Relative path.
23530 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23531 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23532 esac
23533
23534 # Do not use `cd foo && pwd` to compute absolute paths, because
23535 # the directories may not exist.
23536 case `pwd` in
23537 .) ac_abs_builddir="$ac_dir";;
23538 *)
23539 case "$ac_dir" in
23540 .) ac_abs_builddir=`pwd`;;
23541 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23542 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23543 esac;;
23544 esac
23545 case $ac_abs_builddir in
23546 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23547 *)
23548 case ${ac_top_builddir}. in
23549 .) ac_abs_top_builddir=$ac_abs_builddir;;
23550 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23551 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23552 esac;;
23553 esac
23554 case $ac_abs_builddir in
23555 .) ac_abs_srcdir=$ac_srcdir;;
23556 *)
23557 case $ac_srcdir in
23558 .) ac_abs_srcdir=$ac_abs_builddir;;
23559 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23560 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23561 esac;;
23562 esac
23563 case $ac_abs_builddir in
23564 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23565 *)
23566 case $ac_top_srcdir in
23567 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23568 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23569 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23570 esac;;
23571 esac
23572
23573
23574 case $INSTALL in
23575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23576 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23577 esac
23578
23579 # Let's still pretend it is `configure' which instantiates (i.e., don't
23580 # use $as_me), people would be surprised to read:
23581 # /* config.h. Generated by config.status. */
23582 if test x"$ac_file" = x-; then
23583 configure_input=
23584 else
23585 configure_input="$ac_file. "
23586 fi
23587 configure_input=$configure_input"Generated from `echo $ac_file_in |
23588 sed 's,.*/,,'` by configure."
23589
23590 # First look for the input files in the build tree, otherwise in the
23591 # src tree.
23592 ac_file_inputs=`IFS=:
23593 for f in $ac_file_in; do
23594 case $f in
23595 -) echo $tmp/stdin ;;
23596 [\\/$]*)
23597 # Absolute (can't be DOS-style, as IFS=:)
23598 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23599 echo "$as_me: error: cannot find input file: $f" >&2;}
23600 { (exit 1); exit 1; }; }
23601 echo "$f";;
23602 *) # Relative
23603 if test -f "$f"; then
23604 # Build tree
23605 echo "$f"
23606 elif test -f "$srcdir/$f"; then
23607 # Source tree
23608 echo "$srcdir/$f"
23609 else
23610 # /dev/null tree
23611 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23612 echo "$as_me: error: cannot find input file: $f" >&2;}
23613 { (exit 1); exit 1; }; }
23614 fi;;
23615 esac
23616 done` || { (exit 1); exit 1; }
23617
23618 if test x"$ac_file" != x-; then
23619 { echo "$as_me:$LINENO: creating $ac_file" >&5
23620 echo "$as_me: creating $ac_file" >&6;}
23621 rm -f "$ac_file"
23622 fi
23623 _ACEOF
23624 cat >>$CONFIG_STATUS <<_ACEOF
23625 sed "$ac_vpsub
23626 $extrasub
23627 _ACEOF
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23629 :t
23630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23631 s,@configure_input@,$configure_input,;t t
23632 s,@srcdir@,$ac_srcdir,;t t
23633 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23634 s,@top_srcdir@,$ac_top_srcdir,;t t
23635 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23636 s,@builddir@,$ac_builddir,;t t
23637 s,@abs_builddir@,$ac_abs_builddir,;t t
23638 s,@top_builddir@,$ac_top_builddir,;t t
23639 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23640 s,@INSTALL@,$ac_INSTALL,;t t
23641 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23642 rm -f $tmp/stdin
23643 if test x"$ac_file" != x-; then
23644 mv $tmp/out $ac_file
23645 else
23646 cat $tmp/out
23647 rm -f $tmp/out
23648 fi
23649
23650 done
23651 _ACEOF
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23653
23654 #
23655 # CONFIG_HEADER section.
23656 #
23657
23658 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23659 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23660 #
23661 # ac_d sets the value in "#define NAME VALUE" lines.
23662 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23663 ac_dB='[ ].*$,\1#\2'
23664 ac_dC=' '
23665 ac_dD=',;t'
23666 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23667 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23668 ac_uB='$,\1#\2define\3'
23669 ac_uC=' '
23670 ac_uD=',;t'
23671
23672 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23674 case $ac_file in
23675 - | *:- | *:-:* ) # input from stdin
23676 cat >$tmp/stdin
23677 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23678 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23679 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23681 * ) ac_file_in=$ac_file.in ;;
23682 esac
23683
23684 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23685 echo "$as_me: creating $ac_file" >&6;}
23686
23687 # First look for the input files in the build tree, otherwise in the
23688 # src tree.
23689 ac_file_inputs=`IFS=:
23690 for f in $ac_file_in; do
23691 case $f in
23692 -) echo $tmp/stdin ;;
23693 [\\/$]*)
23694 # Absolute (can't be DOS-style, as IFS=:)
23695 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23696 echo "$as_me: error: cannot find input file: $f" >&2;}
23697 { (exit 1); exit 1; }; }
23698 # Do quote $f, to prevent DOS paths from being IFS'd.
23699 echo "$f";;
23700 *) # Relative
23701 if test -f "$f"; then
23702 # Build tree
23703 echo "$f"
23704 elif test -f "$srcdir/$f"; then
23705 # Source tree
23706 echo "$srcdir/$f"
23707 else
23708 # /dev/null tree
23709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23710 echo "$as_me: error: cannot find input file: $f" >&2;}
23711 { (exit 1); exit 1; }; }
23712 fi;;
23713 esac
23714 done` || { (exit 1); exit 1; }
23715 # Remove the trailing spaces.
23716 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23717
23718 _ACEOF
23719
23720 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23721 # `conftest.undefs', that substitutes the proper values into
23722 # config.h.in to produce config.h. The first handles `#define'
23723 # templates, and the second `#undef' templates.
23724 # And first: Protect against being on the right side of a sed subst in
23725 # config.status. Protect against being in an unquoted here document
23726 # in config.status.
23727 rm -f conftest.defines conftest.undefs
23728 # Using a here document instead of a string reduces the quoting nightmare.
23729 # Putting comments in sed scripts is not portable.
23730 #
23731 # `end' is used to avoid that the second main sed command (meant for
23732 # 0-ary CPP macros) applies to n-ary macro definitions.
23733 # See the Autoconf documentation for `clear'.
23734 cat >confdef2sed.sed <<\_ACEOF
23735 s/[\\&,]/\\&/g
23736 s,[\\$`],\\&,g
23737 t clear
23738 : clear
23739 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23740 t end
23741 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23742 : end
23743 _ACEOF
23744 # If some macros were called several times there might be several times
23745 # the same #defines, which is useless. Nevertheless, we may not want to
23746 # sort them, since we want the *last* AC-DEFINE to be honored.
23747 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23748 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23749 rm -f confdef2sed.sed
23750
23751 # This sed command replaces #undef with comments. This is necessary, for
23752 # example, in the case of _POSIX_SOURCE, which is predefined and required
23753 # on some systems where configure will not decide to define it.
23754 cat >>conftest.undefs <<\_ACEOF
23755 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23756 _ACEOF
23757
23758 # Break up conftest.defines because some shells have a limit on the size
23759 # of here documents, and old seds have small limits too (100 cmds).
23760 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23761 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23762 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23763 echo ' :' >>$CONFIG_STATUS
23764 rm -f conftest.tail
23765 while grep . conftest.defines >/dev/null
23766 do
23767 # Write a limited-size here document to $tmp/defines.sed.
23768 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23769 # Speed up: don't consider the non `#define' lines.
23770 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23771 # Work around the forget-to-reset-the-flag bug.
23772 echo 't clr' >>$CONFIG_STATUS
23773 echo ': clr' >>$CONFIG_STATUS
23774 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23775 echo 'CEOF
23776 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23777 rm -f $tmp/in
23778 mv $tmp/out $tmp/in
23779 ' >>$CONFIG_STATUS
23780 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23781 rm -f conftest.defines
23782 mv conftest.tail conftest.defines
23783 done
23784 rm -f conftest.defines
23785 echo ' fi # grep' >>$CONFIG_STATUS
23786 echo >>$CONFIG_STATUS
23787
23788 # Break up conftest.undefs because some shells have a limit on the size
23789 # of here documents, and old seds have small limits too (100 cmds).
23790 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23791 rm -f conftest.tail
23792 while grep . conftest.undefs >/dev/null
23793 do
23794 # Write a limited-size here document to $tmp/undefs.sed.
23795 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23796 # Speed up: don't consider the non `#undef'
23797 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23798 # Work around the forget-to-reset-the-flag bug.
23799 echo 't clr' >>$CONFIG_STATUS
23800 echo ': clr' >>$CONFIG_STATUS
23801 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23802 echo 'CEOF
23803 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23804 rm -f $tmp/in
23805 mv $tmp/out $tmp/in
23806 ' >>$CONFIG_STATUS
23807 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23808 rm -f conftest.undefs
23809 mv conftest.tail conftest.undefs
23810 done
23811 rm -f conftest.undefs
23812
23813 cat >>$CONFIG_STATUS <<\_ACEOF
23814 # Let's still pretend it is `configure' which instantiates (i.e., don't
23815 # use $as_me), people would be surprised to read:
23816 # /* config.h. Generated by config.status. */
23817 if test x"$ac_file" = x-; then
23818 echo "/* Generated by configure. */" >$tmp/config.h
23819 else
23820 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23821 fi
23822 cat $tmp/in >>$tmp/config.h
23823 rm -f $tmp/in
23824 if test x"$ac_file" != x-; then
23825 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23826 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23827 echo "$as_me: $ac_file is unchanged" >&6;}
23828 else
23829 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23831 X"$ac_file" : 'X\(//\)[^/]' \| \
23832 X"$ac_file" : 'X\(//\)$' \| \
23833 X"$ac_file" : 'X\(/\)' \| \
23834 . : '\(.\)' 2>/dev/null ||
23835 echo X"$ac_file" |
23836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23838 /^X\(\/\/\)$/{ s//\1/; q; }
23839 /^X\(\/\).*/{ s//\1/; q; }
23840 s/.*/./; q'`
23841 { if $as_mkdir_p; then
23842 mkdir -p "$ac_dir"
23843 else
23844 as_dir="$ac_dir"
23845 as_dirs=
23846 while test ! -d "$as_dir"; do
23847 as_dirs="$as_dir $as_dirs"
23848 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23850 X"$as_dir" : 'X\(//\)[^/]' \| \
23851 X"$as_dir" : 'X\(//\)$' \| \
23852 X"$as_dir" : 'X\(/\)' \| \
23853 . : '\(.\)' 2>/dev/null ||
23854 echo X"$as_dir" |
23855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23857 /^X\(\/\/\)$/{ s//\1/; q; }
23858 /^X\(\/\).*/{ s//\1/; q; }
23859 s/.*/./; q'`
23860 done
23861 test ! -n "$as_dirs" || mkdir $as_dirs
23862 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23863 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23864 { (exit 1); exit 1; }; }; }
23865
23866 rm -f $ac_file
23867 mv $tmp/config.h $ac_file
23868 fi
23869 else
23870 cat $tmp/config.h
23871 rm -f $tmp/config.h
23872 fi
23873 done
23874 _ACEOF
23875 cat >>$CONFIG_STATUS <<\_ACEOF
23876
23877 #
23878 # CONFIG_COMMANDS section.
23879 #
23880 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23881 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23882 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23883 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23884 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23885 X"$ac_dest" : 'X\(//\)[^/]' \| \
23886 X"$ac_dest" : 'X\(//\)$' \| \
23887 X"$ac_dest" : 'X\(/\)' \| \
23888 . : '\(.\)' 2>/dev/null ||
23889 echo X"$ac_dest" |
23890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23892 /^X\(\/\/\)$/{ s//\1/; q; }
23893 /^X\(\/\).*/{ s//\1/; q; }
23894 s/.*/./; q'`
23895 { if $as_mkdir_p; then
23896 mkdir -p "$ac_dir"
23897 else
23898 as_dir="$ac_dir"
23899 as_dirs=
23900 while test ! -d "$as_dir"; do
23901 as_dirs="$as_dir $as_dirs"
23902 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23904 X"$as_dir" : 'X\(//\)[^/]' \| \
23905 X"$as_dir" : 'X\(//\)$' \| \
23906 X"$as_dir" : 'X\(/\)' \| \
23907 . : '\(.\)' 2>/dev/null ||
23908 echo X"$as_dir" |
23909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23911 /^X\(\/\/\)$/{ s//\1/; q; }
23912 /^X\(\/\).*/{ s//\1/; q; }
23913 s/.*/./; q'`
23914 done
23915 test ! -n "$as_dirs" || mkdir $as_dirs
23916 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23917 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23918 { (exit 1); exit 1; }; }; }
23919
23920 ac_builddir=.
23921
23922 if test "$ac_dir" != .; then
23923 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23924 # A "../" for each directory in $ac_dir_suffix.
23925 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23926 else
23927 ac_dir_suffix= ac_top_builddir=
23928 fi
23929
23930 case $srcdir in
23931 .) # No --srcdir option. We are building in place.
23932 ac_srcdir=.
23933 if test -z "$ac_top_builddir"; then
23934 ac_top_srcdir=.
23935 else
23936 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23937 fi ;;
23938 [\\/]* | ?:[\\/]* ) # Absolute path.
23939 ac_srcdir=$srcdir$ac_dir_suffix;
23940 ac_top_srcdir=$srcdir ;;
23941 *) # Relative path.
23942 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23943 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23944 esac
23945
23946 # Do not use `cd foo && pwd` to compute absolute paths, because
23947 # the directories may not exist.
23948 case `pwd` in
23949 .) ac_abs_builddir="$ac_dir";;
23950 *)
23951 case "$ac_dir" in
23952 .) ac_abs_builddir=`pwd`;;
23953 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23954 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23955 esac;;
23956 esac
23957 case $ac_abs_builddir in
23958 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23959 *)
23960 case ${ac_top_builddir}. in
23961 .) ac_abs_top_builddir=$ac_abs_builddir;;
23962 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23963 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23964 esac;;
23965 esac
23966 case $ac_abs_builddir in
23967 .) ac_abs_srcdir=$ac_srcdir;;
23968 *)
23969 case $ac_srcdir in
23970 .) ac_abs_srcdir=$ac_abs_builddir;;
23971 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23972 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23973 esac;;
23974 esac
23975 case $ac_abs_builddir in
23976 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23977 *)
23978 case $ac_top_srcdir in
23979 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23980 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23981 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23982 esac;;
23983 esac
23984
23985
23986 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23987 echo "$as_me: executing $ac_dest commands" >&6;}
23988 case $ac_dest in
23989 default )
23990
23991 ### Make the necessary directories, if they don't exist.
23992 for dir in etc lisp ; do
23993 test -d ${dir} || mkdir ${dir}
23994 done
23995
23996 # Build src/Makefile from ${srcdir}/src/Makefile.c
23997 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23998 # This must be done after src/config.h is built, since we rely on that file.
23999
24000 # Now get this: Some word that is part of the ${srcdir} directory name
24001 # or the ${configuration} value might, just might, happen to be an
24002 # identifier like `sun4' or `i386' or something, and be predefined by
24003 # the C preprocessor to some helpful value like 1, or maybe the empty
24004 # string. Needless to say consequent macro substitutions are less
24005 # than conducive to the makefile finding the correct directory.
24006 undefs="`echo $top_srcdir $configuration $canonical |
24007 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24008 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24009 `"
24010
24011 echo creating src/epaths.h
24012 ${MAKE-make} epaths-force
24013
24014 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24015 # `..' to `. .' unless invoked with -traditional
24016
24017 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24018 CPPFLAGS="$CPPFLAGS -traditional"
24019 fi
24020
24021 echo creating lib-src/Makefile
24022 ( cd lib-src
24023 rm -f junk.c junk1.c junk2.c
24024 sed -e '/start of cpp stuff/q' \
24025 < Makefile.c > junk1.c
24026 sed -e '1,/start of cpp stuff/d'\
24027 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24028 < Makefile.c > junk.c
24029 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24030 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24031 cat junk1.c junk2.c > Makefile.new
24032 rm -f junk.c junk1.c junk2.c
24033 chmod 444 Makefile.new
24034 mv -f Makefile.new Makefile
24035 )
24036
24037 echo creating src/Makefile
24038 ( cd src
24039 rm -f junk.c junk1.c junk2.c
24040 sed -e '/start of cpp stuff/q' \
24041 < Makefile.c > junk1.c
24042 sed -e '1,/start of cpp stuff/d'\
24043 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24044 < Makefile.c > junk.c
24045 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24046 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24047 cat junk1.c junk2.c > Makefile.new
24048 rm -f junk.c junk1.c junk2.c
24049 chmod 444 Makefile.new
24050 mv -f Makefile.new Makefile
24051 )
24052
24053 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24054 echo creating src/.gdbinit
24055 echo source $srcdir/src/.gdbinit > src/.gdbinit
24056 fi
24057
24058 # This is how we know whether to re-run configure in certain cases.
24059 touch src/config.stamp
24060
24061 ;;
24062 esac
24063 done
24064 _ACEOF
24065
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24067
24068 { (exit 0); exit 0; }
24069 _ACEOF
24070 chmod +x $CONFIG_STATUS
24071 ac_clean_files=$ac_clean_files_save
24072
24073
24074 # configure is writing to config.log, and then calls config.status.
24075 # config.status does its own redirection, appending to config.log.
24076 # Unfortunately, on DOS this fails, as config.log is still kept open
24077 # by configure, so config.status won't be able to write to it; its
24078 # output is simply discarded. So we exec the FD to /dev/null,
24079 # effectively closing config.log, so it can be properly (re)opened and
24080 # appended to by config.status. When coming back to configure, we
24081 # need to make the FD available again.
24082 if test "$no_create" != yes; then
24083 ac_cs_success=:
24084 ac_config_status_args=
24085 test "$silent" = yes &&
24086 ac_config_status_args="$ac_config_status_args --quiet"
24087 exec 5>/dev/null
24088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24089 exec 5>>config.log
24090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24091 # would make configure fail if this is the last instruction.
24092 $ac_cs_success || { (exit 1); exit 1; }
24093 fi
24094
24095