]> code.delx.au - gnu-emacs/blob - configure
* README: Bump version number to 22.0.90.
[gnu-emacs] / 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 PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE 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'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
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
5155
5156
5157
5158 if test "${with_sound}" != "no"; then
5159 # Sound support for GNU/Linux and the free BSDs.
5160 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5162 if test "${ac_cv_header_stdc+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <stdlib.h>
5172 #include <stdarg.h>
5173 #include <string.h>
5174 #include <float.h>
5175
5176 int
5177 main ()
5178 {
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_header_stdc=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_header_stdc=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213
5214 if test $ac_cv_header_stdc = yes; then
5215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 #include <string.h>
5223
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "memchr" >/dev/null 2>&1; then
5227 :
5228 else
5229 ac_cv_header_stdc=no
5230 fi
5231 rm -f conftest*
5232
5233 fi
5234
5235 if test $ac_cv_header_stdc = yes; then
5236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5244
5245 _ACEOF
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev/null 2>&1; then
5248 :
5249 else
5250 ac_cv_header_stdc=no
5251 fi
5252 rm -f conftest*
5253
5254 fi
5255
5256 if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then
5259 :
5260 else
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #include <ctype.h>
5268 #if ((' ' & 0x0FF) == 0x020)
5269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271 #else
5272 # define ISLOWER(c) \
5273 (('a' <= (c) && (c) <= 'i') \
5274 || ('j' <= (c) && (c) <= 'r') \
5275 || ('s' <= (c) && (c) <= 'z'))
5276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277 #endif
5278
5279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5280 int
5281 main ()
5282 {
5283 int i;
5284 for (i = 0; i < 256; i++)
5285 if (XOR (islower (i), ISLOWER (i))
5286 || toupper (i) != TOUPPER (i))
5287 exit(2);
5288 exit (0);
5289 }
5290 _ACEOF
5291 rm -f conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 :
5303 else
5304 echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ( exit $ac_status )
5309 ac_cv_header_stdc=no
5310 fi
5311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312 fi
5313 fi
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317 if test $ac_cv_header_stdc = yes; then
5318
5319 cat >>confdefs.h <<\_ACEOF
5320 #define STDC_HEADERS 1
5321 _ACEOF
5322
5323 fi
5324
5325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5336 inttypes.h stdint.h unistd.h
5337 do
5338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 echo "$as_me:$LINENO: checking for $ac_header" >&5
5340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 $ac_includes_default
5351
5352 #include <$ac_header>
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 eval "$as_ac_Header=yes"
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 eval "$as_ac_Header=no"
5381 fi
5382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383 fi
5384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5390
5391 fi
5392
5393 done
5394
5395
5396
5397
5398
5399 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5400 do
5401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 fi
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 else
5411 # Is the header compilable?
5412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5421 #include <$ac_header>
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_header_compiler=yes
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_header_compiler=no
5450 fi
5451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5453 echo "${ECHO_T}$ac_header_compiler" >&6
5454
5455 # Is the header present?
5456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <$ac_header>
5465 _ACEOF
5466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } >/dev/null; then
5474 if test -s conftest.err; then
5475 ac_cpp_err=$ac_c_preproc_warn_flag
5476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5477 else
5478 ac_cpp_err=
5479 fi
5480 else
5481 ac_cpp_err=yes
5482 fi
5483 if test -z "$ac_cpp_err"; then
5484 ac_header_preproc=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_header_preproc=no
5490 fi
5491 rm -f conftest.err conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5493 echo "${ECHO_T}$ac_header_preproc" >&6
5494
5495 # So? What about this header?
5496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5497 yes:no: )
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5502 ac_header_preproc=yes
5503 ;;
5504 no:yes:* )
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5517 (
5518 cat <<\_ASBOX
5519 ## ------------------------------------------ ##
5520 ## Report this to the AC_PACKAGE_NAME lists. ##
5521 ## ------------------------------------------ ##
5522 _ASBOX
5523 ) |
5524 sed "s/^/$as_me: WARNING: /" >&2
5525 ;;
5526 esac
5527 echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 eval "$as_ac_Header=\$ac_header_preproc"
5533 fi
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5536
5537 fi
5538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5539 cat >>confdefs.h <<_ACEOF
5540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541 _ACEOF
5542
5543 fi
5544
5545 done
5546
5547 # Emulation library used on NetBSD.
5548 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5549 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5550 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-lossaudio $LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561
5562 /* Override any gcc2 internal prototype to avoid an error. */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5568 char _oss_ioctl ();
5569 int
5570 main ()
5571 {
5572 _oss_ioctl ();
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_lib_ossaudio__oss_ioctl=yes
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 ac_cv_lib_ossaudio__oss_ioctl=no
5604 fi
5605 rm -f conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5607 LIBS=$ac_check_lib_save_LIBS
5608 fi
5609 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5610 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5611 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5612 LIBSOUND=-lossaudio
5613 else
5614 LIBSOUND=
5615 fi
5616
5617
5618
5619 ALSA_REQUIRED=1.0.0
5620 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5621 if test "X${with_pkg_config_prog}" != X; then
5622 PKG_CONFIG="${with_pkg_config_prog}"
5623 fi
5624
5625 succeeded=no
5626
5627 if test -z "$PKG_CONFIG"; then
5628 # Extract the first word of "pkg-config", so it can be a program name with args.
5629 set dummy pkg-config; ac_word=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 case $PKG_CONFIG in
5636 [\\/]* | ?:[\\/]*)
5637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5638 ;;
5639 *)
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653
5654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5655 ;;
5656 esac
5657 fi
5658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5659
5660 if test -n "$PKG_CONFIG"; then
5661 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5662 echo "${ECHO_T}$PKG_CONFIG" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668 fi
5669
5670 if test "$PKG_CONFIG" = "no" ; then
5671 HAVE_ALSA=no
5672 else
5673 PKG_CONFIG_MIN_VERSION=0.9.0
5674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5675 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5676 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5677
5678 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5679 echo "$as_me:$LINENO: result: yes" >&5
5680 echo "${ECHO_T}yes" >&6
5681 succeeded=yes
5682
5683 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5684 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5685 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5686 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5687 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5688
5689 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5690 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5691 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5692 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5693 echo "${ECHO_T}$ALSA_LIBS" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697 ALSA_CFLAGS=""
5698 ALSA_LIBS=""
5699 ## If we have a custom action on failure, don't print errors, but
5700 ## do set a variable so people can do so.
5701 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5702
5703 fi
5704
5705
5706
5707 else
5708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5710 fi
5711 fi
5712
5713 if test $succeeded = yes; then
5714 HAVE_ALSA=yes
5715 else
5716 HAVE_ALSA=no
5717 fi
5718
5719 if test $HAVE_ALSA = yes; then
5720 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5721 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_ALSA 1
5725 _ACEOF
5726
5727 fi
5728
5729 fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5757 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5758 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5759 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5760 sys/utsname.h pwd.h
5761 do
5762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764 echo "$as_me:$LINENO: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 fi
5769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5771 else
5772 # Is the header compilable?
5773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <$ac_header>
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_header_compiler=yes
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 ac_header_compiler=no
5811 fi
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5815
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <$ac_header>
5826 _ACEOF
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null; then
5835 if test -s conftest.err; then
5836 ac_cpp_err=$ac_c_preproc_warn_flag
5837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5838 else
5839 ac_cpp_err=
5840 fi
5841 else
5842 ac_cpp_err=yes
5843 fi
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ac_header_preproc=no
5851 fi
5852 rm -f conftest.err conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5854 echo "${ECHO_T}$ac_header_preproc" >&6
5855
5856 # So? What about this header?
5857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5858 yes:no: )
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5863 ac_header_preproc=yes
5864 ;;
5865 no:yes:* )
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5878 (
5879 cat <<\_ASBOX
5880 ## ------------------------------------------ ##
5881 ## Report this to the AC_PACKAGE_NAME lists. ##
5882 ## ------------------------------------------ ##
5883 _ASBOX
5884 ) |
5885 sed "s/^/$as_me: WARNING: /" >&2
5886 ;;
5887 esac
5888 echo "$as_me:$LINENO: checking for $ac_header" >&5
5889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 eval "$as_ac_Header=\$ac_header_preproc"
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
5898 fi
5899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5900 cat >>confdefs.h <<_ACEOF
5901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5902 _ACEOF
5903
5904 fi
5905
5906 done
5907
5908
5909 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5910 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
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 <sys/personality.h>
5918 int
5919 main ()
5920 {
5921 personality (PER_LINUX32)
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 emacs_cv_personality_linux32=yes
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 emacs_cv_personality_linux32=no
5953 fi
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5956 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5957
5958 if test $emacs_cv_personality_linux32 = yes; then
5959
5960 cat >>confdefs.h <<\_ACEOF
5961 #define HAVE_PERSONALITY_LINUX32 1
5962 _ACEOF
5963
5964 fi
5965
5966
5967 for ac_header in term.h
5968 do
5969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5970 echo "$as_me:$LINENO: checking for $ac_header" >&5
5971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <$ac_header>
5982 _ACEOF
5983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null; then
5991 if test -s conftest.err; then
5992 ac_cpp_err=$ac_c_preproc_warn_flag
5993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5994 else
5995 ac_cpp_err=
5996 fi
5997 else
5998 ac_cpp_err=yes
5999 fi
6000 if test -z "$ac_cpp_err"; then
6001 eval "$as_ac_Header=yes"
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 eval "$as_ac_Header=no"
6007 fi
6008 rm -f conftest.err conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013 cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015 _ACEOF
6016
6017 fi
6018
6019 done
6020
6021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6023 if test "${ac_cv_header_stdc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <stdlib.h>
6033 #include <stdarg.h>
6034 #include <string.h>
6035 #include <float.h>
6036
6037 int
6038 main ()
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_header_stdc=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_cv_header_stdc=no
6072 fi
6073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <string.h>
6084
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev/null 2>&1; then
6088 :
6089 else
6090 ac_cv_header_stdc=no
6091 fi
6092 rm -f conftest*
6093
6094 fi
6095
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <stdlib.h>
6105
6106 _ACEOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev/null 2>&1; then
6109 :
6110 else
6111 ac_cv_header_stdc=no
6112 fi
6113 rm -f conftest*
6114
6115 fi
6116
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6120 :
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <ctype.h>
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6132 #else
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6138 #endif
6139
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6141 int
6142 main ()
6143 {
6144 int i;
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6148 exit(2);
6149 exit (0);
6150 }
6151 _ACEOF
6152 rm -f conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 :
6164 else
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ( exit $ac_status )
6170 ac_cv_header_stdc=no
6171 fi
6172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 fi
6175 fi
6176 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6178 if test $ac_cv_header_stdc = yes; then
6179
6180 cat >>confdefs.h <<\_ACEOF
6181 #define STDC_HEADERS 1
6182 _ACEOF
6183
6184 fi
6185
6186 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6187 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6188 if test "${ac_cv_header_time+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <sys/time.h>
6199 #include <time.h>
6200
6201 int
6202 main ()
6203 {
6204 if ((struct tm *) 0)
6205 return 0;
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_header_time=yes
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_cv_header_time=no
6237 fi
6238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6239 fi
6240 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6241 echo "${ECHO_T}$ac_cv_header_time" >&6
6242 if test $ac_cv_header_time = yes; then
6243
6244 cat >>confdefs.h <<\_ACEOF
6245 #define TIME_WITH_SYS_TIME 1
6246 _ACEOF
6247
6248 fi
6249
6250 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6251 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6252 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6262 int
6263 main ()
6264 {
6265 #ifndef sys_siglist
6266 char *p = (char *) sys_siglist;
6267 #endif
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_have_decl_sys_siglist=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_cv_have_decl_sys_siglist=no
6300 fi
6301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302 fi
6303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6304 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6305 if test $ac_cv_have_decl_sys_siglist = yes; then
6306
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_DECL_SYS_SIGLIST 1
6309 _ACEOF
6310
6311
6312 else
6313 cat >>confdefs.h <<_ACEOF
6314 #define HAVE_DECL_SYS_SIGLIST 0
6315 _ACEOF
6316
6317
6318 fi
6319
6320
6321 if test $ac_cv_have_decl_sys_siglist != yes; then
6322 # For Tru64, at least:
6323 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6324 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6325 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6335 int
6336 main ()
6337 {
6338 #ifndef __sys_siglist
6339 char *p = (char *) __sys_siglist;
6340 #endif
6341
6342 ;
6343 return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_have_decl___sys_siglist=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372 ac_cv_have_decl___sys_siglist=no
6373 fi
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6377 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6378 if test $ac_cv_have_decl___sys_siglist = yes; then
6379
6380 cat >>confdefs.h <<_ACEOF
6381 #define HAVE_DECL___SYS_SIGLIST 1
6382 _ACEOF
6383
6384
6385 else
6386 cat >>confdefs.h <<_ACEOF
6387 #define HAVE_DECL___SYS_SIGLIST 0
6388 _ACEOF
6389
6390
6391 fi
6392
6393
6394 if test $ac_cv_have_decl___sys_siglist = yes; then
6395
6396 cat >>confdefs.h <<\_ACEOF
6397 #define sys_siglist __sys_siglist
6398 _ACEOF
6399
6400 fi
6401 fi
6402 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <sys/types.h>
6414 #include <sys/wait.h>
6415 #ifndef WEXITSTATUS
6416 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6417 #endif
6418 #ifndef WIFEXITED
6419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6420 #endif
6421
6422 int
6423 main ()
6424 {
6425 int s;
6426 wait (&s);
6427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_header_sys_wait_h=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458 ac_cv_header_sys_wait_h=no
6459 fi
6460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461 fi
6462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6463 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6464 if test $ac_cv_header_sys_wait_h = yes; then
6465
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_SYS_WAIT_H 1
6468 _ACEOF
6469
6470 fi
6471
6472
6473 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6474 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6475 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6486 #include <time.h>
6487 #else
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6490 #else
6491 #include <time.h>
6492 #endif
6493 #endif
6494 #ifdef HAVE_UTIME_H
6495 #include <utime.h>
6496 #endif
6497 int
6498 main ()
6499 {
6500 static struct utimbuf x; x.actime = x.modtime;
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 emacs_cv_struct_utimbuf=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 emacs_cv_struct_utimbuf=no
6532 fi
6533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534 fi
6535 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6536 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6537 if test $emacs_cv_struct_utimbuf = yes; then
6538
6539 cat >>confdefs.h <<\_ACEOF
6540 #define HAVE_STRUCT_UTIMBUF 1
6541 _ACEOF
6542
6543 fi
6544
6545 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6547 if test "${ac_cv_type_signal+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6557 #include <signal.h>
6558 #ifdef signal
6559 # undef signal
6560 #endif
6561 #ifdef __cplusplus
6562 extern "C" void (*signal (int, void (*)(int)))(int);
6563 #else
6564 void (*signal ()) ();
6565 #endif
6566
6567 int
6568 main ()
6569 {
6570 int i;
6571 ;
6572 return 0;
6573 }
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_type_signal=void
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601 ac_cv_type_signal=int
6602 fi
6603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604 fi
6605 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606 echo "${ECHO_T}$ac_cv_type_signal" >&6
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define RETSIGTYPE $ac_cv_type_signal
6610 _ACEOF
6611
6612
6613
6614 echo "$as_me:$LINENO: checking for speed_t" >&5
6615 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6616 if test "${emacs_cv_speed_t+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <termios.h>
6626 int
6627 main ()
6628 {
6629 speed_t x = 1;
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 emacs_cv_speed_t=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 emacs_cv_speed_t=no
6661 fi
6662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6663 fi
6664 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6665 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6666 if test $emacs_cv_speed_t = yes; then
6667
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_SPEED_T 1
6670 _ACEOF
6671
6672 fi
6673
6674 echo "$as_me:$LINENO: checking for struct timeval" >&5
6675 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6676 if test "${emacs_cv_struct_timeval+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685 #ifdef TIME_WITH_SYS_TIME
6686 #include <sys/time.h>
6687 #include <time.h>
6688 #else
6689 #ifdef HAVE_SYS_TIME_H
6690 #include <sys/time.h>
6691 #else
6692 #include <time.h>
6693 #endif
6694 #endif
6695 int
6696 main ()
6697 {
6698 static struct timeval x; x.tv_sec = x.tv_usec;
6699 ;
6700 return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 emacs_cv_struct_timeval=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 emacs_cv_struct_timeval=no
6730 fi
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6734 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6735 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6736 if test $emacs_cv_struct_timeval = yes; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_TIMEVAL 1
6740 _ACEOF
6741
6742 fi
6743
6744 echo "$as_me:$LINENO: checking for struct exception" >&5
6745 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6746 if test "${emacs_cv_struct_exception+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <math.h>
6756 int
6757 main ()
6758 {
6759 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 emacs_cv_struct_exception=yes
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 emacs_cv_struct_exception=no
6791 fi
6792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6793 fi
6794 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6795 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6796 HAVE_EXCEPTION=$emacs_cv_struct_exception
6797 if test $emacs_cv_struct_exception != yes; then
6798
6799 cat >>confdefs.h <<\_ACEOF
6800 #define NO_MATHERR 1
6801 _ACEOF
6802
6803 fi
6804
6805
6806 for ac_header in sys/socket.h
6807 do
6808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 fi
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817 else
6818 # Is the header compilable?
6819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6828 #include <$ac_header>
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 ac_header_compiler=no
6857 fi
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6861
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <$ac_header>
6872 _ACEOF
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev/null; then
6881 if test -s conftest.err; then
6882 ac_cpp_err=$ac_c_preproc_warn_flag
6883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6884 else
6885 ac_cpp_err=
6886 fi
6887 else
6888 ac_cpp_err=yes
6889 fi
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 ac_header_preproc=no
6897 fi
6898 rm -f conftest.err conftest.$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6900 echo "${ECHO_T}$ac_header_preproc" >&6
6901
6902 # So? What about this header?
6903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6904 yes:no: )
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6909 ac_header_preproc=yes
6910 ;;
6911 no:yes:* )
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6924 (
6925 cat <<\_ASBOX
6926 ## ------------------------------------------ ##
6927 ## Report this to the AC_PACKAGE_NAME lists. ##
6928 ## ------------------------------------------ ##
6929 _ASBOX
6930 ) |
6931 sed "s/^/$as_me: WARNING: /" >&2
6932 ;;
6933 esac
6934 echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 eval "$as_ac_Header=\$ac_header_preproc"
6940 fi
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6943
6944 fi
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6948 _ACEOF
6949
6950 fi
6951
6952 done
6953
6954
6955 for ac_header in net/if.h
6956 do
6957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h. */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 $ac_includes_default
6970 #if HAVE_SYS_SOCKET_H
6971 #include <sys/socket.h>
6972 #endif
6973
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 eval "$as_ac_Header=yes"
6998 else
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 eval "$as_ac_Header=no"
7003 fi
7004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7009 cat >>confdefs.h <<_ACEOF
7010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 _ACEOF
7012
7013 fi
7014
7015 done
7016
7017
7018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7020 if test "${ac_cv_struct_tm+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <sys/types.h>
7030 #include <time.h>
7031
7032 int
7033 main ()
7034 {
7035 struct tm *tp; tp->tm_sec;
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_struct_tm=time.h
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066 ac_cv_struct_tm=sys/time.h
7067 fi
7068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7071 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7072 if test $ac_cv_struct_tm = sys/time.h; then
7073
7074 cat >>confdefs.h <<\_ACEOF
7075 #define TM_IN_SYS_TIME 1
7076 _ACEOF
7077
7078 fi
7079
7080 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7081 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7082 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <sys/types.h>
7092 #include <$ac_cv_struct_tm>
7093
7094
7095 int
7096 main ()
7097 {
7098 static struct tm ac_aggr;
7099 if (ac_aggr.tm_zone)
7100 return 0;
7101 ;
7102 return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_member_struct_tm_tm_zone=yes
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <$ac_cv_struct_tm>
7139
7140
7141 int
7142 main ()
7143 {
7144 static struct tm ac_aggr;
7145 if (sizeof ac_aggr.tm_zone)
7146 return 0;
7147 ;
7148 return 0;
7149 }
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_member_struct_tm_tm_zone=yes
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 ac_cv_member_struct_tm_tm_zone=no
7178 fi
7179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180 fi
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7184 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7185 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7186
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE_STRUCT_TM_TM_ZONE 1
7189 _ACEOF
7190
7191
7192 fi
7193
7194 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7195
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_TM_ZONE 1
7198 _ACEOF
7199
7200 else
7201 echo "$as_me:$LINENO: checking for tzname" >&5
7202 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7203 if test "${ac_cv_var_tzname+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <time.h>
7213 #ifndef tzname /* For SGI. */
7214 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7215 #endif
7216
7217 int
7218 main ()
7219 {
7220 atoi(*tzname);
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_var_tzname=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 ac_cv_var_tzname=no
7252 fi
7253 rm -f conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 fi
7256 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7257 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7258 if test $ac_cv_var_tzname = yes; then
7259
7260 cat >>confdefs.h <<\_ACEOF
7261 #define HAVE_TZNAME 1
7262 _ACEOF
7263
7264 fi
7265 fi
7266
7267 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7268 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 #include <time.h>
7279
7280 int
7281 main ()
7282 {
7283 static struct tm ac_aggr;
7284 if (ac_aggr.tm_gmtoff)
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_tm_tm_gmtoff=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 #include <time.h>
7323
7324 int
7325 main ()
7326 {
7327 static struct tm ac_aggr;
7328 if (sizeof ac_aggr.tm_gmtoff)
7329 return 0;
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_member_struct_tm_tm_gmtoff=yes
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 ac_cv_member_struct_tm_tm_gmtoff=no
7361 fi
7362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7363 fi
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7367 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7368 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_TM_GMTOFF 1
7372 _ACEOF
7373
7374 fi
7375
7376 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7377 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7378 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 #if HAVE_SYS_SOCKET_H
7389 #include <sys/socket.h>
7390 #endif
7391 #if HAVE_NET_IF_H
7392 #include <net/if.h>
7393 #endif
7394
7395 int
7396 main ()
7397 {
7398 static struct ifreq ac_aggr;
7399 if (ac_aggr.ifr_flags)
7400 return 0;
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407 (eval $ac_compile) 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_flags=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7438 #if HAVE_SYS_SOCKET_H
7439 #include <sys/socket.h>
7440 #endif
7441 #if HAVE_NET_IF_H
7442 #include <net/if.h>
7443 #endif
7444
7445 int
7446 main ()
7447 {
7448 static struct ifreq ac_aggr;
7449 if (sizeof ac_aggr.ifr_flags)
7450 return 0;
7451 ;
7452 return 0;
7453 }
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_member_struct_ifreq_ifr_flags=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_cv_member_struct_ifreq_ifr_flags=no
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7486 fi
7487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7489 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7490
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7493 _ACEOF
7494
7495
7496 fi
7497 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7498 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7499 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 #if HAVE_SYS_SOCKET_H
7510 #include <sys/socket.h>
7511 #endif
7512 #if HAVE_NET_IF_H
7513 #include <net/if.h>
7514 #endif
7515
7516 int
7517 main ()
7518 {
7519 static struct ifreq ac_aggr;
7520 if (ac_aggr.ifr_hwaddr)
7521 return 0;
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7547 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7559 #if HAVE_SYS_SOCKET_H
7560 #include <sys/socket.h>
7561 #endif
7562 #if HAVE_NET_IF_H
7563 #include <net/if.h>
7564 #endif
7565
7566 int
7567 main ()
7568 {
7569 static struct ifreq ac_aggr;
7570 if (sizeof ac_aggr.ifr_hwaddr)
7571 return 0;
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7597 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7603 fi
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7609 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7610 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7611
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7614 _ACEOF
7615
7616
7617 fi
7618 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7619 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7620 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 #if HAVE_SYS_SOCKET_H
7631 #include <sys/socket.h>
7632 #endif
7633 #if HAVE_NET_IF_H
7634 #include <net/if.h>
7635 #endif
7636
7637 int
7638 main ()
7639 {
7640 static struct ifreq ac_aggr;
7641 if (ac_aggr.ifr_netmask)
7642 return 0;
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7668 ac_cv_member_struct_ifreq_ifr_netmask=yes
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7682 #endif
7683 #if HAVE_NET_IF_H
7684 #include <net/if.h>
7685 #endif
7686
7687 int
7688 main ()
7689 {
7690 static struct ifreq ac_aggr;
7691 if (sizeof ac_aggr.ifr_netmask)
7692 return 0;
7693 ;
7694 return 0;
7695 }
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_member_struct_ifreq_ifr_netmask=yes
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_cv_member_struct_ifreq_ifr_netmask=no
7724 fi
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7731 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7732
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7735 _ACEOF
7736
7737
7738 fi
7739 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7740 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7741 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 $ac_includes_default
7751 #if HAVE_SYS_SOCKET_H
7752 #include <sys/socket.h>
7753 #endif
7754 #if HAVE_NET_IF_H
7755 #include <net/if.h>
7756 #endif
7757
7758 int
7759 main ()
7760 {
7761 static struct ifreq ac_aggr;
7762 if (ac_aggr.ifr_broadaddr)
7763 return 0;
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7789 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #if HAVE_SYS_SOCKET_H
7802 #include <sys/socket.h>
7803 #endif
7804 #if HAVE_NET_IF_H
7805 #include <net/if.h>
7806 #endif
7807
7808 int
7809 main ()
7810 {
7811 static struct ifreq ac_aggr;
7812 if (sizeof ac_aggr.ifr_broadaddr)
7813 return 0;
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7839 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7845 fi
7846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7847 fi
7848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7851 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7852 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7856 _ACEOF
7857
7858
7859 fi
7860 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7861 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7862 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 #if HAVE_SYS_SOCKET_H
7873 #include <sys/socket.h>
7874 #endif
7875 #if HAVE_NET_IF_H
7876 #include <net/if.h>
7877 #endif
7878
7879 int
7880 main ()
7881 {
7882 static struct ifreq ac_aggr;
7883 if (ac_aggr.ifr_addr)
7884 return 0;
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_member_struct_ifreq_ifr_addr=yes
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7924 #endif
7925 #if HAVE_NET_IF_H
7926 #include <net/if.h>
7927 #endif
7928
7929 int
7930 main ()
7931 {
7932 static struct ifreq ac_aggr;
7933 if (sizeof ac_aggr.ifr_addr)
7934 return 0;
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 (eval $ac_try) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_member_struct_ifreq_ifr_addr=yes
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_cv_member_struct_ifreq_ifr_addr=no
7966 fi
7967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 fi
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7972 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7973 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7974
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7977 _ACEOF
7978
7979
7980 fi
7981
7982
7983
7984 echo "$as_me:$LINENO: checking for function prototypes" >&5
7985 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7986 if test "$ac_cv_prog_cc_stdc" != no; then
7987 echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7989
7990 cat >>confdefs.h <<\_ACEOF
7991 #define PROTOTYPES 1
7992 _ACEOF
7993
7994
7995 cat >>confdefs.h <<\_ACEOF
7996 #define __PROTOTYPES 1
7997 _ACEOF
7998
7999 else
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8002 fi
8003
8004 echo "$as_me:$LINENO: checking for working volatile" >&5
8005 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8006 if test "${ac_cv_c_volatile+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015
8016 int
8017 main ()
8018 {
8019
8020 volatile int x;
8021 int * volatile y;
8022 ;
8023 return 0;
8024 }
8025 _ACEOF
8026 rm -f conftest.$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest.$ac_objext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_c_volatile=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_cv_c_volatile=no
8053 fi
8054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8055 fi
8056 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8057 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8058 if test $ac_cv_c_volatile = no; then
8059
8060 cat >>confdefs.h <<\_ACEOF
8061 #define volatile
8062 _ACEOF
8063
8064 fi
8065
8066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8068 if test "${ac_cv_c_const+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077
8078 int
8079 main ()
8080 {
8081 /* FIXME: Include the comments suggested by Paul. */
8082 #ifndef __cplusplus
8083 /* Ultrix mips cc rejects this. */
8084 typedef int charset[2];
8085 const charset x;
8086 /* SunOS 4.1.1 cc rejects this. */
8087 char const *const *ccp;
8088 char **p;
8089 /* NEC SVR4.0.2 mips cc rejects this. */
8090 struct point {int x, y;};
8091 static struct point const zero = {0,0};
8092 /* AIX XL C 1.02.0.0 rejects this.
8093 It does not let you subtract one const X* pointer from another in
8094 an arm of an if-expression whose if-part is not a constant
8095 expression */
8096 const char *g = "string";
8097 ccp = &g + (g ? g-g : 0);
8098 /* HPUX 7.0 cc rejects these. */
8099 ++ccp;
8100 p = (char**) ccp;
8101 ccp = (char const *const *) p;
8102 { /* SCO 3.2v4 cc rejects this. */
8103 char *t;
8104 char const *s = 0 ? (char *) 0 : (char const *) 0;
8105
8106 *t++ = 0;
8107 }
8108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8109 int x[] = {25, 17};
8110 const int *foo = &x[0];
8111 ++foo;
8112 }
8113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8114 typedef const int *iptr;
8115 iptr p = 0;
8116 ++p;
8117 }
8118 { /* AIX XL C 1.02.0.0 rejects this saying
8119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8120 struct s { int j; const int *ap[3]; };
8121 struct s *b; b->j = 5;
8122 }
8123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8124 const int foo = 10;
8125 }
8126 #endif
8127
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest.$ac_objext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_c_const=yes
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_cv_c_const=no
8159 fi
8160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8163 echo "${ECHO_T}$ac_cv_c_const" >&6
8164 if test $ac_cv_c_const = no; then
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define const
8168 _ACEOF
8169
8170 fi
8171
8172 echo "$as_me:$LINENO: checking for void * support" >&5
8173 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8174 if test "${emacs_cv_void_star+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183
8184 int
8185 main ()
8186 {
8187 void * foo;
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>conftest.er1
8195 ac_status=$?
8196 grep -v '^ *+' conftest.er1 >conftest.err
8197 rm -f conftest.er1
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 emacs_cv_void_star=yes
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218 emacs_cv_void_star=no
8219 fi
8220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221 fi
8222 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8223 echo "${ECHO_T}$emacs_cv_void_star" >&6
8224 if test $emacs_cv_void_star = yes; then
8225 cat >>confdefs.h <<\_ACEOF
8226 #define POINTER_TYPE void
8227 _ACEOF
8228
8229 else
8230 cat >>confdefs.h <<\_ACEOF
8231 #define POINTER_TYPE char
8232 _ACEOF
8233
8234 fi
8235
8236
8237
8238
8239
8240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8242 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 cat >conftest.make <<\_ACEOF
8247 all:
8248 @echo 'ac_maketemp="$(MAKE)"'
8249 _ACEOF
8250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8252 if test -n "$ac_maketemp"; then
8253 eval ac_cv_prog_make_${ac_make}_set=yes
8254 else
8255 eval ac_cv_prog_make_${ac_make}_set=no
8256 fi
8257 rm -f conftest.make
8258 fi
8259 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8260 echo "$as_me:$LINENO: result: yes" >&5
8261 echo "${ECHO_T}yes" >&6
8262 SET_MAKE=
8263 else
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266 SET_MAKE="MAKE=${MAKE-make}"
8267 fi
8268
8269
8270 echo "$as_me:$LINENO: checking for long file names" >&5
8271 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8272 if test "${ac_cv_sys_long_file_names+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 ac_cv_sys_long_file_names=yes
8276 # Test for long file names in all the places we know might matter:
8277 # . the current directory, where building will happen
8278 # $prefix/lib where we will be installing things
8279 # $exec_prefix/lib likewise
8280 # eval it to expand exec_prefix.
8281 # $TMPDIR if set, where it might want to write temporary files
8282 # if $TMPDIR is not set:
8283 # /tmp where it might want to write temporary files
8284 # /var/tmp likewise
8285 # /usr/tmp likewise
8286 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8287 ac_tmpdirs=$TMPDIR
8288 else
8289 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8290 fi
8291 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8292 test -d $ac_dir || continue
8293 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8294 ac_xdir=$ac_dir/cf$$
8295 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8296 ac_tf1=$ac_xdir/conftest9012345
8297 ac_tf2=$ac_xdir/conftest9012346
8298 (echo 1 >$ac_tf1) 2>/dev/null
8299 (echo 2 >$ac_tf2) 2>/dev/null
8300 ac_val=`cat $ac_tf1 2>/dev/null`
8301 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8302 ac_cv_sys_long_file_names=no
8303 rm -rf $ac_xdir 2>/dev/null
8304 break
8305 fi
8306 rm -rf $ac_xdir 2>/dev/null
8307 done
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8310 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8311 if test $ac_cv_sys_long_file_names = yes; then
8312
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_LONG_FILE_NAMES 1
8315 _ACEOF
8316
8317 fi
8318
8319
8320 #### Choose a window system.
8321
8322 echo "$as_me:$LINENO: checking for X" >&5
8323 echo $ECHO_N "checking for X... $ECHO_C" >&6
8324
8325 ac_path_x_has_been_run=yes
8326
8327 # Check whether --with-x or --without-x was given.
8328 if test "${with_x+set}" = set; then
8329 withval="$with_x"
8330
8331 fi;
8332 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8333 if test "x$with_x" = xno; then
8334 # The user explicitly disabled X.
8335 have_x=disabled
8336 else
8337 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8338 # Both variables are already set.
8339 have_x=yes
8340 else
8341 if test "${ac_cv_have_x+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 # One or both of the vars are not set, and there is no cached value.
8345 ac_x_includes=no ac_x_libraries=no
8346 rm -fr conftest.dir
8347 if mkdir conftest.dir; then
8348 cd conftest.dir
8349 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8350 cat >Imakefile <<'_ACEOF'
8351 acfindx:
8352 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8353 _ACEOF
8354 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8356 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8358 for ac_extension in a so sl; do
8359 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8360 test -f $ac_im_libdir/libX11.$ac_extension; then
8361 ac_im_usrlibdir=$ac_im_libdir; break
8362 fi
8363 done
8364 # Screen out bogus values from the imake configuration. They are
8365 # bogus both because they are the default anyway, and because
8366 # using them would break gcc on systems where it needs fixed includes.
8367 case $ac_im_incroot in
8368 /usr/include) ;;
8369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8370 esac
8371 case $ac_im_usrlibdir in
8372 /usr/lib | /lib) ;;
8373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8374 esac
8375 fi
8376 cd ..
8377 rm -fr conftest.dir
8378 fi
8379
8380 # Standard set of common directories for X headers.
8381 # Check X11 before X11Rn because it is often a symlink to the current release.
8382 ac_x_header_dirs='
8383 /usr/X11/include
8384 /usr/X11R6/include
8385 /usr/X11R5/include
8386 /usr/X11R4/include
8387
8388 /usr/include/X11
8389 /usr/include/X11R6
8390 /usr/include/X11R5
8391 /usr/include/X11R4
8392
8393 /usr/local/X11/include
8394 /usr/local/X11R6/include
8395 /usr/local/X11R5/include
8396 /usr/local/X11R4/include
8397
8398 /usr/local/include/X11
8399 /usr/local/include/X11R6
8400 /usr/local/include/X11R5
8401 /usr/local/include/X11R4
8402
8403 /usr/X386/include
8404 /usr/x386/include
8405 /usr/XFree86/include/X11
8406
8407 /usr/include
8408 /usr/local/include
8409 /usr/unsupported/include
8410 /usr/athena/include
8411 /usr/local/x11r5/include
8412 /usr/lpp/Xamples/include
8413
8414 /usr/openwin/include
8415 /usr/openwin/share/include'
8416
8417 if test "$ac_x_includes" = no; then
8418 # Guess where to find include files, by looking for a specified header file.
8419 # First, try using that file with no special directory specified.
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #include <X11/Xlib.h>
8427 _ACEOF
8428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } >/dev/null; then
8436 if test -s conftest.err; then
8437 ac_cpp_err=$ac_c_preproc_warn_flag
8438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8439 else
8440 ac_cpp_err=
8441 fi
8442 else
8443 ac_cpp_err=yes
8444 fi
8445 if test -z "$ac_cpp_err"; then
8446 # We can compile using X headers with no special include directory.
8447 ac_x_includes=
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 for ac_dir in $ac_x_header_dirs; do
8453 if test -r "$ac_dir/X11/Xlib.h"; then
8454 ac_x_includes=$ac_dir
8455 break
8456 fi
8457 done
8458 fi
8459 rm -f conftest.err conftest.$ac_ext
8460 fi # $ac_x_includes = no
8461
8462 if test "$ac_x_libraries" = no; then
8463 # Check for the libraries.
8464 # See if we find them without any special options.
8465 # Don't add to $LIBS permanently.
8466 ac_save_LIBS=$LIBS
8467 LIBS="-lX11 $LIBS"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <X11/Xlib.h>
8475 int
8476 main ()
8477 {
8478 XrmInitialize ()
8479 ;
8480 return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 LIBS=$ac_save_LIBS
8505 # We can link X programs with no special library path.
8506 ac_x_libraries=
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 LIBS=$ac_save_LIBS
8512 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8513 do
8514 # Don't even attempt the hair of trying to link an X program!
8515 for ac_extension in a so sl; do
8516 if test -r $ac_dir/libX11.$ac_extension; then
8517 ac_x_libraries=$ac_dir
8518 break 2
8519 fi
8520 done
8521 done
8522 fi
8523 rm -f conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 fi # $ac_x_libraries = no
8526
8527 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8528 # Didn't find X anywhere. Cache the known absence of X.
8529 ac_cv_have_x="have_x=no"
8530 else
8531 # Record where we found X for the cache.
8532 ac_cv_have_x="have_x=yes \
8533 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8534 fi
8535 fi
8536
8537 fi
8538 eval "$ac_cv_have_x"
8539 fi # $with_x != no
8540
8541 if test "$have_x" != yes; then
8542 echo "$as_me:$LINENO: result: $have_x" >&5
8543 echo "${ECHO_T}$have_x" >&6
8544 no_x=yes
8545 else
8546 # If each of the values was on the command line, it overrides each guess.
8547 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8548 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8549 # Update the cache value to reflect the command line values.
8550 ac_cv_have_x="have_x=yes \
8551 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8552 # It might be that x_includes is empty (headers are found in the
8553 # standard search path. Then output the corresponding message
8554 ac_out_x_includes=$x_includes
8555 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8556 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8557 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8558 fi
8559
8560 if test "$no_x" = yes; then
8561 window_system=none
8562 else
8563 window_system=x11
8564 fi
8565
8566 if test "${x_libraries}" != NONE; then
8567 if test -n "${x_libraries}"; then
8568 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8569 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8570 fi
8571 x_default_search_path=""
8572 x_search_path=${x_libraries}
8573 if test -z "${x_search_path}"; then
8574 x_search_path=/usr/lib
8575 fi
8576 for x_library in `echo ${x_search_path}: | \
8577 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8578 x_search_path="\
8579 ${x_library}/X11/%L/%T/%N%C%S:\
8580 ${x_library}/X11/%l/%T/%N%C%S:\
8581 ${x_library}/X11/%T/%N%C%S:\
8582 ${x_library}/X11/%L/%T/%N%S:\
8583 ${x_library}/X11/%l/%T/%N%S:\
8584 ${x_library}/X11/%T/%N%S"
8585 if test x"${x_default_search_path}" = x; then
8586 x_default_search_path=${x_search_path}
8587 else
8588 x_default_search_path="${x_search_path}:${x_default_search_path}"
8589 fi
8590 done
8591 fi
8592 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8593 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8594 fi
8595
8596 if test x"${x_includes}" = x; then
8597 bitmapdir=/usr/include/X11/bitmaps
8598 else
8599 # accumulate include directories that have X11 bitmap subdirectories
8600 bmd_acc="dummyval"
8601 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8602 if test -d "${bmd}/X11/bitmaps"; then
8603 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8604 fi
8605 if test -d "${bmd}/bitmaps"; then
8606 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8607 fi
8608 done
8609 if test ${bmd_acc} != "dummyval"; then
8610 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8611 fi
8612 fi
8613
8614 HAVE_CARBON=no
8615 if test "${with_carbon}" != no; then
8616 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8617 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8618 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8619 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8624 else
8625 # Is the header compilable?
8626 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8627 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 $ac_includes_default
8635 #include <Carbon/Carbon.h>
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_header_compiler=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_header_compiler=no
8664 fi
8665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667 echo "${ECHO_T}$ac_header_compiler" >&6
8668
8669 # Is the header present?
8670 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8671 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <Carbon/Carbon.h>
8679 _ACEOF
8680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev/null; then
8688 if test -s conftest.err; then
8689 ac_cpp_err=$ac_c_preproc_warn_flag
8690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691 else
8692 ac_cpp_err=
8693 fi
8694 else
8695 ac_cpp_err=yes
8696 fi
8697 if test -z "$ac_cpp_err"; then
8698 ac_header_preproc=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 ac_header_preproc=no
8704 fi
8705 rm -f conftest.err conftest.$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 echo "${ECHO_T}$ac_header_preproc" >&6
8708
8709 # So? What about this header?
8710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8711 yes:no: )
8712 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8713 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8715 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8716 ac_header_preproc=yes
8717 ;;
8718 no:yes:* )
8719 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8720 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8722 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8724 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8726 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8730 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8731 (
8732 cat <<\_ASBOX
8733 ## ------------------------------------------ ##
8734 ## Report this to the AC_PACKAGE_NAME lists. ##
8735 ## ------------------------------------------ ##
8736 _ASBOX
8737 ) |
8738 sed "s/^/$as_me: WARNING: /" >&2
8739 ;;
8740 esac
8741 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8742 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8743 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8747 fi
8748 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8749 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8750
8751 fi
8752 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8753 HAVE_CARBON=yes
8754 fi
8755
8756
8757 fi
8758 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8759 if test "${with_carbon+set}" != set \
8760 && test "${carbon_appdir_x+set}" != set; then
8761 HAVE_CARBON=no
8762 fi
8763 fi
8764 if test "${HAVE_CARBON}" = yes; then
8765 window_system=mac
8766 fi
8767
8768 case "${window_system}" in
8769 x11 )
8770 HAVE_X_WINDOWS=yes
8771 HAVE_X11=yes
8772 case "${with_x_toolkit}" in
8773 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8774 motif ) USE_X_TOOLKIT=MOTIF ;;
8775 gtk ) with_gtk=yes
8776 USE_X_TOOLKIT=none ;;
8777 no ) USE_X_TOOLKIT=none ;;
8778 * ) USE_X_TOOLKIT=maybe ;;
8779 esac
8780 ;;
8781 mac | none )
8782 HAVE_X_WINDOWS=no
8783 HAVE_X11=no
8784 USE_X_TOOLKIT=none
8785 ;;
8786 esac
8787
8788 ### If we're using X11, we should use the X menu package.
8789 HAVE_MENUS=no
8790 case ${HAVE_X11} in
8791 yes ) HAVE_MENUS=yes ;;
8792 esac
8793
8794 if test "${opsys}" = "hpux9"; then
8795 case "${x_libraries}" in
8796 *X11R4* )
8797 opsysfile="s/hpux9-x11r4.h"
8798 ;;
8799 esac
8800 fi
8801
8802 if test "${opsys}" = "hpux9shr"; then
8803 case "${x_libraries}" in
8804 *X11R4* )
8805 opsysfile="s/hpux9shxr4.h"
8806 ;;
8807 esac
8808 fi
8809
8810 ### Compute the unexec source name from the object name.
8811 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8812
8813 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8814 # Assume not, until told otherwise.
8815 GNU_MALLOC=yes
8816 doug_lea_malloc=yes
8817 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8818 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8819 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8830 #define malloc_get_state innocuous_malloc_get_state
8831
8832 /* System header to define __stub macros and hopefully few prototypes,
8833 which can conflict with char malloc_get_state (); below.
8834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835 <limits.h> exists even on freestanding compilers. */
8836
8837 #ifdef __STDC__
8838 # include <limits.h>
8839 #else
8840 # include <assert.h>
8841 #endif
8842
8843 #undef malloc_get_state
8844
8845 /* Override any gcc2 internal prototype to avoid an error. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 {
8849 #endif
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8852 char malloc_get_state ();
8853 /* The GNU C library defines this for functions which it implements
8854 to always fail with ENOSYS. Some functions are actually named
8855 something starting with __ and the normal name is an alias. */
8856 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8857 choke me
8858 #else
8859 char (*f) () = malloc_get_state;
8860 #endif
8861 #ifdef __cplusplus
8862 }
8863 #endif
8864
8865 int
8866 main ()
8867 {
8868 return f != malloc_get_state;
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_func_malloc_get_state=yes
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8898
8899 ac_cv_func_malloc_get_state=no
8900 fi
8901 rm -f conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 fi
8904 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8905 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8906 if test $ac_cv_func_malloc_get_state = yes; then
8907 :
8908 else
8909 doug_lea_malloc=no
8910 fi
8911
8912 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8913 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8914 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8925 #define malloc_set_state innocuous_malloc_set_state
8926
8927 /* System header to define __stub macros and hopefully few prototypes,
8928 which can conflict with char malloc_set_state (); below.
8929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8930 <limits.h> exists even on freestanding compilers. */
8931
8932 #ifdef __STDC__
8933 # include <limits.h>
8934 #else
8935 # include <assert.h>
8936 #endif
8937
8938 #undef malloc_set_state
8939
8940 /* Override any gcc2 internal prototype to avoid an error. */
8941 #ifdef __cplusplus
8942 extern "C"
8943 {
8944 #endif
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char malloc_set_state ();
8948 /* The GNU C library defines this for functions which it implements
8949 to always fail with ENOSYS. Some functions are actually named
8950 something starting with __ and the normal name is an alias. */
8951 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8952 choke me
8953 #else
8954 char (*f) () = malloc_set_state;
8955 #endif
8956 #ifdef __cplusplus
8957 }
8958 #endif
8959
8960 int
8961 main ()
8962 {
8963 return f != malloc_set_state;
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_func_malloc_set_state=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_func_malloc_set_state=no
8995 fi
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9000 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9001 if test $ac_cv_func_malloc_set_state = yes; then
9002 :
9003 else
9004 doug_lea_malloc=no
9005 fi
9006
9007 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9008 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9009 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 extern void (* __after_morecore_hook)();
9019 int
9020 main ()
9021 {
9022 __after_morecore_hook = 0
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 emacs_cv_var___after_morecore_hook=yes
9049 else
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 emacs_cv_var___after_morecore_hook=no
9054 fi
9055 rm -f conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 fi
9058 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9059 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9060 if test $emacs_cv_var___after_morecore_hook = no; then
9061 doug_lea_malloc=no
9062 fi
9063 if test "${system_malloc}" = "yes"; then
9064 GNU_MALLOC=no
9065 GNU_MALLOC_reason="
9066 (The GNU allocators don't work with this system configuration.)"
9067 fi
9068 if test "$doug_lea_malloc" = "yes" ; then
9069 if test "$GNU_MALLOC" = yes ; then
9070 GNU_MALLOC_reason="
9071 (Using Doug Lea's new malloc from the GNU C Library.)"
9072 fi
9073
9074 cat >>confdefs.h <<\_ACEOF
9075 #define DOUG_LEA_MALLOC 1
9076 _ACEOF
9077
9078 fi
9079
9080 if test x"${REL_ALLOC}" = x; then
9081 REL_ALLOC=${GNU_MALLOC}
9082 fi
9083
9084
9085
9086
9087 for ac_header in stdlib.h unistd.h
9088 do
9089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 fi
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098 else
9099 # Is the header compilable?
9100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h. */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9108 $ac_includes_default
9109 #include <$ac_header>
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_header_compiler=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 ac_header_compiler=no
9138 fi
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6
9142
9143 # Is the header present?
9144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 #include <$ac_header>
9153 _ACEOF
9154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } >/dev/null; then
9162 if test -s conftest.err; then
9163 ac_cpp_err=$ac_c_preproc_warn_flag
9164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9165 else
9166 ac_cpp_err=
9167 fi
9168 else
9169 ac_cpp_err=yes
9170 fi
9171 if test -z "$ac_cpp_err"; then
9172 ac_header_preproc=yes
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 ac_header_preproc=no
9178 fi
9179 rm -f conftest.err conftest.$ac_ext
9180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9181 echo "${ECHO_T}$ac_header_preproc" >&6
9182
9183 # So? What about this header?
9184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9185 yes:no: )
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9190 ac_header_preproc=yes
9191 ;;
9192 no:yes:* )
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9205 (
9206 cat <<\_ASBOX
9207 ## ------------------------------------------ ##
9208 ## Report this to the AC_PACKAGE_NAME lists. ##
9209 ## ------------------------------------------ ##
9210 _ASBOX
9211 ) |
9212 sed "s/^/$as_me: WARNING: /" >&2
9213 ;;
9214 esac
9215 echo "$as_me:$LINENO: checking for $ac_header" >&5
9216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 eval "$as_ac_Header=\$ac_header_preproc"
9221 fi
9222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9224
9225 fi
9226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9229 _ACEOF
9230
9231 fi
9232
9233 done
9234
9235
9236 for ac_func in getpagesize
9237 do
9238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9239 echo "$as_me:$LINENO: checking for $ac_func" >&5
9240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_var+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9252 #define $ac_func innocuous_$ac_func
9253
9254 /* System header to define __stub macros and hopefully few prototypes,
9255 which can conflict with char $ac_func (); below.
9256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9257 <limits.h> exists even on freestanding compilers. */
9258
9259 #ifdef __STDC__
9260 # include <limits.h>
9261 #else
9262 # include <assert.h>
9263 #endif
9264
9265 #undef $ac_func
9266
9267 /* Override any gcc2 internal prototype to avoid an error. */
9268 #ifdef __cplusplus
9269 extern "C"
9270 {
9271 #endif
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9274 char $ac_func ();
9275 /* The GNU C library defines this for functions which it implements
9276 to always fail with ENOSYS. Some functions are actually named
9277 something starting with __ and the normal name is an alias. */
9278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9279 choke me
9280 #else
9281 char (*f) () = $ac_func;
9282 #endif
9283 #ifdef __cplusplus
9284 }
9285 #endif
9286
9287 int
9288 main ()
9289 {
9290 return f != $ac_func;
9291 ;
9292 return 0;
9293 }
9294 _ACEOF
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try='test -s conftest$ac_exeext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 eval "$as_ac_var=yes"
9317 else
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9320
9321 eval "$as_ac_var=no"
9322 fi
9323 rm -f conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
9325 fi
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9328 if test `eval echo '${'$as_ac_var'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331 _ACEOF
9332
9333 fi
9334 done
9335
9336 echo "$as_me:$LINENO: checking for working mmap" >&5
9337 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9338 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 if test "$cross_compiling" = yes; then
9342 ac_cv_func_mmap_fixed_mapped=no
9343 else
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 /* malloc might have been renamed as rpl_malloc. */
9352 #undef malloc
9353
9354 /* Thanks to Mike Haertel and Jim Avera for this test.
9355 Here is a matrix of mmap possibilities:
9356 mmap private not fixed
9357 mmap private fixed at somewhere currently unmapped
9358 mmap private fixed at somewhere already mapped
9359 mmap shared not fixed
9360 mmap shared fixed at somewhere currently unmapped
9361 mmap shared fixed at somewhere already mapped
9362 For private mappings, we should verify that changes cannot be read()
9363 back from the file, nor mmap's back from the file at a different
9364 address. (There have been systems where private was not correctly
9365 implemented like the infamous i386 svr4.0, and systems where the
9366 VM page cache was not coherent with the file system buffer cache
9367 like early versions of FreeBSD and possibly contemporary NetBSD.)
9368 For shared mappings, we should conversely verify that changes get
9369 propagated back to all the places they're supposed to be.
9370
9371 Grep wants private fixed already mapped.
9372 The main things grep needs to know about mmap are:
9373 * does it exist and is it safe to write into the mmap'd area
9374 * how to use it (BSD variants) */
9375
9376 #include <fcntl.h>
9377 #include <sys/mman.h>
9378
9379 #if !STDC_HEADERS && !HAVE_STDLIB_H
9380 char *malloc ();
9381 #endif
9382
9383 /* This mess was copied from the GNU getpagesize.h. */
9384 #if !HAVE_GETPAGESIZE
9385 /* Assume that all systems that can run configure have sys/param.h. */
9386 # if !HAVE_SYS_PARAM_H
9387 # define HAVE_SYS_PARAM_H 1
9388 # endif
9389
9390 # ifdef _SC_PAGESIZE
9391 # define getpagesize() sysconf(_SC_PAGESIZE)
9392 # else /* no _SC_PAGESIZE */
9393 # if HAVE_SYS_PARAM_H
9394 # include <sys/param.h>
9395 # ifdef EXEC_PAGESIZE
9396 # define getpagesize() EXEC_PAGESIZE
9397 # else /* no EXEC_PAGESIZE */
9398 # ifdef NBPG
9399 # define getpagesize() NBPG * CLSIZE
9400 # ifndef CLSIZE
9401 # define CLSIZE 1
9402 # endif /* no CLSIZE */
9403 # else /* no NBPG */
9404 # ifdef NBPC
9405 # define getpagesize() NBPC
9406 # else /* no NBPC */
9407 # ifdef PAGESIZE
9408 # define getpagesize() PAGESIZE
9409 # endif /* PAGESIZE */
9410 # endif /* no NBPC */
9411 # endif /* no NBPG */
9412 # endif /* no EXEC_PAGESIZE */
9413 # else /* no HAVE_SYS_PARAM_H */
9414 # define getpagesize() 8192 /* punt totally */
9415 # endif /* no HAVE_SYS_PARAM_H */
9416 # endif /* no _SC_PAGESIZE */
9417
9418 #endif /* no HAVE_GETPAGESIZE */
9419
9420 int
9421 main ()
9422 {
9423 char *data, *data2, *data3;
9424 int i, pagesize;
9425 int fd;
9426
9427 pagesize = getpagesize ();
9428
9429 /* First, make a file with some known garbage in it. */
9430 data = (char *) malloc (pagesize);
9431 if (!data)
9432 exit (1);
9433 for (i = 0; i < pagesize; ++i)
9434 *(data + i) = rand ();
9435 umask (0);
9436 fd = creat ("conftest.mmap", 0600);
9437 if (fd < 0)
9438 exit (1);
9439 if (write (fd, data, pagesize) != pagesize)
9440 exit (1);
9441 close (fd);
9442
9443 /* Next, try to mmap the file at a fixed address which already has
9444 something else allocated at it. If we can, also make sure that
9445 we see the same garbage. */
9446 fd = open ("conftest.mmap", O_RDWR);
9447 if (fd < 0)
9448 exit (1);
9449 data2 = (char *) malloc (2 * pagesize);
9450 if (!data2)
9451 exit (1);
9452 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9453 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9454 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9455 exit (1);
9456 for (i = 0; i < pagesize; ++i)
9457 if (*(data + i) != *(data2 + i))
9458 exit (1);
9459
9460 /* Finally, make sure that changes to the mapped area do not
9461 percolate back to the file as seen by read(). (This is a bug on
9462 some variants of i386 svr4.0.) */
9463 for (i = 0; i < pagesize; ++i)
9464 *(data2 + i) = *(data2 + i) + 1;
9465 data3 = (char *) malloc (pagesize);
9466 if (!data3)
9467 exit (1);
9468 if (read (fd, data3, pagesize) != pagesize)
9469 exit (1);
9470 for (i = 0; i < pagesize; ++i)
9471 if (*(data + i) != *(data3 + i))
9472 exit (1);
9473 close (fd);
9474 exit (0);
9475 }
9476 _ACEOF
9477 rm -f conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_func_mmap_fixed_mapped=yes
9489 else
9490 echo "$as_me: program exited with status $ac_status" >&5
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 ( exit $ac_status )
9495 ac_cv_func_mmap_fixed_mapped=no
9496 fi
9497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9498 fi
9499 fi
9500 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9501 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9503
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_MMAP 1
9506 _ACEOF
9507
9508 fi
9509 rm -f conftest.mmap
9510
9511 if test $use_mmap_for_buffers = yes; then
9512 REL_ALLOC=no
9513 fi
9514
9515 LIBS="$libsrc_libs $LIBS"
9516
9517
9518 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9519 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523 ac_check_lib_save_LIBS=$LIBS
9524 LIBS="-ldnet $LIBS"
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531
9532 /* Override any gcc2 internal prototype to avoid an error. */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538 char dnet_ntoa ();
9539 int
9540 main ()
9541 {
9542 dnet_ntoa ();
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_lib_dnet_dnet_ntoa=yes
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 ac_cv_lib_dnet_dnet_ntoa=no
9574 fi
9575 rm -f conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 LIBS=$ac_check_lib_save_LIBS
9578 fi
9579 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9580 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9581 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define HAVE_LIBDNET 1
9584 _ACEOF
9585
9586 LIBS="-ldnet $LIBS"
9587
9588 fi
9589
9590
9591 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9592 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9593 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 ac_check_lib_save_LIBS=$LIBS
9597 LIBS="-lXbsd $LIBS"
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604
9605
9606 int
9607 main ()
9608 {
9609 main ();
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest$ac_exeext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_lib_Xbsd_main=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 ac_cv_lib_Xbsd_main=no
9641 fi
9642 rm -f conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 LIBS=$ac_check_lib_save_LIBS
9645 fi
9646 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9647 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9648 if test $ac_cv_lib_Xbsd_main = yes; then
9649 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9650 fi
9651
9652
9653
9654 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9655 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9656 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 ac_check_lib_save_LIBS=$LIBS
9660 LIBS="-lpthreads $LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h. */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667
9668 /* Override any gcc2 internal prototype to avoid an error. */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674 char cma_open ();
9675 int
9676 main ()
9677 {
9678 cma_open ();
9679 ;
9680 return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest$ac_exeext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_lib_pthreads_cma_open=yes
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_cv_lib_pthreads_cma_open=no
9710 fi
9711 rm -f conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9714 fi
9715 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9716 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9717 if test $ac_cv_lib_pthreads_cma_open = yes; then
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_LIBPTHREADS 1
9720 _ACEOF
9721
9722 LIBS="-lpthreads $LIBS"
9723
9724 fi
9725
9726
9727 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9728 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9729 if test -d /usr/X386/include; then
9730 HAVE_XFREE386=yes
9731 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9732 else
9733 HAVE_XFREE386=no
9734 fi
9735 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9736 echo "${ECHO_T}$HAVE_XFREE386" >&6
9737
9738
9739 case ${host_os} in
9740 aix*)
9741 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9742 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9743 if test "${gdb_cv_bigtoc+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746
9747 case $GCC in
9748 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9749 *) gdb_cv_bigtoc=-bbigtoc ;;
9750 esac
9751
9752 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759
9760 int
9761 main ()
9762 {
9763 int i;
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>conftest.er1
9771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 :
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 gdb_cv_bigtoc=
9795 fi
9796 rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798
9799 fi
9800 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9801 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9802 ;;
9803 esac
9804
9805 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9806 # used for the tests that follow. We set them back to REAL_CFLAGS and
9807 # REAL_CPPFLAGS later on.
9808
9809 REAL_CPPFLAGS="$CPPFLAGS"
9810
9811 if test "${HAVE_X11}" = "yes"; then
9812 DEFS="$C_SWITCH_X_SITE $DEFS"
9813 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9814 LIBS="$LIBX $LIBS"
9815 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9816 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9817
9818 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9819 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9820 # but it's more convenient here to set LD_RUN_PATH
9821 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9822 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9823 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9824 export LD_RUN_PATH
9825 fi
9826
9827 if test "${opsys}" = "gnu-linux"; then
9828 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9829 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $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
9837 int
9838 main ()
9839 {
9840 XOpenDisplay ("foo");
9841 ;
9842 return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 xlinux_first_failure=no
9867 else
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 xlinux_first_failure=yes
9872 fi
9873 rm -f conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 if test "${xlinux_first_failure}" = "yes"; then
9876 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9877 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9878 OLD_CPPFLAGS="$CPPFLAGS"
9879 OLD_LIBS="$LIBS"
9880 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9881 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9882 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9883 LIBS="$LIBS -b i486-linuxaout"
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890
9891 int
9892 main ()
9893 {
9894 XOpenDisplay ("foo");
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest.$ac_objext conftest$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901 (eval $ac_link) 2>conftest.er1
9902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 xlinux_second_failure=no
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 xlinux_second_failure=yes
9926 fi
9927 rm -f conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929 if test "${xlinux_second_failure}" = "yes"; then
9930 # If we get the same failure with -b, there is no use adding -b.
9931 # So take it out. This plays safe.
9932 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9933 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9934 CPPFLAGS="$OLD_CPPFLAGS"
9935 LIBS="$OLD_LIBS"
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9938 else
9939 echo "$as_me:$LINENO: result: yes" >&5
9940 echo "${ECHO_T}yes" >&6
9941 fi
9942 else
9943 echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9945 fi
9946 fi
9947
9948 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9949 # header files included from there.
9950 echo "$as_me:$LINENO: checking for Xkb" >&5
9951 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 #include <X11/Xlib.h>
9959 #include <X11/XKBlib.h>
9960 int
9961 main ()
9962 {
9963 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9964 ;
9965 return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 emacs_xkb=yes
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 emacs_xkb=no
9995 fi
9996 rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9999 echo "${ECHO_T}$emacs_xkb" >&6
10000 if test $emacs_xkb = yes; then
10001
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_XKBGETKEYBOARD 1
10004 _ACEOF
10005
10006 fi
10007
10008
10009
10010
10011
10012 for ac_func in XrmSetDatabase XScreenResourceString \
10013 XScreenNumberOfScreen XSetWMProtocols
10014 do
10015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10016 echo "$as_me:$LINENO: checking for $ac_func" >&5
10017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10018 if eval "test \"\${$as_ac_var+set}\" = set"; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define $ac_func innocuous_$ac_func
10030
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char $ac_func (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10035
10036 #ifdef __STDC__
10037 # include <limits.h>
10038 #else
10039 # include <assert.h>
10040 #endif
10041
10042 #undef $ac_func
10043
10044 /* Override any gcc2 internal prototype to avoid an error. */
10045 #ifdef __cplusplus
10046 extern "C"
10047 {
10048 #endif
10049 /* We use char because int might match the return type of a gcc2
10050 builtin and then its argument prototype would still apply. */
10051 char $ac_func ();
10052 /* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
10055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10056 choke me
10057 #else
10058 char (*f) () = $ac_func;
10059 #endif
10060 #ifdef __cplusplus
10061 }
10062 #endif
10063
10064 int
10065 main ()
10066 {
10067 return f != $ac_func;
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 eval "$as_ac_var=yes"
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 eval "$as_ac_var=no"
10099 fi
10100 rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 fi
10103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10105 if test `eval echo '${'$as_ac_var'}'` = yes; then
10106 cat >>confdefs.h <<_ACEOF
10107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10108 _ACEOF
10109
10110 fi
10111 done
10112
10113 fi
10114
10115 if test "${window_system}" = "x11"; then
10116 echo "$as_me:$LINENO: checking X11 version 6" >&5
10117 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10118 if test "${emacs_cv_x11_version_6+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <X11/Xlib.h>
10128 int
10129 main ()
10130 {
10131 #if XlibSpecificationRelease < 6
10132 fail;
10133 #endif
10134
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 rm -f conftest.$ac_objext conftest$ac_exeext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141 (eval $ac_link) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 emacs_cv_x11_version_6=yes
10161 else
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 emacs_cv_x11_version_6=no
10166 fi
10167 rm -f conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 fi
10170
10171 if test $emacs_cv_x11_version_6 = yes; then
10172 echo "$as_me:$LINENO: result: 6 or newer" >&5
10173 echo "${ECHO_T}6 or newer" >&6
10174
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_X11R6 1
10177 _ACEOF
10178
10179 else
10180 echo "$as_me:$LINENO: result: before 6" >&5
10181 echo "${ECHO_T}before 6" >&6
10182 fi
10183 fi
10184
10185 if test "${window_system}" = "x11"; then
10186 echo "$as_me:$LINENO: checking X11 version 5" >&5
10187 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10188 if test "${emacs_cv_x11_version_5+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 #include <X11/Xlib.h>
10198 int
10199 main ()
10200 {
10201 #if XlibSpecificationRelease < 5
10202 fail;
10203 #endif
10204
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 emacs_cv_x11_version_5=yes
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 emacs_cv_x11_version_5=no
10236 fi
10237 rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 fi
10240
10241 if test $emacs_cv_x11_version_5 = yes; then
10242 echo "$as_me:$LINENO: result: 5 or newer" >&5
10243 echo "${ECHO_T}5 or newer" >&6
10244 HAVE_X11R5=yes
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_X11R5 1
10248 _ACEOF
10249
10250 else
10251 HAVE_X11R5=no
10252 echo "$as_me:$LINENO: result: before 5" >&5
10253 echo "${ECHO_T}before 5" >&6
10254 fi
10255 fi
10256
10257 HAVE_GTK=no
10258 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10259 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10260 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10261 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10262 { (exit 1); exit 1; }; };
10263 fi
10264 GLIB_REQUIRED=2.4
10265 GTK_REQUIRED=2.4
10266 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10267
10268 if test "X${with_pkg_config_prog}" != X; then
10269 PKG_CONFIG="${with_pkg_config_prog}"
10270 fi
10271
10272 succeeded=no
10273
10274 if test -z "$PKG_CONFIG"; then
10275 # Extract the first word of "pkg-config", so it can be a program name with args.
10276 set dummy pkg-config; ac_word=$2
10277 echo "$as_me:$LINENO: checking for $ac_word" >&5
10278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10279 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 case $PKG_CONFIG in
10283 [\\/]* | ?:[\\/]*)
10284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10285 ;;
10286 *)
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10289 do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10297 fi
10298 done
10299 done
10300
10301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10302 ;;
10303 esac
10304 fi
10305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10306
10307 if test -n "$PKG_CONFIG"; then
10308 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10309 echo "${ECHO_T}$PKG_CONFIG" >&6
10310 else
10311 echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6
10313 fi
10314
10315 fi
10316
10317 if test "$PKG_CONFIG" = "no" ; then
10318 { { echo "$as_me:$LINENO: error:
10319 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10320 echo "$as_me: error:
10321 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10322 { (exit 1); exit 1; }; }
10323 else
10324 PKG_CONFIG_MIN_VERSION=0.9.0
10325 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10326 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10327 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10328
10329 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10330 echo "$as_me:$LINENO: result: yes" >&5
10331 echo "${ECHO_T}yes" >&6
10332 succeeded=yes
10333
10334 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10335 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10336 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10337 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10338 echo "${ECHO_T}$GTK_CFLAGS" >&6
10339
10340 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10341 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10342 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10343 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10344 echo "${ECHO_T}$GTK_LIBS" >&6
10345 else
10346 echo "$as_me:$LINENO: result: no" >&5
10347 echo "${ECHO_T}no" >&6
10348 GTK_CFLAGS=""
10349 GTK_LIBS=""
10350 ## If we have a custom action on failure, don't print errors, but
10351 ## do set a variable so people can do so.
10352 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10353 echo $GTK_PKG_ERRORS
10354 fi
10355
10356
10357
10358 else
10359 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10360 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10361 fi
10362 fi
10363
10364 if test $succeeded = yes; then
10365 :
10366 else
10367 { { 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
10368 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;}
10369 { (exit 1); exit 1; }; }
10370 fi
10371
10372
10373
10374 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10375 CFLAGS="$CFLAGS $GTK_CFLAGS"
10376 LIBS="$GTK_LIBS $LIBS"
10377 HAVE_GTK=yes
10378
10379 cat >>confdefs.h <<\_ACEOF
10380 #define HAVE_GTK 1
10381 _ACEOF
10382
10383 USE_X_TOOLKIT=none
10384
10385 if test "$with_toolkit_scroll_bars" != no; then
10386 with_toolkit_scroll_bars=yes
10387 fi
10388
10389 HAVE_GTK_MULTIDISPLAY=no
10390
10391 for ac_func in gdk_display_open
10392 do
10393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10394 echo "$as_me:$LINENO: checking for $ac_func" >&5
10395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10396 if eval "test \"\${$as_ac_var+set}\" = set"; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10407 #define $ac_func innocuous_$ac_func
10408
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func (); below.
10411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 <limits.h> exists even on freestanding compilers. */
10413
10414 #ifdef __STDC__
10415 # include <limits.h>
10416 #else
10417 # include <assert.h>
10418 #endif
10419
10420 #undef $ac_func
10421
10422 /* Override any gcc2 internal prototype to avoid an error. */
10423 #ifdef __cplusplus
10424 extern "C"
10425 {
10426 #endif
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10429 char $ac_func ();
10430 /* The GNU C library defines this for functions which it implements
10431 to always fail with ENOSYS. Some functions are actually named
10432 something starting with __ and the normal name is an alias. */
10433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10434 choke me
10435 #else
10436 char (*f) () = $ac_func;
10437 #endif
10438 #ifdef __cplusplus
10439 }
10440 #endif
10441
10442 int
10443 main ()
10444 {
10445 return f != $ac_func;
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 eval "$as_ac_var=yes"
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 eval "$as_ac_var=no"
10477 fi
10478 rm -f conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 fi
10481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10483 if test `eval echo '${'$as_ac_var'}'` = yes; then
10484 cat >>confdefs.h <<_ACEOF
10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486 _ACEOF
10487 HAVE_GTK_MULTIDISPLAY=yes
10488 fi
10489 done
10490
10491 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10492
10493 cat >>confdefs.h <<\_ACEOF
10494 #define HAVE_GTK_MULTIDISPLAY 1
10495 _ACEOF
10496
10497 fi
10498 HAVE_GTK_FILE_SELECTION=no
10499
10500 for ac_func in gtk_file_selection_new
10501 do
10502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10505 if eval "test \"\${$as_ac_var+set}\" = set"; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10516 #define $ac_func innocuous_$ac_func
10517
10518 /* System header to define __stub macros and hopefully few prototypes,
10519 which can conflict with char $ac_func (); below.
10520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521 <limits.h> exists even on freestanding compilers. */
10522
10523 #ifdef __STDC__
10524 # include <limits.h>
10525 #else
10526 # include <assert.h>
10527 #endif
10528
10529 #undef $ac_func
10530
10531 /* Override any gcc2 internal prototype to avoid an error. */
10532 #ifdef __cplusplus
10533 extern "C"
10534 {
10535 #endif
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char $ac_func ();
10539 /* The GNU C library defines this for functions which it implements
10540 to always fail with ENOSYS. Some functions are actually named
10541 something starting with __ and the normal name is an alias. */
10542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10543 choke me
10544 #else
10545 char (*f) () = $ac_func;
10546 #endif
10547 #ifdef __cplusplus
10548 }
10549 #endif
10550
10551 int
10552 main ()
10553 {
10554 return f != $ac_func;
10555 ;
10556 return 0;
10557 }
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try='test -s conftest$ac_exeext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 eval "$as_ac_var=yes"
10581 else
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585 eval "$as_ac_var=no"
10586 fi
10587 rm -f conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 fi
10590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10592 if test `eval echo '${'$as_ac_var'}'` = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10595 _ACEOF
10596 HAVE_GTK_FILE_SELECTION=yes
10597 fi
10598 done
10599
10600
10601 HAVE_GTK_FILE_CHOOSER=no
10602
10603 for ac_func in gtk_file_chooser_dialog_new
10604 do
10605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10606 echo "$as_me:$LINENO: checking for $ac_func" >&5
10607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_var+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10619 #define $ac_func innocuous_$ac_func
10620
10621 /* System header to define __stub macros and hopefully few prototypes,
10622 which can conflict with char $ac_func (); below.
10623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10624 <limits.h> exists even on freestanding compilers. */
10625
10626 #ifdef __STDC__
10627 # include <limits.h>
10628 #else
10629 # include <assert.h>
10630 #endif
10631
10632 #undef $ac_func
10633
10634 /* Override any gcc2 internal prototype to avoid an error. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 {
10638 #endif
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char $ac_func ();
10642 /* The GNU C library defines this for functions which it implements
10643 to always fail with ENOSYS. Some functions are actually named
10644 something starting with __ and the normal name is an alias. */
10645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10646 choke me
10647 #else
10648 char (*f) () = $ac_func;
10649 #endif
10650 #ifdef __cplusplus
10651 }
10652 #endif
10653
10654 int
10655 main ()
10656 {
10657 return f != $ac_func;
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10665 ac_status=$?
10666 grep -v '^ *+' conftest.er1 >conftest.err
10667 rm -f conftest.er1
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 eval "$as_ac_var=yes"
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688 eval "$as_ac_var=no"
10689 fi
10690 rm -f conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 fi
10693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10695 if test `eval echo '${'$as_ac_var'}'` = yes; then
10696 cat >>confdefs.h <<_ACEOF
10697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10698 _ACEOF
10699 HAVE_GTK_FILE_CHOOSER=yes
10700 fi
10701 done
10702
10703
10704 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10705 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10706
10707 cat >>confdefs.h <<\_ACEOF
10708 #define HAVE_GTK_FILE_BOTH 1
10709 _ACEOF
10710
10711 fi
10712
10713 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10714 HAVE_GTK_AND_PTHREAD=no
10715
10716 for ac_header in pthread.h
10717 do
10718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10720 echo "$as_me:$LINENO: checking for $ac_header" >&5
10721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 fi
10725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10727 else
10728 # Is the header compilable?
10729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 $ac_includes_default
10738 #include <$ac_header>
10739 _ACEOF
10740 rm -f conftest.$ac_objext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10742 (eval $ac_compile) 2>conftest.er1
10743 ac_status=$?
10744 grep -v '^ *+' conftest.er1 >conftest.err
10745 rm -f conftest.er1
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_header_compiler=yes
10762 else
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 ac_header_compiler=no
10767 fi
10768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10770 echo "${ECHO_T}$ac_header_compiler" >&6
10771
10772 # Is the header present?
10773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <$ac_header>
10782 _ACEOF
10783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_c_preproc_warn_flag
10793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10794 else
10795 ac_cpp_err=
10796 fi
10797 else
10798 ac_cpp_err=yes
10799 fi
10800 if test -z "$ac_cpp_err"; then
10801 ac_header_preproc=yes
10802 else
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_header_preproc=no
10807 fi
10808 rm -f conftest.err conftest.$ac_ext
10809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10810 echo "${ECHO_T}$ac_header_preproc" >&6
10811
10812 # So? What about this header?
10813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10814 yes:no: )
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10819 ac_header_preproc=yes
10820 ;;
10821 no:yes:* )
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10834 (
10835 cat <<\_ASBOX
10836 ## ------------------------------------------ ##
10837 ## Report this to the AC_PACKAGE_NAME lists. ##
10838 ## ------------------------------------------ ##
10839 _ASBOX
10840 ) |
10841 sed "s/^/$as_me: WARNING: /" >&2
10842 ;;
10843 esac
10844 echo "$as_me:$LINENO: checking for $ac_header" >&5
10845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 eval "$as_ac_Header=\$ac_header_preproc"
10850 fi
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853
10854 fi
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 fi
10861
10862 done
10863
10864 if test "$ac_cv_header_pthread_h"; then
10865 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10866 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10867 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lpthread $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878
10879 /* Override any gcc2 internal prototype to avoid an error. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char pthread_self ();
10886 int
10887 main ()
10888 {
10889 pthread_self ();
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_pthread_pthread_self=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ac_cv_lib_pthread_pthread_self=no
10921 fi
10922 rm -f conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10927 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10928 if test $ac_cv_lib_pthread_pthread_self = yes; then
10929 HAVE_GTK_AND_PTHREAD=yes
10930 fi
10931
10932 fi
10933 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10934 GTK_LIBS="$GTK_LIBS -lpthread"
10935
10936 cat >>confdefs.h <<\_ACEOF
10937 #define HAVE_GTK_AND_PTHREAD 1
10938 _ACEOF
10939
10940 fi
10941 fi
10942 fi
10943
10944 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10945 if test x"${HAVE_X11R5}" = xyes; then
10946 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10947 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10948 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957
10958 #include <X11/Intrinsic.h>
10959 #include <X11/Xaw/Simple.h>
10960 int
10961 main ()
10962 {
10963
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest$ac_exeext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 emacs_cv_x11_version_5_with_xaw=yes
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 emacs_cv_x11_version_5_with_xaw=no
10995 fi
10996 rm -f conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 fi
10999
11000 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11001 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11002 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11003 USE_X_TOOLKIT=LUCID
11004 else
11005 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11006 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11007 USE_X_TOOLKIT=none
11008 fi
11009 else
11010 USE_X_TOOLKIT=none
11011 fi
11012 fi
11013
11014 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11015
11016 if test "${USE_X_TOOLKIT}" != "none"; then
11017 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11018 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11019 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <X11/Intrinsic.h>
11029 int
11030 main ()
11031 {
11032 #if XtSpecificationRelease < 6
11033 fail;
11034 #endif
11035
11036 ;
11037 return 0;
11038 }
11039 _ACEOF
11040 rm -f conftest.$ac_objext conftest$ac_exeext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11042 (eval $ac_link) 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest$ac_exeext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 emacs_cv_x11_toolkit_version_6=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066 emacs_cv_x11_toolkit_version_6=no
11067 fi
11068 rm -f conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 fi
11071
11072 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11073 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11074 echo "$as_me:$LINENO: result: 6 or newer" >&5
11075 echo "${ECHO_T}6 or newer" >&6
11076
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_X11XTR6 1
11079 _ACEOF
11080
11081 else
11082 echo "$as_me:$LINENO: result: before 6" >&5
11083 echo "${ECHO_T}before 6" >&6
11084 fi
11085
11086 OLDLIBS="$LIBS"
11087 if test x$HAVE_X11XTR6 = xyes; then
11088 LIBS="-lXt -lSM -lICE $LIBS"
11089 else
11090 LIBS="-lXt $LIBS"
11091 fi
11092
11093 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11094 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11095 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 ac_check_lib_save_LIBS=$LIBS
11099 LIBS="-lXmu $LIBS"
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106
11107 /* Override any gcc2 internal prototype to avoid an error. */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char XmuConvertStandardSelection ();
11114 int
11115 main ()
11116 {
11117 XmuConvertStandardSelection ();
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11144 else
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11149 fi
11150 rm -f conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11153 fi
11154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11155 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11156 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_LIBXMU 1
11159 _ACEOF
11160
11161 LIBS="-lXmu $LIBS"
11162
11163 fi
11164
11165 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11166 fi
11167
11168 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11169 if test "${HAVE_X11}" = "yes"; then
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11171
11172 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11173 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11174 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 ac_check_lib_save_LIBS=$LIBS
11178 LIBS="-lXext $LIBS"
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 #ifdef __cplusplus
11188 extern "C"
11189 #endif
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11192 char XShapeQueryExtension ();
11193 int
11194 main ()
11195 {
11196 XShapeQueryExtension ();
11197 ;
11198 return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_lib_Xext_XShapeQueryExtension=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_cv_lib_Xext_XShapeQueryExtension=no
11228 fi
11229 rm -f conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11232 fi
11233 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11234 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11235 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11236 cat >>confdefs.h <<_ACEOF
11237 #define HAVE_LIBXEXT 1
11238 _ACEOF
11239
11240 LIBS="-lXext $LIBS"
11241
11242 fi
11243
11244 fi
11245 fi
11246
11247 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11248 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11249 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11250 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <Xm/Xm.h>
11260 int
11261 main ()
11262 {
11263 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11264 int x = 5;
11265 #else
11266 Motif version prior to 2.1.
11267 #endif
11268 ;
11269 return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest.$ac_objext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 emacs_cv_motif_version_2_1=yes
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 emacs_cv_motif_version_2_1=no
11299 fi
11300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11301 fi
11302 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11303 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11304 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11305 if test $emacs_cv_motif_version_2_1 = yes; then
11306 HAVE_LIBXP=no
11307
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_MOTIF_2_1 1
11310 _ACEOF
11311
11312 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11313 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11314 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lXp $LIBS"
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h. */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325
11326 /* Override any gcc2 internal prototype to avoid an error. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 /* We use char because int might match the return type of a gcc2
11331 builtin and then its argument prototype would still apply. */
11332 char XpCreateContext ();
11333 int
11334 main ()
11335 {
11336 XpCreateContext ();
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try='test -s conftest$ac_exeext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_lib_Xp_XpCreateContext=yes
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_cv_lib_Xp_XpCreateContext=no
11368 fi
11369 rm -f conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11372 fi
11373 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11374 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11375 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11376 HAVE_LIBXP=yes
11377 fi
11378
11379 if test ${HAVE_LIBXP} = yes; then
11380
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_LIBXP 1
11383 _ACEOF
11384
11385 fi
11386 else
11387 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11388 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11389 if test "${emacs_cv_lesstif+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392 # We put this in CFLAGS temporarily to precede other -I options
11393 # that might be in CFLAGS temporarily.
11394 # We put this in CPPFLAGS where it precedes the other -I options.
11395 OLD_CPPFLAGS=$CPPFLAGS
11396 OLD_CFLAGS=$CFLAGS
11397 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11398 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11406 int
11407 main ()
11408 {
11409 int x = 5;
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 emacs_cv_lesstif=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 emacs_cv_lesstif=no
11441 fi
11442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11443 fi
11444 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11445 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11446 if test $emacs_cv_lesstif = yes; then
11447 # Make sure this -I option remains in CPPFLAGS after it is set
11448 # back to REAL_CPPFLAGS.
11449 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11450 # have those other -I options anyway. Ultimately, having this
11451 # directory ultimately in CPPFLAGS will be enough.
11452 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11453 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11454 else
11455 CFLAGS=$OLD_CFLAGS
11456 CPPFLAGS=$OLD_CPPFLAGS
11457 fi
11458 fi
11459 fi
11460
11461 ### Is -lXaw3d available?
11462 HAVE_XAW3D=no
11463 if test "${HAVE_X11}" = "yes"; then
11464 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11465 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11466 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11467 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <X11/Xaw3d/Scrollbar.h>
11477 _ACEOF
11478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } >/dev/null; then
11486 if test -s conftest.err; then
11487 ac_cpp_err=$ac_c_preproc_warn_flag
11488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11489 else
11490 ac_cpp_err=
11491 fi
11492 else
11493 ac_cpp_err=yes
11494 fi
11495 if test -z "$ac_cpp_err"; then
11496 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11502 fi
11503 rm -f conftest.err conftest.$ac_ext
11504 fi
11505 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11507 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11508 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11509 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11510 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-lXaw3d $LIBS"
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521
11522 /* Override any gcc2 internal prototype to avoid an error. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 /* We use char because int might match the return type of a gcc2
11527 builtin and then its argument prototype would still apply. */
11528 char XawScrollbarSetThumb ();
11529 int
11530 main ()
11531 {
11532 XawScrollbarSetThumb ();
11533 ;
11534 return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539 (eval $ac_link) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest$ac_exeext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11564 fi
11565 rm -f conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11570 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11571 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11572 HAVE_XAW3D=yes
11573 fi
11574
11575 fi
11576
11577
11578 if test "${HAVE_XAW3D}" = "yes"; then
11579
11580 cat >>confdefs.h <<\_ACEOF
11581 #define HAVE_XAW3D 1
11582 _ACEOF
11583
11584 fi
11585 fi
11586 fi
11587
11588
11589
11590 USE_TOOLKIT_SCROLL_BARS=no
11591 if test "${with_toolkit_scroll_bars}" != "no"; then
11592 if test "${USE_X_TOOLKIT}" != "none"; then
11593 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11594 cat >>confdefs.h <<\_ACEOF
11595 #define USE_TOOLKIT_SCROLL_BARS 1
11596 _ACEOF
11597
11598 HAVE_XAW3D=no
11599 USE_TOOLKIT_SCROLL_BARS=yes
11600 elif test "${HAVE_XAW3D}" = "yes"; then
11601 cat >>confdefs.h <<\_ACEOF
11602 #define USE_TOOLKIT_SCROLL_BARS 1
11603 _ACEOF
11604
11605 USE_TOOLKIT_SCROLL_BARS=yes
11606 fi
11607 elif test "${HAVE_GTK}" = "yes"; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define USE_TOOLKIT_SCROLL_BARS 1
11610 _ACEOF
11611
11612 USE_TOOLKIT_SCROLL_BARS=yes
11613 elif test "${HAVE_CARBON}" = "yes"; then
11614 cat >>confdefs.h <<\_ACEOF
11615 #define USE_TOOLKIT_SCROLL_BARS 1
11616 _ACEOF
11617
11618 USE_TOOLKIT_SCROLL_BARS=yes
11619 fi
11620 fi
11621
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h. */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628
11629 #include <X11/Xlib.h>
11630 #include <X11/Xresource.h>
11631 int
11632 main ()
11633 {
11634 XIMProc callback;
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11641 (eval $ac_compile) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest.$ac_objext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 HAVE_XIM=yes
11661
11662 cat >>confdefs.h <<\_ACEOF
11663 #define HAVE_XIM 1
11664 _ACEOF
11665
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 HAVE_XIM=no
11671 fi
11672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11673
11674
11675 if test "${with_xim}" != "no"; then
11676
11677 cat >>confdefs.h <<\_ACEOF
11678 #define USE_XIM 1
11679 _ACEOF
11680
11681 fi
11682
11683
11684 if test "${HAVE_XIM}" != "no"; then
11685 late_CFLAGS=$CFLAGS
11686 if test "$GCC" = yes; then
11687 CFLAGS="$CFLAGS --pedantic-errors"
11688 fi
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h. */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695
11696 #include <X11/Xlib.h>
11697 #include <X11/Xresource.h>
11698 int
11699 main ()
11700 {
11701 Display *display;
11702 XrmDatabase db;
11703 char *res_name;
11704 char *res_class;
11705 XIMProc callback;
11706 XPointer *client_data;
11707 #ifndef __GNUC__
11708 /* If we're not using GCC, it's probably not XFree86, and this is
11709 probably right, but we can't use something like --pedantic-errors. */
11710 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11711 char*, XIMProc, XPointer*);
11712 #endif
11713 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11714 client_data);
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11721 (eval $ac_compile) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest.$ac_objext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 emacs_cv_arg6_star=yes
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 fi
11746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11747
11748 if test "$emacs_cv_arg6_star" = yes; then
11749 cat >>confdefs.h <<\_ACEOF
11750 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11751 _ACEOF
11752
11753 else
11754 cat >>confdefs.h <<\_ACEOF
11755 #define XRegisterIMInstantiateCallback_arg6 XPointer
11756 _ACEOF
11757
11758 fi
11759 CFLAGS=$late_CFLAGS
11760 fi
11761
11762 ### Use -lXpm if available, unless `--with-xpm=no'.
11763 HAVE_XPM=no
11764 if test "${HAVE_X11}" = "yes"; then
11765 if test "${with_xpm}" != "no"; then
11766 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11767 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11768 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11769 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 fi
11772 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11773 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11774 else
11775 # Is the header compilable?
11776 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11777 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h. */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 #include <X11/xpm.h>
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_header_compiler=yes
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 ac_header_compiler=no
11814 fi
11815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11817 echo "${ECHO_T}$ac_header_compiler" >&6
11818
11819 # Is the header present?
11820 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11821 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 #include <X11/xpm.h>
11829 _ACEOF
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11832 ac_status=$?
11833 grep -v '^ *+' conftest.er1 >conftest.err
11834 rm -f conftest.er1
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null; then
11838 if test -s conftest.err; then
11839 ac_cpp_err=$ac_c_preproc_warn_flag
11840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11841 else
11842 ac_cpp_err=
11843 fi
11844 else
11845 ac_cpp_err=yes
11846 fi
11847 if test -z "$ac_cpp_err"; then
11848 ac_header_preproc=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_header_preproc=no
11854 fi
11855 rm -f conftest.err conftest.$ac_ext
11856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 echo "${ECHO_T}$ac_header_preproc" >&6
11858
11859 # So? What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861 yes:no: )
11862 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11863 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11865 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc=yes
11867 ;;
11868 no:yes:* )
11869 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11874 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11876 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11880 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11881 (
11882 cat <<\_ASBOX
11883 ## ------------------------------------------ ##
11884 ## Report this to the AC_PACKAGE_NAME lists. ##
11885 ## ------------------------------------------ ##
11886 _ASBOX
11887 ) |
11888 sed "s/^/$as_me: WARNING: /" >&2
11889 ;;
11890 esac
11891 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11892 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11893 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896 ac_cv_header_X11_xpm_h=$ac_header_preproc
11897 fi
11898 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11899 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11900
11901 fi
11902 if test $ac_cv_header_X11_xpm_h = yes; then
11903 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11904 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11905 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-lXpm -lX11 $LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h. */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916
11917 /* Override any gcc2 internal prototype to avoid an error. */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923 char XpmReadFileToPixmap ();
11924 int
11925 main ()
11926 {
11927 XpmReadFileToPixmap ();
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11959 fi
11960 rm -f conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11963 fi
11964 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11965 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11966 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11967 HAVE_XPM=yes
11968 fi
11969
11970 fi
11971
11972
11973 if test "${HAVE_XPM}" = "yes"; then
11974 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11975 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 #include "X11/xpm.h"
11983 #ifndef XpmReturnAllocPixels
11984 no_return_alloc_pixels
11985 #endif
11986
11987 _ACEOF
11988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11989 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11990 HAVE_XPM=no
11991 else
11992 HAVE_XPM=yes
11993 fi
11994 rm -f conftest*
11995
11996
11997 if test "${HAVE_XPM}" = "yes"; then
11998 echo "$as_me:$LINENO: result: yes" >&5
11999 echo "${ECHO_T}yes" >&6
12000 else
12001 echo "$as_me:$LINENO: result: no" >&5
12002 echo "${ECHO_T}no" >&6
12003 fi
12004 fi
12005 fi
12006
12007 if test "${HAVE_XPM}" = "yes"; then
12008
12009 cat >>confdefs.h <<\_ACEOF
12010 #define HAVE_XPM 1
12011 _ACEOF
12012
12013 fi
12014 fi
12015
12016 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12017 HAVE_JPEG=no
12018 if test "${HAVE_X11}" = "yes"; then
12019 if test "${with_jpeg}" != "no"; then
12020 if test "${ac_cv_header_jerror_h+set}" = set; then
12021 echo "$as_me:$LINENO: checking for jerror.h" >&5
12022 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12023 if test "${ac_cv_header_jerror_h+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 fi
12026 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12027 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12028 else
12029 # Is the header compilable?
12030 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12031 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 $ac_includes_default
12039 #include <jerror.h>
12040 _ACEOF
12041 rm -f conftest.$ac_objext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest.$ac_objext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_header_compiler=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 ac_header_compiler=no
12068 fi
12069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6
12072
12073 # Is the header present?
12074 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12075 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <jerror.h>
12083 _ACEOF
12084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } >/dev/null; then
12092 if test -s conftest.err; then
12093 ac_cpp_err=$ac_c_preproc_warn_flag
12094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12095 else
12096 ac_cpp_err=
12097 fi
12098 else
12099 ac_cpp_err=yes
12100 fi
12101 if test -z "$ac_cpp_err"; then
12102 ac_header_preproc=yes
12103 else
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 ac_header_preproc=no
12108 fi
12109 rm -f conftest.err conftest.$ac_ext
12110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 echo "${ECHO_T}$ac_header_preproc" >&6
12112
12113 # So? What about this header?
12114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12115 yes:no: )
12116 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12117 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12119 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12120 ac_header_preproc=yes
12121 ;;
12122 no:yes:* )
12123 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12124 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12126 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12128 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12130 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12132 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12134 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12135 (
12136 cat <<\_ASBOX
12137 ## ------------------------------------------ ##
12138 ## Report this to the AC_PACKAGE_NAME lists. ##
12139 ## ------------------------------------------ ##
12140 _ASBOX
12141 ) |
12142 sed "s/^/$as_me: WARNING: /" >&2
12143 ;;
12144 esac
12145 echo "$as_me:$LINENO: checking for jerror.h" >&5
12146 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12147 if test "${ac_cv_header_jerror_h+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 ac_cv_header_jerror_h=$ac_header_preproc
12151 fi
12152 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12153 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12154
12155 fi
12156 if test $ac_cv_header_jerror_h = yes; then
12157 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12158 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-ljpeg $LIBS"
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170
12171 /* Override any gcc2 internal prototype to avoid an error. */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 /* We use char because int might match the return type of a gcc2
12176 builtin and then its argument prototype would still apply. */
12177 char jpeg_destroy_compress ();
12178 int
12179 main ()
12180 {
12181 jpeg_destroy_compress ();
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest$ac_exeext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12213 fi
12214 rm -f conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12217 fi
12218 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12219 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12220 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12221 HAVE_JPEG=yes
12222 fi
12223
12224 fi
12225
12226
12227 fi
12228
12229
12230 if test "${HAVE_JPEG}" = "yes"; then
12231 cat >>confdefs.h <<\_ACEOF
12232 #define HAVE_JPEG 1
12233 _ACEOF
12234
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <jpeglib.h>
12242 version=JPEG_LIB_VERSION
12243
12244 _ACEOF
12245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12246 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_JPEG 1
12249 _ACEOF
12250
12251 else
12252 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12253 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12254 HAVE_JPEG=no
12255 fi
12256 rm -f conftest*
12257
12258 fi
12259 fi
12260
12261 ### Use -lpng if available, unless `--with-png=no'.
12262 HAVE_PNG=no
12263 if test "${HAVE_X11}" = "yes"; then
12264 if test "${with_png}" != "no"; then
12265 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12266 # in /usr/include/libpng.
12267
12268
12269 for ac_header in png.h libpng/png.h
12270 do
12271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12273 echo "$as_me:$LINENO: checking for $ac_header" >&5
12274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 fi
12278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12280 else
12281 # Is the header compilable?
12282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 #include <$ac_header>
12292 _ACEOF
12293 rm -f conftest.$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295 (eval $ac_compile) 2>conftest.er1
12296 ac_status=$?
12297 grep -v '^ *+' conftest.er1 >conftest.err
12298 rm -f conftest.er1
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_header_compiler=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_header_compiler=no
12320 fi
12321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12323 echo "${ECHO_T}$ac_header_compiler" >&6
12324
12325 # Is the header present?
12326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 #include <$ac_header>
12335 _ACEOF
12336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } >/dev/null; then
12344 if test -s conftest.err; then
12345 ac_cpp_err=$ac_c_preproc_warn_flag
12346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12347 else
12348 ac_cpp_err=
12349 fi
12350 else
12351 ac_cpp_err=yes
12352 fi
12353 if test -z "$ac_cpp_err"; then
12354 ac_header_preproc=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 ac_header_preproc=no
12360 fi
12361 rm -f conftest.err conftest.$ac_ext
12362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12363 echo "${ECHO_T}$ac_header_preproc" >&6
12364
12365 # So? What about this header?
12366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12367 yes:no: )
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12372 ac_header_preproc=yes
12373 ;;
12374 no:yes:* )
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12387 (
12388 cat <<\_ASBOX
12389 ## ------------------------------------------ ##
12390 ## Report this to the AC_PACKAGE_NAME lists. ##
12391 ## ------------------------------------------ ##
12392 _ASBOX
12393 ) |
12394 sed "s/^/$as_me: WARNING: /" >&2
12395 ;;
12396 esac
12397 echo "$as_me:$LINENO: checking for $ac_header" >&5
12398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 eval "$as_ac_Header=\$ac_header_preproc"
12403 fi
12404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12406
12407 fi
12408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12411 _ACEOF
12412
12413 fi
12414
12415 done
12416
12417 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12418 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12419 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12420 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 ac_check_lib_save_LIBS=$LIBS
12424 LIBS="-lpng -lz -lm $LIBS"
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431
12432 /* Override any gcc2 internal prototype to avoid an error. */
12433 #ifdef __cplusplus
12434 extern "C"
12435 #endif
12436 /* We use char because int might match the return type of a gcc2
12437 builtin and then its argument prototype would still apply. */
12438 char png_get_channels ();
12439 int
12440 main ()
12441 {
12442 png_get_channels ();
12443 ;
12444 return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_lib_png_png_get_channels=yes
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_cv_lib_png_png_get_channels=no
12474 fi
12475 rm -f conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12478 fi
12479 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12480 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12481 if test $ac_cv_lib_png_png_get_channels = yes; then
12482 HAVE_PNG=yes
12483 fi
12484
12485 fi
12486 fi
12487
12488 if test "${HAVE_PNG}" = "yes"; then
12489
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_PNG 1
12492 _ACEOF
12493
12494 fi
12495 fi
12496
12497 ### Use -ltiff if available, unless `--with-tiff=no'.
12498 HAVE_TIFF=no
12499 if test "${HAVE_X11}" = "yes"; then
12500 if test "${with_tiff}" != "no"; then
12501 if test "${ac_cv_header_tiffio_h+set}" = set; then
12502 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12503 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12504 if test "${ac_cv_header_tiffio_h+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 fi
12507 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12508 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12509 else
12510 # Is the header compilable?
12511 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12512 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #include <tiffio.h>
12521 _ACEOF
12522 rm -f conftest.$ac_objext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_header_compiler=yes
12544 else
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_header_compiler=no
12549 fi
12550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12552 echo "${ECHO_T}$ac_header_compiler" >&6
12553
12554 # Is the header present?
12555 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12556 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h. */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 #include <tiffio.h>
12564 _ACEOF
12565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } >/dev/null; then
12573 if test -s conftest.err; then
12574 ac_cpp_err=$ac_c_preproc_warn_flag
12575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12576 else
12577 ac_cpp_err=
12578 fi
12579 else
12580 ac_cpp_err=yes
12581 fi
12582 if test -z "$ac_cpp_err"; then
12583 ac_header_preproc=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 ac_header_preproc=no
12589 fi
12590 rm -f conftest.err conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12592 echo "${ECHO_T}$ac_header_preproc" >&6
12593
12594 # So? What about this header?
12595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12596 yes:no: )
12597 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12598 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12600 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12601 ac_header_preproc=yes
12602 ;;
12603 no:yes:* )
12604 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12605 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12607 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12609 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12611 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12613 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12615 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12616 (
12617 cat <<\_ASBOX
12618 ## ------------------------------------------ ##
12619 ## Report this to the AC_PACKAGE_NAME lists. ##
12620 ## ------------------------------------------ ##
12621 _ASBOX
12622 ) |
12623 sed "s/^/$as_me: WARNING: /" >&2
12624 ;;
12625 esac
12626 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12627 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12628 if test "${ac_cv_header_tiffio_h+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 else
12631 ac_cv_header_tiffio_h=$ac_header_preproc
12632 fi
12633 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12634 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12635
12636 fi
12637 if test $ac_cv_header_tiffio_h = yes; then
12638 tifflibs="-lz -lm"
12639 # At least one tiff package requires the jpeg library.
12640 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12641 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12642 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12643 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-ltiff $tifflibs $LIBS"
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char TIFFGetVersion ();
12662 int
12663 main ()
12664 {
12665 TIFFGetVersion ();
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_lib_tiff_TIFFGetVersion=yes
12692 else
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ac_cv_lib_tiff_TIFFGetVersion=no
12697 fi
12698 rm -f conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_check_lib_save_LIBS
12701 fi
12702 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12703 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12704 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12705 HAVE_TIFF=yes
12706 fi
12707
12708 fi
12709
12710
12711 fi
12712
12713 if test "${HAVE_TIFF}" = "yes"; then
12714
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_TIFF 1
12717 _ACEOF
12718
12719 fi
12720 fi
12721
12722 ### Use -lgif if available, unless `--with-gif=no'.
12723 HAVE_GIF=no
12724 if test "${HAVE_X11}" = "yes"; then
12725 if test "${with_gif}" != "no"; then
12726 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12727 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12728 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12729 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 fi
12732 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12733 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12734 else
12735 # Is the header compilable?
12736 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12737 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12738 cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h. */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12745 #include <gif_lib.h>
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>conftest.er1
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest.$ac_objext'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_header_compiler=yes
12769 else
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 ac_header_compiler=no
12774 fi
12775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12777 echo "${ECHO_T}$ac_header_compiler" >&6
12778
12779 # Is the header present?
12780 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12781 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <gif_lib.h>
12789 _ACEOF
12790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } >/dev/null; then
12798 if test -s conftest.err; then
12799 ac_cpp_err=$ac_c_preproc_warn_flag
12800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12801 else
12802 ac_cpp_err=
12803 fi
12804 else
12805 ac_cpp_err=yes
12806 fi
12807 if test -z "$ac_cpp_err"; then
12808 ac_header_preproc=yes
12809 else
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 ac_header_preproc=no
12814 fi
12815 rm -f conftest.err conftest.$ac_ext
12816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12817 echo "${ECHO_T}$ac_header_preproc" >&6
12818
12819 # So? What about this header?
12820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12821 yes:no: )
12822 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12823 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12825 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12826 ac_header_preproc=yes
12827 ;;
12828 no:yes:* )
12829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12830 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12832 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12834 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12836 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12838 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12840 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12841 (
12842 cat <<\_ASBOX
12843 ## ------------------------------------------ ##
12844 ## Report this to the AC_PACKAGE_NAME lists. ##
12845 ## ------------------------------------------ ##
12846 _ASBOX
12847 ) |
12848 sed "s/^/$as_me: WARNING: /" >&2
12849 ;;
12850 esac
12851 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12852 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12853 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 ac_cv_header_gif_lib_h=$ac_header_preproc
12857 fi
12858 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12859 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12860
12861 fi
12862 if test $ac_cv_header_gif_lib_h = yes; then
12863 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12864 # Earlier versions can crash Emacs.
12865 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12866 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12867 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lungif $LIBS"
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878
12879 /* Override any gcc2 internal prototype to avoid an error. */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 /* We use char because int might match the return type of a gcc2
12884 builtin and then its argument prototype would still apply. */
12885 char EGifPutExtensionLast ();
12886 int
12887 main ()
12888 {
12889 EGifPutExtensionLast ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896 (eval $ac_link) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 ac_cv_lib_ungif_EGifPutExtensionLast=no
12921 fi
12922 rm -f conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS
12925 fi
12926 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12927 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12928 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12929 HAVE_GIF=yes
12930 fi
12931
12932 fi
12933
12934
12935 fi
12936
12937 if test "${HAVE_GIF}" = "yes"; then
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_GIF 1
12941 _ACEOF
12942
12943 fi
12944 fi
12945
12946 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12947 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12948 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12949 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 fi
12952 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12953 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12954 else
12955 # Is the header compilable?
12956 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12957 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12965 #include <malloc/malloc.h>
12966 _ACEOF
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } &&
12982 { ac_try='test -s conftest.$ac_objext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_header_compiler=yes
12989 else
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993 ac_header_compiler=no
12994 fi
12995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12997 echo "${ECHO_T}$ac_header_compiler" >&6
12998
12999 # Is the header present?
13000 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13001 echo $ECHO_N "checking malloc/malloc.h presence... $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 #include <malloc/malloc.h>
13009 _ACEOF
13010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } >/dev/null; then
13018 if test -s conftest.err; then
13019 ac_cpp_err=$ac_c_preproc_warn_flag
13020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13021 else
13022 ac_cpp_err=
13023 fi
13024 else
13025 ac_cpp_err=yes
13026 fi
13027 if test -z "$ac_cpp_err"; then
13028 ac_header_preproc=yes
13029 else
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 ac_header_preproc=no
13034 fi
13035 rm -f conftest.err conftest.$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13037 echo "${ECHO_T}$ac_header_preproc" >&6
13038
13039 # So? What about this header?
13040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13041 yes:no: )
13042 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13043 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13045 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13046 ac_header_preproc=yes
13047 ;;
13048 no:yes:* )
13049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13050 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13052 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13054 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13056 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13057 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13058 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13060 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13061 (
13062 cat <<\_ASBOX
13063 ## ------------------------------------------ ##
13064 ## Report this to the AC_PACKAGE_NAME lists. ##
13065 ## ------------------------------------------ ##
13066 _ASBOX
13067 ) |
13068 sed "s/^/$as_me: WARNING: /" >&2
13069 ;;
13070 esac
13071 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13072 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13073 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13077 fi
13078 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13079 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13080
13081 fi
13082 if test $ac_cv_header_malloc_malloc_h = yes; then
13083
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_MALLOC_MALLOC_H 1
13086 _ACEOF
13087
13088 fi
13089
13090
13091
13092 ### Use Mac OS X Carbon API to implement GUI.
13093 if test "${HAVE_CARBON}" = "yes"; then
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_CARBON 1
13097 _ACEOF
13098
13099 ## Specify the install directory
13100 carbon_appdir=
13101 if test "${carbon_appdir_x}" != ""; then
13102 case ${carbon_appdir_x} in
13103 y | ye | yes) carbon_appdir=/Applications ;;
13104 * ) carbon_appdir=${carbon_appdir_x} ;;
13105 esac
13106 fi
13107 # We also have mouse menus.
13108 HAVE_MENUS=yes
13109
13110 tmp_CFLAGS="$CFLAGS"
13111 CFLAGS="$CFLAGS -framework Carbon"
13112 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13113 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13114 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13125 #define CancelMenuTracking innocuous_CancelMenuTracking
13126
13127 /* System header to define __stub macros and hopefully few prototypes,
13128 which can conflict with char CancelMenuTracking (); below.
13129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13130 <limits.h> exists even on freestanding compilers. */
13131
13132 #ifdef __STDC__
13133 # include <limits.h>
13134 #else
13135 # include <assert.h>
13136 #endif
13137
13138 #undef CancelMenuTracking
13139
13140 /* Override any gcc2 internal prototype to avoid an error. */
13141 #ifdef __cplusplus
13142 extern "C"
13143 {
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 CancelMenuTracking ();
13148 /* The GNU C library defines this for functions which it implements
13149 to always fail with ENOSYS. Some functions are actually named
13150 something starting with __ and the normal name is an alias. */
13151 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13152 choke me
13153 #else
13154 char (*f) () = CancelMenuTracking;
13155 #endif
13156 #ifdef __cplusplus
13157 }
13158 #endif
13159
13160 int
13161 main ()
13162 {
13163 return f != CancelMenuTracking;
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 rm -f conftest.$ac_objext conftest$ac_exeext
13169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13170 (eval $ac_link) 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest$ac_exeext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_func_CancelMenuTracking=yes
13190 else
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 ac_cv_func_CancelMenuTracking=no
13195 fi
13196 rm -f conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 fi
13199 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13200 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13201 if test $ac_cv_func_CancelMenuTracking = yes; then
13202 have_cmt=yes
13203 else
13204 have_cmt=no
13205 fi
13206
13207 if test "$have_cmt" = yes; then
13208
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_CANCELMENUTRACKING 1
13211 _ACEOF
13212
13213 fi
13214 CFLAGS="$tmp_CFLAGS"
13215 fi
13216
13217 ### Use session management (-lSM -lICE) if available
13218 HAVE_X_SM=no
13219 if test "${HAVE_X11}" = "yes"; then
13220 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13221 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13222 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13223 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 fi
13226 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13227 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13228 else
13229 # Is the header compilable?
13230 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13231 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h. */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 $ac_includes_default
13239 #include <X11/SM/SMlib.h>
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_header_compiler=yes
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_header_compiler=no
13268 fi
13269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6
13272
13273 # Is the header present?
13274 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13275 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <X11/SM/SMlib.h>
13283 _ACEOF
13284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null; then
13292 if test -s conftest.err; then
13293 ac_cpp_err=$ac_c_preproc_warn_flag
13294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13295 else
13296 ac_cpp_err=
13297 fi
13298 else
13299 ac_cpp_err=yes
13300 fi
13301 if test -z "$ac_cpp_err"; then
13302 ac_header_preproc=yes
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 ac_header_preproc=no
13308 fi
13309 rm -f conftest.err conftest.$ac_ext
13310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13311 echo "${ECHO_T}$ac_header_preproc" >&6
13312
13313 # So? What about this header?
13314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13315 yes:no: )
13316 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13317 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13319 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13320 ac_header_preproc=yes
13321 ;;
13322 no:yes:* )
13323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13328 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13330 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13332 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13334 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13335 (
13336 cat <<\_ASBOX
13337 ## ------------------------------------------ ##
13338 ## Report this to the AC_PACKAGE_NAME lists. ##
13339 ## ------------------------------------------ ##
13340 _ASBOX
13341 ) |
13342 sed "s/^/$as_me: WARNING: /" >&2
13343 ;;
13344 esac
13345 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13346 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13347 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13351 fi
13352 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13353 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13354
13355 fi
13356 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13357 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13358 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13359 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-lSM -lICE $LIBS"
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370
13371 /* Override any gcc2 internal prototype to avoid an error. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13377 char SmcOpenConnection ();
13378 int
13379 main ()
13380 {
13381 SmcOpenConnection ();
13382 ;
13383 return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_lib_SM_SmcOpenConnection=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_cv_lib_SM_SmcOpenConnection=no
13413 fi
13414 rm -f conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LIBS=$ac_check_lib_save_LIBS
13417 fi
13418 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13419 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13420 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13421 HAVE_X_SM=yes
13422 fi
13423
13424 fi
13425
13426
13427
13428 if test "${HAVE_X_SM}" = "yes"; then
13429
13430 cat >>confdefs.h <<\_ACEOF
13431 #define HAVE_X_SM 1
13432 _ACEOF
13433
13434 case "$LIBS" in
13435 *-lSM*) ;;
13436 *) LIBS="-lSM -lICE $LIBS" ;;
13437 esac
13438 fi
13439 fi
13440
13441 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13442 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13443 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13444 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 #include <netdb.h>
13454 int
13455 main ()
13456 {
13457 return h_errno;
13458 ;
13459 return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 emacs_cv_netdb_declares_h_errno=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 emacs_cv_netdb_declares_h_errno=no
13489 fi
13490 rm -f conftest.err conftest.$ac_objext \
13491 conftest$ac_exeext conftest.$ac_ext
13492 fi
13493 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13494 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13495 if test $emacs_cv_netdb_declares_h_errno = yes; then
13496
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_H_ERRNO 1
13499 _ACEOF
13500
13501 fi
13502
13503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13504 # for constant arguments. Useless!
13505 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13507 if test "${ac_cv_working_alloca_h+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <alloca.h>
13517 int
13518 main ()
13519 {
13520 char *p = (char *) alloca (2 * sizeof (int));
13521 ;
13522 return 0;
13523 }
13524 _ACEOF
13525 rm -f conftest.$ac_objext conftest$ac_exeext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527 (eval $ac_link) 2>conftest.er1
13528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest$ac_exeext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_working_alloca_h=yes
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_cv_working_alloca_h=no
13552 fi
13553 rm -f conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 fi
13556 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13557 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13558 if test $ac_cv_working_alloca_h = yes; then
13559
13560 cat >>confdefs.h <<\_ACEOF
13561 #define HAVE_ALLOCA_H 1
13562 _ACEOF
13563
13564 fi
13565
13566 echo "$as_me:$LINENO: checking for alloca" >&5
13567 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13568 if test "${ac_cv_func_alloca_works+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 #ifdef __GNUC__
13578 # define alloca __builtin_alloca
13579 #else
13580 # ifdef _MSC_VER
13581 # include <malloc.h>
13582 # define alloca _alloca
13583 # else
13584 # if HAVE_ALLOCA_H
13585 # include <alloca.h>
13586 # else
13587 # ifdef _AIX
13588 #pragma alloca
13589 # else
13590 # ifndef alloca /* predefined by HP cc +Olibcalls */
13591 char *alloca ();
13592 # endif
13593 # endif
13594 # endif
13595 # endif
13596 #endif
13597
13598 int
13599 main ()
13600 {
13601 char *p = (char *) alloca (1);
13602 ;
13603 return 0;
13604 }
13605 _ACEOF
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13608 (eval $ac_link) 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest$ac_exeext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_func_alloca_works=yes
13628 else
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_cv_func_alloca_works=no
13633 fi
13634 rm -f conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 fi
13637 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13638 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13639
13640 if test $ac_cv_func_alloca_works = yes; then
13641
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_ALLOCA 1
13644 _ACEOF
13645
13646 else
13647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13648 # that cause trouble. Some versions do not even contain alloca or
13649 # contain a buggy version. If you still want to use their alloca,
13650 # use ar to extract alloca.o from them instead of compiling alloca.c.
13651
13652 ALLOCA=alloca.$ac_objext
13653
13654 cat >>confdefs.h <<\_ACEOF
13655 #define C_ALLOCA 1
13656 _ACEOF
13657
13658
13659 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13660 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13661 if test "${ac_cv_os_cray+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 #if defined(CRAY) && ! defined(CRAY2)
13671 webecray
13672 #else
13673 wenotbecray
13674 #endif
13675
13676 _ACEOF
13677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13678 $EGREP "webecray" >/dev/null 2>&1; then
13679 ac_cv_os_cray=yes
13680 else
13681 ac_cv_os_cray=no
13682 fi
13683 rm -f conftest*
13684
13685 fi
13686 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13687 echo "${ECHO_T}$ac_cv_os_cray" >&6
13688 if test $ac_cv_os_cray = yes; then
13689 for ac_func in _getb67 GETB67 getb67; do
13690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13691 echo "$as_me:$LINENO: checking for $ac_func" >&5
13692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13693 if eval "test \"\${$as_ac_var+set}\" = set"; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13704 #define $ac_func innocuous_$ac_func
13705
13706 /* System header to define __stub macros and hopefully few prototypes,
13707 which can conflict with char $ac_func (); below.
13708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13709 <limits.h> exists even on freestanding compilers. */
13710
13711 #ifdef __STDC__
13712 # include <limits.h>
13713 #else
13714 # include <assert.h>
13715 #endif
13716
13717 #undef $ac_func
13718
13719 /* Override any gcc2 internal prototype to avoid an error. */
13720 #ifdef __cplusplus
13721 extern "C"
13722 {
13723 #endif
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13726 char $ac_func ();
13727 /* The GNU C library defines this for functions which it implements
13728 to always fail with ENOSYS. Some functions are actually named
13729 something starting with __ and the normal name is an alias. */
13730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13731 choke me
13732 #else
13733 char (*f) () = $ac_func;
13734 #endif
13735 #ifdef __cplusplus
13736 }
13737 #endif
13738
13739 int
13740 main ()
13741 {
13742 return f != $ac_func;
13743 ;
13744 return 0;
13745 }
13746 _ACEOF
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749 (eval $ac_link) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 eval "$as_ac_var=yes"
13769 else
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773 eval "$as_ac_var=no"
13774 fi
13775 rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 fi
13778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13780 if test `eval echo '${'$as_ac_var'}'` = yes; then
13781
13782 cat >>confdefs.h <<_ACEOF
13783 #define CRAY_STACKSEG_END $ac_func
13784 _ACEOF
13785
13786 break
13787 fi
13788
13789 done
13790 fi
13791
13792 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13793 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13794 if test "${ac_cv_c_stack_direction+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 if test "$cross_compiling" = yes; then
13798 ac_cv_c_stack_direction=0
13799 else
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 int
13807 find_stack_direction ()
13808 {
13809 static char *addr = 0;
13810 auto char dummy;
13811 if (addr == 0)
13812 {
13813 addr = &dummy;
13814 return find_stack_direction ();
13815 }
13816 else
13817 return (&dummy > addr) ? 1 : -1;
13818 }
13819
13820 int
13821 main ()
13822 {
13823 exit (find_stack_direction () < 0);
13824 }
13825 _ACEOF
13826 rm -f conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828 (eval $ac_link) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_c_stack_direction=1
13838 else
13839 echo "$as_me: program exited with status $ac_status" >&5
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 ( exit $ac_status )
13844 ac_cv_c_stack_direction=-1
13845 fi
13846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13847 fi
13848 fi
13849 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13850 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13851
13852 cat >>confdefs.h <<_ACEOF
13853 #define STACK_DIRECTION $ac_cv_c_stack_direction
13854 _ACEOF
13855
13856
13857 fi
13858
13859
13860 # fmod, logb, and frexp are found in -lm on most systems.
13861 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13862
13863 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13864 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13865 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868 ac_check_lib_save_LIBS=$LIBS
13869 LIBS="-lm $LIBS"
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876
13877 /* Override any gcc2 internal prototype to avoid an error. */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 /* We use char because int might match the return type of a gcc2
13882 builtin and then its argument prototype would still apply. */
13883 char sqrt ();
13884 int
13885 main ()
13886 {
13887 sqrt ();
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest.$ac_objext conftest$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_lib_m_sqrt=yes
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_cv_lib_m_sqrt=no
13919 fi
13920 rm -f conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_check_lib_save_LIBS
13923 fi
13924 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13925 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13926 if test $ac_cv_lib_m_sqrt = yes; then
13927 cat >>confdefs.h <<_ACEOF
13928 #define HAVE_LIBM 1
13929 _ACEOF
13930
13931 LIBS="-lm $LIBS"
13932
13933 fi
13934
13935
13936 # Check for mail-locking functions in a "mail" library. Probably this should
13937 # have the same check as for liblockfile below.
13938
13939 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13940 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13941 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 ac_check_lib_save_LIBS=$LIBS
13945 LIBS="-lmail $LIBS"
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952
13953 /* Override any gcc2 internal prototype to avoid an error. */
13954 #ifdef __cplusplus
13955 extern "C"
13956 #endif
13957 /* We use char because int might match the return type of a gcc2
13958 builtin and then its argument prototype would still apply. */
13959 char maillock ();
13960 int
13961 main ()
13962 {
13963 maillock ();
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13970 (eval $ac_link) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest$ac_exeext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_lib_mail_maillock=yes
13990 else
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_cv_lib_mail_maillock=no
13995 fi
13996 rm -f conftest.err conftest.$ac_objext \
13997 conftest$ac_exeext conftest.$ac_ext
13998 LIBS=$ac_check_lib_save_LIBS
13999 fi
14000 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14001 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14002 if test $ac_cv_lib_mail_maillock = yes; then
14003 cat >>confdefs.h <<_ACEOF
14004 #define HAVE_LIBMAIL 1
14005 _ACEOF
14006
14007 LIBS="-lmail $LIBS"
14008
14009 fi
14010
14011
14012 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14013 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14014 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 ac_check_lib_save_LIBS=$LIBS
14018 LIBS="-llockfile $LIBS"
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025
14026 /* Override any gcc2 internal prototype to avoid an error. */
14027 #ifdef __cplusplus
14028 extern "C"
14029 #endif
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14032 char maillock ();
14033 int
14034 main ()
14035 {
14036 maillock ();
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>conftest.er1
14044 ac_status=$?
14045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_lib_lockfile_maillock=yes
14063 else
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_lib_lockfile_maillock=no
14068 fi
14069 rm -f conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14072 fi
14073 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14074 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14075 if test $ac_cv_lib_lockfile_maillock = yes; then
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_LIBLOCKFILE 1
14078 _ACEOF
14079
14080 LIBS="-llockfile $LIBS"
14081
14082 fi
14083
14084 # If we have the shared liblockfile, assume we must use it for mail
14085 # locking (e.g. Debian). If we couldn't link against liblockfile
14086 # (no liblockfile.a installed), ensure that we don't need to.
14087 if test "$ac_cv_lib_lockfile_maillock" = no; then
14088 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14089 set dummy liblockfile.so; ac_word=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_prog_liblockfile+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095 if test -n "$liblockfile"; then
14096 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14100 for as_dir in $as_dummy
14101 do
14102 IFS=$as_save_IFS
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14106 ac_cv_prog_liblockfile="yes"
14107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 break 2
14109 fi
14110 done
14111 done
14112
14113 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14114 fi
14115 fi
14116 liblockfile=$ac_cv_prog_liblockfile
14117 if test -n "$liblockfile"; then
14118 echo "$as_me:$LINENO: result: $liblockfile" >&5
14119 echo "${ECHO_T}$liblockfile" >&6
14120 else
14121 echo "$as_me:$LINENO: result: no" >&5
14122 echo "${ECHO_T}no" >&6
14123 fi
14124
14125 if test $ac_cv_prog_liblockfile = yes; then
14126 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14127 This probably means that movemail could lose mail.
14128 There may be a \`development' package to install containing liblockfile." >&5
14129 echo "$as_me: error: Shared liblockfile found but can't link against it.
14130 This probably means that movemail could lose mail.
14131 There may be a \`development' package to install containing liblockfile." >&2;}
14132 { (exit 1); exit 1; }; }
14133 else :
14134 fi
14135 fi
14136
14137 for ac_func in touchlock
14138 do
14139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_func" >&5
14141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153 #define $ac_func innocuous_$ac_func
14154
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14159
14160 #ifdef __STDC__
14161 # include <limits.h>
14162 #else
14163 # include <assert.h>
14164 #endif
14165
14166 #undef $ac_func
14167
14168 /* Override any gcc2 internal prototype to avoid an error. */
14169 #ifdef __cplusplus
14170 extern "C"
14171 {
14172 #endif
14173 /* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14175 char $ac_func ();
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14180 choke me
14181 #else
14182 char (*f) () = $ac_func;
14183 #endif
14184 #ifdef __cplusplus
14185 }
14186 #endif
14187
14188 int
14189 main ()
14190 {
14191 return f != $ac_func;
14192 ;
14193 return 0;
14194 }
14195 _ACEOF
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 eval "$as_ac_var=yes"
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 eval "$as_ac_var=no"
14223 fi
14224 rm -f conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
14226 fi
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14229 if test `eval echo '${'$as_ac_var'}'` = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14232 _ACEOF
14233
14234 fi
14235 done
14236
14237
14238 for ac_header in maillock.h
14239 do
14240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14242 echo "$as_me:$LINENO: checking for $ac_header" >&5
14243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 fi
14247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14249 else
14250 # Is the header compilable?
14251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h. */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14260 #include <$ac_header>
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; } &&
14277 { ac_try='test -s conftest.$ac_objext'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_header_compiler=yes
14284 else
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 ac_header_compiler=no
14289 fi
14290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14292 echo "${ECHO_T}$ac_header_compiler" >&6
14293
14294 # Is the header present?
14295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h. */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <$ac_header>
14304 _ACEOF
14305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } >/dev/null; then
14313 if test -s conftest.err; then
14314 ac_cpp_err=$ac_c_preproc_warn_flag
14315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14316 else
14317 ac_cpp_err=
14318 fi
14319 else
14320 ac_cpp_err=yes
14321 fi
14322 if test -z "$ac_cpp_err"; then
14323 ac_header_preproc=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 ac_header_preproc=no
14329 fi
14330 rm -f conftest.err conftest.$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6
14333
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14336 yes:no: )
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14341 ac_header_preproc=yes
14342 ;;
14343 no:yes:* )
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14356 (
14357 cat <<\_ASBOX
14358 ## ------------------------------------------ ##
14359 ## Report this to the AC_PACKAGE_NAME lists. ##
14360 ## ------------------------------------------ ##
14361 _ASBOX
14362 ) |
14363 sed "s/^/$as_me: WARNING: /" >&2
14364 ;;
14365 esac
14366 echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 eval "$as_ac_Header=\$ac_header_preproc"
14372 fi
14373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14375
14376 fi
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378 cat >>confdefs.h <<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14380 _ACEOF
14381
14382 fi
14383
14384 done
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455 for ac_func in gethostname getdomainname dup2 \
14456 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14457 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14458 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14459 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14460 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14461 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14462 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14463 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14464 do
14465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14466 echo "$as_me:$LINENO: checking for $ac_func" >&5
14467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14468 if eval "test \"\${$as_ac_var+set}\" = set"; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14479 #define $ac_func innocuous_$ac_func
14480
14481 /* System header to define __stub macros and hopefully few prototypes,
14482 which can conflict with char $ac_func (); below.
14483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14484 <limits.h> exists even on freestanding compilers. */
14485
14486 #ifdef __STDC__
14487 # include <limits.h>
14488 #else
14489 # include <assert.h>
14490 #endif
14491
14492 #undef $ac_func
14493
14494 /* Override any gcc2 internal prototype to avoid an error. */
14495 #ifdef __cplusplus
14496 extern "C"
14497 {
14498 #endif
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14501 char $ac_func ();
14502 /* The GNU C library defines this for functions which it implements
14503 to always fail with ENOSYS. Some functions are actually named
14504 something starting with __ and the normal name is an alias. */
14505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14506 choke me
14507 #else
14508 char (*f) () = $ac_func;
14509 #endif
14510 #ifdef __cplusplus
14511 }
14512 #endif
14513
14514 int
14515 main ()
14516 {
14517 return f != $ac_func;
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14524 (eval $ac_link) 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest$ac_exeext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$as_ac_var=yes"
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 eval "$as_ac_var=no"
14549 fi
14550 rm -f conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 fi
14553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14555 if test `eval echo '${'$as_ac_var'}'` = yes; then
14556 cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14558 _ACEOF
14559
14560 fi
14561 done
14562
14563
14564
14565 for ac_header in sys/un.h
14566 do
14567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14569 echo "$as_me:$LINENO: checking for $ac_header" >&5
14570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 fi
14574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14576 else
14577 # Is the header compilable?
14578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 $ac_includes_default
14587 #include <$ac_header>
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14591 (eval $ac_compile) 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_header_compiler=yes
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_header_compiler=no
14616 fi
14617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14619 echo "${ECHO_T}$ac_header_compiler" >&6
14620
14621 # Is the header present?
14622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h. */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <$ac_header>
14631 _ACEOF
14632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } >/dev/null; then
14640 if test -s conftest.err; then
14641 ac_cpp_err=$ac_c_preproc_warn_flag
14642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14643 else
14644 ac_cpp_err=
14645 fi
14646 else
14647 ac_cpp_err=yes
14648 fi
14649 if test -z "$ac_cpp_err"; then
14650 ac_header_preproc=yes
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 ac_header_preproc=no
14656 fi
14657 rm -f conftest.err conftest.$ac_ext
14658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659 echo "${ECHO_T}$ac_header_preproc" >&6
14660
14661 # So? What about this header?
14662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14663 yes:no: )
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14668 ac_header_preproc=yes
14669 ;;
14670 no:yes:* )
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14683 (
14684 cat <<\_ASBOX
14685 ## ------------------------------------------ ##
14686 ## Report this to the AC_PACKAGE_NAME lists. ##
14687 ## ------------------------------------------ ##
14688 _ASBOX
14689 ) |
14690 sed "s/^/$as_me: WARNING: /" >&2
14691 ;;
14692 esac
14693 echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 eval "$as_ac_Header=\$ac_header_preproc"
14699 fi
14700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14702
14703 fi
14704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14705 cat >>confdefs.h <<_ACEOF
14706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14707 _ACEOF
14708
14709 fi
14710
14711 done
14712
14713
14714
14715
14716
14717 for ac_header in stdlib.h sys/time.h unistd.h
14718 do
14719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14721 echo "$as_me:$LINENO: checking for $ac_header" >&5
14722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 fi
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14728 else
14729 # Is the header compilable?
14730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 $ac_includes_default
14739 #include <$ac_header>
14740 _ACEOF
14741 rm -f conftest.$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_header_compiler=yes
14763 else
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 ac_header_compiler=no
14768 fi
14769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6
14772
14773 # Is the header present?
14774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <$ac_header>
14783 _ACEOF
14784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } >/dev/null; then
14792 if test -s conftest.err; then
14793 ac_cpp_err=$ac_c_preproc_warn_flag
14794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14795 else
14796 ac_cpp_err=
14797 fi
14798 else
14799 ac_cpp_err=yes
14800 fi
14801 if test -z "$ac_cpp_err"; then
14802 ac_header_preproc=yes
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 ac_header_preproc=no
14808 fi
14809 rm -f conftest.err conftest.$ac_ext
14810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14811 echo "${ECHO_T}$ac_header_preproc" >&6
14812
14813 # So? What about this header?
14814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14815 yes:no: )
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14820 ac_header_preproc=yes
14821 ;;
14822 no:yes:* )
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14835 (
14836 cat <<\_ASBOX
14837 ## ------------------------------------------ ##
14838 ## Report this to the AC_PACKAGE_NAME lists. ##
14839 ## ------------------------------------------ ##
14840 _ASBOX
14841 ) |
14842 sed "s/^/$as_me: WARNING: /" >&2
14843 ;;
14844 esac
14845 echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850 eval "$as_ac_Header=\$ac_header_preproc"
14851 fi
14852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14854
14855 fi
14856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14857 cat >>confdefs.h <<_ACEOF
14858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14859 _ACEOF
14860
14861 fi
14862
14863 done
14864
14865
14866 for ac_func in alarm
14867 do
14868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14869 echo "$as_me:$LINENO: checking for $ac_func" >&5
14870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14871 if eval "test \"\${$as_ac_var+set}\" = set"; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h. */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14882 #define $ac_func innocuous_$ac_func
14883
14884 /* System header to define __stub macros and hopefully few prototypes,
14885 which can conflict with char $ac_func (); below.
14886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14887 <limits.h> exists even on freestanding compilers. */
14888
14889 #ifdef __STDC__
14890 # include <limits.h>
14891 #else
14892 # include <assert.h>
14893 #endif
14894
14895 #undef $ac_func
14896
14897 /* Override any gcc2 internal prototype to avoid an error. */
14898 #ifdef __cplusplus
14899 extern "C"
14900 {
14901 #endif
14902 /* We use char because int might match the return type of a gcc2
14903 builtin and then its argument prototype would still apply. */
14904 char $ac_func ();
14905 /* The GNU C library defines this for functions which it implements
14906 to always fail with ENOSYS. Some functions are actually named
14907 something starting with __ and the normal name is an alias. */
14908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909 choke me
14910 #else
14911 char (*f) () = $ac_func;
14912 #endif
14913 #ifdef __cplusplus
14914 }
14915 #endif
14916
14917 int
14918 main ()
14919 {
14920 return f != $ac_func;
14921 ;
14922 return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest$ac_exeext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 eval "$as_ac_var=yes"
14947 else
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14950
14951 eval "$as_ac_var=no"
14952 fi
14953 rm -f conftest.err conftest.$ac_objext \
14954 conftest$ac_exeext conftest.$ac_ext
14955 fi
14956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14958 if test `eval echo '${'$as_ac_var'}'` = yes; then
14959 cat >>confdefs.h <<_ACEOF
14960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14961 _ACEOF
14962
14963 fi
14964 done
14965
14966 echo "$as_me:$LINENO: checking for working mktime" >&5
14967 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14968 if test "${ac_cv_func_working_mktime+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 if test "$cross_compiling" = yes; then
14972 ac_cv_func_working_mktime=no
14973 else
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 /* Test program from Paul Eggert and Tony Leneis. */
14981 #if TIME_WITH_SYS_TIME
14982 # include <sys/time.h>
14983 # include <time.h>
14984 #else
14985 # if HAVE_SYS_TIME_H
14986 # include <sys/time.h>
14987 # else
14988 # include <time.h>
14989 # endif
14990 #endif
14991
14992 #if HAVE_STDLIB_H
14993 # include <stdlib.h>
14994 #endif
14995
14996 #if HAVE_UNISTD_H
14997 # include <unistd.h>
14998 #endif
14999
15000 #if !HAVE_ALARM
15001 # define alarm(X) /* empty */
15002 #endif
15003
15004 /* Work around redefinition to rpl_putenv by other config tests. */
15005 #undef putenv
15006
15007 static time_t time_t_max;
15008 static time_t time_t_min;
15009
15010 /* Values we'll use to set the TZ environment variable. */
15011 static char *tz_strings[] = {
15012 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15013 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15014 };
15015 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15016
15017 /* Fail if mktime fails to convert a date in the spring-forward gap.
15018 Based on a problem report from Andreas Jaeger. */
15019 static void
15020 spring_forward_gap ()
15021 {
15022 /* glibc (up to about 1998-10-07) failed this test. */
15023 struct tm tm;
15024
15025 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15026 instead of "TZ=America/Vancouver" in order to detect the bug even
15027 on systems that don't support the Olson extension, or don't have the
15028 full zoneinfo tables installed. */
15029 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15030
15031 tm.tm_year = 98;
15032 tm.tm_mon = 3;
15033 tm.tm_mday = 5;
15034 tm.tm_hour = 2;
15035 tm.tm_min = 0;
15036 tm.tm_sec = 0;
15037 tm.tm_isdst = -1;
15038 if (mktime (&tm) == (time_t)-1)
15039 exit (1);
15040 }
15041
15042 static void
15043 mktime_test1 (now)
15044 time_t now;
15045 {
15046 struct tm *lt;
15047 if ((lt = localtime (&now)) && mktime (lt) != now)
15048 exit (1);
15049 }
15050
15051 static void
15052 mktime_test (now)
15053 time_t now;
15054 {
15055 mktime_test1 (now);
15056 mktime_test1 ((time_t) (time_t_max - now));
15057 mktime_test1 ((time_t) (time_t_min + now));
15058 }
15059
15060 static void
15061 irix_6_4_bug ()
15062 {
15063 /* Based on code from Ariel Faigon. */
15064 struct tm tm;
15065 tm.tm_year = 96;
15066 tm.tm_mon = 3;
15067 tm.tm_mday = 0;
15068 tm.tm_hour = 0;
15069 tm.tm_min = 0;
15070 tm.tm_sec = 0;
15071 tm.tm_isdst = -1;
15072 mktime (&tm);
15073 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15074 exit (1);
15075 }
15076
15077 static void
15078 bigtime_test (j)
15079 int j;
15080 {
15081 struct tm tm;
15082 time_t now;
15083 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15084 now = mktime (&tm);
15085 if (now != (time_t) -1)
15086 {
15087 struct tm *lt = localtime (&now);
15088 if (! (lt
15089 && lt->tm_year == tm.tm_year
15090 && lt->tm_mon == tm.tm_mon
15091 && lt->tm_mday == tm.tm_mday
15092 && lt->tm_hour == tm.tm_hour
15093 && lt->tm_min == tm.tm_min
15094 && lt->tm_sec == tm.tm_sec
15095 && lt->tm_yday == tm.tm_yday
15096 && lt->tm_wday == tm.tm_wday
15097 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15098 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15099 exit (1);
15100 }
15101 }
15102
15103 int
15104 main ()
15105 {
15106 time_t t, delta;
15107 int i, j;
15108
15109 /* This test makes some buggy mktime implementations loop.
15110 Give up after 60 seconds; a mktime slower than that
15111 isn't worth using anyway. */
15112 alarm (60);
15113
15114 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15115 continue;
15116 time_t_max--;
15117 if ((time_t) -1 < 0)
15118 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15119 continue;
15120 delta = time_t_max / 997; /* a suitable prime number */
15121 for (i = 0; i < N_STRINGS; i++)
15122 {
15123 if (tz_strings[i])
15124 putenv (tz_strings[i]);
15125
15126 for (t = 0; t <= time_t_max - delta; t += delta)
15127 mktime_test (t);
15128 mktime_test ((time_t) 1);
15129 mktime_test ((time_t) (60 * 60));
15130 mktime_test ((time_t) (60 * 60 * 24));
15131
15132 for (j = 1; 0 < j; j *= 2)
15133 bigtime_test (j);
15134 bigtime_test (j - 1);
15135 }
15136 irix_6_4_bug ();
15137 spring_forward_gap ();
15138 exit (0);
15139 }
15140 _ACEOF
15141 rm -f conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_func_working_mktime=yes
15153 else
15154 echo "$as_me: program exited with status $ac_status" >&5
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 ( exit $ac_status )
15159 ac_cv_func_working_mktime=no
15160 fi
15161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15162 fi
15163 fi
15164 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15165 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15166 if test $ac_cv_func_working_mktime = no; then
15167 case $LIBOBJS in
15168 "mktime.$ac_objext" | \
15169 *" mktime.$ac_objext" | \
15170 "mktime.$ac_objext "* | \
15171 *" mktime.$ac_objext "* ) ;;
15172 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15173 esac
15174
15175 fi
15176
15177 if test "$ac_cv_func_working_mktime" = no; then
15178
15179 cat >>confdefs.h <<\_ACEOF
15180 #define BROKEN_MKTIME 1
15181 _ACEOF
15182
15183 fi
15184
15185 ac_have_func=no # yes means we've found a way to get the load average.
15186
15187 # Make sure getloadavg.c is where it belongs, at configure-time.
15188 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15189 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15190 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15191 { (exit 1); exit 1; }; }
15192
15193 ac_save_LIBS=$LIBS
15194
15195 # Check for getloadavg, but be sure not to touch the cache variable.
15196 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15197 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15198 if test "${ac_cv_func_getloadavg+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15209 #define getloadavg innocuous_getloadavg
15210
15211 /* System header to define __stub macros and hopefully few prototypes,
15212 which can conflict with char getloadavg (); below.
15213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15214 <limits.h> exists even on freestanding compilers. */
15215
15216 #ifdef __STDC__
15217 # include <limits.h>
15218 #else
15219 # include <assert.h>
15220 #endif
15221
15222 #undef getloadavg
15223
15224 /* Override any gcc2 internal prototype to avoid an error. */
15225 #ifdef __cplusplus
15226 extern "C"
15227 {
15228 #endif
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231 char getloadavg ();
15232 /* The GNU C library defines this for functions which it implements
15233 to always fail with ENOSYS. Some functions are actually named
15234 something starting with __ and the normal name is an alias. */
15235 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15236 choke me
15237 #else
15238 char (*f) () = getloadavg;
15239 #endif
15240 #ifdef __cplusplus
15241 }
15242 #endif
15243
15244 int
15245 main ()
15246 {
15247 return f != getloadavg;
15248 ;
15249 return 0;
15250 }
15251 _ACEOF
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15254 (eval $ac_link) 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try='test -s conftest$ac_exeext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 ac_cv_func_getloadavg=yes
15274 else
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 ac_cv_func_getloadavg=no
15279 fi
15280 rm -f conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 fi
15283 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15284 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15285 if test $ac_cv_func_getloadavg = yes; then
15286 exit 0
15287 else
15288 exit 1
15289 fi
15290 ) && ac_have_func=yes
15291
15292 # On HPUX9, an unprivileged user can get load averages through this function.
15293
15294 for ac_func in pstat_getdynamic
15295 do
15296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 echo "$as_me:$LINENO: checking for $ac_func" >&5
15298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_var+set}\" = set"; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15310 #define $ac_func innocuous_$ac_func
15311
15312 /* System header to define __stub macros and hopefully few prototypes,
15313 which can conflict with char $ac_func (); below.
15314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15315 <limits.h> exists even on freestanding compilers. */
15316
15317 #ifdef __STDC__
15318 # include <limits.h>
15319 #else
15320 # include <assert.h>
15321 #endif
15322
15323 #undef $ac_func
15324
15325 /* Override any gcc2 internal prototype to avoid an error. */
15326 #ifdef __cplusplus
15327 extern "C"
15328 {
15329 #endif
15330 /* We use char because int might match the return type of a gcc2
15331 builtin and then its argument prototype would still apply. */
15332 char $ac_func ();
15333 /* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15337 choke me
15338 #else
15339 char (*f) () = $ac_func;
15340 #endif
15341 #ifdef __cplusplus
15342 }
15343 #endif
15344
15345 int
15346 main ()
15347 {
15348 return f != $ac_func;
15349 ;
15350 return 0;
15351 }
15352 _ACEOF
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 (eval $ac_link) 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try='test -s conftest$ac_exeext'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 eval "$as_ac_var=yes"
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379 eval "$as_ac_var=no"
15380 fi
15381 rm -f conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
15383 fi
15384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15386 if test `eval echo '${'$as_ac_var'}'` = yes; then
15387 cat >>confdefs.h <<_ACEOF
15388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15389 _ACEOF
15390
15391 fi
15392 done
15393
15394
15395 # Solaris has libkstat which does not require root.
15396
15397 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15398 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15399 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402 ac_check_lib_save_LIBS=$LIBS
15403 LIBS="-lkstat $LIBS"
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410
15411 /* Override any gcc2 internal prototype to avoid an error. */
15412 #ifdef __cplusplus
15413 extern "C"
15414 #endif
15415 /* We use char because int might match the return type of a gcc2
15416 builtin and then its argument prototype would still apply. */
15417 char kstat_open ();
15418 int
15419 main ()
15420 {
15421 kstat_open ();
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_lib_kstat_kstat_open=yes
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_cv_lib_kstat_kstat_open=no
15453 fi
15454 rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_lib_save_LIBS
15457 fi
15458 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15459 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15460 if test $ac_cv_lib_kstat_kstat_open = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_LIBKSTAT 1
15463 _ACEOF
15464
15465 LIBS="-lkstat $LIBS"
15466
15467 fi
15468
15469 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15470
15471 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15472 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15473 # to get the right answer into the cache.
15474 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15475 if test $ac_have_func = no; then
15476 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15477 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15478 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481 ac_check_lib_save_LIBS=$LIBS
15482 LIBS="-lelf $LIBS"
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489
15490 /* Override any gcc2 internal prototype to avoid an error. */
15491 #ifdef __cplusplus
15492 extern "C"
15493 #endif
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15496 char elf_begin ();
15497 int
15498 main ()
15499 {
15500 elf_begin ();
15501 ;
15502 return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest$ac_exeext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_cv_lib_elf_elf_begin=yes
15527 else
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_cv_lib_elf_elf_begin=no
15532 fi
15533 rm -f conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15535 LIBS=$ac_check_lib_save_LIBS
15536 fi
15537 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15538 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15539 if test $ac_cv_lib_elf_elf_begin = yes; then
15540 LIBS="-lelf $LIBS"
15541 fi
15542
15543 fi
15544 if test $ac_have_func = no; then
15545 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15546 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15547 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550 ac_check_lib_save_LIBS=$LIBS
15551 LIBS="-lkvm $LIBS"
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558
15559 /* Override any gcc2 internal prototype to avoid an error. */
15560 #ifdef __cplusplus
15561 extern "C"
15562 #endif
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15565 char kvm_open ();
15566 int
15567 main ()
15568 {
15569 kvm_open ();
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 rm -f conftest.$ac_objext conftest$ac_exeext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15576 (eval $ac_link) 2>conftest.er1
15577 ac_status=$?
15578 grep -v '^ *+' conftest.er1 >conftest.err
15579 rm -f conftest.er1
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_lib_kvm_kvm_open=yes
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_cv_lib_kvm_kvm_open=no
15601 fi
15602 rm -f conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_check_lib_save_LIBS
15605 fi
15606 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15607 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15608 if test $ac_cv_lib_kvm_kvm_open = yes; then
15609 LIBS="-lkvm $LIBS"
15610 fi
15611
15612 # Check for the 4.4BSD definition of getloadavg.
15613 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15614 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15615 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618 ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-lutil $LIBS"
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626
15627 /* Override any gcc2 internal prototype to avoid an error. */
15628 #ifdef __cplusplus
15629 extern "C"
15630 #endif
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15633 char getloadavg ();
15634 int
15635 main ()
15636 {
15637 getloadavg ();
15638 ;
15639 return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_lib_util_getloadavg=yes
15664 else
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 ac_cv_lib_util_getloadavg=no
15669 fi
15670 rm -f conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 LIBS=$ac_check_lib_save_LIBS
15673 fi
15674 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15675 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15676 if test $ac_cv_lib_util_getloadavg = yes; then
15677 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15678 fi
15679
15680 fi
15681
15682 if test $ac_have_func = no; then
15683 # There is a commonly available library for RS/6000 AIX.
15684 # Since it is not a standard part of AIX, it might be installed locally.
15685 ac_getloadavg_LIBS=$LIBS
15686 LIBS="-L/usr/local/lib $LIBS"
15687 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15688 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15689 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692 ac_check_lib_save_LIBS=$LIBS
15693 LIBS="-lgetloadavg $LIBS"
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h. */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700
15701 /* Override any gcc2 internal prototype to avoid an error. */
15702 #ifdef __cplusplus
15703 extern "C"
15704 #endif
15705 /* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707 char getloadavg ();
15708 int
15709 main ()
15710 {
15711 getloadavg ();
15712 ;
15713 return 0;
15714 }
15715 _ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_getloadavg_getloadavg=yes
15738 else
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 ac_cv_lib_getloadavg_getloadavg=no
15743 fi
15744 rm -f conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15747 fi
15748 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15749 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15750 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15751 LIBS="-lgetloadavg $LIBS"
15752 else
15753 LIBS=$ac_getloadavg_LIBS
15754 fi
15755
15756 fi
15757
15758 # Make sure it is really in the library, if we think we found it,
15759 # otherwise set up the replacement function.
15760
15761 for ac_func in getloadavg
15762 do
15763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764 echo "$as_me:$LINENO: checking for $ac_func" >&5
15765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_var+set}\" = set"; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15777 #define $ac_func innocuous_$ac_func
15778
15779 /* System header to define __stub macros and hopefully few prototypes,
15780 which can conflict with char $ac_func (); below.
15781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 <limits.h> exists even on freestanding compilers. */
15783
15784 #ifdef __STDC__
15785 # include <limits.h>
15786 #else
15787 # include <assert.h>
15788 #endif
15789
15790 #undef $ac_func
15791
15792 /* Override any gcc2 internal prototype to avoid an error. */
15793 #ifdef __cplusplus
15794 extern "C"
15795 {
15796 #endif
15797 /* We use char because int might match the return type of a gcc2
15798 builtin and then its argument prototype would still apply. */
15799 char $ac_func ();
15800 /* The GNU C library defines this for functions which it implements
15801 to always fail with ENOSYS. Some functions are actually named
15802 something starting with __ and the normal name is an alias. */
15803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15804 choke me
15805 #else
15806 char (*f) () = $ac_func;
15807 #endif
15808 #ifdef __cplusplus
15809 }
15810 #endif
15811
15812 int
15813 main ()
15814 {
15815 return f != $ac_func;
15816 ;
15817 return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15822 (eval $ac_link) 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest$ac_exeext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 eval "$as_ac_var=yes"
15842 else
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 eval "$as_ac_var=no"
15847 fi
15848 rm -f conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850 fi
15851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15853 if test `eval echo '${'$as_ac_var'}'` = yes; then
15854 cat >>confdefs.h <<_ACEOF
15855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15856 _ACEOF
15857
15858 else
15859 case $LIBOBJS in
15860 "getloadavg.$ac_objext" | \
15861 *" getloadavg.$ac_objext" | \
15862 "getloadavg.$ac_objext "* | \
15863 *" getloadavg.$ac_objext "* ) ;;
15864 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15865 esac
15866
15867
15868 cat >>confdefs.h <<\_ACEOF
15869 #define C_GETLOADAVG 1
15870 _ACEOF
15871
15872 # Figure out what our getloadavg.c needs.
15873 ac_have_func=no
15874 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15875 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15876 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15877 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 fi
15880 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15881 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15882 else
15883 # Is the header compilable?
15884 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15885 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <sys/dg_sys_info.h>
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_header_compiler=yes
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_compiler=no
15922 fi
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15926
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15929 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <sys/dg_sys_info.h>
15937 _ACEOF
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } >/dev/null; then
15946 if test -s conftest.err; then
15947 ac_cpp_err=$ac_c_preproc_warn_flag
15948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15949 else
15950 ac_cpp_err=
15951 fi
15952 else
15953 ac_cpp_err=yes
15954 fi
15955 if test -z "$ac_cpp_err"; then
15956 ac_header_preproc=yes
15957 else
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_header_preproc=no
15962 fi
15963 rm -f conftest.err conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15965 echo "${ECHO_T}$ac_header_preproc" >&6
15966
15967 # So? What about this header?
15968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15969 yes:no: )
15970 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15971 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15973 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15974 ac_header_preproc=yes
15975 ;;
15976 no:yes:* )
15977 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15978 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15980 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15982 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15984 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15986 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15988 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15989 (
15990 cat <<\_ASBOX
15991 ## ------------------------------------------ ##
15992 ## Report this to the AC_PACKAGE_NAME lists. ##
15993 ## ------------------------------------------ ##
15994 _ASBOX
15995 ) |
15996 sed "s/^/$as_me: WARNING: /" >&2
15997 ;;
15998 esac
15999 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16000 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16001 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16005 fi
16006 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16007 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16008
16009 fi
16010 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16011 ac_have_func=yes
16012
16013 cat >>confdefs.h <<\_ACEOF
16014 #define DGUX 1
16015 _ACEOF
16016
16017
16018 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16019 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16020 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023 ac_check_lib_save_LIBS=$LIBS
16024 LIBS="-ldgc $LIBS"
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031
16032 /* Override any gcc2 internal prototype to avoid an error. */
16033 #ifdef __cplusplus
16034 extern "C"
16035 #endif
16036 /* We use char because int might match the return type of a gcc2
16037 builtin and then its argument prototype would still apply. */
16038 char dg_sys_info ();
16039 int
16040 main ()
16041 {
16042 dg_sys_info ();
16043 ;
16044 return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest$ac_exeext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_cv_lib_dgc_dg_sys_info=yes
16069 else
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16072
16073 ac_cv_lib_dgc_dg_sys_info=no
16074 fi
16075 rm -f conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16078 fi
16079 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16080 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16081 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_LIBDGC 1
16084 _ACEOF
16085
16086 LIBS="-ldgc $LIBS"
16087
16088 fi
16089
16090 fi
16091
16092
16093
16094 if test "${ac_cv_header_locale_h+set}" = set; then
16095 echo "$as_me:$LINENO: checking for locale.h" >&5
16096 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16097 if test "${ac_cv_header_locale_h+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 fi
16100 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16101 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16102 else
16103 # Is the header compilable?
16104 echo "$as_me:$LINENO: checking locale.h usability" >&5
16105 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 $ac_includes_default
16113 #include <locale.h>
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_header_compiler=yes
16137 else
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_header_compiler=no
16142 fi
16143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6
16146
16147 # Is the header present?
16148 echo "$as_me:$LINENO: checking locale.h presence" >&5
16149 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <locale.h>
16157 _ACEOF
16158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } >/dev/null; then
16166 if test -s conftest.err; then
16167 ac_cpp_err=$ac_c_preproc_warn_flag
16168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16169 else
16170 ac_cpp_err=
16171 fi
16172 else
16173 ac_cpp_err=yes
16174 fi
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 ac_header_preproc=no
16182 fi
16183 rm -f conftest.err conftest.$ac_ext
16184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185 echo "${ECHO_T}$ac_header_preproc" >&6
16186
16187 # So? What about this header?
16188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16189 yes:no: )
16190 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16191 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16193 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16194 ac_header_preproc=yes
16195 ;;
16196 no:yes:* )
16197 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16198 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16200 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16201 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16202 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16204 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16206 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16208 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16209 (
16210 cat <<\_ASBOX
16211 ## ------------------------------------------ ##
16212 ## Report this to the AC_PACKAGE_NAME lists. ##
16213 ## ------------------------------------------ ##
16214 _ASBOX
16215 ) |
16216 sed "s/^/$as_me: WARNING: /" >&2
16217 ;;
16218 esac
16219 echo "$as_me:$LINENO: checking for locale.h" >&5
16220 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16221 if test "${ac_cv_header_locale_h+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224 ac_cv_header_locale_h=$ac_header_preproc
16225 fi
16226 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16227 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16228
16229 fi
16230
16231
16232
16233 for ac_func in setlocale
16234 do
16235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16236 echo "$as_me:$LINENO: checking for $ac_func" >&5
16237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16238 if eval "test \"\${$as_ac_var+set}\" = set"; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16249 #define $ac_func innocuous_$ac_func
16250
16251 /* System header to define __stub macros and hopefully few prototypes,
16252 which can conflict with char $ac_func (); below.
16253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16254 <limits.h> exists even on freestanding compilers. */
16255
16256 #ifdef __STDC__
16257 # include <limits.h>
16258 #else
16259 # include <assert.h>
16260 #endif
16261
16262 #undef $ac_func
16263
16264 /* Override any gcc2 internal prototype to avoid an error. */
16265 #ifdef __cplusplus
16266 extern "C"
16267 {
16268 #endif
16269 /* We use char because int might match the return type of a gcc2
16270 builtin and then its argument prototype would still apply. */
16271 char $ac_func ();
16272 /* The GNU C library defines this for functions which it implements
16273 to always fail with ENOSYS. Some functions are actually named
16274 something starting with __ and the normal name is an alias. */
16275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16276 choke me
16277 #else
16278 char (*f) () = $ac_func;
16279 #endif
16280 #ifdef __cplusplus
16281 }
16282 #endif
16283
16284 int
16285 main ()
16286 {
16287 return f != $ac_func;
16288 ;
16289 return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext conftest$ac_exeext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 eval "$as_ac_var=no"
16319 fi
16320 rm -f conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16322 fi
16323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16325 if test `eval echo '${'$as_ac_var'}'` = yes; then
16326 cat >>confdefs.h <<_ACEOF
16327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16328 _ACEOF
16329
16330 fi
16331 done
16332
16333
16334 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16335 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16336 # Irix 4.0.5F has the header but not the library.
16337 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16338 ac_have_func=yes
16339
16340 cat >>confdefs.h <<\_ACEOF
16341 #define SVR4 1
16342 _ACEOF
16343
16344 fi
16345
16346 if test $ac_have_func = no; then
16347 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16348 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16349 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16350 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 fi
16353 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16354 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16355 else
16356 # Is the header compilable?
16357 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16358 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h. */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 $ac_includes_default
16366 #include <inq_stats/cpustats.h>
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16370 (eval $ac_compile) 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest.$ac_objext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_header_compiler=yes
16390 else
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 ac_header_compiler=no
16395 fi
16396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16398 echo "${ECHO_T}$ac_header_compiler" >&6
16399
16400 # Is the header present?
16401 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16402 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 #include <inq_stats/cpustats.h>
16410 _ACEOF
16411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } >/dev/null; then
16419 if test -s conftest.err; then
16420 ac_cpp_err=$ac_c_preproc_warn_flag
16421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16422 else
16423 ac_cpp_err=
16424 fi
16425 else
16426 ac_cpp_err=yes
16427 fi
16428 if test -z "$ac_cpp_err"; then
16429 ac_header_preproc=yes
16430 else
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16433
16434 ac_header_preproc=no
16435 fi
16436 rm -f conftest.err conftest.$ac_ext
16437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6
16439
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442 yes:no: )
16443 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
16448 ;;
16449 no:yes:* )
16450 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16462 (
16463 cat <<\_ASBOX
16464 ## ------------------------------------------ ##
16465 ## Report this to the AC_PACKAGE_NAME lists. ##
16466 ## ------------------------------------------ ##
16467 _ASBOX
16468 ) |
16469 sed "s/^/$as_me: WARNING: /" >&2
16470 ;;
16471 esac
16472 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16473 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16474 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16478 fi
16479 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16480 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16481
16482 fi
16483 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16484 ac_have_func=yes
16485
16486 cat >>confdefs.h <<\_ACEOF
16487 #define UMAX 1
16488 _ACEOF
16489
16490
16491 cat >>confdefs.h <<\_ACEOF
16492 #define UMAX4_3 1
16493 _ACEOF
16494
16495 fi
16496
16497
16498 fi
16499
16500 if test $ac_have_func = no; then
16501 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16502 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16503 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16504 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 fi
16507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16508 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16509 else
16510 # Is the header compilable?
16511 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16512 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h. */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 $ac_includes_default
16520 #include <sys/cpustats.h>
16521 _ACEOF
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest.$ac_objext'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_header_compiler=yes
16544 else
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 ac_header_compiler=no
16549 fi
16550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6
16553
16554 # Is the header present?
16555 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16556 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <sys/cpustats.h>
16564 _ACEOF
16565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } >/dev/null; then
16573 if test -s conftest.err; then
16574 ac_cpp_err=$ac_c_preproc_warn_flag
16575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16576 else
16577 ac_cpp_err=
16578 fi
16579 else
16580 ac_cpp_err=yes
16581 fi
16582 if test -z "$ac_cpp_err"; then
16583 ac_header_preproc=yes
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 ac_header_preproc=no
16589 fi
16590 rm -f conftest.err conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16592 echo "${ECHO_T}$ac_header_preproc" >&6
16593
16594 # So? What about this header?
16595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16596 yes:no: )
16597 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16598 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16599 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16600 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16601 ac_header_preproc=yes
16602 ;;
16603 no:yes:* )
16604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16605 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16607 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16609 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16611 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16613 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16615 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16616 (
16617 cat <<\_ASBOX
16618 ## ------------------------------------------ ##
16619 ## Report this to the AC_PACKAGE_NAME lists. ##
16620 ## ------------------------------------------ ##
16621 _ASBOX
16622 ) |
16623 sed "s/^/$as_me: WARNING: /" >&2
16624 ;;
16625 esac
16626 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16627 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16628 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16632 fi
16633 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16634 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16635
16636 fi
16637 if test $ac_cv_header_sys_cpustats_h = yes; then
16638 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16639 #define UMAX 1
16640 _ACEOF
16641
16642 fi
16643
16644
16645 fi
16646
16647 if test $ac_have_func = no; then
16648
16649 for ac_header in mach/mach.h
16650 do
16651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16653 echo "$as_me:$LINENO: checking for $ac_header" >&5
16654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 fi
16658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16660 else
16661 # Is the header compilable?
16662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <$ac_header>
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_header_compiler=yes
16695 else
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 ac_header_compiler=no
16700 fi
16701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16703 echo "${ECHO_T}$ac_header_compiler" >&6
16704
16705 # Is the header present?
16706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <$ac_header>
16715 _ACEOF
16716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } >/dev/null; then
16724 if test -s conftest.err; then
16725 ac_cpp_err=$ac_c_preproc_warn_flag
16726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16727 else
16728 ac_cpp_err=
16729 fi
16730 else
16731 ac_cpp_err=yes
16732 fi
16733 if test -z "$ac_cpp_err"; then
16734 ac_header_preproc=yes
16735 else
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739 ac_header_preproc=no
16740 fi
16741 rm -f conftest.err conftest.$ac_ext
16742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16743 echo "${ECHO_T}$ac_header_preproc" >&6
16744
16745 # So? What about this header?
16746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16747 yes:no: )
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16752 ac_header_preproc=yes
16753 ;;
16754 no:yes:* )
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16767 (
16768 cat <<\_ASBOX
16769 ## ------------------------------------------ ##
16770 ## Report this to the AC_PACKAGE_NAME lists. ##
16771 ## ------------------------------------------ ##
16772 _ASBOX
16773 ) |
16774 sed "s/^/$as_me: WARNING: /" >&2
16775 ;;
16776 esac
16777 echo "$as_me:$LINENO: checking for $ac_header" >&5
16778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782 eval "$as_ac_Header=\$ac_header_preproc"
16783 fi
16784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16786
16787 fi
16788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16791 _ACEOF
16792
16793 fi
16794
16795 done
16796
16797 fi
16798
16799
16800 for ac_header in nlist.h
16801 do
16802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16804 echo "$as_me:$LINENO: checking for $ac_header" >&5
16805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 fi
16809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16811 else
16812 # Is the header compilable?
16813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 #include <$ac_header>
16823 _ACEOF
16824 rm -f conftest.$ac_objext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16826 (eval $ac_compile) 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler=yes
16846 else
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 ac_header_compiler=no
16851 fi
16852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16854 echo "${ECHO_T}$ac_header_compiler" >&6
16855
16856 # Is the header present?
16857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <$ac_header>
16866 _ACEOF
16867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } >/dev/null; then
16875 if test -s conftest.err; then
16876 ac_cpp_err=$ac_c_preproc_warn_flag
16877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16878 else
16879 ac_cpp_err=
16880 fi
16881 else
16882 ac_cpp_err=yes
16883 fi
16884 if test -z "$ac_cpp_err"; then
16885 ac_header_preproc=yes
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_header_preproc=no
16891 fi
16892 rm -f conftest.err conftest.$ac_ext
16893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16894 echo "${ECHO_T}$ac_header_preproc" >&6
16895
16896 # So? What about this header?
16897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16898 yes:no: )
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16903 ac_header_preproc=yes
16904 ;;
16905 no:yes:* )
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16918 (
16919 cat <<\_ASBOX
16920 ## ------------------------------------------ ##
16921 ## Report this to the AC_PACKAGE_NAME lists. ##
16922 ## ------------------------------------------ ##
16923 _ASBOX
16924 ) |
16925 sed "s/^/$as_me: WARNING: /" >&2
16926 ;;
16927 esac
16928 echo "$as_me:$LINENO: checking for $ac_header" >&5
16929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 eval "$as_ac_Header=\$ac_header_preproc"
16934 fi
16935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16937
16938 fi
16939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16942 _ACEOF
16943 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16944 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16945 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 #include <nlist.h>
16955
16956 int
16957 main ()
16958 {
16959 static struct nlist ac_aggr;
16960 if (ac_aggr.n_un.n_name)
16961 return 0;
16962 ;
16963 return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_member_struct_nlist_n_un_n_name=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h. */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <nlist.h>
16999
17000 int
17001 main ()
17002 {
17003 static struct nlist ac_aggr;
17004 if (sizeof ac_aggr.n_un.n_name)
17005 return 0;
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest.$ac_objext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_member_struct_nlist_n_un_n_name=yes
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_cv_member_struct_nlist_n_un_n_name=no
17037 fi
17038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17039 fi
17040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17041 fi
17042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17043 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17044 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17045
17046 cat >>confdefs.h <<_ACEOF
17047 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17048 _ACEOF
17049
17050
17051 cat >>confdefs.h <<\_ACEOF
17052 #define NLIST_NAME_UNION 1
17053 _ACEOF
17054
17055 fi
17056
17057
17058 fi
17059
17060 done
17061
17062 fi
17063 done
17064
17065
17066 # Some definitions of getloadavg require that the program be installed setgid.
17067 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17068 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17069 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17079 #ifdef LDAV_PRIVILEGED
17080 Yowza Am I SETGID yet
17081 #endif
17082 _ACEOF
17083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17084 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17085 ac_cv_func_getloadavg_setgid=yes
17086 else
17087 ac_cv_func_getloadavg_setgid=no
17088 fi
17089 rm -f conftest*
17090
17091 fi
17092 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17093 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17094 if test $ac_cv_func_getloadavg_setgid = yes; then
17095 NEED_SETGID=true
17096
17097 cat >>confdefs.h <<\_ACEOF
17098 #define GETLOADAVG_PRIVILEGED 1
17099 _ACEOF
17100
17101 else
17102 NEED_SETGID=false
17103 fi
17104
17105 if test $ac_cv_func_getloadavg_setgid = yes; then
17106 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17107 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17108 if test "${ac_cv_group_kmem+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17112 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17113 # If we got an error (system does not support symlinks), try without -L.
17114 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17115 ac_cv_group_kmem=`echo $ac_ls_output \
17116 | sed -ne 's/[ ][ ]*/ /g;
17117 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17118 / /s/.* //;p;'`
17119
17120 fi
17121 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17122 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17123 KMEM_GROUP=$ac_cv_group_kmem
17124 fi
17125 if test "x$ac_save_LIBS" = x; then
17126 GETLOADAVG_LIBS=$LIBS
17127 else
17128 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17129 fi
17130 LIBS=$ac_save_LIBS
17131
17132
17133
17134 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17135 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17136 if test "${ac_cv_sys_largefile_source+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139 while :; do
17140 ac_cv_sys_largefile_source=no
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 #include <stdio.h>
17148 int
17149 main ()
17150 {
17151 return !fseeko;
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 break
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 fi
17183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 #define _LARGEFILE_SOURCE 1
17191 #include <stdio.h>
17192 int
17193 main ()
17194 {
17195 return !fseeko;
17196 ;
17197 return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17202 (eval $ac_compile) 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest.$ac_objext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_sys_largefile_source=1; break
17222 else
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226 fi
17227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17228 break
17229 done
17230 fi
17231 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17232 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17233 if test "$ac_cv_sys_largefile_source" != no; then
17234
17235 cat >>confdefs.h <<_ACEOF
17236 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17237 _ACEOF
17238
17239 fi
17240 rm -f conftest*
17241
17242 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17243 # in glibc 2.1.3, but that breaks too many other things.
17244 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17245 echo "$as_me:$LINENO: checking for fseeko" >&5
17246 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17247 if test "${ac_cv_func_fseeko+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include <stdio.h>
17257 int
17258 main ()
17259 {
17260 return fseeko && fseeko (stdin, 0, 0);
17261 ;
17262 return 0;
17263 }
17264 _ACEOF
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17267 (eval $ac_link) 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try='test -s conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_func_fseeko=yes
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 ac_cv_func_fseeko=no
17292 fi
17293 rm -f conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17295 fi
17296 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17297 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17298 if test $ac_cv_func_fseeko = yes; then
17299
17300 cat >>confdefs.h <<\_ACEOF
17301 #define HAVE_FSEEKO 1
17302 _ACEOF
17303
17304 fi
17305
17306
17307 # Configure getopt.
17308 # getopt.m4 serial 10
17309
17310 # The getopt module assume you want GNU getopt, with getopt_long etc,
17311 # rather than vanilla POSIX getopt. This means your your code should
17312 # always include <getopt.h> for the getopt prototypes.
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324 # Prerequisites of lib/getopt*.
17325
17326
17327
17328
17329 GETOPT_H=
17330
17331 for ac_header in getopt.h
17332 do
17333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17335 echo "$as_me:$LINENO: checking for $ac_header" >&5
17336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 fi
17340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17342 else
17343 # Is the header compilable?
17344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17346 cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h. */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 $ac_includes_default
17353 #include <$ac_header>
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>conftest.er1
17358 ac_status=$?
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_header_compiler=yes
17377 else
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 ac_header_compiler=no
17382 fi
17383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17385 echo "${ECHO_T}$ac_header_compiler" >&6
17386
17387 # Is the header present?
17388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 #include <$ac_header>
17397 _ACEOF
17398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } >/dev/null; then
17406 if test -s conftest.err; then
17407 ac_cpp_err=$ac_c_preproc_warn_flag
17408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17409 else
17410 ac_cpp_err=
17411 fi
17412 else
17413 ac_cpp_err=yes
17414 fi
17415 if test -z "$ac_cpp_err"; then
17416 ac_header_preproc=yes
17417 else
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_header_preproc=no
17422 fi
17423 rm -f conftest.err conftest.$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17425 echo "${ECHO_T}$ac_header_preproc" >&6
17426
17427 # So? What about this header?
17428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17429 yes:no: )
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17434 ac_header_preproc=yes
17435 ;;
17436 no:yes:* )
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17449 (
17450 cat <<\_ASBOX
17451 ## ------------------------------------------ ##
17452 ## Report this to the AC_PACKAGE_NAME lists. ##
17453 ## ------------------------------------------ ##
17454 _ASBOX
17455 ) |
17456 sed "s/^/$as_me: WARNING: /" >&2
17457 ;;
17458 esac
17459 echo "$as_me:$LINENO: checking for $ac_header" >&5
17460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 eval "$as_ac_Header=\$ac_header_preproc"
17465 fi
17466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17468
17469 fi
17470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17473 _ACEOF
17474
17475 else
17476 GETOPT_H=getopt.h
17477 fi
17478
17479 done
17480
17481 if test -z "$GETOPT_H"; then
17482
17483 for ac_func in getopt_long_only
17484 do
17485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17488 if eval "test \"\${$as_ac_var+set}\" = set"; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17500
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17505
17506 #ifdef __STDC__
17507 # include <limits.h>
17508 #else
17509 # include <assert.h>
17510 #endif
17511
17512 #undef $ac_func
17513
17514 /* Override any gcc2 internal prototype to avoid an error. */
17515 #ifdef __cplusplus
17516 extern "C"
17517 {
17518 #endif
17519 /* We use char because int might match the return type of a gcc2
17520 builtin and then its argument prototype would still apply. */
17521 char $ac_func ();
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17526 choke me
17527 #else
17528 char (*f) () = $ac_func;
17529 #endif
17530 #ifdef __cplusplus
17531 }
17532 #endif
17533
17534 int
17535 main ()
17536 {
17537 return f != $ac_func;
17538 ;
17539 return 0;
17540 }
17541 _ACEOF
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17544 (eval $ac_link) 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 eval "$as_ac_var=yes"
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568 eval "$as_ac_var=no"
17569 fi
17570 rm -f conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17572 fi
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576 cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 _ACEOF
17579
17580 else
17581 GETOPT_H=getopt.h
17582 fi
17583 done
17584
17585 fi
17586
17587 if test -z "$GETOPT_H"; then
17588 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17589 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17590 if test "${ac_cv_have_decl_optreset+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 #include <getopt.h>
17600
17601 int
17602 main ()
17603 {
17604 #ifndef optreset
17605 char *p = (char *) optreset;
17606 #endif
17607
17608 ;
17609 return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17614 (eval $ac_compile) 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest.$ac_objext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_have_decl_optreset=yes
17634 else
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 ac_cv_have_decl_optreset=no
17639 fi
17640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17641 fi
17642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17643 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17644 if test $ac_cv_have_decl_optreset = yes; then
17645 GETOPT_H=getopt.h
17646 fi
17647
17648 fi
17649
17650 if test -z "$GETOPT_H"; then
17651 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17652 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17653 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656 if test "$cross_compiling" = yes; then
17657 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17658 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17659 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h. */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 #include <getopt.h>
17669
17670 int
17671 main ()
17672 {
17673 #ifndef getopt_clip
17674 char *p = (char *) getopt_clip;
17675 #endif
17676
17677 ;
17678 return 0;
17679 }
17680 _ACEOF
17681 rm -f conftest.$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683 (eval $ac_compile) 2>conftest.er1
17684 ac_status=$?
17685 grep -v '^ *+' conftest.er1 >conftest.err
17686 rm -f conftest.er1
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest.$ac_objext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 ac_cv_have_decl_getopt_clip=yes
17703 else
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 ac_cv_have_decl_getopt_clip=no
17708 fi
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 fi
17711 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17712 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17713 if test $ac_cv_have_decl_getopt_clip = yes; then
17714 gl_cv_func_gnu_getopt=no
17715 else
17716 gl_cv_func_gnu_getopt=yes
17717 fi
17718
17719 else
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <getopt.h>
17727 int
17728 main ()
17729 {
17730
17731 char *myargv[3];
17732 myargv[0] = "conftest";
17733 myargv[1] = "-+";
17734 myargv[2] = 0;
17735 return getopt (2, myargv, "+a") != '?';
17736
17737 ;
17738 return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 gl_cv_func_gnu_getopt=yes
17753 else
17754 echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 ( exit $ac_status )
17759 gl_cv_func_gnu_getopt=no
17760 fi
17761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17762 fi
17763 fi
17764 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17765 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17766 if test "$gl_cv_func_gnu_getopt" = "no"; then
17767 GETOPT_H=getopt.h
17768 fi
17769 fi
17770
17771
17772
17773 if test -n "$GETOPT_H"; then
17774
17775
17776 GETOPT_H=getopt.h
17777
17778 cat >>confdefs.h <<\_ACEOF
17779 #define __GETOPT_PREFIX rpl_
17780 _ACEOF
17781
17782
17783
17784 :
17785 GETOPTOBJS='getopt.o getopt1.o'
17786
17787 fi
17788
17789
17790
17791
17792 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17793 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17794 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797 # Use it with a single arg.
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17805 int
17806 main ()
17807 {
17808 getpgrp (0);
17809 ;
17810 return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest.$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 (eval $ac_compile) 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_func_getpgrp_void=no
17835 else
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 ac_cv_func_getpgrp_void=yes
17840 fi
17841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17842
17843 fi
17844 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17845 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17846 if test $ac_cv_func_getpgrp_void = yes; then
17847
17848 cat >>confdefs.h <<\_ACEOF
17849 #define GETPGRP_VOID 1
17850 _ACEOF
17851
17852 fi
17853
17854
17855
17856 for ac_func in strftime
17857 do
17858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17859 echo "$as_me:$LINENO: checking for $ac_func" >&5
17860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17861 if eval "test \"\${$as_ac_var+set}\" = set"; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h. */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17872 #define $ac_func innocuous_$ac_func
17873
17874 /* System header to define __stub macros and hopefully few prototypes,
17875 which can conflict with char $ac_func (); below.
17876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17877 <limits.h> exists even on freestanding compilers. */
17878
17879 #ifdef __STDC__
17880 # include <limits.h>
17881 #else
17882 # include <assert.h>
17883 #endif
17884
17885 #undef $ac_func
17886
17887 /* Override any gcc2 internal prototype to avoid an error. */
17888 #ifdef __cplusplus
17889 extern "C"
17890 {
17891 #endif
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17894 char $ac_func ();
17895 /* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17899 choke me
17900 #else
17901 char (*f) () = $ac_func;
17902 #endif
17903 #ifdef __cplusplus
17904 }
17905 #endif
17906
17907 int
17908 main ()
17909 {
17910 return f != $ac_func;
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917 (eval $ac_link) 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest$ac_exeext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 eval "$as_ac_var=yes"
17937 else
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 eval "$as_ac_var=no"
17942 fi
17943 rm -f conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945 fi
17946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17948 if test `eval echo '${'$as_ac_var'}'` = yes; then
17949 cat >>confdefs.h <<_ACEOF
17950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17951 _ACEOF
17952
17953 else
17954 # strftime is in -lintl on SCO UNIX.
17955 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17956 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17957 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 else
17960 ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-lintl $LIBS"
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h. */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968
17969 /* Override any gcc2 internal prototype to avoid an error. */
17970 #ifdef __cplusplus
17971 extern "C"
17972 #endif
17973 /* We use char because int might match the return type of a gcc2
17974 builtin and then its argument prototype would still apply. */
17975 char strftime ();
17976 int
17977 main ()
17978 {
17979 strftime ();
17980 ;
17981 return 0;
17982 }
17983 _ACEOF
17984 rm -f conftest.$ac_objext conftest$ac_exeext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986 (eval $ac_link) 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_lib_intl_strftime=yes
18006 else
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 ac_cv_lib_intl_strftime=no
18011 fi
18012 rm -f conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
18014 LIBS=$ac_check_lib_save_LIBS
18015 fi
18016 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18017 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18018 if test $ac_cv_lib_intl_strftime = yes; then
18019 cat >>confdefs.h <<\_ACEOF
18020 #define HAVE_STRFTIME 1
18021 _ACEOF
18022
18023 LIBS="-lintl $LIBS"
18024 fi
18025
18026 fi
18027 done
18028
18029
18030 # UNIX98 PTYs.
18031
18032 for ac_func in grantpt
18033 do
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18048 #define $ac_func innocuous_$ac_func
18049
18050 /* System header to define __stub macros and hopefully few prototypes,
18051 which can conflict with char $ac_func (); below.
18052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053 <limits.h> exists even on freestanding compilers. */
18054
18055 #ifdef __STDC__
18056 # include <limits.h>
18057 #else
18058 # include <assert.h>
18059 #endif
18060
18061 #undef $ac_func
18062
18063 /* Override any gcc2 internal prototype to avoid an error. */
18064 #ifdef __cplusplus
18065 extern "C"
18066 {
18067 #endif
18068 /* We use char because int might match the return type of a gcc2
18069 builtin and then its argument prototype would still apply. */
18070 char $ac_func ();
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18075 choke me
18076 #else
18077 char (*f) () = $ac_func;
18078 #endif
18079 #ifdef __cplusplus
18080 }
18081 #endif
18082
18083 int
18084 main ()
18085 {
18086 return f != $ac_func;
18087 ;
18088 return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 eval "$as_ac_var=yes"
18113 else
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18116
18117 eval "$as_ac_var=no"
18118 fi
18119 rm -f conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18121 fi
18122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18124 if test `eval echo '${'$as_ac_var'}'` = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18127 _ACEOF
18128
18129 fi
18130 done
18131
18132
18133 # PTY-related GNU extensions.
18134
18135 for ac_func in getpt
18136 do
18137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18138 echo "$as_me:$LINENO: checking for $ac_func" >&5
18139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18140 if eval "test \"\${$as_ac_var+set}\" = set"; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define $ac_func innocuous_$ac_func
18152
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char $ac_func (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18157
18158 #ifdef __STDC__
18159 # include <limits.h>
18160 #else
18161 # include <assert.h>
18162 #endif
18163
18164 #undef $ac_func
18165
18166 /* Override any gcc2 internal prototype to avoid an error. */
18167 #ifdef __cplusplus
18168 extern "C"
18169 {
18170 #endif
18171 /* We use char because int might match the return type of a gcc2
18172 builtin and then its argument prototype would still apply. */
18173 char $ac_func ();
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18178 choke me
18179 #else
18180 char (*f) () = $ac_func;
18181 #endif
18182 #ifdef __cplusplus
18183 }
18184 #endif
18185
18186 int
18187 main ()
18188 {
18189 return f != $ac_func;
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; } &&
18209 { ac_try='test -s conftest$ac_exeext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 eval "$as_ac_var=yes"
18216 else
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220 eval "$as_ac_var=no"
18221 fi
18222 rm -f conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18224 fi
18225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18227 if test `eval echo '${'$as_ac_var'}'` = yes; then
18228 cat >>confdefs.h <<_ACEOF
18229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18230 _ACEOF
18231
18232 fi
18233 done
18234
18235
18236 # Check this now, so that we will NOT find the above functions in ncurses.
18237 # That is because we have not set up to link ncurses in lib-src.
18238 # It's better to believe a function is not available
18239 # than to expect to find it in ncurses.
18240
18241 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18242 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18243 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246 ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lncurses $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254
18255 /* Override any gcc2 internal prototype to avoid an error. */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 /* We use char because int might match the return type of a gcc2
18260 builtin and then its argument prototype would still apply. */
18261 char tparm ();
18262 int
18263 main ()
18264 {
18265 tparm ();
18266 ;
18267 return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest$ac_exeext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_ncurses_tparm=yes
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ac_cv_lib_ncurses_tparm=no
18297 fi
18298 rm -f conftest.err conftest.$ac_objext \
18299 conftest$ac_exeext conftest.$ac_ext
18300 LIBS=$ac_check_lib_save_LIBS
18301 fi
18302 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18303 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18304 if test $ac_cv_lib_ncurses_tparm = yes; then
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_LIBNCURSES 1
18307 _ACEOF
18308
18309 LIBS="-lncurses $LIBS"
18310
18311 fi
18312
18313
18314 # Do we need the Hesiod library to provide the support routines?
18315 if test "$with_hesiod" = yes ; then
18316 # Don't set $LIBS here -- see comments above.
18317 resolv=no
18318 echo "$as_me:$LINENO: checking for res_send" >&5
18319 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18320 if test "${ac_cv_func_res_send+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18331 #define res_send innocuous_res_send
18332
18333 /* System header to define __stub macros and hopefully few prototypes,
18334 which can conflict with char res_send (); below.
18335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18336 <limits.h> exists even on freestanding compilers. */
18337
18338 #ifdef __STDC__
18339 # include <limits.h>
18340 #else
18341 # include <assert.h>
18342 #endif
18343
18344 #undef res_send
18345
18346 /* Override any gcc2 internal prototype to avoid an error. */
18347 #ifdef __cplusplus
18348 extern "C"
18349 {
18350 #endif
18351 /* We use char because int might match the return type of a gcc2
18352 builtin and then its argument prototype would still apply. */
18353 char res_send ();
18354 /* The GNU C library defines this for functions which it implements
18355 to always fail with ENOSYS. Some functions are actually named
18356 something starting with __ and the normal name is an alias. */
18357 #if defined (__stub_res_send) || defined (__stub___res_send)
18358 choke me
18359 #else
18360 char (*f) () = res_send;
18361 #endif
18362 #ifdef __cplusplus
18363 }
18364 #endif
18365
18366 int
18367 main ()
18368 {
18369 return f != res_send;
18370 ;
18371 return 0;
18372 }
18373 _ACEOF
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18376 (eval $ac_link) 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
18383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest$ac_exeext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_func_res_send=yes
18396 else
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_cv_func_res_send=no
18401 fi
18402 rm -f conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404 fi
18405 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18406 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18407 if test $ac_cv_func_res_send = yes; then
18408 :
18409 else
18410 echo "$as_me:$LINENO: checking for __res_send" >&5
18411 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18412 if test "${ac_cv_func___res_send+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18423 #define __res_send innocuous___res_send
18424
18425 /* System header to define __stub macros and hopefully few prototypes,
18426 which can conflict with char __res_send (); below.
18427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428 <limits.h> exists even on freestanding compilers. */
18429
18430 #ifdef __STDC__
18431 # include <limits.h>
18432 #else
18433 # include <assert.h>
18434 #endif
18435
18436 #undef __res_send
18437
18438 /* Override any gcc2 internal prototype to avoid an error. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 {
18442 #endif
18443 /* We use char because int might match the return type of a gcc2
18444 builtin and then its argument prototype would still apply. */
18445 char __res_send ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined (__stub___res_send) || defined (__stub_____res_send)
18450 choke me
18451 #else
18452 char (*f) () = __res_send;
18453 #endif
18454 #ifdef __cplusplus
18455 }
18456 #endif
18457
18458 int
18459 main ()
18460 {
18461 return f != __res_send;
18462 ;
18463 return 0;
18464 }
18465 _ACEOF
18466 rm -f conftest.$ac_objext conftest$ac_exeext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468 (eval $ac_link) 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_func___res_send=yes
18488 else
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 ac_cv_func___res_send=no
18493 fi
18494 rm -f conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 fi
18497 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18498 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18499 if test $ac_cv_func___res_send = yes; then
18500 :
18501 else
18502 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18503 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18504 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 ac_check_lib_save_LIBS=$LIBS
18508 LIBS="-lresolv $LIBS"
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515
18516 /* Override any gcc2 internal prototype to avoid an error. */
18517 #ifdef __cplusplus
18518 extern "C"
18519 #endif
18520 /* We use char because int might match the return type of a gcc2
18521 builtin and then its argument prototype would still apply. */
18522 char res_send ();
18523 int
18524 main ()
18525 {
18526 res_send ();
18527 ;
18528 return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_lib_resolv_res_send=yes
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 ac_cv_lib_resolv_res_send=no
18558 fi
18559 rm -f conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18561 LIBS=$ac_check_lib_save_LIBS
18562 fi
18563 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18564 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18565 if test $ac_cv_lib_resolv_res_send = yes; then
18566 resolv=yes
18567 else
18568 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18569 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18570 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573 ac_check_lib_save_LIBS=$LIBS
18574 LIBS="-lresolv $LIBS"
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581
18582 /* Override any gcc2 internal prototype to avoid an error. */
18583 #ifdef __cplusplus
18584 extern "C"
18585 #endif
18586 /* We use char because int might match the return type of a gcc2
18587 builtin and then its argument prototype would still apply. */
18588 char __res_send ();
18589 int
18590 main ()
18591 {
18592 __res_send ();
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18599 (eval $ac_link) 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_resolv___res_send=yes
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_cv_lib_resolv___res_send=no
18624 fi
18625 rm -f conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18630 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18631 if test $ac_cv_lib_resolv___res_send = yes; then
18632 resolv=yes
18633 fi
18634
18635 fi
18636
18637 fi
18638
18639 fi
18640
18641 if test "$resolv" = yes ; then
18642 RESOLVLIB=-lresolv
18643
18644 cat >>confdefs.h <<\_ACEOF
18645 #define HAVE_LIBRESOLV 1
18646 _ACEOF
18647
18648 else
18649 RESOLVLIB=
18650 fi
18651 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18652 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18653 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18664 #define hes_getmailhost innocuous_hes_getmailhost
18665
18666 /* System header to define __stub macros and hopefully few prototypes,
18667 which can conflict with char hes_getmailhost (); below.
18668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18669 <limits.h> exists even on freestanding compilers. */
18670
18671 #ifdef __STDC__
18672 # include <limits.h>
18673 #else
18674 # include <assert.h>
18675 #endif
18676
18677 #undef hes_getmailhost
18678
18679 /* Override any gcc2 internal prototype to avoid an error. */
18680 #ifdef __cplusplus
18681 extern "C"
18682 {
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 hes_getmailhost ();
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18691 choke me
18692 #else
18693 char (*f) () = hes_getmailhost;
18694 #endif
18695 #ifdef __cplusplus
18696 }
18697 #endif
18698
18699 int
18700 main ()
18701 {
18702 return f != hes_getmailhost;
18703 ;
18704 return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709 (eval $ac_link) 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest$ac_exeext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_func_hes_getmailhost=yes
18729 else
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18732
18733 ac_cv_func_hes_getmailhost=no
18734 fi
18735 rm -f conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737 fi
18738 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18739 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18740 if test $ac_cv_func_hes_getmailhost = yes; then
18741 :
18742 else
18743 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18744 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18745 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748 ac_check_lib_save_LIBS=$LIBS
18749 LIBS="-lhesiod $RESOLVLIB $LIBS"
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h. */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756
18757 /* Override any gcc2 internal prototype to avoid an error. */
18758 #ifdef __cplusplus
18759 extern "C"
18760 #endif
18761 /* We use char because int might match the return type of a gcc2
18762 builtin and then its argument prototype would still apply. */
18763 char hes_getmailhost ();
18764 int
18765 main ()
18766 {
18767 hes_getmailhost ();
18768 ;
18769 return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_hesiod_hes_getmailhost=yes
18794 else
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798 ac_cv_lib_hesiod_hes_getmailhost=no
18799 fi
18800 rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18803 fi
18804 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18805 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18806 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_LIBHESIOD 1
18810 _ACEOF
18811
18812 else
18813 :
18814 fi
18815
18816 fi
18817
18818 fi
18819
18820 # These tell us which Kerberos-related libraries to use.
18821 if test "${with_kerberos+set}" = set; then
18822
18823 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18824 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18825 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 ac_check_lib_save_LIBS=$LIBS
18829 LIBS="-lcom_err $LIBS"
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836
18837 /* Override any gcc2 internal prototype to avoid an error. */
18838 #ifdef __cplusplus
18839 extern "C"
18840 #endif
18841 /* We use char because int might match the return type of a gcc2
18842 builtin and then its argument prototype would still apply. */
18843 char com_err ();
18844 int
18845 main ()
18846 {
18847 com_err ();
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18854 (eval $ac_link) 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest$ac_exeext'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_lib_com_err_com_err=yes
18874 else
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ac_cv_lib_com_err_com_err=no
18879 fi
18880 rm -f conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18883 fi
18884 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18885 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18886 if test $ac_cv_lib_com_err_com_err = yes; then
18887 cat >>confdefs.h <<_ACEOF
18888 #define HAVE_LIBCOM_ERR 1
18889 _ACEOF
18890
18891 LIBS="-lcom_err $LIBS"
18892
18893 fi
18894
18895
18896 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18897 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18898 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901 ac_check_lib_save_LIBS=$LIBS
18902 LIBS="-lk5crypto $LIBS"
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h. */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909
18910 /* Override any gcc2 internal prototype to avoid an error. */
18911 #ifdef __cplusplus
18912 extern "C"
18913 #endif
18914 /* We use char because int might match the return type of a gcc2
18915 builtin and then its argument prototype would still apply. */
18916 char mit_des_cbc_encrypt ();
18917 int
18918 main ()
18919 {
18920 mit_des_cbc_encrypt ();
18921 ;
18922 return 0;
18923 }
18924 _ACEOF
18925 rm -f conftest.$ac_objext conftest$ac_exeext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18927 (eval $ac_link) 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18952 fi
18953 rm -f conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18956 fi
18957 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18958 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18959 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18960 cat >>confdefs.h <<_ACEOF
18961 #define HAVE_LIBK5CRYPTO 1
18962 _ACEOF
18963
18964 LIBS="-lk5crypto $LIBS"
18965
18966 fi
18967
18968
18969 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18970 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18971 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974 ac_check_lib_save_LIBS=$LIBS
18975 LIBS="-lcrypto $LIBS"
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982
18983 /* Override any gcc2 internal prototype to avoid an error. */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 /* We use char because int might match the return type of a gcc2
18988 builtin and then its argument prototype would still apply. */
18989 char mit_des_cbc_encrypt ();
18990 int
18991 main ()
18992 {
18993 mit_des_cbc_encrypt ();
18994 ;
18995 return 0;
18996 }
18997 _ACEOF
18998 rm -f conftest.$ac_objext conftest$ac_exeext
18999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19000 (eval $ac_link) 2>conftest.er1
19001 ac_status=$?
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest$ac_exeext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19020 else
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19025 fi
19026 rm -f conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 LIBS=$ac_check_lib_save_LIBS
19029 fi
19030 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19031 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19032 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19033 cat >>confdefs.h <<_ACEOF
19034 #define HAVE_LIBCRYPTO 1
19035 _ACEOF
19036
19037 LIBS="-lcrypto $LIBS"
19038
19039 fi
19040
19041
19042 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19043 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19044 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047 ac_check_lib_save_LIBS=$LIBS
19048 LIBS="-lkrb5 $LIBS"
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h. */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055
19056 /* Override any gcc2 internal prototype to avoid an error. */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 /* We use char because int might match the return type of a gcc2
19061 builtin and then its argument prototype would still apply. */
19062 char krb5_init_context ();
19063 int
19064 main ()
19065 {
19066 krb5_init_context ();
19067 ;
19068 return 0;
19069 }
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; } &&
19086 { ac_try='test -s conftest$ac_exeext'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 ac_cv_lib_krb5_krb5_init_context=yes
19093 else
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19096
19097 ac_cv_lib_krb5_krb5_init_context=no
19098 fi
19099 rm -f conftest.err conftest.$ac_objext \
19100 conftest$ac_exeext conftest.$ac_ext
19101 LIBS=$ac_check_lib_save_LIBS
19102 fi
19103 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19104 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19105 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19106 cat >>confdefs.h <<_ACEOF
19107 #define HAVE_LIBKRB5 1
19108 _ACEOF
19109
19110 LIBS="-lkrb5 $LIBS"
19111
19112 fi
19113
19114 if test "${with_kerberos5+set}" != set; then
19115
19116 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19117 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19118 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121 ac_check_lib_save_LIBS=$LIBS
19122 LIBS="-ldes425 $LIBS"
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129
19130 /* Override any gcc2 internal prototype to avoid an error. */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 /* We use char because int might match the return type of a gcc2
19135 builtin and then its argument prototype would still apply. */
19136 char des_cbc_encrypt ();
19137 int
19138 main ()
19139 {
19140 des_cbc_encrypt ();
19141 ;
19142 return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_lib_des425_des_cbc_encrypt=yes
19167 else
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 ac_cv_lib_des425_des_cbc_encrypt=no
19172 fi
19173 rm -f conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175 LIBS=$ac_check_lib_save_LIBS
19176 fi
19177 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19178 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19179 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19180 cat >>confdefs.h <<_ACEOF
19181 #define HAVE_LIBDES425 1
19182 _ACEOF
19183
19184 LIBS="-ldes425 $LIBS"
19185
19186 else
19187
19188 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19189 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19190 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 ac_check_lib_save_LIBS=$LIBS
19194 LIBS="-ldes $LIBS"
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201
19202 /* Override any gcc2 internal prototype to avoid an error. */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 /* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19208 char des_cbc_encrypt ();
19209 int
19210 main ()
19211 {
19212 des_cbc_encrypt ();
19213 ;
19214 return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_des_des_cbc_encrypt=yes
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_lib_des_des_cbc_encrypt=no
19244 fi
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19247 LIBS=$ac_check_lib_save_LIBS
19248 fi
19249 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19250 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19251 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19252 cat >>confdefs.h <<_ACEOF
19253 #define HAVE_LIBDES 1
19254 _ACEOF
19255
19256 LIBS="-ldes $LIBS"
19257
19258 fi
19259
19260 fi
19261
19262
19263 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19264 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19265 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 else
19268 ac_check_lib_save_LIBS=$LIBS
19269 LIBS="-lkrb4 $LIBS"
19270 cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h. */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276
19277 /* Override any gcc2 internal prototype to avoid an error. */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 /* We use char because int might match the return type of a gcc2
19282 builtin and then its argument prototype would still apply. */
19283 char krb_get_cred ();
19284 int
19285 main ()
19286 {
19287 krb_get_cred ();
19288 ;
19289 return 0;
19290 }
19291 _ACEOF
19292 rm -f conftest.$ac_objext conftest$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294 (eval $ac_link) 2>conftest.er1
19295 ac_status=$?
19296 grep -v '^ *+' conftest.er1 >conftest.err
19297 rm -f conftest.er1
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } &&
19301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest$ac_exeext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 ac_cv_lib_krb4_krb_get_cred=yes
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19317
19318 ac_cv_lib_krb4_krb_get_cred=no
19319 fi
19320 rm -f conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19323 fi
19324 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19325 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19326 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_LIBKRB4 1
19329 _ACEOF
19330
19331 LIBS="-lkrb4 $LIBS"
19332
19333 else
19334
19335 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19336 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19337 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-lkrb $LIBS"
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h. */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348
19349 /* Override any gcc2 internal prototype to avoid an error. */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 /* We use char because int might match the return type of a gcc2
19354 builtin and then its argument prototype would still apply. */
19355 char krb_get_cred ();
19356 int
19357 main ()
19358 {
19359 krb_get_cred ();
19360 ;
19361 return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19366 (eval $ac_link) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_lib_krb_krb_get_cred=yes
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 ac_cv_lib_krb_krb_get_cred=no
19391 fi
19392 rm -f conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19395 fi
19396 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19397 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19398 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19399 cat >>confdefs.h <<_ACEOF
19400 #define HAVE_LIBKRB 1
19401 _ACEOF
19402
19403 LIBS="-lkrb $LIBS"
19404
19405 fi
19406
19407 fi
19408
19409 fi
19410
19411 if test "${with_kerberos5+set}" = set; then
19412
19413 for ac_header in krb5.h
19414 do
19415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19417 echo "$as_me:$LINENO: checking for $ac_header" >&5
19418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 fi
19422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19424 else
19425 # Is the header compilable?
19426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h. */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434 $ac_includes_default
19435 #include <$ac_header>
19436 _ACEOF
19437 rm -f conftest.$ac_objext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19439 (eval $ac_compile) 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_header_compiler=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 ac_header_compiler=no
19464 fi
19465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19467 echo "${ECHO_T}$ac_header_compiler" >&6
19468
19469 # Is the header present?
19470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h. */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 #include <$ac_header>
19479 _ACEOF
19480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } >/dev/null; then
19488 if test -s conftest.err; then
19489 ac_cpp_err=$ac_c_preproc_warn_flag
19490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19491 else
19492 ac_cpp_err=
19493 fi
19494 else
19495 ac_cpp_err=yes
19496 fi
19497 if test -z "$ac_cpp_err"; then
19498 ac_header_preproc=yes
19499 else
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_header_preproc=no
19504 fi
19505 rm -f conftest.err conftest.$ac_ext
19506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19507 echo "${ECHO_T}$ac_header_preproc" >&6
19508
19509 # So? What about this header?
19510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19511 yes:no: )
19512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19516 ac_header_preproc=yes
19517 ;;
19518 no:yes:* )
19519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19531 (
19532 cat <<\_ASBOX
19533 ## ------------------------------------------ ##
19534 ## Report this to the AC_PACKAGE_NAME lists. ##
19535 ## ------------------------------------------ ##
19536 _ASBOX
19537 ) |
19538 sed "s/^/$as_me: WARNING: /" >&2
19539 ;;
19540 esac
19541 echo "$as_me:$LINENO: checking for $ac_header" >&5
19542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546 eval "$as_ac_Header=\$ac_header_preproc"
19547 fi
19548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19550
19551 fi
19552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19553 cat >>confdefs.h <<_ACEOF
19554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19555 _ACEOF
19556
19557 fi
19558
19559 done
19560
19561 else
19562
19563 for ac_header in des.h
19564 do
19565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567 echo "$as_me:$LINENO: checking for $ac_header" >&5
19568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 fi
19572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19574 else
19575 # Is the header compilable?
19576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19585 #include <$ac_header>
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_header_compiler=yes
19609 else
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_header_compiler=no
19614 fi
19615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617 echo "${ECHO_T}$ac_header_compiler" >&6
19618
19619 # Is the header present?
19620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h. */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 #include <$ac_header>
19629 _ACEOF
19630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } >/dev/null; then
19638 if test -s conftest.err; then
19639 ac_cpp_err=$ac_c_preproc_warn_flag
19640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19641 else
19642 ac_cpp_err=
19643 fi
19644 else
19645 ac_cpp_err=yes
19646 fi
19647 if test -z "$ac_cpp_err"; then
19648 ac_header_preproc=yes
19649 else
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_header_preproc=no
19654 fi
19655 rm -f conftest.err conftest.$ac_ext
19656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19657 echo "${ECHO_T}$ac_header_preproc" >&6
19658
19659 # So? What about this header?
19660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661 yes:no: )
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19666 ac_header_preproc=yes
19667 ;;
19668 no:yes:* )
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19681 (
19682 cat <<\_ASBOX
19683 ## ------------------------------------------ ##
19684 ## Report this to the AC_PACKAGE_NAME lists. ##
19685 ## ------------------------------------------ ##
19686 _ASBOX
19687 ) |
19688 sed "s/^/$as_me: WARNING: /" >&2
19689 ;;
19690 esac
19691 echo "$as_me:$LINENO: checking for $ac_header" >&5
19692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 eval "$as_ac_Header=\$ac_header_preproc"
19697 fi
19698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19700
19701 fi
19702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19703 cat >>confdefs.h <<_ACEOF
19704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19705 _ACEOF
19706
19707 else
19708
19709 for ac_header in kerberosIV/des.h
19710 do
19711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19713 echo "$as_me:$LINENO: checking for $ac_header" >&5
19714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 fi
19718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19720 else
19721 # Is the header compilable?
19722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h. */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 $ac_includes_default
19731 #include <$ac_header>
19732 _ACEOF
19733 rm -f conftest.$ac_objext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19735 (eval $ac_compile) 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_header_compiler=yes
19755 else
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 ac_header_compiler=no
19760 fi
19761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19763 echo "${ECHO_T}$ac_header_compiler" >&6
19764
19765 # Is the header present?
19766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 #include <$ac_header>
19775 _ACEOF
19776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } >/dev/null; then
19784 if test -s conftest.err; then
19785 ac_cpp_err=$ac_c_preproc_warn_flag
19786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19787 else
19788 ac_cpp_err=
19789 fi
19790 else
19791 ac_cpp_err=yes
19792 fi
19793 if test -z "$ac_cpp_err"; then
19794 ac_header_preproc=yes
19795 else
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ac_header_preproc=no
19800 fi
19801 rm -f conftest.err conftest.$ac_ext
19802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19803 echo "${ECHO_T}$ac_header_preproc" >&6
19804
19805 # So? What about this header?
19806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19807 yes:no: )
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19812 ac_header_preproc=yes
19813 ;;
19814 no:yes:* )
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19827 (
19828 cat <<\_ASBOX
19829 ## ------------------------------------------ ##
19830 ## Report this to the AC_PACKAGE_NAME lists. ##
19831 ## ------------------------------------------ ##
19832 _ASBOX
19833 ) |
19834 sed "s/^/$as_me: WARNING: /" >&2
19835 ;;
19836 esac
19837 echo "$as_me:$LINENO: checking for $ac_header" >&5
19838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842 eval "$as_ac_Header=\$ac_header_preproc"
19843 fi
19844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19846
19847 fi
19848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19851 _ACEOF
19852
19853 else
19854
19855 for ac_header in kerberos/des.h
19856 do
19857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19859 echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 fi
19864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19866 else
19867 # Is the header compilable?
19868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h. */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 $ac_includes_default
19877 #include <$ac_header>
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_header_compiler=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ac_header_compiler=no
19906 fi
19907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19909 echo "${ECHO_T}$ac_header_compiler" >&6
19910
19911 # Is the header present?
19912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <$ac_header>
19921 _ACEOF
19922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } >/dev/null; then
19930 if test -s conftest.err; then
19931 ac_cpp_err=$ac_c_preproc_warn_flag
19932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19933 else
19934 ac_cpp_err=
19935 fi
19936 else
19937 ac_cpp_err=yes
19938 fi
19939 if test -z "$ac_cpp_err"; then
19940 ac_header_preproc=yes
19941 else
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945 ac_header_preproc=no
19946 fi
19947 rm -f conftest.err conftest.$ac_ext
19948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19949 echo "${ECHO_T}$ac_header_preproc" >&6
19950
19951 # So? What about this header?
19952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19953 yes:no: )
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19958 ac_header_preproc=yes
19959 ;;
19960 no:yes:* )
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19973 (
19974 cat <<\_ASBOX
19975 ## ------------------------------------------ ##
19976 ## Report this to the AC_PACKAGE_NAME lists. ##
19977 ## ------------------------------------------ ##
19978 _ASBOX
19979 ) |
19980 sed "s/^/$as_me: WARNING: /" >&2
19981 ;;
19982 esac
19983 echo "$as_me:$LINENO: checking for $ac_header" >&5
19984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988 eval "$as_ac_Header=\$ac_header_preproc"
19989 fi
19990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19992
19993 fi
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19997 _ACEOF
19998
19999 fi
20000
20001 done
20002
20003 fi
20004
20005 done
20006
20007 fi
20008
20009 done
20010
20011
20012 for ac_header in krb.h
20013 do
20014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo "$as_me:$LINENO: checking for $ac_header" >&5
20017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 fi
20021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20023 else
20024 # Is the header compilable?
20025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h. */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 $ac_includes_default
20034 #include <$ac_header>
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_header_compiler=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_header_compiler=no
20063 fi
20064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20066 echo "${ECHO_T}$ac_header_compiler" >&6
20067
20068 # Is the header present?
20069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 #include <$ac_header>
20078 _ACEOF
20079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } >/dev/null; then
20087 if test -s conftest.err; then
20088 ac_cpp_err=$ac_c_preproc_warn_flag
20089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20090 else
20091 ac_cpp_err=
20092 fi
20093 else
20094 ac_cpp_err=yes
20095 fi
20096 if test -z "$ac_cpp_err"; then
20097 ac_header_preproc=yes
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20101
20102 ac_header_preproc=no
20103 fi
20104 rm -f conftest.err conftest.$ac_ext
20105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6
20107
20108 # So? What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20110 yes:no: )
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20115 ac_header_preproc=yes
20116 ;;
20117 no:yes:* )
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20130 (
20131 cat <<\_ASBOX
20132 ## ------------------------------------------ ##
20133 ## Report this to the AC_PACKAGE_NAME lists. ##
20134 ## ------------------------------------------ ##
20135 _ASBOX
20136 ) |
20137 sed "s/^/$as_me: WARNING: /" >&2
20138 ;;
20139 esac
20140 echo "$as_me:$LINENO: checking for $ac_header" >&5
20141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145 eval "$as_ac_Header=\$ac_header_preproc"
20146 fi
20147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20149
20150 fi
20151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20152 cat >>confdefs.h <<_ACEOF
20153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20154 _ACEOF
20155
20156 else
20157
20158 for ac_header in kerberosIV/krb.h
20159 do
20160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20162 echo "$as_me:$LINENO: checking for $ac_header" >&5
20163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 fi
20167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20169 else
20170 # Is the header compilable?
20171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 $ac_includes_default
20180 #include <$ac_header>
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184 (eval $ac_compile) 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 ac_header_compiler=yes
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208 ac_header_compiler=no
20209 fi
20210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20212 echo "${ECHO_T}$ac_header_compiler" >&6
20213
20214 # Is the header present?
20215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h. */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include <$ac_header>
20224 _ACEOF
20225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } >/dev/null; then
20233 if test -s conftest.err; then
20234 ac_cpp_err=$ac_c_preproc_warn_flag
20235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20236 else
20237 ac_cpp_err=
20238 fi
20239 else
20240 ac_cpp_err=yes
20241 fi
20242 if test -z "$ac_cpp_err"; then
20243 ac_header_preproc=yes
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_header_preproc=no
20249 fi
20250 rm -f conftest.err conftest.$ac_ext
20251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20252 echo "${ECHO_T}$ac_header_preproc" >&6
20253
20254 # So? What about this header?
20255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20256 yes:no: )
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20261 ac_header_preproc=yes
20262 ;;
20263 no:yes:* )
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20276 (
20277 cat <<\_ASBOX
20278 ## ------------------------------------------ ##
20279 ## Report this to the AC_PACKAGE_NAME lists. ##
20280 ## ------------------------------------------ ##
20281 _ASBOX
20282 ) |
20283 sed "s/^/$as_me: WARNING: /" >&2
20284 ;;
20285 esac
20286 echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 eval "$as_ac_Header=\$ac_header_preproc"
20292 fi
20293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20295
20296 fi
20297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20298 cat >>confdefs.h <<_ACEOF
20299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20300 _ACEOF
20301
20302 else
20303
20304 for ac_header in kerberos/krb.h
20305 do
20306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20308 echo "$as_me:$LINENO: checking for $ac_header" >&5
20309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 fi
20313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20315 else
20316 # Is the header compilable?
20317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 $ac_includes_default
20326 #include <$ac_header>
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20330 (eval $ac_compile) 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler=yes
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_header_compiler=no
20355 fi
20356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358 echo "${ECHO_T}$ac_header_compiler" >&6
20359
20360 # Is the header present?
20361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include <$ac_header>
20370 _ACEOF
20371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } >/dev/null; then
20379 if test -s conftest.err; then
20380 ac_cpp_err=$ac_c_preproc_warn_flag
20381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20382 else
20383 ac_cpp_err=
20384 fi
20385 else
20386 ac_cpp_err=yes
20387 fi
20388 if test -z "$ac_cpp_err"; then
20389 ac_header_preproc=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_header_preproc=no
20395 fi
20396 rm -f conftest.err conftest.$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6
20399
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20402 yes:no: )
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20407 ac_header_preproc=yes
20408 ;;
20409 no:yes:* )
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20422 (
20423 cat <<\_ASBOX
20424 ## ------------------------------------------ ##
20425 ## Report this to the AC_PACKAGE_NAME lists. ##
20426 ## ------------------------------------------ ##
20427 _ASBOX
20428 ) |
20429 sed "s/^/$as_me: WARNING: /" >&2
20430 ;;
20431 esac
20432 echo "$as_me:$LINENO: checking for $ac_header" >&5
20433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437 eval "$as_ac_Header=\$ac_header_preproc"
20438 fi
20439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20441
20442 fi
20443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20444 cat >>confdefs.h <<_ACEOF
20445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20446 _ACEOF
20447
20448 fi
20449
20450 done
20451
20452 fi
20453
20454 done
20455
20456 fi
20457
20458 done
20459
20460 fi
20461
20462 for ac_header in com_err.h
20463 do
20464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20466 echo "$as_me:$LINENO: checking for $ac_header" >&5
20467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 fi
20471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473 else
20474 # Is the header compilable?
20475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <$ac_header>
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_header_compiler=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_header_compiler=no
20513 fi
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20516 echo "${ECHO_T}$ac_header_compiler" >&6
20517
20518 # Is the header present?
20519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20521 cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h. */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527 #include <$ac_header>
20528 _ACEOF
20529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20531 ac_status=$?
20532 grep -v '^ *+' conftest.er1 >conftest.err
20533 rm -f conftest.er1
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } >/dev/null; then
20537 if test -s conftest.err; then
20538 ac_cpp_err=$ac_c_preproc_warn_flag
20539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20540 else
20541 ac_cpp_err=
20542 fi
20543 else
20544 ac_cpp_err=yes
20545 fi
20546 if test -z "$ac_cpp_err"; then
20547 ac_header_preproc=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20551
20552 ac_header_preproc=no
20553 fi
20554 rm -f conftest.err conftest.$ac_ext
20555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20556 echo "${ECHO_T}$ac_header_preproc" >&6
20557
20558 # So? What about this header?
20559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20560 yes:no: )
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20565 ac_header_preproc=yes
20566 ;;
20567 no:yes:* )
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20580 (
20581 cat <<\_ASBOX
20582 ## ------------------------------------------ ##
20583 ## Report this to the AC_PACKAGE_NAME lists. ##
20584 ## ------------------------------------------ ##
20585 _ASBOX
20586 ) |
20587 sed "s/^/$as_me: WARNING: /" >&2
20588 ;;
20589 esac
20590 echo "$as_me:$LINENO: checking for $ac_header" >&5
20591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595 eval "$as_ac_Header=\$ac_header_preproc"
20596 fi
20597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20599
20600 fi
20601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20602 cat >>confdefs.h <<_ACEOF
20603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20604 _ACEOF
20605
20606 fi
20607
20608 done
20609
20610 fi
20611
20612 # Solaris requires -lintl if you want strerror (which calls dgettext)
20613 # to return localized messages.
20614
20615 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20616 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20617 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620 ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-lintl $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628
20629 /* Override any gcc2 internal prototype to avoid an error. */
20630 #ifdef __cplusplus
20631 extern "C"
20632 #endif
20633 /* We use char because int might match the return type of a gcc2
20634 builtin and then its argument prototype would still apply. */
20635 char dgettext ();
20636 int
20637 main ()
20638 {
20639 dgettext ();
20640 ;
20641 return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20646 (eval $ac_link) 2>conftest.er1
20647 ac_status=$?
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest$ac_exeext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_lib_intl_dgettext=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_cv_lib_intl_dgettext=no
20671 fi
20672 rm -f conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20675 fi
20676 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20677 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20678 if test $ac_cv_lib_intl_dgettext = yes; then
20679 cat >>confdefs.h <<_ACEOF
20680 #define HAVE_LIBINTL 1
20681 _ACEOF
20682
20683 LIBS="-lintl $LIBS"
20684
20685 fi
20686
20687
20688 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20689 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20690 if test "${emacs_cv_localtime_cache+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693 if test x$ac_cv_func_tzset = xyes; then
20694 if test "$cross_compiling" = yes; then
20695 # If we have tzset, assume the worst when cross-compiling.
20696 emacs_cv_localtime_cache=yes
20697 else
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 #include <time.h>
20705 extern char **environ;
20706 unset_TZ ()
20707 {
20708 char **from, **to;
20709 for (to = from = environ; (*to = *from); from++)
20710 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20711 to++;
20712 }
20713 char TZ_GMT0[] = "TZ=GMT0";
20714 char TZ_PST8[] = "TZ=PST8";
20715 main()
20716 {
20717 time_t now = time ((time_t *) 0);
20718 int hour_GMT0, hour_unset;
20719 if (putenv (TZ_GMT0) != 0)
20720 exit (1);
20721 hour_GMT0 = localtime (&now)->tm_hour;
20722 unset_TZ ();
20723 hour_unset = localtime (&now)->tm_hour;
20724 if (putenv (TZ_PST8) != 0)
20725 exit (1);
20726 if (localtime (&now)->tm_hour == hour_GMT0)
20727 exit (1);
20728 unset_TZ ();
20729 if (localtime (&now)->tm_hour != hour_unset)
20730 exit (1);
20731 exit (0);
20732 }
20733 _ACEOF
20734 rm -f conftest$ac_exeext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736 (eval $ac_link) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 emacs_cv_localtime_cache=no
20746 else
20747 echo "$as_me: program exited with status $ac_status" >&5
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ( exit $ac_status )
20752 emacs_cv_localtime_cache=yes
20753 fi
20754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20755 fi
20756 else
20757 # If we lack tzset, report that localtime does not cache TZ,
20758 # since we can't invalidate the cache if we don't have tzset.
20759 emacs_cv_localtime_cache=no
20760 fi
20761 fi
20762 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20763 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20764 if test $emacs_cv_localtime_cache = yes; then
20765
20766 cat >>confdefs.h <<\_ACEOF
20767 #define LOCALTIME_CACHE 1
20768 _ACEOF
20769
20770 fi
20771
20772 if test "x$HAVE_TIMEVAL" = xyes; then
20773
20774 for ac_func in gettimeofday
20775 do
20776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20777 echo "$as_me:$LINENO: checking for $ac_func" >&5
20778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20779 if eval "test \"\${$as_ac_var+set}\" = set"; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h. */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20790 #define $ac_func innocuous_$ac_func
20791
20792 /* System header to define __stub macros and hopefully few prototypes,
20793 which can conflict with char $ac_func (); below.
20794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20795 <limits.h> exists even on freestanding compilers. */
20796
20797 #ifdef __STDC__
20798 # include <limits.h>
20799 #else
20800 # include <assert.h>
20801 #endif
20802
20803 #undef $ac_func
20804
20805 /* Override any gcc2 internal prototype to avoid an error. */
20806 #ifdef __cplusplus
20807 extern "C"
20808 {
20809 #endif
20810 /* We use char because int might match the return type of a gcc2
20811 builtin and then its argument prototype would still apply. */
20812 char $ac_func ();
20813 /* The GNU C library defines this for functions which it implements
20814 to always fail with ENOSYS. Some functions are actually named
20815 something starting with __ and the normal name is an alias. */
20816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20817 choke me
20818 #else
20819 char (*f) () = $ac_func;
20820 #endif
20821 #ifdef __cplusplus
20822 }
20823 #endif
20824
20825 int
20826 main ()
20827 {
20828 return f != $ac_func;
20829 ;
20830 return 0;
20831 }
20832 _ACEOF
20833 rm -f conftest.$ac_objext conftest$ac_exeext
20834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20835 (eval $ac_link) 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try='test -s conftest$ac_exeext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 eval "$as_ac_var=yes"
20855 else
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 eval "$as_ac_var=no"
20860 fi
20861 rm -f conftest.err conftest.$ac_objext \
20862 conftest$ac_exeext conftest.$ac_ext
20863 fi
20864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20866 if test `eval echo '${'$as_ac_var'}'` = yes; then
20867 cat >>confdefs.h <<_ACEOF
20868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20869 _ACEOF
20870
20871 fi
20872 done
20873
20874 if test $ac_cv_func_gettimeofday = yes; then
20875 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20876 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20877 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 else
20880 cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h. */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886
20887 #ifdef TIME_WITH_SYS_TIME
20888 #include <sys/time.h>
20889 #include <time.h>
20890 #else
20891 #ifdef HAVE_SYS_TIME_H
20892 #include <sys/time.h>
20893 #else
20894 #include <time.h>
20895 #endif
20896 #endif
20897 int
20898 main ()
20899 {
20900 struct timeval time;
20901 gettimeofday (&time, 0);
20902 ;
20903 return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 emacs_cv_gettimeofday_two_arguments=yes
20928 else
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932 emacs_cv_gettimeofday_two_arguments=no
20933 fi
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935 fi
20936 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20937 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20938 if test $emacs_cv_gettimeofday_two_arguments = no; then
20939
20940 cat >>confdefs.h <<\_ACEOF
20941 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20942 _ACEOF
20943
20944 fi
20945 fi
20946 fi
20947
20948 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20949 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20950 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20951 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <sys/types.h>
20961 #include <$ac_cv_struct_tm>
20962
20963
20964 int
20965 main ()
20966 {
20967 static struct tm ac_aggr;
20968 if (ac_aggr.tm_zone)
20969 return 0;
20970 ;
20971 return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_member_struct_tm_tm_zone=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h. */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <sys/types.h>
21007 #include <$ac_cv_struct_tm>
21008
21009
21010 int
21011 main ()
21012 {
21013 static struct tm ac_aggr;
21014 if (sizeof ac_aggr.tm_zone)
21015 return 0;
21016 ;
21017 return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21023 ac_status=$?
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest.$ac_objext'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 ac_cv_member_struct_tm_tm_zone=yes
21042 else
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046 ac_cv_member_struct_tm_tm_zone=no
21047 fi
21048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21049 fi
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 fi
21052 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21053 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21054 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21055
21056 cat >>confdefs.h <<_ACEOF
21057 #define HAVE_STRUCT_TM_TM_ZONE 1
21058 _ACEOF
21059
21060
21061 fi
21062
21063 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21064
21065 cat >>confdefs.h <<\_ACEOF
21066 #define HAVE_TM_ZONE 1
21067 _ACEOF
21068
21069 else
21070 echo "$as_me:$LINENO: checking for tzname" >&5
21071 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21072 if test "${ac_cv_var_tzname+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h. */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 #include <time.h>
21082 #ifndef tzname /* For SGI. */
21083 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21084 #endif
21085
21086 int
21087 main ()
21088 {
21089 atoi(*tzname);
21090 ;
21091 return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096 (eval $ac_link) 2>conftest.er1
21097 ac_status=$?
21098 grep -v '^ *+' conftest.er1 >conftest.err
21099 rm -f conftest.er1
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_var_tzname=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 ac_cv_var_tzname=no
21121 fi
21122 rm -f conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21124 fi
21125 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21126 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21127 if test $ac_cv_var_tzname = yes; then
21128
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_TZNAME 1
21131 _ACEOF
21132
21133 fi
21134 fi
21135
21136
21137 if test "$ac_cv_func_gettimeofday" = yes; then
21138 echo "$as_me:$LINENO: checking for struct timezone" >&5
21139 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21140 if test "${emacs_cv_struct_timezone+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <sys/time.h>
21150 int
21151 main ()
21152 {
21153 struct timezone tz;
21154 ;
21155 return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try='test -s conftest.$ac_objext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 if test "$cross_compiling" = yes; then
21180 emacs_cv_struct_timezone=yes
21181 else
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188
21189 #ifdef TIME_WITH_SYS_TIME
21190 #include <sys/time.h>
21191 #include <time.h>
21192 #else
21193 #ifdef HAVE_SYS_TIME_H
21194 #include <sys/time.h>
21195 #else
21196 #include <time.h>
21197 #endif
21198 #endif
21199 main () {
21200 struct timeval time;
21201 struct timezone dummy;
21202 exit (gettimeofday (&time, &dummy));
21203 }
21204 _ACEOF
21205 rm -f conftest$ac_exeext
21206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21207 (eval $ac_link) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 emacs_cv_struct_timezone=yes
21217 else
21218 echo "$as_me: program exited with status $ac_status" >&5
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 ( exit $ac_status )
21223 emacs_cv_struct_timezone=no
21224 fi
21225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21226 fi
21227 else
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 emacs_cv_struct_timezone=no
21232 fi
21233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21234 fi
21235 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21236 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21237 fi
21238
21239 ok_so_far=yes
21240 echo "$as_me:$LINENO: checking for socket" >&5
21241 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21242 if test "${ac_cv_func_socket+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245 cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h. */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21253 #define socket innocuous_socket
21254
21255 /* System header to define __stub macros and hopefully few prototypes,
21256 which can conflict with char socket (); below.
21257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21258 <limits.h> exists even on freestanding compilers. */
21259
21260 #ifdef __STDC__
21261 # include <limits.h>
21262 #else
21263 # include <assert.h>
21264 #endif
21265
21266 #undef socket
21267
21268 /* Override any gcc2 internal prototype to avoid an error. */
21269 #ifdef __cplusplus
21270 extern "C"
21271 {
21272 #endif
21273 /* We use char because int might match the return type of a gcc2
21274 builtin and then its argument prototype would still apply. */
21275 char socket ();
21276 /* The GNU C library defines this for functions which it implements
21277 to always fail with ENOSYS. Some functions are actually named
21278 something starting with __ and the normal name is an alias. */
21279 #if defined (__stub_socket) || defined (__stub___socket)
21280 choke me
21281 #else
21282 char (*f) () = socket;
21283 #endif
21284 #ifdef __cplusplus
21285 }
21286 #endif
21287
21288 int
21289 main ()
21290 {
21291 return f != socket;
21292 ;
21293 return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest.$ac_objext conftest$ac_exeext
21297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298 (eval $ac_link) 2>conftest.er1
21299 ac_status=$?
21300 grep -v '^ *+' conftest.er1 >conftest.err
21301 rm -f conftest.er1
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } &&
21305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; } &&
21311 { ac_try='test -s conftest$ac_exeext'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_cv_func_socket=yes
21318 else
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322 ac_cv_func_socket=no
21323 fi
21324 rm -f conftest.err conftest.$ac_objext \
21325 conftest$ac_exeext conftest.$ac_ext
21326 fi
21327 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21328 echo "${ECHO_T}$ac_cv_func_socket" >&6
21329 if test $ac_cv_func_socket = yes; then
21330 :
21331 else
21332 ok_so_far=no
21333 fi
21334
21335 if test $ok_so_far = yes; then
21336 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21337 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21338 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21339 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 fi
21342 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21343 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21344 else
21345 # Is the header compilable?
21346 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21347 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21355 #include <netinet/in.h>
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest.$ac_objext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_header_compiler=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 ac_header_compiler=no
21384 fi
21385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6
21388
21389 # Is the header present?
21390 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21391 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <netinet/in.h>
21399 _ACEOF
21400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } >/dev/null; then
21408 if test -s conftest.err; then
21409 ac_cpp_err=$ac_c_preproc_warn_flag
21410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21411 else
21412 ac_cpp_err=
21413 fi
21414 else
21415 ac_cpp_err=yes
21416 fi
21417 if test -z "$ac_cpp_err"; then
21418 ac_header_preproc=yes
21419 else
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21422
21423 ac_header_preproc=no
21424 fi
21425 rm -f conftest.err conftest.$ac_ext
21426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21427 echo "${ECHO_T}$ac_header_preproc" >&6
21428
21429 # So? What about this header?
21430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21431 yes:no: )
21432 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21433 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21435 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21436 ac_header_preproc=yes
21437 ;;
21438 no:yes:* )
21439 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21440 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21442 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21444 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21446 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21448 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21450 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21451 (
21452 cat <<\_ASBOX
21453 ## ------------------------------------------ ##
21454 ## Report this to the AC_PACKAGE_NAME lists. ##
21455 ## ------------------------------------------ ##
21456 _ASBOX
21457 ) |
21458 sed "s/^/$as_me: WARNING: /" >&2
21459 ;;
21460 esac
21461 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21462 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21463 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466 ac_cv_header_netinet_in_h=$ac_header_preproc
21467 fi
21468 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21469 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21470
21471 fi
21472 if test $ac_cv_header_netinet_in_h = yes; then
21473 :
21474 else
21475 ok_so_far=no
21476 fi
21477
21478
21479 fi
21480 if test $ok_so_far = yes; then
21481 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21482 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21483 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21484 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 fi
21487 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21488 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21489 else
21490 # Is the header compilable?
21491 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21492 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21493 cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h. */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 $ac_includes_default
21500 #include <arpa/inet.h>
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_header_compiler=yes
21524 else
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528 ac_header_compiler=no
21529 fi
21530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21532 echo "${ECHO_T}$ac_header_compiler" >&6
21533
21534 # Is the header present?
21535 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21536 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h. */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 #include <arpa/inet.h>
21544 _ACEOF
21545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } >/dev/null; then
21553 if test -s conftest.err; then
21554 ac_cpp_err=$ac_c_preproc_warn_flag
21555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21556 else
21557 ac_cpp_err=
21558 fi
21559 else
21560 ac_cpp_err=yes
21561 fi
21562 if test -z "$ac_cpp_err"; then
21563 ac_header_preproc=yes
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 ac_header_preproc=no
21569 fi
21570 rm -f conftest.err conftest.$ac_ext
21571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21572 echo "${ECHO_T}$ac_header_preproc" >&6
21573
21574 # So? What about this header?
21575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21576 yes:no: )
21577 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21578 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21580 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21581 ac_header_preproc=yes
21582 ;;
21583 no:yes:* )
21584 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21585 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21587 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21589 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21591 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21593 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21595 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21596 (
21597 cat <<\_ASBOX
21598 ## ------------------------------------------ ##
21599 ## Report this to the AC_PACKAGE_NAME lists. ##
21600 ## ------------------------------------------ ##
21601 _ASBOX
21602 ) |
21603 sed "s/^/$as_me: WARNING: /" >&2
21604 ;;
21605 esac
21606 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21607 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21608 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611 ac_cv_header_arpa_inet_h=$ac_header_preproc
21612 fi
21613 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21614 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21615
21616 fi
21617 if test $ac_cv_header_arpa_inet_h = yes; then
21618 :
21619 else
21620 ok_so_far=no
21621 fi
21622
21623
21624 fi
21625 if test $ok_so_far = yes; then
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_INET_SOCKETS 1
21629 _ACEOF
21630
21631 fi
21632
21633
21634 for ac_header in sys/ioctl.h
21635 do
21636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21638 echo "$as_me:$LINENO: checking for $ac_header" >&5
21639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 fi
21643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21645 else
21646 # Is the header compilable?
21647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <$ac_header>
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660 (eval $ac_compile) 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } &&
21673 { ac_try='test -s conftest.$ac_objext'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21676 ac_status=$?
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; }; then
21679 ac_header_compiler=yes
21680 else
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ac_header_compiler=no
21685 fi
21686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21688 echo "${ECHO_T}$ac_header_compiler" >&6
21689
21690 # Is the header present?
21691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h. */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <$ac_header>
21700 _ACEOF
21701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21703 ac_status=$?
21704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } >/dev/null; then
21709 if test -s conftest.err; then
21710 ac_cpp_err=$ac_c_preproc_warn_flag
21711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21712 else
21713 ac_cpp_err=
21714 fi
21715 else
21716 ac_cpp_err=yes
21717 fi
21718 if test -z "$ac_cpp_err"; then
21719 ac_header_preproc=yes
21720 else
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724 ac_header_preproc=no
21725 fi
21726 rm -f conftest.err conftest.$ac_ext
21727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21728 echo "${ECHO_T}$ac_header_preproc" >&6
21729
21730 # So? What about this header?
21731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21732 yes:no: )
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21737 ac_header_preproc=yes
21738 ;;
21739 no:yes:* )
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21752 (
21753 cat <<\_ASBOX
21754 ## ------------------------------------------ ##
21755 ## Report this to the AC_PACKAGE_NAME lists. ##
21756 ## ------------------------------------------ ##
21757 _ASBOX
21758 ) |
21759 sed "s/^/$as_me: WARNING: /" >&2
21760 ;;
21761 esac
21762 echo "$as_me:$LINENO: checking for $ac_header" >&5
21763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 else
21767 eval "$as_ac_Header=\$ac_header_preproc"
21768 fi
21769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21771
21772 fi
21773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21776 _ACEOF
21777
21778 fi
21779
21780 done
21781
21782
21783 if test -f /usr/lpp/X11/bin/smt.exp; then
21784
21785 cat >>confdefs.h <<\_ACEOF
21786 #define HAVE_AIX_SMT_EXP 1
21787 _ACEOF
21788
21789 fi
21790
21791 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21792 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21793 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21794 echo "$as_me:$LINENO: result: yes" >&5
21795 echo "${ECHO_T}yes" >&6
21796
21797 cat >>confdefs.h <<\_ACEOF
21798 #define HAVE_DEV_PTMX 1
21799 _ACEOF
21800
21801 else
21802 echo "$as_me:$LINENO: result: no" >&5
21803 echo "${ECHO_T}no" >&6
21804 fi
21805
21806 echo "$as_me:$LINENO: checking for pid_t" >&5
21807 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21808 if test "${ac_cv_type_pid_t+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 else
21811 cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h. */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 $ac_includes_default
21818 int
21819 main ()
21820 {
21821 if ((pid_t *) 0)
21822 return 0;
21823 if (sizeof (pid_t))
21824 return 0;
21825 ;
21826 return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831 (eval $ac_compile) 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest.$ac_objext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_type_pid_t=yes
21851 else
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ac_cv_type_pid_t=no
21856 fi
21857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21858 fi
21859 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21860 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21861 if test $ac_cv_type_pid_t = yes; then
21862 :
21863 else
21864
21865 cat >>confdefs.h <<_ACEOF
21866 #define pid_t int
21867 _ACEOF
21868
21869 fi
21870
21871
21872
21873 for ac_header in unistd.h vfork.h
21874 do
21875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21877 echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 fi
21882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21884 else
21885 # Is the header compilable?
21886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h. */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 $ac_includes_default
21895 #include <$ac_header>
21896 _ACEOF
21897 rm -f conftest.$ac_objext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21899 (eval $ac_compile) 2>conftest.er1
21900 ac_status=$?
21901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest.$ac_objext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_header_compiler=yes
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 ac_header_compiler=no
21924 fi
21925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21927 echo "${ECHO_T}$ac_header_compiler" >&6
21928
21929 # Is the header present?
21930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h. */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 #include <$ac_header>
21939 _ACEOF
21940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } >/dev/null; then
21948 if test -s conftest.err; then
21949 ac_cpp_err=$ac_c_preproc_warn_flag
21950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21951 else
21952 ac_cpp_err=
21953 fi
21954 else
21955 ac_cpp_err=yes
21956 fi
21957 if test -z "$ac_cpp_err"; then
21958 ac_header_preproc=yes
21959 else
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963 ac_header_preproc=no
21964 fi
21965 rm -f conftest.err conftest.$ac_ext
21966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21967 echo "${ECHO_T}$ac_header_preproc" >&6
21968
21969 # So? What about this header?
21970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21971 yes:no: )
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21976 ac_header_preproc=yes
21977 ;;
21978 no:yes:* )
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21991 (
21992 cat <<\_ASBOX
21993 ## ------------------------------------------ ##
21994 ## Report this to the AC_PACKAGE_NAME lists. ##
21995 ## ------------------------------------------ ##
21996 _ASBOX
21997 ) |
21998 sed "s/^/$as_me: WARNING: /" >&2
21999 ;;
22000 esac
22001 echo "$as_me:$LINENO: checking for $ac_header" >&5
22002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006 eval "$as_ac_Header=\$ac_header_preproc"
22007 fi
22008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22010
22011 fi
22012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22013 cat >>confdefs.h <<_ACEOF
22014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22015 _ACEOF
22016
22017 fi
22018
22019 done
22020
22021
22022
22023 for ac_func in fork vfork
22024 do
22025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22026 echo "$as_me:$LINENO: checking for $ac_func" >&5
22027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22028 if eval "test \"\${$as_ac_var+set}\" = set"; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031 cat >conftest.$ac_ext <<_ACEOF
22032 /* confdefs.h. */
22033 _ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22039 #define $ac_func innocuous_$ac_func
22040
22041 /* System header to define __stub macros and hopefully few prototypes,
22042 which can conflict with char $ac_func (); below.
22043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22044 <limits.h> exists even on freestanding compilers. */
22045
22046 #ifdef __STDC__
22047 # include <limits.h>
22048 #else
22049 # include <assert.h>
22050 #endif
22051
22052 #undef $ac_func
22053
22054 /* Override any gcc2 internal prototype to avoid an error. */
22055 #ifdef __cplusplus
22056 extern "C"
22057 {
22058 #endif
22059 /* We use char because int might match the return type of a gcc2
22060 builtin and then its argument prototype would still apply. */
22061 char $ac_func ();
22062 /* The GNU C library defines this for functions which it implements
22063 to always fail with ENOSYS. Some functions are actually named
22064 something starting with __ and the normal name is an alias. */
22065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22066 choke me
22067 #else
22068 char (*f) () = $ac_func;
22069 #endif
22070 #ifdef __cplusplus
22071 }
22072 #endif
22073
22074 int
22075 main ()
22076 {
22077 return f != $ac_func;
22078 ;
22079 return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext conftest$ac_exeext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22084 (eval $ac_link) 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; } &&
22097 { ac_try='test -s conftest$ac_exeext'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 eval "$as_ac_var=yes"
22104 else
22105 echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22107
22108 eval "$as_ac_var=no"
22109 fi
22110 rm -f conftest.err conftest.$ac_objext \
22111 conftest$ac_exeext conftest.$ac_ext
22112 fi
22113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22115 if test `eval echo '${'$as_ac_var'}'` = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22118 _ACEOF
22119
22120 fi
22121 done
22122
22123 if test "x$ac_cv_func_fork" = xyes; then
22124 echo "$as_me:$LINENO: checking for working fork" >&5
22125 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22126 if test "${ac_cv_func_fork_works+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129 if test "$cross_compiling" = yes; then
22130 ac_cv_func_fork_works=cross
22131 else
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h. */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 $ac_includes_default
22139 int
22140 main ()
22141 {
22142
22143 /* By Ruediger Kuhlmann. */
22144 if (fork() < 0)
22145 exit (1);
22146 exit (0);
22147
22148 ;
22149 return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest$ac_exeext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22154 (eval $ac_link) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 ac_cv_func_fork_works=yes
22164 else
22165 echo "$as_me: program exited with status $ac_status" >&5
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ( exit $ac_status )
22170 ac_cv_func_fork_works=no
22171 fi
22172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22173 fi
22174 fi
22175 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22176 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22177
22178 else
22179 ac_cv_func_fork_works=$ac_cv_func_fork
22180 fi
22181 if test "x$ac_cv_func_fork_works" = xcross; then
22182 case $host in
22183 *-*-amigaos* | *-*-msdosdjgpp*)
22184 # Override, as these systems have only a dummy fork() stub
22185 ac_cv_func_fork_works=no
22186 ;;
22187 *)
22188 ac_cv_func_fork_works=yes
22189 ;;
22190 esac
22191 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22192 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22193 fi
22194 ac_cv_func_vfork_works=$ac_cv_func_vfork
22195 if test "x$ac_cv_func_vfork" = xyes; then
22196 echo "$as_me:$LINENO: checking for working vfork" >&5
22197 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22198 if test "${ac_cv_func_vfork_works+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201 if test "$cross_compiling" = yes; then
22202 ac_cv_func_vfork_works=cross
22203 else
22204 cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h. */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 /* Thanks to Paul Eggert for this test. */
22211 #include <stdio.h>
22212 #include <stdlib.h>
22213 #include <sys/types.h>
22214 #include <sys/stat.h>
22215 #include <sys/wait.h>
22216 #if HAVE_UNISTD_H
22217 # include <unistd.h>
22218 #endif
22219 #if HAVE_VFORK_H
22220 # include <vfork.h>
22221 #endif
22222 /* On some sparc systems, changes by the child to local and incoming
22223 argument registers are propagated back to the parent. The compiler
22224 is told about this with #include <vfork.h>, but some compilers
22225 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22226 static variable whose address is put into a register that is
22227 clobbered by the vfork. */
22228 static void
22229 #ifdef __cplusplus
22230 sparc_address_test (int arg)
22231 # else
22232 sparc_address_test (arg) int arg;
22233 #endif
22234 {
22235 static pid_t child;
22236 if (!child) {
22237 child = vfork ();
22238 if (child < 0) {
22239 perror ("vfork");
22240 _exit(2);
22241 }
22242 if (!child) {
22243 arg = getpid();
22244 write(-1, "", 0);
22245 _exit (arg);
22246 }
22247 }
22248 }
22249
22250 int
22251 main ()
22252 {
22253 pid_t parent = getpid ();
22254 pid_t child;
22255
22256 sparc_address_test (0);
22257
22258 child = vfork ();
22259
22260 if (child == 0) {
22261 /* Here is another test for sparc vfork register problems. This
22262 test uses lots of local variables, at least as many local
22263 variables as main has allocated so far including compiler
22264 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22265 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22266 reuse the register of parent for one of the local variables,
22267 since it will think that parent can't possibly be used any more
22268 in this routine. Assigning to the local variable will thus
22269 munge parent in the parent process. */
22270 pid_t
22271 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22272 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22273 /* Convince the compiler that p..p7 are live; otherwise, it might
22274 use the same hardware register for all 8 local variables. */
22275 if (p != p1 || p != p2 || p != p3 || p != p4
22276 || p != p5 || p != p6 || p != p7)
22277 _exit(1);
22278
22279 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22280 from child file descriptors. If the child closes a descriptor
22281 before it execs or exits, this munges the parent's descriptor
22282 as well. Test for this by closing stdout in the child. */
22283 _exit(close(fileno(stdout)) != 0);
22284 } else {
22285 int status;
22286 struct stat st;
22287
22288 while (wait(&status) != child)
22289 ;
22290 exit(
22291 /* Was there some problem with vforking? */
22292 child < 0
22293
22294 /* Did the child fail? (This shouldn't happen.) */
22295 || status
22296
22297 /* Did the vfork/compiler bug occur? */
22298 || parent != getpid()
22299
22300 /* Did the file descriptor bug occur? */
22301 || fstat(fileno(stdout), &st) != 0
22302 );
22303 }
22304 }
22305 _ACEOF
22306 rm -f conftest$ac_exeext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308 (eval $ac_link) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ac_cv_func_vfork_works=yes
22318 else
22319 echo "$as_me: program exited with status $ac_status" >&5
22320 echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323 ( exit $ac_status )
22324 ac_cv_func_vfork_works=no
22325 fi
22326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22327 fi
22328 fi
22329 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22330 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22331
22332 fi;
22333 if test "x$ac_cv_func_fork_works" = xcross; then
22334 ac_cv_func_vfork_works=$ac_cv_func_vfork
22335 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22336 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22337 fi
22338
22339 if test "x$ac_cv_func_vfork_works" = xyes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_WORKING_VFORK 1
22343 _ACEOF
22344
22345 else
22346
22347 cat >>confdefs.h <<\_ACEOF
22348 #define vfork fork
22349 _ACEOF
22350
22351 fi
22352 if test "x$ac_cv_func_fork_works" = xyes; then
22353
22354 cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_WORKING_FORK 1
22356 _ACEOF
22357
22358 fi
22359
22360
22361 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22362 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22363 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h. */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 #include <langinfo.h>
22373 int
22374 main ()
22375 {
22376 char* cs = nl_langinfo(CODESET);
22377 ;
22378 return 0;
22379 }
22380 _ACEOF
22381 rm -f conftest.$ac_objext conftest$ac_exeext
22382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22383 (eval $ac_link) 2>conftest.er1
22384 ac_status=$?
22385 grep -v '^ *+' conftest.er1 >conftest.err
22386 rm -f conftest.er1
22387 cat conftest.err >&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } &&
22390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; } &&
22396 { ac_try='test -s conftest$ac_exeext'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 emacs_cv_langinfo_codeset=yes
22403 else
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 emacs_cv_langinfo_codeset=no
22408 fi
22409 rm -f conftest.err conftest.$ac_objext \
22410 conftest$ac_exeext conftest.$ac_ext
22411
22412 fi
22413 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22414 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22415 if test $emacs_cv_langinfo_codeset = yes; then
22416
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_LANGINFO_CODESET 1
22419 _ACEOF
22420
22421 fi
22422
22423 echo "$as_me:$LINENO: checking for size_t" >&5
22424 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22425 if test "${ac_cv_type_size_t+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428 cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h. */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 $ac_includes_default
22435 int
22436 main ()
22437 {
22438 if ((size_t *) 0)
22439 return 0;
22440 if (sizeof (size_t))
22441 return 0;
22442 ;
22443 return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22448 (eval $ac_compile) 2>conftest.er1
22449 ac_status=$?
22450 grep -v '^ *+' conftest.er1 >conftest.err
22451 rm -f conftest.er1
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22458 ac_status=$?
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; } &&
22461 { ac_try='test -s conftest.$ac_objext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_cv_type_size_t=yes
22468 else
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 ac_cv_type_size_t=no
22473 fi
22474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22475 fi
22476 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22477 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22478 if test $ac_cv_type_size_t = yes; then
22479
22480 cat >>confdefs.h <<_ACEOF
22481 #define HAVE_SIZE_T 1
22482 _ACEOF
22483
22484
22485 fi
22486
22487
22488 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22489 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22490 if test "${ac_cv_type_mbstate_t+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h. */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 $ac_includes_default
22500 # include <wchar.h>
22501 int
22502 main ()
22503 {
22504 mbstate_t x; return sizeof x;
22505 ;
22506 return 0;
22507 }
22508 _ACEOF
22509 rm -f conftest.$ac_objext
22510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22511 (eval $ac_compile) 2>conftest.er1
22512 ac_status=$?
22513 grep -v '^ *+' conftest.er1 >conftest.err
22514 rm -f conftest.er1
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } &&
22518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22521 ac_status=$?
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; } &&
22524 { ac_try='test -s conftest.$ac_objext'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; }; then
22530 ac_cv_type_mbstate_t=yes
22531 else
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 ac_cv_type_mbstate_t=no
22536 fi
22537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22538 fi
22539 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22540 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22541 if test $ac_cv_type_mbstate_t = yes; then
22542
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_MBSTATE_T 1
22545 _ACEOF
22546
22547 else
22548
22549 cat >>confdefs.h <<\_ACEOF
22550 #define mbstate_t int
22551 _ACEOF
22552
22553 fi
22554
22555 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22556 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22557 if test "${emacs_cv_c_restrict+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560 cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h. */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 void fred (int *restrict x);
22567 int
22568 main ()
22569 {
22570
22571 ;
22572 return 0;
22573 }
22574 _ACEOF
22575 rm -f conftest.$ac_objext
22576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22577 (eval $ac_compile) 2>conftest.er1
22578 ac_status=$?
22579 grep -v '^ *+' conftest.er1 >conftest.err
22580 rm -f conftest.er1
22581 cat conftest.err >&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } &&
22584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; } &&
22590 { ac_try='test -s conftest.$ac_objext'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; }; then
22596 emacs_cv_c_restrict=yes
22597 else
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22600
22601 cat >conftest.$ac_ext <<_ACEOF
22602 /* confdefs.h. */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22607 void fred (int *__restrict x);
22608 int
22609 main ()
22610 {
22611
22612 ;
22613 return 0;
22614 }
22615 _ACEOF
22616 rm -f conftest.$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618 (eval $ac_compile) 2>conftest.er1
22619 ac_status=$?
22620 grep -v '^ *+' conftest.er1 >conftest.err
22621 rm -f conftest.er1
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; } &&
22631 { ac_try='test -s conftest.$ac_objext'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; }; then
22637 emacs_cv_c_restrict=__restrict
22638 else
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 emacs_cv_c_restrict=no
22643 fi
22644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22645 fi
22646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22647 fi
22648 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22649 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22650 case "$emacs_cv_c_restrict" in
22651 yes) emacs_restrict=restrict;;
22652 no) emacs_restrict="";;
22653 *) emacs_restrict="$emacs_cv_c_restrict";;
22654 esac
22655 if test "$emacs_restrict" != __restrict; then
22656
22657 cat >>confdefs.h <<_ACEOF
22658 #define __restrict $emacs_restrict
22659 _ACEOF
22660
22661 fi
22662
22663 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22664 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22665 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 void fred (int x[__restrict]);
22675 int
22676 main ()
22677 {
22678
22679 ;
22680 return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685 (eval $ac_compile) 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; } &&
22698 { ac_try='test -s conftest.$ac_objext'
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; }; then
22704 emacs_cv_c_restrict_arr=yes
22705 else
22706 echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22708
22709 emacs_cv_c_restrict_arr=no
22710 fi
22711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22712 fi
22713 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22714 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22715 if test "$emacs_cv_c_restrict_arr" = yes; then
22716
22717 cat >>confdefs.h <<\_ACEOF
22718 #define __restrict_arr __restrict
22719 _ACEOF
22720
22721 fi
22722
22723
22724
22725 # Set up the CFLAGS for real compilation, so we can substitute it.
22726 CFLAGS="$REAL_CFLAGS"
22727 CPPFLAGS="$REAL_CPPFLAGS"
22728
22729 #### Find out which version of Emacs this is.
22730 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22731 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22732 if test x"${version}" = x; then
22733 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22734 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22735 { (exit 1); exit 1; }; }
22736 fi
22737
22738 ### Specify what sort of things we'll be editing into Makefile and config.h.
22739 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775 cat >>confdefs.h <<_ACEOF
22776 #define EMACS_CONFIGURATION "${canonical}"
22777 _ACEOF
22778
22779
22780 cat >>confdefs.h <<_ACEOF
22781 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22782 _ACEOF
22783
22784
22785 cat >>confdefs.h <<_ACEOF
22786 #define config_machfile "${machfile}"
22787 _ACEOF
22788
22789
22790 cat >>confdefs.h <<_ACEOF
22791 #define config_opsysfile "${opsysfile}"
22792 _ACEOF
22793
22794
22795 cat >>confdefs.h <<_ACEOF
22796 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22797 _ACEOF
22798
22799
22800 cat >>confdefs.h <<_ACEOF
22801 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22802 _ACEOF
22803
22804
22805 cat >>confdefs.h <<_ACEOF
22806 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22807 _ACEOF
22808
22809
22810 cat >>confdefs.h <<_ACEOF
22811 #define UNEXEC_SRC ${UNEXEC_SRC}
22812 _ACEOF
22813
22814
22815 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22816
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_X_WINDOWS 1
22819 _ACEOF
22820
22821 fi
22822 if test "${USE_X_TOOLKIT}" != "none" ; then
22823
22824 cat >>confdefs.h <<\_ACEOF
22825 #define USE_X_TOOLKIT 1
22826 _ACEOF
22827
22828 fi
22829 if test "${HAVE_X11}" = "yes" ; then
22830
22831 cat >>confdefs.h <<\_ACEOF
22832 #define HAVE_X11 1
22833 _ACEOF
22834
22835 fi
22836 if test "${HAVE_XFREE386}" = "yes" ; then
22837
22838 cat >>confdefs.h <<\_ACEOF
22839 #define HAVE_XFREE386 1
22840 _ACEOF
22841
22842 fi
22843 if test "${HAVE_MENUS}" = "yes" ; then
22844
22845 cat >>confdefs.h <<\_ACEOF
22846 #define HAVE_MENUS 1
22847 _ACEOF
22848
22849 fi
22850 if test "${GNU_MALLOC}" = "yes" ; then
22851
22852 cat >>confdefs.h <<\_ACEOF
22853 #define GNU_MALLOC 1
22854 _ACEOF
22855
22856 fi
22857 if test "${REL_ALLOC}" = "yes" ; then
22858
22859 cat >>confdefs.h <<\_ACEOF
22860 #define REL_ALLOC 1
22861 _ACEOF
22862
22863 fi
22864
22865
22866
22867
22868
22869 #### Report on what we decided to do.
22870 #### Report GTK as a toolkit, even if it doesn't use Xt.
22871 #### It makes printing result more understandable as using GTK sets
22872 #### toolkit_scroll_bars to yes by default.
22873 if test "${HAVE_GTK}" = "yes"; then
22874 USE_X_TOOLKIT=GTK
22875 fi
22876
22877 echo "
22878 Configured for \`${canonical}'.
22879
22880 Where should the build process find the source code? ${srcdir}
22881 What operating system and machine description files should Emacs use?
22882 \`${opsysfile}' and \`${machfile}'
22883 What compiler should emacs be built with? ${CC} ${CFLAGS}
22884 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22885 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22886 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22887 What window system should Emacs use? ${window_system}
22888 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22889
22890 if test -n "${x_includes}"; then
22891 echo " Where do we find X Windows header files? ${x_includes}"
22892 else
22893 echo " Where do we find X Windows header files? Standard dirs"
22894 fi
22895 if test -n "${x_libraries}"; then
22896 echo " Where do we find X Windows libraries? ${x_libraries}"
22897 else
22898 echo " Where do we find X Windows libraries? Standard dirs"
22899 fi
22900
22901 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22902 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22903 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22904 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22905 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22906 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22907 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22908 echo
22909
22910 if test $USE_XASSERTS = yes; then
22911 echo " Compiling with asserts turned on."
22912 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22913 echo
22914 fi
22915
22916
22917
22918 # Remove any trailing slashes in these variables.
22919 test "${prefix}" != NONE &&
22920 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22921 test "${exec_prefix}" != NONE &&
22922 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22923
22924 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22925 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22926 ## from Makefile.c can correctly provide the arg `-traditional' to the
22927 ## C preprocessor.
22928
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h. */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 yes..yes
22936 _ACEOF
22937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22938 $EGREP "yes..yes" >/dev/null 2>&1; then
22939 CPP_NEED_TRADITIONAL=no
22940 else
22941 CPP_NEED_TRADITIONAL=yes
22942 fi
22943 rm -f conftest*
22944
22945
22946 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"
22947 ac_config_commands="$ac_config_commands default"
22948 cat >confcache <<\_ACEOF
22949 # This file is a shell script that caches the results of configure
22950 # tests run on this system so they can be shared between configure
22951 # scripts and configure runs, see configure's option --config-cache.
22952 # It is not useful on other systems. If it contains results you don't
22953 # want to keep, you may remove or edit it.
22954 #
22955 # config.status only pays attention to the cache file if you give it
22956 # the --recheck option to rerun configure.
22957 #
22958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22960 # following values.
22961
22962 _ACEOF
22963
22964 # The following way of writing the cache mishandles newlines in values,
22965 # but we know of no workaround that is simple, portable, and efficient.
22966 # So, don't put newlines in cache variables' values.
22967 # Ultrix sh set writes to stderr and can't be redirected directly,
22968 # and sets the high bit in the cache file unless we assign to the vars.
22969 {
22970 (set) 2>&1 |
22971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22972 *ac_space=\ *)
22973 # `set' does not quote correctly, so add quotes (double-quote
22974 # substitution turns \\\\ into \\, and sed turns \\ into \).
22975 sed -n \
22976 "s/'/'\\\\''/g;
22977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22978 ;;
22979 *)
22980 # `set' quotes correctly as required by POSIX, so do not add quotes.
22981 sed -n \
22982 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22983 ;;
22984 esac;
22985 } |
22986 sed '
22987 t clear
22988 : clear
22989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22990 t end
22991 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22992 : end' >>confcache
22993 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22994 if test -w $cache_file; then
22995 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22996 cat confcache >$cache_file
22997 else
22998 echo "not updating unwritable cache $cache_file"
22999 fi
23000 fi
23001 rm -f confcache
23002
23003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23004 # Let make expand exec_prefix.
23005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23006
23007 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23008 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23009 # trailing colons and then remove the whole line if VPATH becomes empty
23010 # (actually we leave an empty line to preserve line numbers).
23011 if test "x$srcdir" = x.; then
23012 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23013 s/:*\$(srcdir):*/:/;
23014 s/:*\${srcdir}:*/:/;
23015 s/:*@srcdir@:*/:/;
23016 s/^\([^=]*=[ ]*\):*/\1/;
23017 s/:*$//;
23018 s/^[^=]*=[ ]*$//;
23019 }'
23020 fi
23021
23022 DEFS=-DHAVE_CONFIG_H
23023
23024 ac_libobjs=
23025 ac_ltlibobjs=
23026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23027 # 1. Remove the extension, and $U if already installed.
23028 ac_i=`echo "$ac_i" |
23029 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23030 # 2. Add them.
23031 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23032 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23033 done
23034 LIBOBJS=$ac_libobjs
23035
23036 LTLIBOBJS=$ac_ltlibobjs
23037
23038
23039
23040 : ${CONFIG_STATUS=./config.status}
23041 ac_clean_files_save=$ac_clean_files
23042 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23043 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23044 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23045 cat >$CONFIG_STATUS <<_ACEOF
23046 #! $SHELL
23047 # Generated by $as_me.
23048 # Run this file to recreate the current configuration.
23049 # Compiler output produced by configure, useful for debugging
23050 # configure, is in config.log if it exists.
23051
23052 debug=false
23053 ac_cs_recheck=false
23054 ac_cs_silent=false
23055 SHELL=\${CONFIG_SHELL-$SHELL}
23056 _ACEOF
23057
23058 cat >>$CONFIG_STATUS <<\_ACEOF
23059 ## --------------------- ##
23060 ## M4sh Initialization. ##
23061 ## --------------------- ##
23062
23063 # Be Bourne compatible
23064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23065 emulate sh
23066 NULLCMD=:
23067 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23068 # is contrary to our usage. Disable this feature.
23069 alias -g '${1+"$@"}'='"$@"'
23070 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23071 set -o posix
23072 fi
23073 DUALCASE=1; export DUALCASE # for MKS sh
23074
23075 # Support unset when possible.
23076 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23077 as_unset=unset
23078 else
23079 as_unset=false
23080 fi
23081
23082
23083 # Work around bugs in pre-3.0 UWIN ksh.
23084 $as_unset ENV MAIL MAILPATH
23085 PS1='$ '
23086 PS2='> '
23087 PS4='+ '
23088
23089 # NLS nuisances.
23090 for as_var in \
23091 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23092 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23093 LC_TELEPHONE LC_TIME
23094 do
23095 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23096 eval $as_var=C; export $as_var
23097 else
23098 $as_unset $as_var
23099 fi
23100 done
23101
23102 # Required to use basename.
23103 if expr a : '\(a\)' >/dev/null 2>&1; then
23104 as_expr=expr
23105 else
23106 as_expr=false
23107 fi
23108
23109 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23110 as_basename=basename
23111 else
23112 as_basename=false
23113 fi
23114
23115
23116 # Name of the executable.
23117 as_me=`$as_basename "$0" ||
23118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23119 X"$0" : 'X\(//\)$' \| \
23120 X"$0" : 'X\(/\)$' \| \
23121 . : '\(.\)' 2>/dev/null ||
23122 echo X/"$0" |
23123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23124 /^X\/\(\/\/\)$/{ s//\1/; q; }
23125 /^X\/\(\/\).*/{ s//\1/; q; }
23126 s/.*/./; q'`
23127
23128
23129 # PATH needs CR, and LINENO needs CR and PATH.
23130 # Avoid depending upon Character Ranges.
23131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23134 as_cr_digits='0123456789'
23135 as_cr_alnum=$as_cr_Letters$as_cr_digits
23136
23137 # The user is always right.
23138 if test "${PATH_SEPARATOR+set}" != set; then
23139 echo "#! /bin/sh" >conf$$.sh
23140 echo "exit 0" >>conf$$.sh
23141 chmod +x conf$$.sh
23142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23143 PATH_SEPARATOR=';'
23144 else
23145 PATH_SEPARATOR=:
23146 fi
23147 rm -f conf$$.sh
23148 fi
23149
23150
23151 as_lineno_1=$LINENO
23152 as_lineno_2=$LINENO
23153 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23154 test "x$as_lineno_1" != "x$as_lineno_2" &&
23155 test "x$as_lineno_3" = "x$as_lineno_2" || {
23156 # Find who we are. Look in the path if we contain no path at all
23157 # relative or not.
23158 case $0 in
23159 *[\\/]* ) as_myself=$0 ;;
23160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23161 for as_dir in $PATH
23162 do
23163 IFS=$as_save_IFS
23164 test -z "$as_dir" && as_dir=.
23165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23166 done
23167
23168 ;;
23169 esac
23170 # We did not find ourselves, most probably we were run as `sh COMMAND'
23171 # in which case we are not to be found in the path.
23172 if test "x$as_myself" = x; then
23173 as_myself=$0
23174 fi
23175 if test ! -f "$as_myself"; then
23176 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23177 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23178 { (exit 1); exit 1; }; }
23179 fi
23180 case $CONFIG_SHELL in
23181 '')
23182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23184 do
23185 IFS=$as_save_IFS
23186 test -z "$as_dir" && as_dir=.
23187 for as_base in sh bash ksh sh5; do
23188 case $as_dir in
23189 /*)
23190 if ("$as_dir/$as_base" -c '
23191 as_lineno_1=$LINENO
23192 as_lineno_2=$LINENO
23193 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23194 test "x$as_lineno_1" != "x$as_lineno_2" &&
23195 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23196 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23197 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23198 CONFIG_SHELL=$as_dir/$as_base
23199 export CONFIG_SHELL
23200 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23201 fi;;
23202 esac
23203 done
23204 done
23205 ;;
23206 esac
23207
23208 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23209 # uniformly replaced by the line number. The first 'sed' inserts a
23210 # line-number line before each line; the second 'sed' does the real
23211 # work. The second script uses 'N' to pair each line-number line
23212 # with the numbered line, and appends trailing '-' during
23213 # substitution so that $LINENO is not a special case at line end.
23214 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23215 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23216 sed '=' <$as_myself |
23217 sed '
23218 N
23219 s,$,-,
23220 : loop
23221 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23222 t loop
23223 s,-$,,
23224 s,^['$as_cr_digits']*\n,,
23225 ' >$as_me.lineno &&
23226 chmod +x $as_me.lineno ||
23227 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23228 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23229 { (exit 1); exit 1; }; }
23230
23231 # Don't try to exec as it changes $[0], causing all sort of problems
23232 # (the dirname of $[0] is not the place where we might find the
23233 # original and so on. Autoconf is especially sensible to this).
23234 . ./$as_me.lineno
23235 # Exit status is that of the last command.
23236 exit
23237 }
23238
23239
23240 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23241 *c*,-n*) ECHO_N= ECHO_C='
23242 ' ECHO_T=' ' ;;
23243 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23244 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23245 esac
23246
23247 if expr a : '\(a\)' >/dev/null 2>&1; then
23248 as_expr=expr
23249 else
23250 as_expr=false
23251 fi
23252
23253 rm -f conf$$ conf$$.exe conf$$.file
23254 echo >conf$$.file
23255 if ln -s conf$$.file conf$$ 2>/dev/null; then
23256 # We could just check for DJGPP; but this test a) works b) is more generic
23257 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23258 if test -f conf$$.exe; then
23259 # Don't use ln at all; we don't have any links
23260 as_ln_s='cp -p'
23261 else
23262 as_ln_s='ln -s'
23263 fi
23264 elif ln conf$$.file conf$$ 2>/dev/null; then
23265 as_ln_s=ln
23266 else
23267 as_ln_s='cp -p'
23268 fi
23269 rm -f conf$$ conf$$.exe conf$$.file
23270
23271 if mkdir -p . 2>/dev/null; then
23272 as_mkdir_p=:
23273 else
23274 test -d ./-p && rmdir ./-p
23275 as_mkdir_p=false
23276 fi
23277
23278 as_executable_p="test -f"
23279
23280 # Sed expression to map a string onto a valid CPP name.
23281 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23282
23283 # Sed expression to map a string onto a valid variable name.
23284 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23285
23286
23287 # IFS
23288 # We need space, tab and new line, in precisely that order.
23289 as_nl='
23290 '
23291 IFS=" $as_nl"
23292
23293 # CDPATH.
23294 $as_unset CDPATH
23295
23296 exec 6>&1
23297
23298 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23299 # report actual input values of CONFIG_FILES etc. instead of their
23300 # values after options handling. Logging --version etc. is OK.
23301 exec 5>>config.log
23302 {
23303 echo
23304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23305 ## Running $as_me. ##
23306 _ASBOX
23307 } >&5
23308 cat >&5 <<_CSEOF
23309
23310 This file was extended by $as_me, which was
23311 generated by GNU Autoconf 2.59. Invocation command line was
23312
23313 CONFIG_FILES = $CONFIG_FILES
23314 CONFIG_HEADERS = $CONFIG_HEADERS
23315 CONFIG_LINKS = $CONFIG_LINKS
23316 CONFIG_COMMANDS = $CONFIG_COMMANDS
23317 $ $0 $@
23318
23319 _CSEOF
23320 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23321 echo >&5
23322 _ACEOF
23323
23324 # Files that config.status was made for.
23325 if test -n "$ac_config_files"; then
23326 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23327 fi
23328
23329 if test -n "$ac_config_headers"; then
23330 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23331 fi
23332
23333 if test -n "$ac_config_links"; then
23334 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23335 fi
23336
23337 if test -n "$ac_config_commands"; then
23338 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23339 fi
23340
23341 cat >>$CONFIG_STATUS <<\_ACEOF
23342
23343 ac_cs_usage="\
23344 \`$as_me' instantiates files from templates according to the
23345 current configuration.
23346
23347 Usage: $0 [OPTIONS] [FILE]...
23348
23349 -h, --help print this help, then exit
23350 -V, --version print version number, then exit
23351 -q, --quiet do not print progress messages
23352 -d, --debug don't remove temporary files
23353 --recheck update $as_me by reconfiguring in the same conditions
23354 --file=FILE[:TEMPLATE]
23355 instantiate the configuration file FILE
23356 --header=FILE[:TEMPLATE]
23357 instantiate the configuration header FILE
23358
23359 Configuration files:
23360 $config_files
23361
23362 Configuration headers:
23363 $config_headers
23364
23365 Configuration commands:
23366 $config_commands
23367
23368 Report bugs to <bug-autoconf@gnu.org>."
23369 _ACEOF
23370
23371 cat >>$CONFIG_STATUS <<_ACEOF
23372 ac_cs_version="\\
23373 config.status
23374 configured by $0, generated by GNU Autoconf 2.59,
23375 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23376
23377 Copyright (C) 2003 Free Software Foundation, Inc.
23378 This config.status script is free software; the Free Software Foundation
23379 gives unlimited permission to copy, distribute and modify it."
23380 srcdir=$srcdir
23381 INSTALL="$INSTALL"
23382 _ACEOF
23383
23384 cat >>$CONFIG_STATUS <<\_ACEOF
23385 # If no file are specified by the user, then we need to provide default
23386 # value. By we need to know if files were specified by the user.
23387 ac_need_defaults=:
23388 while test $# != 0
23389 do
23390 case $1 in
23391 --*=*)
23392 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23393 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23394 ac_shift=:
23395 ;;
23396 -*)
23397 ac_option=$1
23398 ac_optarg=$2
23399 ac_shift=shift
23400 ;;
23401 *) # This is not an option, so the user has probably given explicit
23402 # arguments.
23403 ac_option=$1
23404 ac_need_defaults=false;;
23405 esac
23406
23407 case $ac_option in
23408 # Handling of the options.
23409 _ACEOF
23410 cat >>$CONFIG_STATUS <<\_ACEOF
23411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23412 ac_cs_recheck=: ;;
23413 --version | --vers* | -V )
23414 echo "$ac_cs_version"; exit 0 ;;
23415 --he | --h)
23416 # Conflict between --help and --header
23417 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23418 Try \`$0 --help' for more information." >&5
23419 echo "$as_me: error: ambiguous option: $1
23420 Try \`$0 --help' for more information." >&2;}
23421 { (exit 1); exit 1; }; };;
23422 --help | --hel | -h )
23423 echo "$ac_cs_usage"; exit 0 ;;
23424 --debug | --d* | -d )
23425 debug=: ;;
23426 --file | --fil | --fi | --f )
23427 $ac_shift
23428 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23429 ac_need_defaults=false;;
23430 --header | --heade | --head | --hea )
23431 $ac_shift
23432 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23433 ac_need_defaults=false;;
23434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23436 ac_cs_silent=: ;;
23437
23438 # This is an error.
23439 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23440 Try \`$0 --help' for more information." >&5
23441 echo "$as_me: error: unrecognized option: $1
23442 Try \`$0 --help' for more information." >&2;}
23443 { (exit 1); exit 1; }; } ;;
23444
23445 *) ac_config_targets="$ac_config_targets $1" ;;
23446
23447 esac
23448 shift
23449 done
23450
23451 ac_configure_extra_args=
23452
23453 if $ac_cs_silent; then
23454 exec 6>/dev/null
23455 ac_configure_extra_args="$ac_configure_extra_args --silent"
23456 fi
23457
23458 _ACEOF
23459 cat >>$CONFIG_STATUS <<_ACEOF
23460 if \$ac_cs_recheck; then
23461 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23462 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23463 fi
23464
23465 _ACEOF
23466
23467 cat >>$CONFIG_STATUS <<_ACEOF
23468 #
23469 # INIT-COMMANDS section.
23470 #
23471
23472 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23473
23474 _ACEOF
23475
23476
23477
23478 cat >>$CONFIG_STATUS <<\_ACEOF
23479 for ac_config_target in $ac_config_targets
23480 do
23481 case "$ac_config_target" in
23482 # Handling of arguments.
23483 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23484 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23485 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23486 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23487 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23488 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23489 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23490 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23491 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23492 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23493 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23494 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23497 { (exit 1); exit 1; }; };;
23498 esac
23499 done
23500
23501 # If the user did not use the arguments to specify the items to instantiate,
23502 # then the envvar interface is used. Set only those that are not.
23503 # We use the long form for the default assignment because of an extremely
23504 # bizarre bug on SunOS 4.1.3.
23505 if $ac_need_defaults; then
23506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23507 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23509 fi
23510
23511 # Have a temporary directory for convenience. Make it in the build tree
23512 # simply because there is no reason to put it here, and in addition,
23513 # creating and moving files from /tmp can sometimes cause problems.
23514 # Create a temporary directory, and hook for its removal unless debugging.
23515 $debug ||
23516 {
23517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23518 trap '{ (exit 1); exit 1; }' 1 2 13 15
23519 }
23520
23521 # Create a (secure) tmp directory for tmp files.
23522
23523 {
23524 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23525 test -n "$tmp" && test -d "$tmp"
23526 } ||
23527 {
23528 tmp=./confstat$$-$RANDOM
23529 (umask 077 && mkdir $tmp)
23530 } ||
23531 {
23532 echo "$me: cannot create a temporary directory in ." >&2
23533 { (exit 1); exit 1; }
23534 }
23535
23536 _ACEOF
23537
23538 cat >>$CONFIG_STATUS <<_ACEOF
23539
23540 #
23541 # CONFIG_FILES section.
23542 #
23543
23544 # No need to generate the scripts if there are no CONFIG_FILES.
23545 # This happens for instance when ./config.status config.h
23546 if test -n "\$CONFIG_FILES"; then
23547 # Protect against being on the right side of a sed subst in config.status.
23548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23550 s,@SHELL@,$SHELL,;t t
23551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23557 s,@exec_prefix@,$exec_prefix,;t t
23558 s,@prefix@,$prefix,;t t
23559 s,@program_transform_name@,$program_transform_name,;t t
23560 s,@bindir@,$bindir,;t t
23561 s,@sbindir@,$sbindir,;t t
23562 s,@libexecdir@,$libexecdir,;t t
23563 s,@datadir@,$datadir,;t t
23564 s,@sysconfdir@,$sysconfdir,;t t
23565 s,@sharedstatedir@,$sharedstatedir,;t t
23566 s,@localstatedir@,$localstatedir,;t t
23567 s,@libdir@,$libdir,;t t
23568 s,@includedir@,$includedir,;t t
23569 s,@oldincludedir@,$oldincludedir,;t t
23570 s,@infodir@,$infodir,;t t
23571 s,@mandir@,$mandir,;t t
23572 s,@build_alias@,$build_alias,;t t
23573 s,@host_alias@,$host_alias,;t t
23574 s,@target_alias@,$target_alias,;t t
23575 s,@DEFS@,$DEFS,;t t
23576 s,@ECHO_C@,$ECHO_C,;t t
23577 s,@ECHO_N@,$ECHO_N,;t t
23578 s,@ECHO_T@,$ECHO_T,;t t
23579 s,@LIBS@,$LIBS,;t t
23580 s,@MAINT@,$MAINT,;t t
23581 s,@build@,$build,;t t
23582 s,@build_cpu@,$build_cpu,;t t
23583 s,@build_vendor@,$build_vendor,;t t
23584 s,@build_os@,$build_os,;t t
23585 s,@host@,$host,;t t
23586 s,@host_cpu@,$host_cpu,;t t
23587 s,@host_vendor@,$host_vendor,;t t
23588 s,@host_os@,$host_os,;t t
23589 s,@CC@,$CC,;t t
23590 s,@CFLAGS@,$CFLAGS,;t t
23591 s,@LDFLAGS@,$LDFLAGS,;t t
23592 s,@CPPFLAGS@,$CPPFLAGS,;t t
23593 s,@ac_ct_CC@,$ac_ct_CC,;t t
23594 s,@EXEEXT@,$EXEEXT,;t t
23595 s,@OBJEXT@,$OBJEXT,;t t
23596 s,@CPP@,$CPP,;t t
23597 s,@EGREP@,$EGREP,;t t
23598 s,@LN_S@,$LN_S,;t t
23599 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23600 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23601 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23602 s,@RANLIB@,$RANLIB,;t t
23603 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23604 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23605 s,@GZIP_PROG@,$GZIP_PROG,;t t
23606 s,@LIBSOUND@,$LIBSOUND,;t t
23607 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23608 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23609 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23610 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23611 s,@SET_MAKE@,$SET_MAKE,;t t
23612 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23613 s,@GTK_LIBS@,$GTK_LIBS,;t t
23614 s,@ALLOCA@,$ALLOCA,;t t
23615 s,@liblockfile@,$liblockfile,;t t
23616 s,@LIBOBJS@,$LIBOBJS,;t t
23617 s,@NEED_SETGID@,$NEED_SETGID,;t t
23618 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23619 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23620 s,@GETOPT_H@,$GETOPT_H,;t t
23621 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23622 s,@version@,$version,;t t
23623 s,@configuration@,$configuration,;t t
23624 s,@canonical@,$canonical,;t t
23625 s,@srcdir@,$srcdir,;t t
23626 s,@lispdir@,$lispdir,;t t
23627 s,@locallisppath@,$locallisppath,;t t
23628 s,@lisppath@,$lisppath,;t t
23629 s,@x_default_search_path@,$x_default_search_path,;t t
23630 s,@etcdir@,$etcdir,;t t
23631 s,@archlibdir@,$archlibdir,;t t
23632 s,@docdir@,$docdir,;t t
23633 s,@bitmapdir@,$bitmapdir,;t t
23634 s,@gamedir@,$gamedir,;t t
23635 s,@gameuser@,$gameuser,;t t
23636 s,@c_switch_system@,$c_switch_system,;t t
23637 s,@c_switch_machine@,$c_switch_machine,;t t
23638 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23639 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23640 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23641 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23642 s,@machfile@,$machfile,;t t
23643 s,@opsysfile@,$opsysfile,;t t
23644 s,@carbon_appdir@,$carbon_appdir,;t t
23645 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23646 CEOF
23647
23648 _ACEOF
23649
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 # Split the substitutions into bite-sized pieces for seds with
23652 # small command number limits, like on Digital OSF/1 and HP-UX.
23653 ac_max_sed_lines=48
23654 ac_sed_frag=1 # Number of current file.
23655 ac_beg=1 # First line for current file.
23656 ac_end=$ac_max_sed_lines # Line after last line for current file.
23657 ac_more_lines=:
23658 ac_sed_cmds=
23659 while $ac_more_lines; do
23660 if test $ac_beg -gt 1; then
23661 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23662 else
23663 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23664 fi
23665 if test ! -s $tmp/subs.frag; then
23666 ac_more_lines=false
23667 else
23668 # The purpose of the label and of the branching condition is to
23669 # speed up the sed processing (if there are no `@' at all, there
23670 # is no need to browse any of the substitutions).
23671 # These are the two extra sed commands mentioned above.
23672 (echo ':t
23673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23674 if test -z "$ac_sed_cmds"; then
23675 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23676 else
23677 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23678 fi
23679 ac_sed_frag=`expr $ac_sed_frag + 1`
23680 ac_beg=$ac_end
23681 ac_end=`expr $ac_end + $ac_max_sed_lines`
23682 fi
23683 done
23684 if test -z "$ac_sed_cmds"; then
23685 ac_sed_cmds=cat
23686 fi
23687 fi # test -n "$CONFIG_FILES"
23688
23689 _ACEOF
23690 cat >>$CONFIG_STATUS <<\_ACEOF
23691 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23693 case $ac_file in
23694 - | *:- | *:-:* ) # input from stdin
23695 cat >$tmp/stdin
23696 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23698 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23700 * ) ac_file_in=$ac_file.in ;;
23701 esac
23702
23703 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23704 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23706 X"$ac_file" : 'X\(//\)[^/]' \| \
23707 X"$ac_file" : 'X\(//\)$' \| \
23708 X"$ac_file" : 'X\(/\)' \| \
23709 . : '\(.\)' 2>/dev/null ||
23710 echo X"$ac_file" |
23711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23713 /^X\(\/\/\)$/{ s//\1/; q; }
23714 /^X\(\/\).*/{ s//\1/; q; }
23715 s/.*/./; q'`
23716 { if $as_mkdir_p; then
23717 mkdir -p "$ac_dir"
23718 else
23719 as_dir="$ac_dir"
23720 as_dirs=
23721 while test ! -d "$as_dir"; do
23722 as_dirs="$as_dir $as_dirs"
23723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23725 X"$as_dir" : 'X\(//\)[^/]' \| \
23726 X"$as_dir" : 'X\(//\)$' \| \
23727 X"$as_dir" : 'X\(/\)' \| \
23728 . : '\(.\)' 2>/dev/null ||
23729 echo X"$as_dir" |
23730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23732 /^X\(\/\/\)$/{ s//\1/; q; }
23733 /^X\(\/\).*/{ s//\1/; q; }
23734 s/.*/./; q'`
23735 done
23736 test ! -n "$as_dirs" || mkdir $as_dirs
23737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23739 { (exit 1); exit 1; }; }; }
23740
23741 ac_builddir=.
23742
23743 if test "$ac_dir" != .; then
23744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23745 # A "../" for each directory in $ac_dir_suffix.
23746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23747 else
23748 ac_dir_suffix= ac_top_builddir=
23749 fi
23750
23751 case $srcdir in
23752 .) # No --srcdir option. We are building in place.
23753 ac_srcdir=.
23754 if test -z "$ac_top_builddir"; then
23755 ac_top_srcdir=.
23756 else
23757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23758 fi ;;
23759 [\\/]* | ?:[\\/]* ) # Absolute path.
23760 ac_srcdir=$srcdir$ac_dir_suffix;
23761 ac_top_srcdir=$srcdir ;;
23762 *) # Relative path.
23763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23765 esac
23766
23767 # Do not use `cd foo && pwd` to compute absolute paths, because
23768 # the directories may not exist.
23769 case `pwd` in
23770 .) ac_abs_builddir="$ac_dir";;
23771 *)
23772 case "$ac_dir" in
23773 .) ac_abs_builddir=`pwd`;;
23774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23776 esac;;
23777 esac
23778 case $ac_abs_builddir in
23779 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23780 *)
23781 case ${ac_top_builddir}. in
23782 .) ac_abs_top_builddir=$ac_abs_builddir;;
23783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23785 esac;;
23786 esac
23787 case $ac_abs_builddir in
23788 .) ac_abs_srcdir=$ac_srcdir;;
23789 *)
23790 case $ac_srcdir in
23791 .) ac_abs_srcdir=$ac_abs_builddir;;
23792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23794 esac;;
23795 esac
23796 case $ac_abs_builddir in
23797 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23798 *)
23799 case $ac_top_srcdir in
23800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23803 esac;;
23804 esac
23805
23806
23807 case $INSTALL in
23808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23809 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23810 esac
23811
23812 # Let's still pretend it is `configure' which instantiates (i.e., don't
23813 # use $as_me), people would be surprised to read:
23814 # /* config.h. Generated by config.status. */
23815 if test x"$ac_file" = x-; then
23816 configure_input=
23817 else
23818 configure_input="$ac_file. "
23819 fi
23820 configure_input=$configure_input"Generated from `echo $ac_file_in |
23821 sed 's,.*/,,'` by configure."
23822
23823 # First look for the input files in the build tree, otherwise in the
23824 # src tree.
23825 ac_file_inputs=`IFS=:
23826 for f in $ac_file_in; do
23827 case $f in
23828 -) echo $tmp/stdin ;;
23829 [\\/$]*)
23830 # Absolute (can't be DOS-style, as IFS=:)
23831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23832 echo "$as_me: error: cannot find input file: $f" >&2;}
23833 { (exit 1); exit 1; }; }
23834 echo "$f";;
23835 *) # Relative
23836 if test -f "$f"; then
23837 # Build tree
23838 echo "$f"
23839 elif test -f "$srcdir/$f"; then
23840 # Source tree
23841 echo "$srcdir/$f"
23842 else
23843 # /dev/null tree
23844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23845 echo "$as_me: error: cannot find input file: $f" >&2;}
23846 { (exit 1); exit 1; }; }
23847 fi;;
23848 esac
23849 done` || { (exit 1); exit 1; }
23850
23851 if test x"$ac_file" != x-; then
23852 { echo "$as_me:$LINENO: creating $ac_file" >&5
23853 echo "$as_me: creating $ac_file" >&6;}
23854 rm -f "$ac_file"
23855 fi
23856 _ACEOF
23857 cat >>$CONFIG_STATUS <<_ACEOF
23858 sed "$ac_vpsub
23859 $extrasub
23860 _ACEOF
23861 cat >>$CONFIG_STATUS <<\_ACEOF
23862 :t
23863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23864 s,@configure_input@,$configure_input,;t t
23865 s,@srcdir@,$ac_srcdir,;t t
23866 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23867 s,@top_srcdir@,$ac_top_srcdir,;t t
23868 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23869 s,@builddir@,$ac_builddir,;t t
23870 s,@abs_builddir@,$ac_abs_builddir,;t t
23871 s,@top_builddir@,$ac_top_builddir,;t t
23872 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23873 s,@INSTALL@,$ac_INSTALL,;t t
23874 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23875 rm -f $tmp/stdin
23876 if test x"$ac_file" != x-; then
23877 mv $tmp/out $ac_file
23878 else
23879 cat $tmp/out
23880 rm -f $tmp/out
23881 fi
23882
23883 done
23884 _ACEOF
23885 cat >>$CONFIG_STATUS <<\_ACEOF
23886
23887 #
23888 # CONFIG_HEADER section.
23889 #
23890
23891 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23892 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23893 #
23894 # ac_d sets the value in "#define NAME VALUE" lines.
23895 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23896 ac_dB='[ ].*$,\1#\2'
23897 ac_dC=' '
23898 ac_dD=',;t'
23899 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23900 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23901 ac_uB='$,\1#\2define\3'
23902 ac_uC=' '
23903 ac_uD=',;t'
23904
23905 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23907 case $ac_file in
23908 - | *:- | *:-:* ) # input from stdin
23909 cat >$tmp/stdin
23910 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23912 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23914 * ) ac_file_in=$ac_file.in ;;
23915 esac
23916
23917 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23918 echo "$as_me: creating $ac_file" >&6;}
23919
23920 # First look for the input files in the build tree, otherwise in the
23921 # src tree.
23922 ac_file_inputs=`IFS=:
23923 for f in $ac_file_in; do
23924 case $f in
23925 -) echo $tmp/stdin ;;
23926 [\\/$]*)
23927 # Absolute (can't be DOS-style, as IFS=:)
23928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23929 echo "$as_me: error: cannot find input file: $f" >&2;}
23930 { (exit 1); exit 1; }; }
23931 # Do quote $f, to prevent DOS paths from being IFS'd.
23932 echo "$f";;
23933 *) # Relative
23934 if test -f "$f"; then
23935 # Build tree
23936 echo "$f"
23937 elif test -f "$srcdir/$f"; then
23938 # Source tree
23939 echo "$srcdir/$f"
23940 else
23941 # /dev/null tree
23942 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23943 echo "$as_me: error: cannot find input file: $f" >&2;}
23944 { (exit 1); exit 1; }; }
23945 fi;;
23946 esac
23947 done` || { (exit 1); exit 1; }
23948 # Remove the trailing spaces.
23949 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23950
23951 _ACEOF
23952
23953 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23954 # `conftest.undefs', that substitutes the proper values into
23955 # config.h.in to produce config.h. The first handles `#define'
23956 # templates, and the second `#undef' templates.
23957 # And first: Protect against being on the right side of a sed subst in
23958 # config.status. Protect against being in an unquoted here document
23959 # in config.status.
23960 rm -f conftest.defines conftest.undefs
23961 # Using a here document instead of a string reduces the quoting nightmare.
23962 # Putting comments in sed scripts is not portable.
23963 #
23964 # `end' is used to avoid that the second main sed command (meant for
23965 # 0-ary CPP macros) applies to n-ary macro definitions.
23966 # See the Autoconf documentation for `clear'.
23967 cat >confdef2sed.sed <<\_ACEOF
23968 s/[\\&,]/\\&/g
23969 s,[\\$`],\\&,g
23970 t clear
23971 : clear
23972 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23973 t end
23974 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23975 : end
23976 _ACEOF
23977 # If some macros were called several times there might be several times
23978 # the same #defines, which is useless. Nevertheless, we may not want to
23979 # sort them, since we want the *last* AC-DEFINE to be honored.
23980 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23981 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23982 rm -f confdef2sed.sed
23983
23984 # This sed command replaces #undef with comments. This is necessary, for
23985 # example, in the case of _POSIX_SOURCE, which is predefined and required
23986 # on some systems where configure will not decide to define it.
23987 cat >>conftest.undefs <<\_ACEOF
23988 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23989 _ACEOF
23990
23991 # Break up conftest.defines because some shells have a limit on the size
23992 # of here documents, and old seds have small limits too (100 cmds).
23993 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23994 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23995 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23996 echo ' :' >>$CONFIG_STATUS
23997 rm -f conftest.tail
23998 while grep . conftest.defines >/dev/null
23999 do
24000 # Write a limited-size here document to $tmp/defines.sed.
24001 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24002 # Speed up: don't consider the non `#define' lines.
24003 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24004 # Work around the forget-to-reset-the-flag bug.
24005 echo 't clr' >>$CONFIG_STATUS
24006 echo ': clr' >>$CONFIG_STATUS
24007 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24008 echo 'CEOF
24009 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24010 rm -f $tmp/in
24011 mv $tmp/out $tmp/in
24012 ' >>$CONFIG_STATUS
24013 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24014 rm -f conftest.defines
24015 mv conftest.tail conftest.defines
24016 done
24017 rm -f conftest.defines
24018 echo ' fi # grep' >>$CONFIG_STATUS
24019 echo >>$CONFIG_STATUS
24020
24021 # Break up conftest.undefs because some shells have a limit on the size
24022 # of here documents, and old seds have small limits too (100 cmds).
24023 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24024 rm -f conftest.tail
24025 while grep . conftest.undefs >/dev/null
24026 do
24027 # Write a limited-size here document to $tmp/undefs.sed.
24028 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24029 # Speed up: don't consider the non `#undef'
24030 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24031 # Work around the forget-to-reset-the-flag bug.
24032 echo 't clr' >>$CONFIG_STATUS
24033 echo ': clr' >>$CONFIG_STATUS
24034 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24035 echo 'CEOF
24036 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24037 rm -f $tmp/in
24038 mv $tmp/out $tmp/in
24039 ' >>$CONFIG_STATUS
24040 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24041 rm -f conftest.undefs
24042 mv conftest.tail conftest.undefs
24043 done
24044 rm -f conftest.undefs
24045
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 # Let's still pretend it is `configure' which instantiates (i.e., don't
24048 # use $as_me), people would be surprised to read:
24049 # /* config.h. Generated by config.status. */
24050 if test x"$ac_file" = x-; then
24051 echo "/* Generated by configure. */" >$tmp/config.h
24052 else
24053 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24054 fi
24055 cat $tmp/in >>$tmp/config.h
24056 rm -f $tmp/in
24057 if test x"$ac_file" != x-; then
24058 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24059 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24060 echo "$as_me: $ac_file is unchanged" >&6;}
24061 else
24062 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064 X"$ac_file" : 'X\(//\)[^/]' \| \
24065 X"$ac_file" : 'X\(//\)$' \| \
24066 X"$ac_file" : 'X\(/\)' \| \
24067 . : '\(.\)' 2>/dev/null ||
24068 echo X"$ac_file" |
24069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24071 /^X\(\/\/\)$/{ s//\1/; q; }
24072 /^X\(\/\).*/{ s//\1/; q; }
24073 s/.*/./; q'`
24074 { if $as_mkdir_p; then
24075 mkdir -p "$ac_dir"
24076 else
24077 as_dir="$ac_dir"
24078 as_dirs=
24079 while test ! -d "$as_dir"; do
24080 as_dirs="$as_dir $as_dirs"
24081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24083 X"$as_dir" : 'X\(//\)[^/]' \| \
24084 X"$as_dir" : 'X\(//\)$' \| \
24085 X"$as_dir" : 'X\(/\)' \| \
24086 . : '\(.\)' 2>/dev/null ||
24087 echo X"$as_dir" |
24088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24090 /^X\(\/\/\)$/{ s//\1/; q; }
24091 /^X\(\/\).*/{ s//\1/; q; }
24092 s/.*/./; q'`
24093 done
24094 test ! -n "$as_dirs" || mkdir $as_dirs
24095 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24096 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24097 { (exit 1); exit 1; }; }; }
24098
24099 rm -f $ac_file
24100 mv $tmp/config.h $ac_file
24101 fi
24102 else
24103 cat $tmp/config.h
24104 rm -f $tmp/config.h
24105 fi
24106 done
24107 _ACEOF
24108 cat >>$CONFIG_STATUS <<\_ACEOF
24109
24110 #
24111 # CONFIG_COMMANDS section.
24112 #
24113 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24114 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24115 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24116 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24117 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24118 X"$ac_dest" : 'X\(//\)[^/]' \| \
24119 X"$ac_dest" : 'X\(//\)$' \| \
24120 X"$ac_dest" : 'X\(/\)' \| \
24121 . : '\(.\)' 2>/dev/null ||
24122 echo X"$ac_dest" |
24123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24125 /^X\(\/\/\)$/{ s//\1/; q; }
24126 /^X\(\/\).*/{ s//\1/; q; }
24127 s/.*/./; q'`
24128 { if $as_mkdir_p; then
24129 mkdir -p "$ac_dir"
24130 else
24131 as_dir="$ac_dir"
24132 as_dirs=
24133 while test ! -d "$as_dir"; do
24134 as_dirs="$as_dir $as_dirs"
24135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24137 X"$as_dir" : 'X\(//\)[^/]' \| \
24138 X"$as_dir" : 'X\(//\)$' \| \
24139 X"$as_dir" : 'X\(/\)' \| \
24140 . : '\(.\)' 2>/dev/null ||
24141 echo X"$as_dir" |
24142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24144 /^X\(\/\/\)$/{ s//\1/; q; }
24145 /^X\(\/\).*/{ s//\1/; q; }
24146 s/.*/./; q'`
24147 done
24148 test ! -n "$as_dirs" || mkdir $as_dirs
24149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24151 { (exit 1); exit 1; }; }; }
24152
24153 ac_builddir=.
24154
24155 if test "$ac_dir" != .; then
24156 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24157 # A "../" for each directory in $ac_dir_suffix.
24158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24159 else
24160 ac_dir_suffix= ac_top_builddir=
24161 fi
24162
24163 case $srcdir in
24164 .) # No --srcdir option. We are building in place.
24165 ac_srcdir=.
24166 if test -z "$ac_top_builddir"; then
24167 ac_top_srcdir=.
24168 else
24169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24170 fi ;;
24171 [\\/]* | ?:[\\/]* ) # Absolute path.
24172 ac_srcdir=$srcdir$ac_dir_suffix;
24173 ac_top_srcdir=$srcdir ;;
24174 *) # Relative path.
24175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24176 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24177 esac
24178
24179 # Do not use `cd foo && pwd` to compute absolute paths, because
24180 # the directories may not exist.
24181 case `pwd` in
24182 .) ac_abs_builddir="$ac_dir";;
24183 *)
24184 case "$ac_dir" in
24185 .) ac_abs_builddir=`pwd`;;
24186 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24187 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24188 esac;;
24189 esac
24190 case $ac_abs_builddir in
24191 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24192 *)
24193 case ${ac_top_builddir}. in
24194 .) ac_abs_top_builddir=$ac_abs_builddir;;
24195 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24196 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24197 esac;;
24198 esac
24199 case $ac_abs_builddir in
24200 .) ac_abs_srcdir=$ac_srcdir;;
24201 *)
24202 case $ac_srcdir in
24203 .) ac_abs_srcdir=$ac_abs_builddir;;
24204 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24205 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24206 esac;;
24207 esac
24208 case $ac_abs_builddir in
24209 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24210 *)
24211 case $ac_top_srcdir in
24212 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24213 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24214 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24215 esac;;
24216 esac
24217
24218
24219 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24220 echo "$as_me: executing $ac_dest commands" >&6;}
24221 case $ac_dest in
24222 default )
24223
24224 ### Make the necessary directories, if they don't exist.
24225 for dir in etc lisp ; do
24226 test -d ${dir} || mkdir ${dir}
24227 done
24228
24229 # Build src/Makefile from ${srcdir}/src/Makefile.c
24230 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24231 # This must be done after src/config.h is built, since we rely on that file.
24232
24233 # Now get this: Some word that is part of the ${srcdir} directory name
24234 # or the ${configuration} value might, just might, happen to be an
24235 # identifier like `sun4' or `i386' or something, and be predefined by
24236 # the C preprocessor to some helpful value like 1, or maybe the empty
24237 # string. Needless to say consequent macro substitutions are less
24238 # than conducive to the makefile finding the correct directory.
24239 undefs="`echo $top_srcdir $configuration $canonical |
24240 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24241 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24242 `"
24243
24244 echo creating src/epaths.h
24245 ${MAKE-make} epaths-force
24246
24247 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24248 # `..' to `. .' unless invoked with -traditional
24249
24250 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24251 CPPFLAGS="$CPPFLAGS -traditional"
24252 fi
24253
24254 echo creating lib-src/Makefile
24255 ( cd lib-src
24256 rm -f junk.c junk1.c junk2.c
24257 sed -e '/start of cpp stuff/q' \
24258 < Makefile.c > junk1.c
24259 sed -e '1,/start of cpp stuff/d'\
24260 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24261 < Makefile.c > junk.c
24262 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24263 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24264 cat junk1.c junk2.c > Makefile.new
24265 rm -f junk.c junk1.c junk2.c
24266 chmod 444 Makefile.new
24267 mv -f Makefile.new Makefile
24268 )
24269
24270 echo creating src/Makefile
24271 ( cd src
24272 rm -f junk.c junk1.c junk2.c
24273 sed -e '/start of cpp stuff/q' \
24274 < Makefile.c > junk1.c
24275 sed -e '1,/start of cpp stuff/d'\
24276 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24277 < Makefile.c > junk.c
24278 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24279 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24280 cat junk1.c junk2.c > Makefile.new
24281 rm -f junk.c junk1.c junk2.c
24282 chmod 444 Makefile.new
24283 mv -f Makefile.new Makefile
24284 )
24285
24286 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24287 echo creating src/.gdbinit
24288 echo source $srcdir/src/.gdbinit > src/.gdbinit
24289 fi
24290
24291 # This is how we know whether to re-run configure in certain cases.
24292 touch src/config.stamp
24293
24294 ;;
24295 esac
24296 done
24297 _ACEOF
24298
24299 cat >>$CONFIG_STATUS <<\_ACEOF
24300
24301 { (exit 0); exit 0; }
24302 _ACEOF
24303 chmod +x $CONFIG_STATUS
24304 ac_clean_files=$ac_clean_files_save
24305
24306
24307 # configure is writing to config.log, and then calls config.status.
24308 # config.status does its own redirection, appending to config.log.
24309 # Unfortunately, on DOS this fails, as config.log is still kept open
24310 # by configure, so config.status won't be able to write to it; its
24311 # output is simply discarded. So we exec the FD to /dev/null,
24312 # effectively closing config.log, so it can be properly (re)opened and
24313 # appended to by config.status. When coming back to configure, we
24314 # need to make the FD available again.
24315 if test "$no_create" != yes; then
24316 ac_cs_success=:
24317 ac_config_status_args=
24318 test "$silent" = yes &&
24319 ac_config_status_args="$ac_config_status_args --quiet"
24320 exec 5>/dev/null
24321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24322 exec 5>>config.log
24323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24324 # would make configure fail if this is the last instruction.
24325 $ac_cs_success || { (exit 1); exit 1; }
24326 fi
24327
24328