]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[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"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_compiler_gnu=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 ac_compiler_gnu=no
3305 fi
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309 fi
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS=${CFLAGS+set}
3314 ac_save_CFLAGS=$CFLAGS
3315 CFLAGS="-g"
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_prog_cc_g=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_prog_cc_g=no
3364 fi
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366 fi
3367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3376 fi
3377 else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3382 fi
3383 fi
3384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 ac_cv_prog_cc_stdc=no
3390 ac_save_CC=$CC
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405 char **p;
3406 int i;
3407 {
3408 return p[i];
3409 }
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3411 {
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3418 }
3419
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std1 is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std1. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3435 int
3436 main ()
3437 {
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 # Don't try gcc -ansi; that turns off useful extensions and
3444 # breaks some systems' header files.
3445 # AIX -qlanglvl=ansi
3446 # Ultrix and OSF/1 -std1
3447 # HP-UX 10.20 and later -Ae
3448 # HP-UX older versions -Aa -D_HPUX_SOURCE
3449 # SVR4 -Xc -D__EXTENSIONS__
3450 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 do
3452 CC="$ac_save_CC $ac_arg"
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_prog_cc_stdc=$ac_arg
3476 break
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 fi
3482 rm -f conftest.err conftest.$ac_objext
3483 done
3484 rm -f conftest.$ac_ext conftest.$ac_objext
3485 CC=$ac_save_CC
3486
3487 fi
3488
3489 case "x$ac_cv_prog_cc_stdc" in
3490 x|xno)
3491 echo "$as_me:$LINENO: result: none needed" >&5
3492 echo "${ECHO_T}none needed" >&6 ;;
3493 *)
3494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496 CC="$CC $ac_cv_prog_cc_stdc" ;;
3497 esac
3498
3499 # Some people use a C++ compiler to compile C. Since we use `exit',
3500 # in C++ we need to declare it. In case someone uses the same compiler
3501 # for both compiling C and C++ we need to have the C++ compiler decide
3502 # the declaration of exit, since it's the most demanding environment.
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #ifndef __cplusplus
3505 choke me
3506 #endif
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 for ac_declaration in \
3531 '' \
3532 'extern "C" void std::exit (int) throw (); using std::exit;' \
3533 'extern "C" void std::exit (int); using std::exit;' \
3534 'extern "C" void exit (int) throw ();' \
3535 'extern "C" void exit (int);' \
3536 'void exit (int);'
3537 do
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_declaration
3545 #include <stdlib.h>
3546 int
3547 main ()
3548 {
3549 exit (42);
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 :
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 continue
3582 fi
3583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 $ac_declaration
3591 int
3592 main ()
3593 {
3594 exit (42);
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
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); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 break
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 fi
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 done
3629 rm -f conftest*
3630 if test -n "$ac_declaration"; then
3631 echo '#ifdef __cplusplus' >>confdefs.h
3632 echo $ac_declaration >>confdefs.h
3633 echo '#endif' >>confdefs.h
3634 fi
3635
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 fi
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_ext=c
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649 # On Suns, sometimes $CPP names a directory.
3650 if test -n "$CPP" && test -d "$CPP"; then
3651 CPP=
3652 fi
3653
3654 #### Some systems specify a CPP to use unless we are using GCC.
3655 #### Now that we know whether we are using GCC, we can decide whether
3656 #### to use that one.
3657 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3658 then
3659 CPP="$NON_GNU_CPP"
3660 fi
3661
3662 #### Some systems specify a CC to use unless we are using GCC.
3663 #### Now that we know whether we are using GCC, we can decide whether
3664 #### to use that one.
3665 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3666 test x$cc_specified != xyes
3667 then
3668 CC="$NON_GNU_CC"
3669 fi
3670
3671 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3672 then
3673 CC="$CC $GCC_TEST_OPTIONS"
3674 fi
3675
3676 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3677 then
3678 CC="$CC $NON_GCC_TEST_OPTIONS"
3679 fi
3680
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3691 CPP=
3692 fi
3693 if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 # Double quotes because CPP needs to be expanded
3698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3699 do
3700 ac_preproc_ok=false
3701 for ac_c_preproc_warn_flag in '' yes
3702 do
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #ifdef __STDC__
3716 # include <limits.h>
3717 #else
3718 # include <assert.h>
3719 #endif
3720 Syntax error
3721 _ACEOF
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3733 else
3734 ac_cpp_err=
3735 fi
3736 else
3737 ac_cpp_err=yes
3738 fi
3739 if test -z "$ac_cpp_err"; then
3740 :
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 # Broken: fails on valid input.
3746 continue
3747 fi
3748 rm -f conftest.err conftest.$ac_ext
3749
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3759 _ACEOF
3760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev/null; then
3768 if test -s conftest.err; then
3769 ac_cpp_err=$ac_c_preproc_warn_flag
3770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3771 else
3772 ac_cpp_err=
3773 fi
3774 else
3775 ac_cpp_err=yes
3776 fi
3777 if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3779 continue
3780 else
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 # Passes both tests.
3785 ac_preproc_ok=:
3786 break
3787 fi
3788 rm -f conftest.err conftest.$ac_ext
3789
3790 done
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.$ac_ext
3793 if $ac_preproc_ok; then
3794 break
3795 fi
3796
3797 done
3798 ac_cv_prog_CPP=$CPP
3799
3800 fi
3801 CPP=$ac_cv_prog_CPP
3802 else
3803 ac_cv_prog_CPP=$CPP
3804 fi
3805 echo "$as_me:$LINENO: result: $CPP" >&5
3806 echo "${ECHO_T}$CPP" >&6
3807 ac_preproc_ok=false
3808 for ac_c_preproc_warn_flag in '' yes
3809 do
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #ifdef __STDC__
3823 # include <limits.h>
3824 #else
3825 # include <assert.h>
3826 #endif
3827 Syntax error
3828 _ACEOF
3829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev/null; then
3837 if test -s conftest.err; then
3838 ac_cpp_err=$ac_c_preproc_warn_flag
3839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3840 else
3841 ac_cpp_err=
3842 fi
3843 else
3844 ac_cpp_err=yes
3845 fi
3846 if test -z "$ac_cpp_err"; then
3847 :
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 # Broken: fails on valid input.
3853 continue
3854 fi
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <ac_nonexistent.h>
3866 _ACEOF
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878 else
3879 ac_cpp_err=
3880 fi
3881 else
3882 ac_cpp_err=yes
3883 fi
3884 if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3886 continue
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 # Passes both tests.
3892 ac_preproc_ok=:
3893 break
3894 fi
3895 rm -f conftest.err conftest.$ac_ext
3896
3897 done
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.err conftest.$ac_ext
3900 if $ac_preproc_ok; then
3901 :
3902 else
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&5
3905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3908 fi
3909
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
3916
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3923 then ac_cv_prog_egrep='grep -E'
3924 else ac_cv_prog_egrep='egrep'
3925 fi
3926 fi
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP=$ac_cv_prog_egrep
3930
3931
3932
3933 echo "$as_me:$LINENO: checking for AIX" >&5
3934 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #ifdef _AIX
3942 yes
3943 #endif
3944
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev/null 2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _ALL_SOURCE 1
3952 _ACEOF
3953
3954 else
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3957 fi
3958 rm -f conftest*
3959
3960
3961
3962 cat >>confdefs.h <<\_ACEOF
3963 #define _GNU_SOURCE 1
3964 _ACEOF
3965
3966
3967
3968 ### Use -Wno-pointer-sign if the compiler supports it
3969 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3970 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3971 SAVE_CFLAGS="$CFLAGS"
3972 CFLAGS="$CFLAGS -Wno-pointer-sign"
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979
3980 int
3981 main ()
3982 {
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 has_option=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015 has_option=no
4016 fi
4017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018 if test $has_option = yes; then
4019 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4020 fi
4021 echo "$as_me:$LINENO: result: $has_option" >&5
4022 echo "${ECHO_T}$has_option" >&6
4023 CFLAGS="$SAVE_CFLAGS"
4024 unset has_option
4025 unset SAVE_CFLAGS
4026
4027 #### Some other nice autoconf tests.
4028
4029 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4030 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4031 LN_S=$as_ln_s
4032 if test "$LN_S" = "ln -s"; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4037 echo "${ECHO_T}no, using $LN_S" >&6
4038 fi
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4047 # On Suns, sometimes $CPP names a directory.
4048 if test -n "$CPP" && test -d "$CPP"; then
4049 CPP=
4050 fi
4051 if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 # Double quotes because CPP needs to be expanded
4056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4057 do
4058 ac_preproc_ok=false
4059 for ac_c_preproc_warn_flag in '' yes
4060 do
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #ifdef __STDC__
4074 # include <limits.h>
4075 #else
4076 # include <assert.h>
4077 #endif
4078 Syntax error
4079 _ACEOF
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4091 else
4092 ac_cpp_err=
4093 fi
4094 else
4095 ac_cpp_err=yes
4096 fi
4097 if test -z "$ac_cpp_err"; then
4098 :
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 # Broken: fails on valid input.
4104 continue
4105 fi
4106 rm -f conftest.err conftest.$ac_ext
4107
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4117 _ACEOF
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null; then
4126 if test -s conftest.err; then
4127 ac_cpp_err=$ac_c_preproc_warn_flag
4128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4129 else
4130 ac_cpp_err=
4131 fi
4132 else
4133 ac_cpp_err=yes
4134 fi
4135 if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4137 continue
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4145 fi
4146 rm -f conftest.err conftest.$ac_ext
4147
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then
4152 break
4153 fi
4154
4155 done
4156 ac_cv_prog_CPP=$CPP
4157
4158 fi
4159 CPP=$ac_cv_prog_CPP
4160 else
4161 ac_cv_prog_CPP=$CPP
4162 fi
4163 echo "$as_me:$LINENO: result: $CPP" >&5
4164 echo "${ECHO_T}$CPP" >&6
4165 ac_preproc_ok=false
4166 for ac_c_preproc_warn_flag in '' yes
4167 do
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 #ifdef __STDC__
4181 # include <limits.h>
4182 #else
4183 # include <assert.h>
4184 #endif
4185 Syntax error
4186 _ACEOF
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4198 else
4199 ac_cpp_err=
4200 fi
4201 else
4202 ac_cpp_err=yes
4203 fi
4204 if test -z "$ac_cpp_err"; then
4205 :
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 # Broken: fails on valid input.
4211 continue
4212 fi
4213 rm -f conftest.err conftest.$ac_ext
4214
4215 # OK, works on sane cases. Now check whether non-existent headers
4216 # can be detected and how.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev/null; then
4233 if test -s conftest.err; then
4234 ac_cpp_err=$ac_c_preproc_warn_flag
4235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4236 else
4237 ac_cpp_err=
4238 fi
4239 else
4240 ac_cpp_err=yes
4241 fi
4242 if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4244 continue
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 # Passes both tests.
4250 ac_preproc_ok=:
4251 break
4252 fi
4253 rm -f conftest.err conftest.$ac_ext
4254
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then
4259 :
4260 else
4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
4266 fi
4267
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274 # Find a good install program. We prefer a C program (faster),
4275 # so one script is as good as another. But avoid the broken or
4276 # incompatible versions:
4277 # SysV /etc/install, /usr/sbin/install
4278 # SunOS /usr/etc/install
4279 # IRIX /sbin/install
4280 # AIX /bin/install
4281 # AmigaOS /C/install, which installs bootblocks on floppy discs
4282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4285 # OS/2's system install, which has a completely different semantic
4286 # ./install, which can be erroneously created by make from ./install.sh.
4287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4289 if test -z "$INSTALL"; then
4290 if test "${ac_cv_path_install+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 # Account for people who put trailing slashes in PATH elements.
4299 case $as_dir/ in
4300 ./ | .// | /cC/* | \
4301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4303 /usr/ucb/* ) ;;
4304 *)
4305 # OSF1 and SCO ODT 3.0 have their own names for install.
4306 # Don't use installbsd from OSF since it installs stuff as root
4307 # by default.
4308 for ac_prog in ginstall scoinst install; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4311 if test $ac_prog = install &&
4312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4313 # AIX install. It has an incompatible calling convention.
4314 :
4315 elif test $ac_prog = install &&
4316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317 # program-specific install script used by HP pwplus--don't use.
4318 :
4319 else
4320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4321 break 3
4322 fi
4323 fi
4324 done
4325 done
4326 ;;
4327 esac
4328 done
4329
4330
4331 fi
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL=$ac_cv_path_install
4334 else
4335 # As a last resort, use the slow shell script. We don't cache a
4336 # path for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the path is relative.
4339 INSTALL=$ac_install_sh
4340 fi
4341 fi
4342 echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6
4344
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4348
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4350
4351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4352
4353 if test "x$RANLIB" = x; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_RANLIB+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 if test -n "$RANLIB"; then
4363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378
4379 fi
4380 fi
4381 RANLIB=$ac_cv_prog_RANLIB
4382 if test -n "$RANLIB"; then
4383 echo "$as_me:$LINENO: result: $RANLIB" >&5
4384 echo "${ECHO_T}$RANLIB" >&6
4385 else
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390 fi
4391 if test -z "$ac_cv_prog_RANLIB"; then
4392 ac_ct_RANLIB=$RANLIB
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394 set dummy ranlib; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 if test -n "$ac_ct_RANLIB"; then
4401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_RANLIB="ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416
4417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4418 fi
4419 fi
4420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4421 if test -n "$ac_ct_RANLIB"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4424 else
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 fi
4428
4429 RANLIB=$ac_ct_RANLIB
4430 else
4431 RANLIB="$ac_cv_prog_RANLIB"
4432 fi
4433
4434 fi
4435 # Extract the first word of "install-info", so it can be a program name with args.
4436 set dummy install-info; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 case $INSTALL_INFO in
4443 [\\/]* | ?:[\\/]*)
4444 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4445 ;;
4446 *)
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460
4461 ;;
4462 esac
4463 fi
4464 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4465
4466 if test -n "$INSTALL_INFO"; then
4467 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4468 echo "${ECHO_T}$INSTALL_INFO" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472 fi
4473
4474 # Extract the first word of "install-info", so it can be a program name with args.
4475 set dummy install-info; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 case $INSTALL_INFO in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4484 ;;
4485 *)
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in /usr/sbin
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499
4500 ;;
4501 esac
4502 fi
4503 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4504
4505 if test -n "$INSTALL_INFO"; then
4506 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4507 echo "${ECHO_T}$INSTALL_INFO" >&6
4508 else
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512
4513 # Extract the first word of "install-info", so it can be a program name with args.
4514 set dummy install-info; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 case $INSTALL_INFO in
4521 [\\/]* | ?:[\\/]*)
4522 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4523 ;;
4524 *)
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in /sbin
4527 do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536 done
4537 done
4538
4539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4540 ;;
4541 esac
4542 fi
4543 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4544
4545 if test -n "$INSTALL_INFO"; then
4546 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4547 echo "${ECHO_T}$INSTALL_INFO" >&6
4548 else
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553 # Extract the first word of "gzip", so it can be a program name with args.
4554 set dummy gzip; ac_word=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 case $GZIP_PROG in
4561 [\\/]* | ?:[\\/]*)
4562 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4563 ;;
4564 *)
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578
4579 ;;
4580 esac
4581 fi
4582 GZIP_PROG=$ac_cv_path_GZIP_PROG
4583
4584 if test -n "$GZIP_PROG"; then
4585 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4586 echo "${ECHO_T}$GZIP_PROG" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593
4594 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4595 then
4596 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4597 fi
4598
4599 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4600 then
4601 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4602 fi
4603
4604
4605 late_LDFLAGS=$LDFLAGS
4606 if test "$GCC" = yes; then
4607 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4608 else
4609 LDFLAGS="$LDFLAGS -znocombreloc"
4610 fi
4611
4612 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4613 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4614 cat >conftest.$ac_ext <<_ACEOF
4615 main(){return 0;}
4616 _ACEOF
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 LDFLAGS=$late_LDFLAGS
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4648 fi
4649 rm -f conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4651
4652 #### Extract some information from the operating system and machine files.
4653
4654 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4655 - which libraries the lib-src programs will want, and
4656 - whether the GNU malloc routines are usable..." >&5
4657 echo "$as_me: checking the machine- and system-dependent files to find out
4658 - which libraries the lib-src programs will want, and
4659 - whether the GNU malloc routines are usable..." >&6;}
4660
4661 ### First figure out CFLAGS (which we use for running the compiler here)
4662 ### and REAL_CFLAGS (which we use for real compilation).
4663 ### The two are the same except on a few systems, where they are made
4664 ### different to work around various lossages. For example,
4665 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4666 ### as implying static linking.
4667
4668 ### If the CFLAGS env var is specified, we use that value
4669 ### instead of the default.
4670
4671 ### It's not important that this name contain the PID; you can't run
4672 ### two configures in the same directory and have anything work
4673 ### anyway.
4674 tempcname="conftest.c"
4675
4676 echo '
4677 #include "'${srcdir}'/src/'${opsysfile}'"
4678 #include "'${srcdir}'/src/'${machfile}'"
4679 #ifndef LIBS_MACHINE
4680 #define LIBS_MACHINE
4681 #endif
4682 #ifndef LIBS_SYSTEM
4683 #define LIBS_SYSTEM
4684 #endif
4685 #ifndef C_SWITCH_SYSTEM
4686 #define C_SWITCH_SYSTEM
4687 #endif
4688 #ifndef C_SWITCH_MACHINE
4689 #define C_SWITCH_MACHINE
4690 #endif
4691 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4692 configure___ c_switch_system=C_SWITCH_SYSTEM
4693 configure___ c_switch_machine=C_SWITCH_MACHINE
4694
4695 #ifndef LIB_X11_LIB
4696 #define LIB_X11_LIB -lX11
4697 #endif
4698
4699 #ifndef LIBX11_MACHINE
4700 #define LIBX11_MACHINE
4701 #endif
4702
4703 #ifndef LIBX11_SYSTEM
4704 #define LIBX11_SYSTEM
4705 #endif
4706 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4707
4708 #ifdef UNEXEC
4709 configure___ unexec=UNEXEC
4710 #else
4711 configure___ unexec=unexec.o
4712 #endif
4713
4714 #ifdef SYSTEM_MALLOC
4715 configure___ system_malloc=yes
4716 #else
4717 configure___ system_malloc=no
4718 #endif
4719
4720 #ifdef USE_MMAP_FOR_BUFFERS
4721 configure___ use_mmap_for_buffers=yes
4722 #else
4723 configure___ use_mmap_for_buffers=no
4724 #endif
4725
4726 #ifndef C_DEBUG_SWITCH
4727 #define C_DEBUG_SWITCH -g
4728 #endif
4729
4730 #ifndef C_OPTIMIZE_SWITCH
4731 #ifdef __GNUC__
4732 #define C_OPTIMIZE_SWITCH -O2
4733 #else
4734 #define C_OPTIMIZE_SWITCH -O
4735 #endif
4736 #endif
4737
4738 #ifndef C_WARNINGS_SWITCH
4739 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4740 #endif
4741
4742 #ifndef LD_SWITCH_MACHINE
4743 #define LD_SWITCH_MACHINE
4744 #endif
4745
4746 #ifndef LD_SWITCH_SYSTEM
4747 #define LD_SWITCH_SYSTEM
4748 #endif
4749
4750 #ifndef LD_SWITCH_X_SITE_AUX
4751 #define LD_SWITCH_X_SITE_AUX
4752 #endif
4753
4754 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4755 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4756
4757 #ifdef THIS_IS_CONFIGURE
4758
4759 /* Get the CFLAGS for tests in configure. */
4760 #ifdef __GNUC__
4761 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4762 #else
4763 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4764 #endif
4765
4766 #else /* not THIS_IS_CONFIGURE */
4767
4768 /* Get the CFLAGS for real compilation. */
4769 #ifdef __GNUC__
4770 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4771 #else
4772 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4773 #endif
4774
4775 #endif /* not THIS_IS_CONFIGURE */
4776 ' > ${tempcname}
4777
4778 # The value of CPP is a quoted variable reference, so we need to do this
4779 # to get its actual value...
4780 CPP=`eval "echo $CPP"`
4781 eval `${CPP} -Isrc ${tempcname} \
4782 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783 if test "x$SPECIFIED_CFLAGS" = x; then
4784 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4785 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4786 else
4787 REAL_CFLAGS="$CFLAGS"
4788 fi
4789 rm ${tempcname}
4790
4791 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4792
4793 ### Make sure subsequent tests use flags consistent with the build flags.
4794
4795 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4796 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4797 else
4798 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4799 fi
4800
4801
4802
4803 # Check whether --enable-largefile or --disable-largefile was given.
4804 if test "${enable_largefile+set}" = set; then
4805 enableval="$enable_largefile"
4806
4807 fi;
4808 if test "$enable_largefile" != no; then
4809
4810 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4811 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4812 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 ac_cv_sys_largefile_CC=no
4816 if test "$GCC" != yes; then
4817 ac_save_CC=$CC
4818 while :; do
4819 # IRIX 6.2 and later do not support large files by default,
4820 # so use the C compiler's -n32 option if that helps.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 /* Check that off_t can represent 2**63 - 1 correctly.
4829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4830 since some C++ compilers masquerading as C compilers
4831 incorrectly reject 9223372036854775807. */
4832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4834 && LARGE_OFF_T % 2147483647 == 1)
4835 ? 1 : -1];
4836 int
4837 main ()
4838 {
4839
4840 ;
4841 return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 break
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 fi
4872 rm -f conftest.err conftest.$ac_objext
4873 CC="$CC -n32"
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_sys_largefile_CC=' -n32'; break
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 fi
4902 rm -f conftest.err conftest.$ac_objext
4903 break
4904 done
4905 CC=$ac_save_CC
4906 rm -f conftest.$ac_ext
4907 fi
4908 fi
4909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4910 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4911 if test "$ac_cv_sys_largefile_CC" != no; then
4912 CC=$CC$ac_cv_sys_largefile_CC
4913 fi
4914
4915 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4916 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4917 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 while :; do
4921 ac_cv_sys_file_offset_bits=no
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4936 ? 1 : -1];
4937 int
4938 main ()
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 break
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 fi
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #define _FILE_OFFSET_BITS 64
4981 #include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4989 ? 1 : -1];
4990 int
4991 main ()
4992 {
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_sys_file_offset_bits=64; break
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 fi
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 break
5028 done
5029 fi
5030 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5031 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5032 if test "$ac_cv_sys_file_offset_bits" != no; then
5033
5034 cat >>confdefs.h <<_ACEOF
5035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5036 _ACEOF
5037
5038 fi
5039 rm -f conftest*
5040 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5042 if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 while :; do
5046 ac_cv_sys_large_files=no
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5061 ? 1 : -1];
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 break
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 fi
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #define _LARGE_FILES 1
5106 #include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5114 ? 1 : -1];
5115 int
5116 main ()
5117 {
5118
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest.$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_sys_large_files=1; break
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 fi
5151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152 break
5153 done
5154 fi
5155 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5156 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5157 if test "$ac_cv_sys_large_files" != no; then
5158
5159 cat >>confdefs.h <<_ACEOF
5160 #define _LARGE_FILES $ac_cv_sys_large_files
5161 _ACEOF
5162
5163 fi
5164 rm -f conftest*
5165 fi
5166
5167
5168
5169
5170
5171
5172 if test "${with_sound}" != "no"; then
5173 # Sound support for GNU/Linux and the free BSDs.
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <stdlib.h>
5186 #include <stdarg.h>
5187 #include <string.h>
5188 #include <float.h>
5189
5190 int
5191 main ()
5192 {
5193
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_header_stdc=yes
5221 else
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_cv_header_stdc=no
5226 fi
5227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5228
5229 if test $ac_cv_header_stdc = yes; then
5230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #include <string.h>
5238
5239 _ACEOF
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "memchr" >/dev/null 2>&1; then
5242 :
5243 else
5244 ac_cv_header_stdc=no
5245 fi
5246 rm -f conftest*
5247
5248 fi
5249
5250 if test $ac_cv_header_stdc = yes; then
5251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #include <stdlib.h>
5259
5260 _ACEOF
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "free" >/dev/null 2>&1; then
5263 :
5264 else
5265 ac_cv_header_stdc=no
5266 fi
5267 rm -f conftest*
5268
5269 fi
5270
5271 if test $ac_cv_header_stdc = yes; then
5272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5273 if test "$cross_compiling" = yes; then
5274 :
5275 else
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <ctype.h>
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5286 #else
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5292 #endif
5293
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5295 int
5296 main ()
5297 {
5298 int i;
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5302 exit(2);
5303 exit (0);
5304 }
5305 _ACEOF
5306 rm -f conftest$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 :
5318 else
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 ( exit $ac_status )
5324 ac_cv_header_stdc=no
5325 fi
5326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5327 fi
5328 fi
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5332 if test $ac_cv_header_stdc = yes; then
5333
5334 cat >>confdefs.h <<\_ACEOF
5335 #define STDC_HEADERS 1
5336 _ACEOF
5337
5338 fi
5339
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5351 inttypes.h stdint.h unistd.h
5352 do
5353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_header" >&5
5355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366
5367 #include <$ac_header>
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_c_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 eval "$as_ac_Header=yes"
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 eval "$as_ac_Header=no"
5397 fi
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 fi
5400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 _ACEOF
5406
5407 fi
5408
5409 done
5410
5411
5412
5413
5414
5415 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5416 do
5417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 fi
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_header_compiler=no
5467 fi
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5471
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <$ac_header>
5482 _ACEOF
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev/null; then
5491 if test -s conftest.err; then
5492 ac_cpp_err=$ac_c_preproc_warn_flag
5493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494 else
5495 ac_cpp_err=
5496 fi
5497 else
5498 ac_cpp_err=yes
5499 fi
5500 if test -z "$ac_cpp_err"; then
5501 ac_header_preproc=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_header_preproc=no
5507 fi
5508 rm -f conftest.err conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5511
5512 # So? What about this header?
5513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5514 yes:no: )
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5519 ac_header_preproc=yes
5520 ;;
5521 no:yes:* )
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5534 (
5535 cat <<\_ASBOX
5536 ## ------------------------------------------ ##
5537 ## Report this to the AC_PACKAGE_NAME lists. ##
5538 ## ------------------------------------------ ##
5539 _ASBOX
5540 ) |
5541 sed "s/^/$as_me: WARNING: /" >&2
5542 ;;
5543 esac
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 eval "$as_ac_Header=\$ac_header_preproc"
5550 fi
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5553
5554 fi
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 _ACEOF
5559
5560 fi
5561
5562 done
5563
5564 # Emulation library used on NetBSD.
5565 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5566 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5567 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lossaudio $LIBS"
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5585 char _oss_ioctl ();
5586 int
5587 main ()
5588 {
5589 _oss_ioctl ();
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_ossaudio__oss_ioctl=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_lib_ossaudio__oss_ioctl=no
5622 fi
5623 rm -f conftest.err conftest.$ac_objext \
5624 conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5628 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5629 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5630 LIBSOUND=-lossaudio
5631 else
5632 LIBSOUND=
5633 fi
5634
5635
5636
5637 ALSA_REQUIRED=1.0.0
5638 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5639 if test "X${with_pkg_config_prog}" != X; then
5640 PKG_CONFIG="${with_pkg_config_prog}"
5641 fi
5642
5643 succeeded=no
5644
5645 if test -z "$PKG_CONFIG"; then
5646 # Extract the first word of "pkg-config", so it can be a program name with args.
5647 set dummy pkg-config; ac_word=$2
5648 echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 case $PKG_CONFIG in
5654 [\\/]* | ?:[\\/]*)
5655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5656 ;;
5657 *)
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669 done
5670 done
5671
5672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5673 ;;
5674 esac
5675 fi
5676 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5677
5678 if test -n "$PKG_CONFIG"; then
5679 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5680 echo "${ECHO_T}$PKG_CONFIG" >&6
5681 else
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5684 fi
5685
5686 fi
5687
5688 if test "$PKG_CONFIG" = "no" ; then
5689 HAVE_ALSA=no
5690 else
5691 PKG_CONFIG_MIN_VERSION=0.9.0
5692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5693 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5694 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5695
5696 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5699 succeeded=yes
5700
5701 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5702 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5703 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5704 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5705 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5706
5707 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5708 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5709 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5710 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5711 echo "${ECHO_T}$ALSA_LIBS" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715 ALSA_CFLAGS=""
5716 ALSA_LIBS=""
5717 ## If we have a custom action on failure, don't print errors, but
5718 ## do set a variable so people can do so.
5719 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5720
5721 fi
5722
5723
5724
5725 else
5726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5728 fi
5729 fi
5730
5731 if test $succeeded = yes; then
5732 HAVE_ALSA=yes
5733 else
5734 HAVE_ALSA=no
5735 fi
5736
5737 if test $HAVE_ALSA = yes; then
5738 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5739 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5740
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_ALSA 1
5743 _ACEOF
5744
5745 fi
5746
5747 fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5775 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5776 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5777 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5778 sys/utsname.h pwd.h
5779 do
5780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782 echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 fi
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5789 else
5790 # Is the header compilable?
5791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 #include <$ac_header>
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_header_compiler=yes
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_header_compiler=no
5830 fi
5831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5834
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <$ac_header>
5845 _ACEOF
5846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev/null; then
5854 if test -s conftest.err; then
5855 ac_cpp_err=$ac_c_preproc_warn_flag
5856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5857 else
5858 ac_cpp_err=
5859 fi
5860 else
5861 ac_cpp_err=yes
5862 fi
5863 if test -z "$ac_cpp_err"; then
5864 ac_header_preproc=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_header_preproc=no
5870 fi
5871 rm -f conftest.err conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5874
5875 # So? What about this header?
5876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5877 yes:no: )
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5882 ac_header_preproc=yes
5883 ;;
5884 no:yes:* )
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5897 (
5898 cat <<\_ASBOX
5899 ## ------------------------------------------ ##
5900 ## Report this to the AC_PACKAGE_NAME lists. ##
5901 ## ------------------------------------------ ##
5902 _ASBOX
5903 ) |
5904 sed "s/^/$as_me: WARNING: /" >&2
5905 ;;
5906 esac
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 eval "$as_ac_Header=\$ac_header_preproc"
5913 fi
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5916
5917 fi
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5922
5923 fi
5924
5925 done
5926
5927
5928 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5929 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <sys/personality.h>
5937 int
5938 main ()
5939 {
5940 personality (PER_LINUX32)
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 emacs_cv_personality_linux32=yes
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 emacs_cv_personality_linux32=no
5973 fi
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5976 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5977
5978 if test $emacs_cv_personality_linux32 = yes; then
5979
5980 cat >>confdefs.h <<\_ACEOF
5981 #define HAVE_PERSONALITY_LINUX32 1
5982 _ACEOF
5983
5984 fi
5985
5986
5987 for ac_header in term.h
5988 do
5989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 echo "$as_me:$LINENO: checking for $ac_header" >&5
5991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <$ac_header>
6002 _ACEOF
6003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null; then
6011 if test -s conftest.err; then
6012 ac_cpp_err=$ac_c_preproc_warn_flag
6013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014 else
6015 ac_cpp_err=
6016 fi
6017 else
6018 ac_cpp_err=yes
6019 fi
6020 if test -z "$ac_cpp_err"; then
6021 eval "$as_ac_Header=yes"
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 eval "$as_ac_Header=no"
6027 fi
6028 rm -f conftest.err conftest.$ac_ext
6029 fi
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6033 cat >>confdefs.h <<_ACEOF
6034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 _ACEOF
6036
6037 fi
6038
6039 done
6040
6041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <stdlib.h>
6053 #include <stdarg.h>
6054 #include <string.h>
6055 #include <float.h>
6056
6057 int
6058 main ()
6059 {
6060
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_header_stdc=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_cv_header_stdc=no
6093 fi
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6095
6096 if test $ac_cv_header_stdc = yes; then
6097 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6105
6106 _ACEOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <stdlib.h>
6126
6127 _ACEOF
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "free" >/dev/null 2>&1; then
6130 :
6131 else
6132 ac_cv_header_stdc=no
6133 fi
6134 rm -f conftest*
6135
6136 fi
6137
6138 if test $ac_cv_header_stdc = yes; then
6139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6140 if test "$cross_compiling" = yes; then
6141 :
6142 else
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <ctype.h>
6150 #if ((' ' & 0x0FF) == 0x020)
6151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6153 #else
6154 # define ISLOWER(c) \
6155 (('a' <= (c) && (c) <= 'i') \
6156 || ('j' <= (c) && (c) <= 'r') \
6157 || ('s' <= (c) && (c) <= 'z'))
6158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6159 #endif
6160
6161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6162 int
6163 main ()
6164 {
6165 int i;
6166 for (i = 0; i < 256; i++)
6167 if (XOR (islower (i), ISLOWER (i))
6168 || toupper (i) != TOUPPER (i))
6169 exit(2);
6170 exit (0);
6171 }
6172 _ACEOF
6173 rm -f conftest$ac_exeext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 :
6185 else
6186 echo "$as_me: program exited with status $ac_status" >&5
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 ( exit $ac_status )
6191 ac_cv_header_stdc=no
6192 fi
6193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 fi
6196 fi
6197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6199 if test $ac_cv_header_stdc = yes; then
6200
6201 cat >>confdefs.h <<\_ACEOF
6202 #define STDC_HEADERS 1
6203 _ACEOF
6204
6205 fi
6206
6207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6209 if test "${ac_cv_header_time+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/time.h>
6220 #include <time.h>
6221
6222 int
6223 main ()
6224 {
6225 if ((struct tm *) 0)
6226 return 0;
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_header_time=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 ac_cv_header_time=no
6259 fi
6260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6263 echo "${ECHO_T}$ac_cv_header_time" >&6
6264 if test $ac_cv_header_time = yes; then
6265
6266 cat >>confdefs.h <<\_ACEOF
6267 #define TIME_WITH_SYS_TIME 1
6268 _ACEOF
6269
6270 fi
6271
6272 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6273 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6274 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6284 int
6285 main ()
6286 {
6287 #ifndef sys_siglist
6288 char *p = (char *) sys_siglist;
6289 #endif
6290
6291 ;
6292 return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6298 ac_status=$?
6299 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -f conftest.er1
6301 cat conftest.err >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_have_decl_sys_siglist=yes
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_cv_have_decl_sys_siglist=no
6323 fi
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6327 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6328 if test $ac_cv_have_decl_sys_siglist = yes; then
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE_DECL_SYS_SIGLIST 1
6332 _ACEOF
6333
6334
6335 else
6336 cat >>confdefs.h <<_ACEOF
6337 #define HAVE_DECL_SYS_SIGLIST 0
6338 _ACEOF
6339
6340
6341 fi
6342
6343
6344 if test $ac_cv_have_decl_sys_siglist != yes; then
6345 # For Tru64, at least:
6346 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6347 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6348 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 int
6359 main ()
6360 {
6361 #ifndef __sys_siglist
6362 char *p = (char *) __sys_siglist;
6363 #endif
6364
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_have_decl___sys_siglist=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ac_cv_have_decl___sys_siglist=no
6397 fi
6398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6401 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6402 if test $ac_cv_have_decl___sys_siglist = yes; then
6403
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_DECL___SYS_SIGLIST 1
6406 _ACEOF
6407
6408
6409 else
6410 cat >>confdefs.h <<_ACEOF
6411 #define HAVE_DECL___SYS_SIGLIST 0
6412 _ACEOF
6413
6414
6415 fi
6416
6417
6418 if test $ac_cv_have_decl___sys_siglist = yes; then
6419
6420 cat >>confdefs.h <<\_ACEOF
6421 #define sys_siglist __sys_siglist
6422 _ACEOF
6423
6424 fi
6425 fi
6426 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6427 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6428 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <sys/wait.h>
6439 #ifndef WEXITSTATUS
6440 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6441 #endif
6442 #ifndef WIFEXITED
6443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6444 #endif
6445
6446 int
6447 main ()
6448 {
6449 int s;
6450 wait (&s);
6451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_header_sys_wait_h=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_cv_header_sys_wait_h=no
6484 fi
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 fi
6487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6489 if test $ac_cv_header_sys_wait_h = yes; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_SYS_WAIT_H 1
6493 _ACEOF
6494
6495 fi
6496
6497
6498 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6499 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6500 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #ifdef TIME_WITH_SYS_TIME
6510 #include <sys/time.h>
6511 #include <time.h>
6512 #else
6513 #ifdef HAVE_SYS_TIME_H
6514 #include <sys/time.h>
6515 #else
6516 #include <time.h>
6517 #endif
6518 #endif
6519 #ifdef HAVE_UTIME_H
6520 #include <utime.h>
6521 #endif
6522 int
6523 main ()
6524 {
6525 static struct utimbuf x; x.actime = x.modtime;
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag"
6540 || test ! -s conftest.err'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; } &&
6546 { ac_try='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 emacs_cv_struct_utimbuf=yes
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557 emacs_cv_struct_utimbuf=no
6558 fi
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6562 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6563 if test $emacs_cv_struct_utimbuf = yes; then
6564
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_STRUCT_UTIMBUF 1
6567 _ACEOF
6568
6569 fi
6570
6571 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6572 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6573 if test "${ac_cv_type_signal+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6583 #include <signal.h>
6584 #ifdef signal
6585 # undef signal
6586 #endif
6587 #ifdef __cplusplus
6588 extern "C" void (*signal (int, void (*)(int)))(int);
6589 #else
6590 void (*signal ()) ();
6591 #endif
6592
6593 int
6594 main ()
6595 {
6596 int i;
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_type_signal=void
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_cv_type_signal=int
6629 fi
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6633 echo "${ECHO_T}$ac_cv_type_signal" >&6
6634
6635 cat >>confdefs.h <<_ACEOF
6636 #define RETSIGTYPE $ac_cv_type_signal
6637 _ACEOF
6638
6639
6640
6641 echo "$as_me:$LINENO: checking for speed_t" >&5
6642 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6643 if test "${emacs_cv_speed_t+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <termios.h>
6653 int
6654 main ()
6655 {
6656 speed_t x = 1;
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 emacs_cv_speed_t=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 emacs_cv_speed_t=no
6689 fi
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6693 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6694 if test $emacs_cv_speed_t = yes; then
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_SPEED_T 1
6698 _ACEOF
6699
6700 fi
6701
6702 echo "$as_me:$LINENO: checking for struct timeval" >&5
6703 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6704 if test "${emacs_cv_struct_timeval+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #ifdef TIME_WITH_SYS_TIME
6714 #include <sys/time.h>
6715 #include <time.h>
6716 #else
6717 #ifdef HAVE_SYS_TIME_H
6718 #include <sys/time.h>
6719 #else
6720 #include <time.h>
6721 #endif
6722 #endif
6723 int
6724 main ()
6725 {
6726 static struct timeval x; x.tv_sec = x.tv_usec;
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 emacs_cv_struct_timeval=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 emacs_cv_struct_timeval=no
6759 fi
6760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6761 fi
6762 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6763 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6764 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6765 if test $emacs_cv_struct_timeval = yes; then
6766
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_TIMEVAL 1
6769 _ACEOF
6770
6771 fi
6772
6773 echo "$as_me:$LINENO: checking for struct exception" >&5
6774 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6775 if test "${emacs_cv_struct_exception+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <math.h>
6785 int
6786 main ()
6787 {
6788 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6789 ;
6790 return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 emacs_cv_struct_exception=yes
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6819
6820 emacs_cv_struct_exception=no
6821 fi
6822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6825 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6826 HAVE_EXCEPTION=$emacs_cv_struct_exception
6827 if test $emacs_cv_struct_exception != yes; then
6828
6829 cat >>confdefs.h <<\_ACEOF
6830 #define NO_MATHERR 1
6831 _ACEOF
6832
6833 fi
6834
6835
6836 for ac_header in sys/socket.h
6837 do
6838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 echo "$as_me:$LINENO: checking for $ac_header" >&5
6841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 fi
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847 else
6848 # Is the header compilable?
6849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 #include <$ac_header>
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_header_compiler=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ac_header_compiler=no
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6891 echo "${ECHO_T}$ac_header_compiler" >&6
6892
6893 # Is the header present?
6894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <$ac_header>
6903 _ACEOF
6904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev/null; then
6912 if test -s conftest.err; then
6913 ac_cpp_err=$ac_c_preproc_warn_flag
6914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6915 else
6916 ac_cpp_err=
6917 fi
6918 else
6919 ac_cpp_err=yes
6920 fi
6921 if test -z "$ac_cpp_err"; then
6922 ac_header_preproc=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ac_header_preproc=no
6928 fi
6929 rm -f conftest.err conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6931 echo "${ECHO_T}$ac_header_preproc" >&6
6932
6933 # So? What about this header?
6934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6935 yes:no: )
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6940 ac_header_preproc=yes
6941 ;;
6942 no:yes:* )
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6955 (
6956 cat <<\_ASBOX
6957 ## ------------------------------------------ ##
6958 ## Report this to the AC_PACKAGE_NAME lists. ##
6959 ## ------------------------------------------ ##
6960 _ASBOX
6961 ) |
6962 sed "s/^/$as_me: WARNING: /" >&2
6963 ;;
6964 esac
6965 echo "$as_me:$LINENO: checking for $ac_header" >&5
6966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 eval "$as_ac_Header=\$ac_header_preproc"
6971 fi
6972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6974
6975 fi
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 _ACEOF
6980
6981 fi
6982
6983 done
6984
6985
6986 for ac_header in net/if.h
6987 do
6988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 #if HAVE_SYS_SOCKET_H
7002 #include <sys/socket.h>
7003 #endif
7004
7005 #include <$ac_header>
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 eval "$as_ac_Header=yes"
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 eval "$as_ac_Header=no"
7035 fi
7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041 cat >>confdefs.h <<_ACEOF
7042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043 _ACEOF
7044
7045 fi
7046
7047 done
7048
7049
7050 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7051 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7052 if test "${ac_cv_struct_tm+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <sys/types.h>
7062 #include <time.h>
7063
7064 int
7065 main ()
7066 {
7067 struct tm *tp; tp->tm_sec;
7068 ;
7069 return 0;
7070 }
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_struct_tm=time.h
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7098
7099 ac_cv_struct_tm=sys/time.h
7100 fi
7101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7104 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7105 if test $ac_cv_struct_tm = sys/time.h; then
7106
7107 cat >>confdefs.h <<\_ACEOF
7108 #define TM_IN_SYS_TIME 1
7109 _ACEOF
7110
7111 fi
7112
7113 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7114 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7115 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <$ac_cv_struct_tm>
7126
7127
7128 int
7129 main ()
7130 {
7131 static struct tm ac_aggr;
7132 if (ac_aggr.tm_zone)
7133 return 0;
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_cv_member_struct_tm_tm_zone=yes
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/types.h>
7172 #include <$ac_cv_struct_tm>
7173
7174
7175 int
7176 main ()
7177 {
7178 static struct tm ac_aggr;
7179 if (sizeof ac_aggr.tm_zone)
7180 return 0;
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_tm_tm_zone=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7211
7212 ac_cv_member_struct_tm_tm_zone=no
7213 fi
7214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7219 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7220 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7221
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_STRUCT_TM_TM_ZONE 1
7224 _ACEOF
7225
7226
7227 fi
7228
7229 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7230
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_TM_ZONE 1
7233 _ACEOF
7234
7235 else
7236 echo "$as_me:$LINENO: checking for tzname" >&5
7237 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7238 if test "${ac_cv_var_tzname+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #include <time.h>
7248 #ifndef tzname /* For SGI. */
7249 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7250 #endif
7251
7252 int
7253 main ()
7254 {
7255 atoi(*tzname);
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_var_tzname=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_var_tzname=no
7288 fi
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 fi
7292 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7293 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7294 if test $ac_cv_var_tzname = yes; then
7295
7296 cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_TZNAME 1
7298 _ACEOF
7299
7300 fi
7301 fi
7302
7303 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7304 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7305 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <time.h>
7315
7316 int
7317 main ()
7318 {
7319 static struct tm ac_aggr;
7320 if (ac_aggr.tm_gmtoff)
7321 return 0;
7322 ;
7323 return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_member_struct_tm_tm_gmtoff=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <time.h>
7360
7361 int
7362 main ()
7363 {
7364 static struct tm ac_aggr;
7365 if (sizeof ac_aggr.tm_gmtoff)
7366 return 0;
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest.$ac_objext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 (eval $ac_try) 2>&5
7390 ac_status=$?
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_member_struct_tm_tm_gmtoff=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 ac_cv_member_struct_tm_tm_gmtoff=no
7399 fi
7400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7401 fi
7402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7403 fi
7404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7406 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7407
7408 cat >>confdefs.h <<\_ACEOF
7409 #define HAVE_TM_GMTOFF 1
7410 _ACEOF
7411
7412 fi
7413
7414 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7415 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7416 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 #if HAVE_SYS_SOCKET_H
7427 #include <sys/socket.h>
7428 #endif
7429 #if HAVE_NET_IF_H
7430 #include <net/if.h>
7431 #endif
7432
7433 int
7434 main ()
7435 {
7436 static struct ifreq ac_aggr;
7437 if (ac_aggr.ifr_flags)
7438 return 0;
7439 ;
7440 return 0;
7441 }
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_member_struct_ifreq_ifr_flags=yes
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7477 #if HAVE_SYS_SOCKET_H
7478 #include <sys/socket.h>
7479 #endif
7480 #if HAVE_NET_IF_H
7481 #include <net/if.h>
7482 #endif
7483
7484 int
7485 main ()
7486 {
7487 static struct ifreq ac_aggr;
7488 if (sizeof ac_aggr.ifr_flags)
7489 return 0;
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>conftest.er1
7497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag"
7504 || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest.$ac_objext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_cv_member_struct_ifreq_ifr_flags=yes
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 ac_cv_member_struct_ifreq_ifr_flags=no
7522 fi
7523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7524 fi
7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7528 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7529 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7530
7531 cat >>confdefs.h <<_ACEOF
7532 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7533 _ACEOF
7534
7535
7536 fi
7537 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7538 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7539 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 $ac_includes_default
7549 #if HAVE_SYS_SOCKET_H
7550 #include <sys/socket.h>
7551 #endif
7552 #if HAVE_NET_IF_H
7553 #include <net/if.h>
7554 #endif
7555
7556 int
7557 main ()
7558 {
7559 static struct ifreq ac_aggr;
7560 if (ac_aggr.ifr_hwaddr)
7561 return 0;
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7589 else
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 #if HAVE_SYS_SOCKET_H
7601 #include <sys/socket.h>
7602 #endif
7603 #if HAVE_NET_IF_H
7604 #include <net/if.h>
7605 #endif
7606
7607 int
7608 main ()
7609 {
7610 static struct ifreq ac_aggr;
7611 if (sizeof ac_aggr.ifr_hwaddr)
7612 return 0;
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7645 fi
7646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647 fi
7648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7651 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7652 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7653
7654 cat >>confdefs.h <<_ACEOF
7655 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7656 _ACEOF
7657
7658
7659 fi
7660 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7661 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7662 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 #if HAVE_SYS_SOCKET_H
7673 #include <sys/socket.h>
7674 #endif
7675 #if HAVE_NET_IF_H
7676 #include <net/if.h>
7677 #endif
7678
7679 int
7680 main ()
7681 {
7682 static struct ifreq ac_aggr;
7683 if (ac_aggr.ifr_netmask)
7684 return 0;
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_member_struct_ifreq_ifr_netmask=yes
7712 else
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 $ac_includes_default
7723 #if HAVE_SYS_SOCKET_H
7724 #include <sys/socket.h>
7725 #endif
7726 #if HAVE_NET_IF_H
7727 #include <net/if.h>
7728 #endif
7729
7730 int
7731 main ()
7732 {
7733 static struct ifreq ac_aggr;
7734 if (sizeof ac_aggr.ifr_netmask)
7735 return 0;
7736 ;
7737 return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_member_struct_ifreq_ifr_netmask=yes
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 ac_cv_member_struct_ifreq_ifr_netmask=no
7768 fi
7769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7770 fi
7771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7774 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7775 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7776
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7779 _ACEOF
7780
7781
7782 fi
7783 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7784 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7785 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #if HAVE_SYS_SOCKET_H
7796 #include <sys/socket.h>
7797 #endif
7798 #if HAVE_NET_IF_H
7799 #include <net/if.h>
7800 #endif
7801
7802 int
7803 main ()
7804 {
7805 static struct ifreq ac_aggr;
7806 if (ac_aggr.ifr_broadaddr)
7807 return 0;
7808 ;
7809 return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 #if HAVE_SYS_SOCKET_H
7847 #include <sys/socket.h>
7848 #endif
7849 #if HAVE_NET_IF_H
7850 #include <net/if.h>
7851 #endif
7852
7853 int
7854 main ()
7855 {
7856 static struct ifreq ac_aggr;
7857 if (sizeof ac_aggr.ifr_broadaddr)
7858 return 0;
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7891 fi
7892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7893 fi
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7897 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7898 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7899
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7902 _ACEOF
7903
7904
7905 fi
7906 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7907 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7908 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 $ac_includes_default
7918 #if HAVE_SYS_SOCKET_H
7919 #include <sys/socket.h>
7920 #endif
7921 #if HAVE_NET_IF_H
7922 #include <net/if.h>
7923 #endif
7924
7925 int
7926 main ()
7927 {
7928 static struct ifreq ac_aggr;
7929 if (ac_aggr.ifr_addr)
7930 return 0;
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_member_struct_ifreq_ifr_addr=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #if HAVE_SYS_SOCKET_H
7970 #include <sys/socket.h>
7971 #endif
7972 #if HAVE_NET_IF_H
7973 #include <net/if.h>
7974 #endif
7975
7976 int
7977 main ()
7978 {
7979 static struct ifreq ac_aggr;
7980 if (sizeof ac_aggr.ifr_addr)
7981 return 0;
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_member_struct_ifreq_ifr_addr=yes
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_member_struct_ifreq_ifr_addr=no
8014 fi
8015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8018 fi
8019 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8020 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8021 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8022
8023 cat >>confdefs.h <<_ACEOF
8024 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8025 _ACEOF
8026
8027
8028 fi
8029
8030
8031
8032 echo "$as_me:$LINENO: checking for function prototypes" >&5
8033 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8034 if test "$ac_cv_prog_cc_stdc" != no; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6
8037
8038 cat >>confdefs.h <<\_ACEOF
8039 #define PROTOTYPES 1
8040 _ACEOF
8041
8042
8043 cat >>confdefs.h <<\_ACEOF
8044 #define __PROTOTYPES 1
8045 _ACEOF
8046
8047 else
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8050 fi
8051
8052 echo "$as_me:$LINENO: checking for working volatile" >&5
8053 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8054 if test "${ac_cv_c_volatile+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063
8064 int
8065 main ()
8066 {
8067
8068 volatile int x;
8069 int * volatile y;
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_c_volatile=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 ac_cv_c_volatile=no
8102 fi
8103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8104 fi
8105 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8106 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8107 if test $ac_cv_c_volatile = no; then
8108
8109 cat >>confdefs.h <<\_ACEOF
8110 #define volatile
8111 _ACEOF
8112
8113 fi
8114
8115 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8116 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8117 if test "${ac_cv_c_const+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126
8127 int
8128 main ()
8129 {
8130 /* FIXME: Include the comments suggested by Paul. */
8131 #ifndef __cplusplus
8132 /* Ultrix mips cc rejects this. */
8133 typedef int charset[2];
8134 const charset x;
8135 /* SunOS 4.1.1 cc rejects this. */
8136 char const *const *ccp;
8137 char **p;
8138 /* NEC SVR4.0.2 mips cc rejects this. */
8139 struct point {int x, y;};
8140 static struct point const zero = {0,0};
8141 /* AIX XL C 1.02.0.0 rejects this.
8142 It does not let you subtract one const X* pointer from another in
8143 an arm of an if-expression whose if-part is not a constant
8144 expression */
8145 const char *g = "string";
8146 ccp = &g + (g ? g-g : 0);
8147 /* HPUX 7.0 cc rejects these. */
8148 ++ccp;
8149 p = (char**) ccp;
8150 ccp = (char const *const *) p;
8151 { /* SCO 3.2v4 cc rejects this. */
8152 char *t;
8153 char const *s = 0 ? (char *) 0 : (char const *) 0;
8154
8155 *t++ = 0;
8156 }
8157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8158 int x[] = {25, 17};
8159 const int *foo = &x[0];
8160 ++foo;
8161 }
8162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8163 typedef const int *iptr;
8164 iptr p = 0;
8165 ++p;
8166 }
8167 { /* AIX XL C 1.02.0.0 rejects this saying
8168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8169 struct s { int j; const int *ap[3]; };
8170 struct s *b; b->j = 5;
8171 }
8172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8173 const int foo = 10;
8174 }
8175 #endif
8176
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_cv_c_const=yes
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ac_cv_c_const=no
8209 fi
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213 echo "${ECHO_T}$ac_cv_c_const" >&6
8214 if test $ac_cv_c_const = no; then
8215
8216 cat >>confdefs.h <<\_ACEOF
8217 #define const
8218 _ACEOF
8219
8220 fi
8221
8222 echo "$as_me:$LINENO: checking for void * support" >&5
8223 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8224 if test "${emacs_cv_void_star+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233
8234 int
8235 main ()
8236 {
8237 void * foo;
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 emacs_cv_void_star=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 emacs_cv_void_star=no
8270 fi
8271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272 fi
8273 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8274 echo "${ECHO_T}$emacs_cv_void_star" >&6
8275 if test $emacs_cv_void_star = yes; then
8276 cat >>confdefs.h <<\_ACEOF
8277 #define POINTER_TYPE void
8278 _ACEOF
8279
8280 else
8281 cat >>confdefs.h <<\_ACEOF
8282 #define POINTER_TYPE char
8283 _ACEOF
8284
8285 fi
8286
8287
8288
8289
8290
8291 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8292 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8293 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8294 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297 cat >conftest.make <<\_ACEOF
8298 all:
8299 @echo 'ac_maketemp="$(MAKE)"'
8300 _ACEOF
8301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8302 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8303 if test -n "$ac_maketemp"; then
8304 eval ac_cv_prog_make_${ac_make}_set=yes
8305 else
8306 eval ac_cv_prog_make_${ac_make}_set=no
8307 fi
8308 rm -f conftest.make
8309 fi
8310 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312 echo "${ECHO_T}yes" >&6
8313 SET_MAKE=
8314 else
8315 echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8317 SET_MAKE="MAKE=${MAKE-make}"
8318 fi
8319
8320
8321 echo "$as_me:$LINENO: checking for long file names" >&5
8322 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8323 if test "${ac_cv_sys_long_file_names+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 ac_cv_sys_long_file_names=yes
8327 # Test for long file names in all the places we know might matter:
8328 # . the current directory, where building will happen
8329 # $prefix/lib where we will be installing things
8330 # $exec_prefix/lib likewise
8331 # eval it to expand exec_prefix.
8332 # $TMPDIR if set, where it might want to write temporary files
8333 # if $TMPDIR is not set:
8334 # /tmp where it might want to write temporary files
8335 # /var/tmp likewise
8336 # /usr/tmp likewise
8337 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8338 ac_tmpdirs=$TMPDIR
8339 else
8340 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8341 fi
8342 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8343 test -d $ac_dir || continue
8344 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8345 ac_xdir=$ac_dir/cf$$
8346 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8347 ac_tf1=$ac_xdir/conftest9012345
8348 ac_tf2=$ac_xdir/conftest9012346
8349 (echo 1 >$ac_tf1) 2>/dev/null
8350 (echo 2 >$ac_tf2) 2>/dev/null
8351 ac_val=`cat $ac_tf1 2>/dev/null`
8352 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8353 ac_cv_sys_long_file_names=no
8354 rm -rf $ac_xdir 2>/dev/null
8355 break
8356 fi
8357 rm -rf $ac_xdir 2>/dev/null
8358 done
8359 fi
8360 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8361 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8362 if test $ac_cv_sys_long_file_names = yes; then
8363
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_LONG_FILE_NAMES 1
8366 _ACEOF
8367
8368 fi
8369
8370
8371 #### Choose a window system.
8372
8373 echo "$as_me:$LINENO: checking for X" >&5
8374 echo $ECHO_N "checking for X... $ECHO_C" >&6
8375
8376
8377 # Check whether --with-x or --without-x was given.
8378 if test "${with_x+set}" = set; then
8379 withval="$with_x"
8380
8381 fi;
8382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8383 if test "x$with_x" = xno; then
8384 # The user explicitly disabled X.
8385 have_x=disabled
8386 else
8387 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8388 # Both variables are already set.
8389 have_x=yes
8390 else
8391 if test "${ac_cv_have_x+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394 # One or both of the vars are not set, and there is no cached value.
8395 ac_x_includes=no ac_x_libraries=no
8396 rm -fr conftest.dir
8397 if mkdir conftest.dir; then
8398 cd conftest.dir
8399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8400 cat >Imakefile <<'_ACEOF'
8401 acfindx:
8402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8403 _ACEOF
8404 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8408 for ac_extension in a so sl; do
8409 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8410 test -f $ac_im_libdir/libX11.$ac_extension; then
8411 ac_im_usrlibdir=$ac_im_libdir; break
8412 fi
8413 done
8414 # Screen out bogus values from the imake configuration. They are
8415 # bogus both because they are the default anyway, and because
8416 # using them would break gcc on systems where it needs fixed includes.
8417 case $ac_im_incroot in
8418 /usr/include) ;;
8419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8420 esac
8421 case $ac_im_usrlibdir in
8422 /usr/lib | /lib) ;;
8423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8424 esac
8425 fi
8426 cd ..
8427 rm -fr conftest.dir
8428 fi
8429
8430 # Standard set of common directories for X headers.
8431 # Check X11 before X11Rn because it is often a symlink to the current release.
8432 ac_x_header_dirs='
8433 /usr/X11/include
8434 /usr/X11R6/include
8435 /usr/X11R5/include
8436 /usr/X11R4/include
8437
8438 /usr/include/X11
8439 /usr/include/X11R6
8440 /usr/include/X11R5
8441 /usr/include/X11R4
8442
8443 /usr/local/X11/include
8444 /usr/local/X11R6/include
8445 /usr/local/X11R5/include
8446 /usr/local/X11R4/include
8447
8448 /usr/local/include/X11
8449 /usr/local/include/X11R6
8450 /usr/local/include/X11R5
8451 /usr/local/include/X11R4
8452
8453 /usr/X386/include
8454 /usr/x386/include
8455 /usr/XFree86/include/X11
8456
8457 /usr/include
8458 /usr/local/include
8459 /usr/unsupported/include
8460 /usr/athena/include
8461 /usr/local/x11r5/include
8462 /usr/lpp/Xamples/include
8463
8464 /usr/openwin/include
8465 /usr/openwin/share/include'
8466
8467 if test "$ac_x_includes" = no; then
8468 # Guess where to find include files, by looking for Intrinsic.h.
8469 # First, try using that file with no special directory specified.
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <X11/Intrinsic.h>
8477 _ACEOF
8478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } >/dev/null; then
8486 if test -s conftest.err; then
8487 ac_cpp_err=$ac_c_preproc_warn_flag
8488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8489 else
8490 ac_cpp_err=
8491 fi
8492 else
8493 ac_cpp_err=yes
8494 fi
8495 if test -z "$ac_cpp_err"; then
8496 # We can compile using X headers with no special include directory.
8497 ac_x_includes=
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 for ac_dir in $ac_x_header_dirs; do
8503 if test -r "$ac_dir/X11/Intrinsic.h"; then
8504 ac_x_includes=$ac_dir
8505 break
8506 fi
8507 done
8508 fi
8509 rm -f conftest.err conftest.$ac_ext
8510 fi # $ac_x_includes = no
8511
8512 if test "$ac_x_libraries" = no; then
8513 # Check for the libraries.
8514 # See if we find them without any special options.
8515 # Don't add to $LIBS permanently.
8516 ac_save_LIBS=$LIBS
8517 LIBS="-lXt $LIBS"
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <X11/Intrinsic.h>
8525 int
8526 main ()
8527 {
8528 XtMalloc (0)
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag"
8543 || test ! -s conftest.err'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 LIBS=$ac_save_LIBS
8556 # We can link X programs with no special library path.
8557 ac_x_libraries=
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 LIBS=$ac_save_LIBS
8563 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8564 do
8565 # Don't even attempt the hair of trying to link an X program!
8566 for ac_extension in a so sl; do
8567 if test -r $ac_dir/libXt.$ac_extension; then
8568 ac_x_libraries=$ac_dir
8569 break 2
8570 fi
8571 done
8572 done
8573 fi
8574 rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi # $ac_x_libraries = no
8577
8578 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8579 # Didn't find X anywhere. Cache the known absence of X.
8580 ac_cv_have_x="have_x=no"
8581 else
8582 # Record where we found X for the cache.
8583 ac_cv_have_x="have_x=yes \
8584 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8585 fi
8586 fi
8587
8588 fi
8589 eval "$ac_cv_have_x"
8590 fi # $with_x != no
8591
8592 if test "$have_x" != yes; then
8593 echo "$as_me:$LINENO: result: $have_x" >&5
8594 echo "${ECHO_T}$have_x" >&6
8595 no_x=yes
8596 else
8597 # If each of the values was on the command line, it overrides each guess.
8598 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8599 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8600 # Update the cache value to reflect the command line values.
8601 ac_cv_have_x="have_x=yes \
8602 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8603 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8605 fi
8606
8607 if test "$no_x" = yes; then
8608 window_system=none
8609 else
8610 window_system=x11
8611 fi
8612
8613 if test "${x_libraries}" != NONE; then
8614 if test -n "${x_libraries}"; then
8615 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8616 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8617 fi
8618 x_default_search_path=""
8619 x_search_path=${x_libraries}
8620 if test -z "${x_search_path}"; then
8621 x_search_path=/usr/lib
8622 fi
8623 for x_library in `echo ${x_search_path}: | \
8624 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8625 x_search_path="\
8626 ${x_library}/X11/%L/%T/%N%C%S:\
8627 ${x_library}/X11/%l/%T/%N%C%S:\
8628 ${x_library}/X11/%T/%N%C%S:\
8629 ${x_library}/X11/%L/%T/%N%S:\
8630 ${x_library}/X11/%l/%T/%N%S:\
8631 ${x_library}/X11/%T/%N%S"
8632 if test x"${x_default_search_path}" = x; then
8633 x_default_search_path=${x_search_path}
8634 else
8635 x_default_search_path="${x_search_path}:${x_default_search_path}"
8636 fi
8637 done
8638 fi
8639 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8640 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8641 fi
8642
8643 if test x"${x_includes}" = x; then
8644 bitmapdir=/usr/include/X11/bitmaps
8645 else
8646 # accumulate include directories that have X11 bitmap subdirectories
8647 bmd_acc="dummyval"
8648 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8649 if test -d "${bmd}/X11/bitmaps"; then
8650 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8651 fi
8652 if test -d "${bmd}/bitmaps"; then
8653 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8654 fi
8655 done
8656 if test ${bmd_acc} != "dummyval"; then
8657 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8658 fi
8659 fi
8660
8661 HAVE_CARBON=no
8662 if test "${with_carbon}" != no; then
8663 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8664 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8665 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8666 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8670 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8671 else
8672 # Is the header compilable?
8673 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8674 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 #include <Carbon/Carbon.h>
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_header_compiler=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_header_compiler=no
8712 fi
8713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715 echo "${ECHO_T}$ac_header_compiler" >&6
8716
8717 # Is the header present?
8718 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8719 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <Carbon/Carbon.h>
8727 _ACEOF
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev/null; then
8736 if test -s conftest.err; then
8737 ac_cpp_err=$ac_c_preproc_warn_flag
8738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8739 else
8740 ac_cpp_err=
8741 fi
8742 else
8743 ac_cpp_err=yes
8744 fi
8745 if test -z "$ac_cpp_err"; then
8746 ac_header_preproc=yes
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ac_header_preproc=no
8752 fi
8753 rm -f conftest.err conftest.$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755 echo "${ECHO_T}$ac_header_preproc" >&6
8756
8757 # So? What about this header?
8758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8759 yes:no: )
8760 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8761 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8763 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc=yes
8765 ;;
8766 no:yes:* )
8767 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8768 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8770 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8772 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8774 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8778 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8779 (
8780 cat <<\_ASBOX
8781 ## ------------------------------------------ ##
8782 ## Report this to the AC_PACKAGE_NAME lists. ##
8783 ## ------------------------------------------ ##
8784 _ASBOX
8785 ) |
8786 sed "s/^/$as_me: WARNING: /" >&2
8787 ;;
8788 esac
8789 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8790 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8791 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8795 fi
8796 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8797 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8798
8799 fi
8800 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8801 HAVE_CARBON=yes
8802 fi
8803
8804
8805 fi
8806 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8807 if test "${with_carbon+set}" != set \
8808 && test "${carbon_appdir_x+set}" != set; then
8809 HAVE_CARBON=no
8810 fi
8811 fi
8812 if test "${HAVE_CARBON}" = yes; then
8813 window_system=mac
8814 fi
8815
8816 case "${window_system}" in
8817 x11 )
8818 HAVE_X_WINDOWS=yes
8819 HAVE_X11=yes
8820 case "${with_x_toolkit}" in
8821 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8822 motif ) USE_X_TOOLKIT=MOTIF ;;
8823 gtk ) with_gtk=yes
8824 USE_X_TOOLKIT=none ;;
8825 no ) USE_X_TOOLKIT=none ;;
8826 * ) USE_X_TOOLKIT=maybe ;;
8827 esac
8828 ;;
8829 mac | none )
8830 HAVE_X_WINDOWS=no
8831 HAVE_X11=no
8832 USE_X_TOOLKIT=none
8833 ;;
8834 esac
8835
8836 ### If we're using X11, we should use the X menu package.
8837 HAVE_MENUS=no
8838 case ${HAVE_X11} in
8839 yes ) HAVE_MENUS=yes ;;
8840 esac
8841
8842 if test "${opsys}" = "hpux9"; then
8843 case "${x_libraries}" in
8844 *X11R4* )
8845 opsysfile="s/hpux9-x11r4.h"
8846 ;;
8847 esac
8848 fi
8849
8850 if test "${opsys}" = "hpux9shr"; then
8851 case "${x_libraries}" in
8852 *X11R4* )
8853 opsysfile="s/hpux9shxr4.h"
8854 ;;
8855 esac
8856 fi
8857
8858 ### Compute the unexec source name from the object name.
8859 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8860
8861 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8862 # Assume not, until told otherwise.
8863 GNU_MALLOC=yes
8864 doug_lea_malloc=yes
8865 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8866 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8867 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8878 #define malloc_get_state innocuous_malloc_get_state
8879
8880 /* System header to define __stub macros and hopefully few prototypes,
8881 which can conflict with char malloc_get_state (); below.
8882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8883 <limits.h> exists even on freestanding compilers. */
8884
8885 #ifdef __STDC__
8886 # include <limits.h>
8887 #else
8888 # include <assert.h>
8889 #endif
8890
8891 #undef malloc_get_state
8892
8893 /* Override any gcc2 internal prototype to avoid an error. */
8894 #ifdef __cplusplus
8895 extern "C"
8896 {
8897 #endif
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8900 char malloc_get_state ();
8901 /* The GNU C library defines this for functions which it implements
8902 to always fail with ENOSYS. Some functions are actually named
8903 something starting with __ and the normal name is an alias. */
8904 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8905 choke me
8906 #else
8907 char (*f) () = malloc_get_state;
8908 #endif
8909 #ifdef __cplusplus
8910 }
8911 #endif
8912
8913 int
8914 main ()
8915 {
8916 return f != malloc_get_state;
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag"
8931 || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 (eval $ac_try) 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_func_malloc_get_state=yes
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_cv_func_malloc_get_state=no
8949 fi
8950 rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 fi
8953 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8954 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8955 if test $ac_cv_func_malloc_get_state = yes; then
8956 :
8957 else
8958 doug_lea_malloc=no
8959 fi
8960
8961 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8962 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8963 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h. */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8974 #define malloc_set_state innocuous_malloc_set_state
8975
8976 /* System header to define __stub macros and hopefully few prototypes,
8977 which can conflict with char malloc_set_state (); below.
8978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8979 <limits.h> exists even on freestanding compilers. */
8980
8981 #ifdef __STDC__
8982 # include <limits.h>
8983 #else
8984 # include <assert.h>
8985 #endif
8986
8987 #undef malloc_set_state
8988
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 #ifdef __cplusplus
8991 extern "C"
8992 {
8993 #endif
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
8996 char malloc_set_state ();
8997 /* The GNU C library defines this for functions which it implements
8998 to always fail with ENOSYS. Some functions are actually named
8999 something starting with __ and the normal name is an alias. */
9000 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9001 choke me
9002 #else
9003 char (*f) () = malloc_set_state;
9004 #endif
9005 #ifdef __cplusplus
9006 }
9007 #endif
9008
9009 int
9010 main ()
9011 {
9012 return f != malloc_set_state;
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_func_malloc_set_state=yes
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 ac_cv_func_malloc_set_state=no
9045 fi
9046 rm -f conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 fi
9049 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9050 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9051 if test $ac_cv_func_malloc_set_state = yes; then
9052 :
9053 else
9054 doug_lea_malloc=no
9055 fi
9056
9057 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9058 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9059 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h. */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 extern void (* __after_morecore_hook)();
9069 int
9070 main ()
9071 {
9072 __after_morecore_hook = 0
9073 ;
9074 return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -z "$ac_c_werror_flag"
9087 || test ! -s conftest.err'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 emacs_cv_var___after_morecore_hook=yes
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 emacs_cv_var___after_morecore_hook=no
9105 fi
9106 rm -f conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108 fi
9109 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9110 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9111 if test $emacs_cv_var___after_morecore_hook = no; then
9112 doug_lea_malloc=no
9113 fi
9114 if test "${system_malloc}" = "yes"; then
9115 GNU_MALLOC=no
9116 GNU_MALLOC_reason="
9117 (The GNU allocators don't work with this system configuration.)"
9118 fi
9119 if test "$doug_lea_malloc" = "yes" ; then
9120 if test "$GNU_MALLOC" = yes ; then
9121 GNU_MALLOC_reason="
9122 (Using Doug Lea's new malloc from the GNU C Library.)"
9123 fi
9124
9125 cat >>confdefs.h <<\_ACEOF
9126 #define DOUG_LEA_MALLOC 1
9127 _ACEOF
9128
9129 fi
9130
9131 if test x"${REL_ALLOC}" = x; then
9132 REL_ALLOC=${GNU_MALLOC}
9133 fi
9134
9135
9136
9137
9138 for ac_header in stdlib.h unistd.h
9139 do
9140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142 echo "$as_me:$LINENO: checking for $ac_header" >&5
9143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 fi
9147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9149 else
9150 # Is the header compilable?
9151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #include <$ac_header>
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest.$ac_objext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_header_compiler=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 ac_header_compiler=no
9190 fi
9191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9193 echo "${ECHO_T}$ac_header_compiler" >&6
9194
9195 # Is the header present?
9196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 #include <$ac_header>
9205 _ACEOF
9206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null; then
9214 if test -s conftest.err; then
9215 ac_cpp_err=$ac_c_preproc_warn_flag
9216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9217 else
9218 ac_cpp_err=
9219 fi
9220 else
9221 ac_cpp_err=yes
9222 fi
9223 if test -z "$ac_cpp_err"; then
9224 ac_header_preproc=yes
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 ac_header_preproc=no
9230 fi
9231 rm -f conftest.err conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9233 echo "${ECHO_T}$ac_header_preproc" >&6
9234
9235 # So? What about this header?
9236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9237 yes:no: )
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9242 ac_header_preproc=yes
9243 ;;
9244 no:yes:* )
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9257 (
9258 cat <<\_ASBOX
9259 ## ------------------------------------------ ##
9260 ## Report this to the AC_PACKAGE_NAME lists. ##
9261 ## ------------------------------------------ ##
9262 _ASBOX
9263 ) |
9264 sed "s/^/$as_me: WARNING: /" >&2
9265 ;;
9266 esac
9267 echo "$as_me:$LINENO: checking for $ac_header" >&5
9268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 eval "$as_ac_Header=\$ac_header_preproc"
9273 fi
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9276
9277 fi
9278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9279 cat >>confdefs.h <<_ACEOF
9280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 _ACEOF
9282
9283 fi
9284
9285 done
9286
9287
9288 for ac_func in getpagesize
9289 do
9290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_func" >&5
9292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_var+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9304 #define $ac_func innocuous_$ac_func
9305
9306 /* System header to define __stub macros and hopefully few prototypes,
9307 which can conflict with char $ac_func (); below.
9308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 <limits.h> exists even on freestanding compilers. */
9310
9311 #ifdef __STDC__
9312 # include <limits.h>
9313 #else
9314 # include <assert.h>
9315 #endif
9316
9317 #undef $ac_func
9318
9319 /* Override any gcc2 internal prototype to avoid an error. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 {
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char $ac_func ();
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 choke me
9332 #else
9333 char (*f) () = $ac_func;
9334 #endif
9335 #ifdef __cplusplus
9336 }
9337 #endif
9338
9339 int
9340 main ()
9341 {
9342 return f != $ac_func;
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 eval "$as_ac_var=yes"
9370 else
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 eval "$as_ac_var=no"
9375 fi
9376 rm -f conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378 fi
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381 if test `eval echo '${'$as_ac_var'}'` = yes; then
9382 cat >>confdefs.h <<_ACEOF
9383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9384 _ACEOF
9385
9386 fi
9387 done
9388
9389 echo "$as_me:$LINENO: checking for working mmap" >&5
9390 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394 if test "$cross_compiling" = yes; then
9395 ac_cv_func_mmap_fixed_mapped=no
9396 else
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h. */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9404 /* malloc might have been renamed as rpl_malloc. */
9405 #undef malloc
9406
9407 /* Thanks to Mike Haertel and Jim Avera for this test.
9408 Here is a matrix of mmap possibilities:
9409 mmap private not fixed
9410 mmap private fixed at somewhere currently unmapped
9411 mmap private fixed at somewhere already mapped
9412 mmap shared not fixed
9413 mmap shared fixed at somewhere currently unmapped
9414 mmap shared fixed at somewhere already mapped
9415 For private mappings, we should verify that changes cannot be read()
9416 back from the file, nor mmap's back from the file at a different
9417 address. (There have been systems where private was not correctly
9418 implemented like the infamous i386 svr4.0, and systems where the
9419 VM page cache was not coherent with the file system buffer cache
9420 like early versions of FreeBSD and possibly contemporary NetBSD.)
9421 For shared mappings, we should conversely verify that changes get
9422 propagated back to all the places they're supposed to be.
9423
9424 Grep wants private fixed already mapped.
9425 The main things grep needs to know about mmap are:
9426 * does it exist and is it safe to write into the mmap'd area
9427 * how to use it (BSD variants) */
9428
9429 #include <fcntl.h>
9430 #include <sys/mman.h>
9431
9432 #if !STDC_HEADERS && !HAVE_STDLIB_H
9433 char *malloc ();
9434 #endif
9435
9436 /* This mess was copied from the GNU getpagesize.h. */
9437 #if !HAVE_GETPAGESIZE
9438 /* Assume that all systems that can run configure have sys/param.h. */
9439 # if !HAVE_SYS_PARAM_H
9440 # define HAVE_SYS_PARAM_H 1
9441 # endif
9442
9443 # ifdef _SC_PAGESIZE
9444 # define getpagesize() sysconf(_SC_PAGESIZE)
9445 # else /* no _SC_PAGESIZE */
9446 # if HAVE_SYS_PARAM_H
9447 # include <sys/param.h>
9448 # ifdef EXEC_PAGESIZE
9449 # define getpagesize() EXEC_PAGESIZE
9450 # else /* no EXEC_PAGESIZE */
9451 # ifdef NBPG
9452 # define getpagesize() NBPG * CLSIZE
9453 # ifndef CLSIZE
9454 # define CLSIZE 1
9455 # endif /* no CLSIZE */
9456 # else /* no NBPG */
9457 # ifdef NBPC
9458 # define getpagesize() NBPC
9459 # else /* no NBPC */
9460 # ifdef PAGESIZE
9461 # define getpagesize() PAGESIZE
9462 # endif /* PAGESIZE */
9463 # endif /* no NBPC */
9464 # endif /* no NBPG */
9465 # endif /* no EXEC_PAGESIZE */
9466 # else /* no HAVE_SYS_PARAM_H */
9467 # define getpagesize() 8192 /* punt totally */
9468 # endif /* no HAVE_SYS_PARAM_H */
9469 # endif /* no _SC_PAGESIZE */
9470
9471 #endif /* no HAVE_GETPAGESIZE */
9472
9473 int
9474 main ()
9475 {
9476 char *data, *data2, *data3;
9477 int i, pagesize;
9478 int fd;
9479
9480 pagesize = getpagesize ();
9481
9482 /* First, make a file with some known garbage in it. */
9483 data = (char *) malloc (pagesize);
9484 if (!data)
9485 exit (1);
9486 for (i = 0; i < pagesize; ++i)
9487 *(data + i) = rand ();
9488 umask (0);
9489 fd = creat ("conftest.mmap", 0600);
9490 if (fd < 0)
9491 exit (1);
9492 if (write (fd, data, pagesize) != pagesize)
9493 exit (1);
9494 close (fd);
9495
9496 /* Next, try to mmap the file at a fixed address which already has
9497 something else allocated at it. If we can, also make sure that
9498 we see the same garbage. */
9499 fd = open ("conftest.mmap", O_RDWR);
9500 if (fd < 0)
9501 exit (1);
9502 data2 = (char *) malloc (2 * pagesize);
9503 if (!data2)
9504 exit (1);
9505 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9506 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9507 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9508 exit (1);
9509 for (i = 0; i < pagesize; ++i)
9510 if (*(data + i) != *(data2 + i))
9511 exit (1);
9512
9513 /* Finally, make sure that changes to the mapped area do not
9514 percolate back to the file as seen by read(). (This is a bug on
9515 some variants of i386 svr4.0.) */
9516 for (i = 0; i < pagesize; ++i)
9517 *(data2 + i) = *(data2 + i) + 1;
9518 data3 = (char *) malloc (pagesize);
9519 if (!data3)
9520 exit (1);
9521 if (read (fd, data3, pagesize) != pagesize)
9522 exit (1);
9523 for (i = 0; i < pagesize; ++i)
9524 if (*(data + i) != *(data3 + i))
9525 exit (1);
9526 close (fd);
9527 exit (0);
9528 }
9529 _ACEOF
9530 rm -f conftest$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_mmap_fixed_mapped=yes
9542 else
9543 echo "$as_me: program exited with status $ac_status" >&5
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ( exit $ac_status )
9548 ac_cv_func_mmap_fixed_mapped=no
9549 fi
9550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 fi
9553 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9554 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_MMAP 1
9559 _ACEOF
9560
9561 fi
9562 rm -f conftest.mmap
9563
9564 if test $use_mmap_for_buffers = yes; then
9565 REL_ALLOC=no
9566 fi
9567
9568 LIBS="$libsrc_libs $LIBS"
9569
9570
9571 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9572 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9573 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 ac_check_lib_save_LIBS=$LIBS
9577 LIBS="-ldnet $LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h. */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584
9585 /* Override any gcc2 internal prototype to avoid an error. */
9586 #ifdef __cplusplus
9587 extern "C"
9588 #endif
9589 /* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9591 char dnet_ntoa ();
9592 int
9593 main ()
9594 {
9595 dnet_ntoa ();
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_lib_dnet_dnet_ntoa=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9626
9627 ac_cv_lib_dnet_dnet_ntoa=no
9628 fi
9629 rm -f conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 LIBS=$ac_check_lib_save_LIBS
9632 fi
9633 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9634 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9635 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9636 cat >>confdefs.h <<_ACEOF
9637 #define HAVE_LIBDNET 1
9638 _ACEOF
9639
9640 LIBS="-ldnet $LIBS"
9641
9642 fi
9643
9644
9645 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9646 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9647 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-lXbsd $LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658
9659
9660 int
9661 main ()
9662 {
9663 main ();
9664 ;
9665 return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag"
9678 || test ! -s conftest.err'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_Xbsd_main=yes
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695 ac_cv_lib_Xbsd_main=no
9696 fi
9697 rm -f conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9699 LIBS=$ac_check_lib_save_LIBS
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9702 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9703 if test $ac_cv_lib_Xbsd_main = yes; then
9704 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9705 fi
9706
9707
9708
9709 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9710 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9711 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-lpthreads $LIBS"
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722
9723 /* Override any gcc2 internal prototype to avoid an error. */
9724 #ifdef __cplusplus
9725 extern "C"
9726 #endif
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729 char cma_open ();
9730 int
9731 main ()
9732 {
9733 cma_open ();
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag"
9748 || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_lib_pthreads_cma_open=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ac_cv_lib_pthreads_cma_open=no
9766 fi
9767 rm -f conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9770 fi
9771 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9772 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9773 if test $ac_cv_lib_pthreads_cma_open = yes; then
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_LIBPTHREADS 1
9776 _ACEOF
9777
9778 LIBS="-lpthreads $LIBS"
9779
9780 fi
9781
9782
9783 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9784 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9785 if test -d /usr/X386/include; then
9786 HAVE_XFREE386=yes
9787 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9788 else
9789 HAVE_XFREE386=no
9790 fi
9791 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9792 echo "${ECHO_T}$HAVE_XFREE386" >&6
9793
9794
9795 case ${host_os} in
9796 aix*)
9797 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9798 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9799 if test "${gdb_cv_bigtoc+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802
9803 case $GCC in
9804 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9805 *) gdb_cv_bigtoc=-bbigtoc ;;
9806 esac
9807
9808 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815
9816 int
9817 main ()
9818 {
9819 int i;
9820 ;
9821 return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>conftest.er1
9827 ac_status=$?
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 :
9847 else
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 gdb_cv_bigtoc=
9852 fi
9853 rm -f conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855
9856 fi
9857 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9858 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9859 ;;
9860 esac
9861
9862 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9863 # used for the tests that follow. We set them back to REAL_CFLAGS and
9864 # REAL_CPPFLAGS later on.
9865
9866 REAL_CPPFLAGS="$CPPFLAGS"
9867
9868 if test "${HAVE_X11}" = "yes"; then
9869 DEFS="$C_SWITCH_X_SITE $DEFS"
9870 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9871 LIBS="$LIBX $LIBS"
9872 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9873 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9874
9875 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9876 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9877 # but it's more convenient here to set LD_RUN_PATH
9878 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9879 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9880 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9881 export LD_RUN_PATH
9882 fi
9883
9884 if test "${opsys}" = "gnu-linux"; then
9885 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9886 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h. */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893
9894 int
9895 main ()
9896 {
9897 XOpenDisplay ("foo");
9898 ;
9899 return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag"
9912 || test ! -s conftest.err'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 xlinux_first_failure=no
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 xlinux_first_failure=yes
9930 fi
9931 rm -f conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 if test "${xlinux_first_failure}" = "yes"; then
9934 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9935 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9936 OLD_CPPFLAGS="$CPPFLAGS"
9937 OLD_LIBS="$LIBS"
9938 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9939 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9940 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9941 LIBS="$LIBS -b i486-linuxaout"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948
9949 int
9950 main ()
9951 {
9952 XOpenDisplay ("foo");
9953 ;
9954 return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 xlinux_second_failure=no
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 xlinux_second_failure=yes
9985 fi
9986 rm -f conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 if test "${xlinux_second_failure}" = "yes"; then
9989 # If we get the same failure with -b, there is no use adding -b.
9990 # So take it out. This plays safe.
9991 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9992 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9993 CPPFLAGS="$OLD_CPPFLAGS"
9994 LIBS="$OLD_LIBS"
9995 echo "$as_me:$LINENO: result: no" >&5
9996 echo "${ECHO_T}no" >&6
9997 else
9998 echo "$as_me:$LINENO: result: yes" >&5
9999 echo "${ECHO_T}yes" >&6
10000 fi
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10004 fi
10005 fi
10006
10007 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10008 # header files included from there.
10009 echo "$as_me:$LINENO: checking for Xkb" >&5
10010 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h. */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 #include <X11/Xlib.h>
10018 #include <X11/XKBlib.h>
10019 int
10020 main ()
10021 {
10022 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 emacs_xkb=yes
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 emacs_xkb=no
10055 fi
10056 rm -f conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10059 echo "${ECHO_T}$emacs_xkb" >&6
10060 if test $emacs_xkb = yes; then
10061
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_XKBGETKEYBOARD 1
10064 _ACEOF
10065
10066 fi
10067
10068
10069
10070
10071
10072 for ac_func in XrmSetDatabase XScreenResourceString \
10073 XScreenNumberOfScreen XSetWMProtocols
10074 do
10075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for $ac_func" >&5
10077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_var+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089 #define $ac_func innocuous_$ac_func
10090
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char $ac_func (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
10095
10096 #ifdef __STDC__
10097 # include <limits.h>
10098 #else
10099 # include <assert.h>
10100 #endif
10101
10102 #undef $ac_func
10103
10104 /* Override any gcc2 internal prototype to avoid an error. */
10105 #ifdef __cplusplus
10106 extern "C"
10107 {
10108 #endif
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10111 char $ac_func ();
10112 /* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10116 choke me
10117 #else
10118 char (*f) () = $ac_func;
10119 #endif
10120 #ifdef __cplusplus
10121 }
10122 #endif
10123
10124 int
10125 main ()
10126 {
10127 return f != $ac_func;
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10154 eval "$as_ac_var=yes"
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 eval "$as_ac_var=no"
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10169 _ACEOF
10170
10171 fi
10172 done
10173
10174 fi
10175
10176 if test "${window_system}" = "x11"; then
10177 echo "$as_me:$LINENO: checking X11 version 6" >&5
10178 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10179 if test "${emacs_cv_x11_version_6+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 #include <X11/Xlib.h>
10189 int
10190 main ()
10191 {
10192 #if XlibSpecificationRelease < 6
10193 fail;
10194 #endif
10195
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 emacs_cv_x11_version_6=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 emacs_cv_x11_version_6=no
10228 fi
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 fi
10232
10233 if test $emacs_cv_x11_version_6 = yes; then
10234 echo "$as_me:$LINENO: result: 6 or newer" >&5
10235 echo "${ECHO_T}6 or newer" >&6
10236
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_X11R6 1
10239 _ACEOF
10240
10241 else
10242 echo "$as_me:$LINENO: result: before 6" >&5
10243 echo "${ECHO_T}before 6" >&6
10244 fi
10245 fi
10246
10247 if test "${window_system}" = "x11"; then
10248 echo "$as_me:$LINENO: checking X11 version 5" >&5
10249 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10250 if test "${emacs_cv_x11_version_5+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 #include <X11/Xlib.h>
10260 int
10261 main ()
10262 {
10263 #if XlibSpecificationRelease < 5
10264 fail;
10265 #endif
10266
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest$ac_exeext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 emacs_cv_x11_version_5=yes
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298 emacs_cv_x11_version_5=no
10299 fi
10300 rm -f conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 fi
10303
10304 if test $emacs_cv_x11_version_5 = yes; then
10305 echo "$as_me:$LINENO: result: 5 or newer" >&5
10306 echo "${ECHO_T}5 or newer" >&6
10307 HAVE_X11R5=yes
10308
10309 cat >>confdefs.h <<\_ACEOF
10310 #define HAVE_X11R5 1
10311 _ACEOF
10312
10313 else
10314 HAVE_X11R5=no
10315 echo "$as_me:$LINENO: result: before 5" >&5
10316 echo "${ECHO_T}before 5" >&6
10317 fi
10318 fi
10319
10320 HAVE_GTK=no
10321 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10322 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10323 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10324 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10325 { (exit 1); exit 1; }; };
10326 fi
10327 GLIB_REQUIRED=2.4
10328 GTK_REQUIRED=2.4
10329 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10330
10331 if test "X${with_pkg_config_prog}" != X; then
10332 PKG_CONFIG="${with_pkg_config_prog}"
10333 fi
10334
10335 succeeded=no
10336
10337 if test -z "$PKG_CONFIG"; then
10338 # Extract the first word of "pkg-config", so it can be a program name with args.
10339 set dummy pkg-config; ac_word=$2
10340 echo "$as_me:$LINENO: checking for $ac_word" >&5
10341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 case $PKG_CONFIG in
10346 [\\/]* | ?:[\\/]*)
10347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10348 ;;
10349 *)
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10360 fi
10361 done
10362 done
10363
10364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10365 ;;
10366 esac
10367 fi
10368 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10369
10370 if test -n "$PKG_CONFIG"; then
10371 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10372 echo "${ECHO_T}$PKG_CONFIG" >&6
10373 else
10374 echo "$as_me:$LINENO: result: no" >&5
10375 echo "${ECHO_T}no" >&6
10376 fi
10377
10378 fi
10379
10380 if test "$PKG_CONFIG" = "no" ; then
10381 { { echo "$as_me:$LINENO: error:
10382 *** 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
10383 echo "$as_me: error:
10384 *** 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;}
10385 { (exit 1); exit 1; }; }
10386 else
10387 PKG_CONFIG_MIN_VERSION=0.9.0
10388 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10389 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10390 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10391
10392 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10393 echo "$as_me:$LINENO: result: yes" >&5
10394 echo "${ECHO_T}yes" >&6
10395 succeeded=yes
10396
10397 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10398 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10399 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10400 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10401 echo "${ECHO_T}$GTK_CFLAGS" >&6
10402
10403 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10404 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10405 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10406 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10407 echo "${ECHO_T}$GTK_LIBS" >&6
10408 else
10409 echo "$as_me:$LINENO: result: no" >&5
10410 echo "${ECHO_T}no" >&6
10411 GTK_CFLAGS=""
10412 GTK_LIBS=""
10413 ## If we have a custom action on failure, don't print errors, but
10414 ## do set a variable so people can do so.
10415 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10416 echo $GTK_PKG_ERRORS
10417 fi
10418
10419
10420
10421 else
10422 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10423 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10424 fi
10425 fi
10426
10427 if test $succeeded = yes; then
10428 :
10429 else
10430 { { 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
10431 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;}
10432 { (exit 1); exit 1; }; }
10433 fi
10434
10435
10436
10437 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10438 CFLAGS="$CFLAGS $GTK_CFLAGS"
10439 LIBS="$GTK_LIBS $LIBS"
10440 HAVE_GTK=yes
10441
10442 cat >>confdefs.h <<\_ACEOF
10443 #define HAVE_GTK 1
10444 _ACEOF
10445
10446 USE_X_TOOLKIT=none
10447
10448 if test "$with_toolkit_scroll_bars" != no; then
10449 with_toolkit_scroll_bars=yes
10450 fi
10451
10452 HAVE_GTK_MULTIDISPLAY=no
10453
10454 for ac_func in gdk_display_open
10455 do
10456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10457 echo "$as_me:$LINENO: checking for $ac_func" >&5
10458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10459 if eval "test \"\${$as_ac_var+set}\" = set"; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10470 #define $ac_func innocuous_$ac_func
10471
10472 /* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func (); below.
10474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10475 <limits.h> exists even on freestanding compilers. */
10476
10477 #ifdef __STDC__
10478 # include <limits.h>
10479 #else
10480 # include <assert.h>
10481 #endif
10482
10483 #undef $ac_func
10484
10485 /* Override any gcc2 internal prototype to avoid an error. */
10486 #ifdef __cplusplus
10487 extern "C"
10488 {
10489 #endif
10490 /* We use char because int might match the return type of a gcc2
10491 builtin and then its argument prototype would still apply. */
10492 char $ac_func ();
10493 /* The GNU C library defines this for functions which it implements
10494 to always fail with ENOSYS. Some functions are actually named
10495 something starting with __ and the normal name is an alias. */
10496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10497 choke me
10498 #else
10499 char (*f) () = $ac_func;
10500 #endif
10501 #ifdef __cplusplus
10502 }
10503 #endif
10504
10505 int
10506 main ()
10507 {
10508 return f != $ac_func;
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag"
10523 || test ! -s conftest.err'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 eval "$as_ac_var=yes"
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 eval "$as_ac_var=no"
10541 fi
10542 rm -f conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544 fi
10545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10547 if test `eval echo '${'$as_ac_var'}'` = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10550 _ACEOF
10551 HAVE_GTK_MULTIDISPLAY=yes
10552 fi
10553 done
10554
10555 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10556
10557 cat >>confdefs.h <<\_ACEOF
10558 #define HAVE_GTK_MULTIDISPLAY 1
10559 _ACEOF
10560
10561 fi
10562 HAVE_GTK_FILE_SELECTION=no
10563
10564 for ac_func in gtk_file_selection_new
10565 do
10566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10567 echo "$as_me:$LINENO: checking for $ac_func" >&5
10568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10569 if eval "test \"\${$as_ac_var+set}\" = set"; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10580 #define $ac_func innocuous_$ac_func
10581
10582 /* System header to define __stub macros and hopefully few prototypes,
10583 which can conflict with char $ac_func (); below.
10584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10585 <limits.h> exists even on freestanding compilers. */
10586
10587 #ifdef __STDC__
10588 # include <limits.h>
10589 #else
10590 # include <assert.h>
10591 #endif
10592
10593 #undef $ac_func
10594
10595 /* Override any gcc2 internal prototype to avoid an error. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 {
10599 #endif
10600 /* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10602 char $ac_func ();
10603 /* The GNU C library defines this for functions which it implements
10604 to always fail with ENOSYS. Some functions are actually named
10605 something starting with __ and the normal name is an alias. */
10606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10607 choke me
10608 #else
10609 char (*f) () = $ac_func;
10610 #endif
10611 #ifdef __cplusplus
10612 }
10613 #endif
10614
10615 int
10616 main ()
10617 {
10618 return f != $ac_func;
10619 ;
10620 return 0;
10621 }
10622 _ACEOF
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 eval "$as_ac_var=yes"
10646 else
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 eval "$as_ac_var=no"
10651 fi
10652 rm -f conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 fi
10655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10657 if test `eval echo '${'$as_ac_var'}'` = yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10660 _ACEOF
10661 HAVE_GTK_FILE_SELECTION=yes
10662 fi
10663 done
10664
10665
10666 HAVE_GTK_FILE_CHOOSER=no
10667
10668 for ac_func in gtk_file_chooser_dialog_new
10669 do
10670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 echo "$as_me:$LINENO: checking for $ac_func" >&5
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_var+set}\" = set"; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10684 #define $ac_func innocuous_$ac_func
10685
10686 /* System header to define __stub macros and hopefully few prototypes,
10687 which can conflict with char $ac_func (); below.
10688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689 <limits.h> exists even on freestanding compilers. */
10690
10691 #ifdef __STDC__
10692 # include <limits.h>
10693 #else
10694 # include <assert.h>
10695 #endif
10696
10697 #undef $ac_func
10698
10699 /* Override any gcc2 internal prototype to avoid an error. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 {
10703 #endif
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10706 char $ac_func ();
10707 /* The GNU C library defines this for functions which it implements
10708 to always fail with ENOSYS. Some functions are actually named
10709 something starting with __ and the normal name is an alias. */
10710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10711 choke me
10712 #else
10713 char (*f) () = $ac_func;
10714 #endif
10715 #ifdef __cplusplus
10716 }
10717 #endif
10718
10719 int
10720 main ()
10721 {
10722 return f != $ac_func;
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729 (eval $ac_link) 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest$ac_exeext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 eval "$as_ac_var=yes"
10750 else
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 eval "$as_ac_var=no"
10755 fi
10756 rm -f conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 fi
10759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10761 if test `eval echo '${'$as_ac_var'}'` = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10764 _ACEOF
10765 HAVE_GTK_FILE_CHOOSER=yes
10766 fi
10767 done
10768
10769
10770 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10771 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define HAVE_GTK_FILE_BOTH 1
10775 _ACEOF
10776
10777 fi
10778
10779 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10780 HAVE_GTK_AND_PTHREAD=no
10781
10782 for ac_header in pthread.h
10783 do
10784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10786 echo "$as_me:$LINENO: checking for $ac_header" >&5
10787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 fi
10791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10793 else
10794 # Is the header compilable?
10795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 #include <$ac_header>
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest.$ac_objext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_header_compiler=yes
10829 else
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 ac_header_compiler=no
10834 fi
10835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10837 echo "${ECHO_T}$ac_header_compiler" >&6
10838
10839 # Is the header present?
10840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <$ac_header>
10849 _ACEOF
10850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null; then
10858 if test -s conftest.err; then
10859 ac_cpp_err=$ac_c_preproc_warn_flag
10860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10861 else
10862 ac_cpp_err=
10863 fi
10864 else
10865 ac_cpp_err=yes
10866 fi
10867 if test -z "$ac_cpp_err"; then
10868 ac_header_preproc=yes
10869 else
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873 ac_header_preproc=no
10874 fi
10875 rm -f conftest.err conftest.$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877 echo "${ECHO_T}$ac_header_preproc" >&6
10878
10879 # So? What about this header?
10880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10881 yes:no: )
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10886 ac_header_preproc=yes
10887 ;;
10888 no:yes:* )
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10901 (
10902 cat <<\_ASBOX
10903 ## ------------------------------------------ ##
10904 ## Report this to the AC_PACKAGE_NAME lists. ##
10905 ## ------------------------------------------ ##
10906 _ASBOX
10907 ) |
10908 sed "s/^/$as_me: WARNING: /" >&2
10909 ;;
10910 esac
10911 echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 eval "$as_ac_Header=\$ac_header_preproc"
10917 fi
10918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10920
10921 fi
10922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10925 _ACEOF
10926
10927 fi
10928
10929 done
10930
10931 if test "$ac_cv_header_pthread_h"; then
10932 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10933 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10934 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-lpthread $LIBS"
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945
10946 /* Override any gcc2 internal prototype to avoid an error. */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10952 char pthread_self ();
10953 int
10954 main ()
10955 {
10956 pthread_self ();
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>conftest.er1
10964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try='test -z "$ac_c_werror_flag"
10971 || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10983 ac_cv_lib_pthread_pthread_self=yes
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 ac_cv_lib_pthread_pthread_self=no
10989 fi
10990 rm -f conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10995 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10996 if test $ac_cv_lib_pthread_pthread_self = yes; then
10997 HAVE_GTK_AND_PTHREAD=yes
10998 fi
10999
11000 fi
11001 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11002 GTK_LIBS="$GTK_LIBS -lpthread"
11003
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_GTK_AND_PTHREAD 1
11006 _ACEOF
11007
11008 fi
11009 fi
11010 fi
11011
11012 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11013 if test x"${HAVE_X11R5}" = xyes; then
11014 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11015 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11016 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025
11026 #include <X11/Intrinsic.h>
11027 #include <X11/Xaw/Simple.h>
11028 int
11029 main ()
11030 {
11031
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag"
11046 || test ! -s conftest.err'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 emacs_cv_x11_version_5_with_xaw=yes
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 emacs_cv_x11_version_5_with_xaw=no
11064 fi
11065 rm -f conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 fi
11068
11069 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11070 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11071 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11072 USE_X_TOOLKIT=LUCID
11073 else
11074 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11075 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11076 USE_X_TOOLKIT=none
11077 fi
11078 else
11079 USE_X_TOOLKIT=none
11080 fi
11081 fi
11082
11083 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11084
11085 if test "${USE_X_TOOLKIT}" != "none"; then
11086 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11087 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11088 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <X11/Intrinsic.h>
11098 int
11099 main ()
11100 {
11101 #if XtSpecificationRelease < 6
11102 fail;
11103 #endif
11104
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag"
11119 || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 emacs_cv_x11_toolkit_version_6=yes
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 emacs_cv_x11_toolkit_version_6=no
11137 fi
11138 rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 fi
11141
11142 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11143 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11144 echo "$as_me:$LINENO: result: 6 or newer" >&5
11145 echo "${ECHO_T}6 or newer" >&6
11146
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_X11XTR6 1
11149 _ACEOF
11150
11151 else
11152 echo "$as_me:$LINENO: result: before 6" >&5
11153 echo "${ECHO_T}before 6" >&6
11154 fi
11155
11156 OLDLIBS="$LIBS"
11157 if test x$HAVE_X11XTR6 = xyes; then
11158 LIBS="-lXt -lSM -lICE $LIBS"
11159 else
11160 LIBS="-lXt $LIBS"
11161 fi
11162
11163 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11164 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11165 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-lXmu $LIBS"
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176
11177 /* Override any gcc2 internal prototype to avoid an error. */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11183 char XmuConvertStandardSelection ();
11184 int
11185 main ()
11186 {
11187 XmuConvertStandardSelection ();
11188 ;
11189 return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11215 else
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11220 fi
11221 rm -f conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LIBS=$ac_check_lib_save_LIBS
11224 fi
11225 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11226 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11227 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11228 cat >>confdefs.h <<_ACEOF
11229 #define HAVE_LIBXMU 1
11230 _ACEOF
11231
11232 LIBS="-lXmu $LIBS"
11233
11234 fi
11235
11236 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11237 fi
11238
11239 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11240 if test "${HAVE_X11}" = "yes"; then
11241 if test "${USE_X_TOOLKIT}" != "none"; then
11242
11243 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11244 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11245 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248 ac_check_lib_save_LIBS=$LIBS
11249 LIBS="-lXext $LIBS"
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256
11257 /* Override any gcc2 internal prototype to avoid an error. */
11258 #ifdef __cplusplus
11259 extern "C"
11260 #endif
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263 char XShapeQueryExtension ();
11264 int
11265 main ()
11266 {
11267 XShapeQueryExtension ();
11268 ;
11269 return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 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"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_lib_Xext_XShapeQueryExtension=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_cv_lib_Xext_XShapeQueryExtension=no
11300 fi
11301 rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11306 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11307 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11308 cat >>confdefs.h <<_ACEOF
11309 #define HAVE_LIBXEXT 1
11310 _ACEOF
11311
11312 LIBS="-lXext $LIBS"
11313
11314 fi
11315
11316 fi
11317 fi
11318
11319 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11320 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11321 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11322 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <Xm/Xm.h>
11332 int
11333 main ()
11334 {
11335 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11336 int x = 5;
11337 #else
11338 Motif version prior to 2.1.
11339 #endif
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag"
11354 || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 emacs_cv_motif_version_2_1=yes
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 emacs_cv_motif_version_2_1=no
11372 fi
11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11374 fi
11375 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11376 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11377 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11378 if test $emacs_cv_motif_version_2_1 = yes; then
11379 HAVE_LIBXP=no
11380
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_MOTIF_2_1 1
11383 _ACEOF
11384
11385 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11386 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11387 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-lXp $LIBS"
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h. */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398
11399 /* Override any gcc2 internal prototype to avoid an error. */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 /* We use char because int might match the return type of a gcc2
11404 builtin and then its argument prototype would still apply. */
11405 char XpCreateContext ();
11406 int
11407 main ()
11408 {
11409 XpCreateContext ();
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 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"
11424 || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_lib_Xp_XpCreateContext=yes
11437 else
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 ac_cv_lib_Xp_XpCreateContext=no
11442 fi
11443 rm -f conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11448 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11449 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11450 HAVE_LIBXP=yes
11451 fi
11452
11453 if test ${HAVE_LIBXP} = yes; then
11454
11455 cat >>confdefs.h <<\_ACEOF
11456 #define HAVE_LIBXP 1
11457 _ACEOF
11458
11459 fi
11460 else
11461 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11462 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11463 if test "${emacs_cv_lesstif+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 # We put this in CFLAGS temporarily to precede other -I options
11467 # that might be in CFLAGS temporarily.
11468 # We put this in CPPFLAGS where it precedes the other -I options.
11469 OLD_CPPFLAGS=$CPPFLAGS
11470 OLD_CFLAGS=$CFLAGS
11471 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11472 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h. */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11480 int
11481 main ()
11482 {
11483 int x = 5;
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 emacs_cv_lesstif=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 emacs_cv_lesstif=no
11516 fi
11517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11518 fi
11519 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11520 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11521 if test $emacs_cv_lesstif = yes; then
11522 # Make sure this -I option remains in CPPFLAGS after it is set
11523 # back to REAL_CPPFLAGS.
11524 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11525 # have those other -I options anyway. Ultimately, having this
11526 # directory ultimately in CPPFLAGS will be enough.
11527 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11528 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11529 else
11530 CFLAGS=$OLD_CFLAGS
11531 CPPFLAGS=$OLD_CPPFLAGS
11532 fi
11533 fi
11534 fi
11535
11536 ### Is -lXaw3d available?
11537 HAVE_XAW3D=no
11538 if test "${HAVE_X11}" = "yes"; then
11539 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11540 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11541 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11542 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h. */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <X11/Xaw3d/Scrollbar.h>
11552 _ACEOF
11553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null; then
11561 if test -s conftest.err; then
11562 ac_cpp_err=$ac_c_preproc_warn_flag
11563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11564 else
11565 ac_cpp_err=
11566 fi
11567 else
11568 ac_cpp_err=yes
11569 fi
11570 if test -z "$ac_cpp_err"; then
11571 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11577 fi
11578 rm -f conftest.err conftest.$ac_ext
11579 fi
11580 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11581 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11582 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11583 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11584 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11585 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lXaw3d $LIBS"
11590 cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h. */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596
11597 /* Override any gcc2 internal prototype to avoid an error. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char XawScrollbarSetThumb ();
11604 int
11605 main ()
11606 {
11607 XawScrollbarSetThumb ();
11608 ;
11609 return 0;
11610 }
11611 _ACEOF
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag"
11622 || test ! -s conftest.err'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; } &&
11628 { ac_try='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11635 else
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11640 fi
11641 rm -f conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11644 fi
11645 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11646 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11647 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11648 HAVE_XAW3D=yes
11649 fi
11650
11651 fi
11652
11653
11654 if test "${HAVE_XAW3D}" = "yes"; then
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_XAW3D 1
11658 _ACEOF
11659
11660 fi
11661 fi
11662 fi
11663
11664
11665
11666 USE_TOOLKIT_SCROLL_BARS=no
11667 if test "${with_toolkit_scroll_bars}" != "no"; then
11668 if test "${USE_X_TOOLKIT}" != "none"; then
11669 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define USE_TOOLKIT_SCROLL_BARS 1
11672 _ACEOF
11673
11674 HAVE_XAW3D=no
11675 USE_TOOLKIT_SCROLL_BARS=yes
11676 elif test "${HAVE_XAW3D}" = "yes"; then
11677 cat >>confdefs.h <<\_ACEOF
11678 #define USE_TOOLKIT_SCROLL_BARS 1
11679 _ACEOF
11680
11681 USE_TOOLKIT_SCROLL_BARS=yes
11682 fi
11683 elif test "${HAVE_GTK}" = "yes"; then
11684 cat >>confdefs.h <<\_ACEOF
11685 #define USE_TOOLKIT_SCROLL_BARS 1
11686 _ACEOF
11687
11688 USE_TOOLKIT_SCROLL_BARS=yes
11689 elif test "${HAVE_CARBON}" = "yes"; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define USE_TOOLKIT_SCROLL_BARS 1
11692 _ACEOF
11693
11694 USE_TOOLKIT_SCROLL_BARS=yes
11695 fi
11696 fi
11697
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704
11705 #include <X11/Xlib.h>
11706 #include <X11/Xresource.h>
11707 int
11708 main ()
11709 {
11710 XIMProc callback;
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext
11716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11717 (eval $ac_compile) 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -z "$ac_c_werror_flag"
11725 || test ! -s conftest.err'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; } &&
11731 { ac_try='test -s conftest.$ac_objext'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 HAVE_XIM=yes
11738
11739 cat >>confdefs.h <<\_ACEOF
11740 #define HAVE_XIM 1
11741 _ACEOF
11742
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 HAVE_XIM=no
11748 fi
11749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11750
11751
11752 if test "${with_xim}" != "no"; then
11753
11754 cat >>confdefs.h <<\_ACEOF
11755 #define USE_XIM 1
11756 _ACEOF
11757
11758 fi
11759
11760
11761 if test "${HAVE_XIM}" != "no"; then
11762 late_CFLAGS=$CFLAGS
11763 if test "$GCC" = yes; then
11764 CFLAGS="$CFLAGS --pedantic-errors"
11765 fi
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772
11773 #include <X11/Xlib.h>
11774 #include <X11/Xresource.h>
11775 int
11776 main ()
11777 {
11778 Display *display;
11779 XrmDatabase db;
11780 char *res_name;
11781 char *res_class;
11782 XIMProc callback;
11783 XPointer *client_data;
11784 #ifndef __GNUC__
11785 /* If we're not using GCC, it's probably not XFree86, and this is
11786 probably right, but we can't use something like --pedantic-errors. */
11787 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11788 char*, XIMProc, XPointer*);
11789 #endif
11790 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11791 client_data);
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 emacs_cv_arg6_star=yes
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 fi
11824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11825
11826 if test "$emacs_cv_arg6_star" = yes; then
11827 cat >>confdefs.h <<\_ACEOF
11828 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11829 _ACEOF
11830
11831 else
11832 cat >>confdefs.h <<\_ACEOF
11833 #define XRegisterIMInstantiateCallback_arg6 XPointer
11834 _ACEOF
11835
11836 fi
11837 CFLAGS=$late_CFLAGS
11838 fi
11839
11840 ### Use -lXpm if available, unless `--with-xpm=no'.
11841 HAVE_XPM=no
11842 if test "${HAVE_X11}" = "yes"; then
11843 if test "${with_xpm}" != "no"; then
11844 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11845 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11846 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11847 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 fi
11850 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11851 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11852 else
11853 # Is the header compilable?
11854 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11855 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 $ac_includes_default
11863 #include <X11/xpm.h>
11864 _ACEOF
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag"
11875 || test ! -s conftest.err'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try='test -s conftest.$ac_objext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_header_compiler=yes
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_header_compiler=no
11893 fi
11894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11896 echo "${ECHO_T}$ac_header_compiler" >&6
11897
11898 # Is the header present?
11899 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11900 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 #include <X11/xpm.h>
11908 _ACEOF
11909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } >/dev/null; then
11917 if test -s conftest.err; then
11918 ac_cpp_err=$ac_c_preproc_warn_flag
11919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11920 else
11921 ac_cpp_err=
11922 fi
11923 else
11924 ac_cpp_err=yes
11925 fi
11926 if test -z "$ac_cpp_err"; then
11927 ac_header_preproc=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_header_preproc=no
11933 fi
11934 rm -f conftest.err conftest.$ac_ext
11935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11936 echo "${ECHO_T}$ac_header_preproc" >&6
11937
11938 # So? What about this header?
11939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11940 yes:no: )
11941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11942 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11944 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11945 ac_header_preproc=yes
11946 ;;
11947 no:yes:* )
11948 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11949 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11951 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11953 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11955 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11957 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11959 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11960 (
11961 cat <<\_ASBOX
11962 ## ------------------------------------------ ##
11963 ## Report this to the AC_PACKAGE_NAME lists. ##
11964 ## ------------------------------------------ ##
11965 _ASBOX
11966 ) |
11967 sed "s/^/$as_me: WARNING: /" >&2
11968 ;;
11969 esac
11970 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11971 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11972 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 ac_cv_header_X11_xpm_h=$ac_header_preproc
11976 fi
11977 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11978 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11979
11980 fi
11981 if test $ac_cv_header_X11_xpm_h = yes; then
11982 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11983 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11984 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-lXpm -lX11 $LIBS"
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995
11996 /* Override any gcc2 internal prototype to avoid an error. */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 /* We use char because int might match the return type of a gcc2
12001 builtin and then its argument prototype would still apply. */
12002 char XpmReadFileToPixmap ();
12003 int
12004 main ()
12005 {
12006 XpmReadFileToPixmap ();
12007 ;
12008 return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013 (eval $ac_link) 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag"
12021 || test ! -s conftest.err'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest$ac_exeext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12034 else
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12039 fi
12040 rm -f conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042 LIBS=$ac_check_lib_save_LIBS
12043 fi
12044 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12045 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12046 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12047 HAVE_XPM=yes
12048 fi
12049
12050 fi
12051
12052
12053 if test "${HAVE_XPM}" = "yes"; then
12054 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12055 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 #include "X11/xpm.h"
12063 #ifndef XpmReturnAllocPixels
12064 no_return_alloc_pixels
12065 #endif
12066
12067 _ACEOF
12068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12069 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12070 HAVE_XPM=no
12071 else
12072 HAVE_XPM=yes
12073 fi
12074 rm -f conftest*
12075
12076
12077 if test "${HAVE_XPM}" = "yes"; then
12078 echo "$as_me:$LINENO: result: yes" >&5
12079 echo "${ECHO_T}yes" >&6
12080 else
12081 echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6
12083 fi
12084 fi
12085 fi
12086
12087 if test "${HAVE_XPM}" = "yes"; then
12088
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_XPM 1
12091 _ACEOF
12092
12093 fi
12094 fi
12095
12096 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12097 HAVE_JPEG=no
12098 if test "${HAVE_X11}" = "yes"; then
12099 if test "${with_jpeg}" != "no"; then
12100 if test "${ac_cv_header_jerror_h+set}" = set; then
12101 echo "$as_me:$LINENO: checking for jerror.h" >&5
12102 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12103 if test "${ac_cv_header_jerror_h+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 fi
12106 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12107 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12108 else
12109 # Is the header compilable?
12110 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12111 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 $ac_includes_default
12119 #include <jerror.h>
12120 _ACEOF
12121 rm -f conftest.$ac_objext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_header_compiler=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_header_compiler=no
12149 fi
12150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12152 echo "${ECHO_T}$ac_header_compiler" >&6
12153
12154 # Is the header present?
12155 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12156 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 #include <jerror.h>
12164 _ACEOF
12165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } >/dev/null; then
12173 if test -s conftest.err; then
12174 ac_cpp_err=$ac_c_preproc_warn_flag
12175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12176 else
12177 ac_cpp_err=
12178 fi
12179 else
12180 ac_cpp_err=yes
12181 fi
12182 if test -z "$ac_cpp_err"; then
12183 ac_header_preproc=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_header_preproc=no
12189 fi
12190 rm -f conftest.err conftest.$ac_ext
12191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12192 echo "${ECHO_T}$ac_header_preproc" >&6
12193
12194 # So? What about this header?
12195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12196 yes:no: )
12197 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12198 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12200 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12201 ac_header_preproc=yes
12202 ;;
12203 no:yes:* )
12204 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12205 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12207 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12209 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12211 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12213 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12215 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12216 (
12217 cat <<\_ASBOX
12218 ## ------------------------------------------ ##
12219 ## Report this to the AC_PACKAGE_NAME lists. ##
12220 ## ------------------------------------------ ##
12221 _ASBOX
12222 ) |
12223 sed "s/^/$as_me: WARNING: /" >&2
12224 ;;
12225 esac
12226 echo "$as_me:$LINENO: checking for jerror.h" >&5
12227 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12228 if test "${ac_cv_header_jerror_h+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 ac_cv_header_jerror_h=$ac_header_preproc
12232 fi
12233 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12234 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12235
12236 fi
12237 if test $ac_cv_header_jerror_h = yes; then
12238 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12239 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12240 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-ljpeg $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251
12252 /* Override any gcc2 internal prototype to avoid an error. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char jpeg_destroy_compress ();
12259 int
12260 main ()
12261 {
12262 jpeg_destroy_compress ();
12263 ;
12264 return 0;
12265 }
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12295 fi
12296 rm -f conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12299 fi
12300 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12301 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12302 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12303 HAVE_JPEG=yes
12304 fi
12305
12306 fi
12307
12308
12309 fi
12310
12311
12312 if test "${HAVE_JPEG}" = "yes"; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define HAVE_JPEG 1
12315 _ACEOF
12316
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <jpeglib.h>
12324 version=JPEG_LIB_VERSION
12325
12326 _ACEOF
12327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12328 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12329 cat >>confdefs.h <<\_ACEOF
12330 #define HAVE_JPEG 1
12331 _ACEOF
12332
12333 else
12334 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12335 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12336 HAVE_JPEG=no
12337 fi
12338 rm -f conftest*
12339
12340 fi
12341 fi
12342
12343 ### Use -lpng if available, unless `--with-png=no'.
12344 HAVE_PNG=no
12345 if test "${HAVE_X11}" = "yes"; then
12346 if test "${with_png}" != "no"; then
12347 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12348 # in /usr/include/libpng.
12349
12350
12351 for ac_header in png.h libpng/png.h
12352 do
12353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12355 echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 fi
12360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12362 else
12363 # Is the header compilable?
12364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12373 #include <$ac_header>
12374 _ACEOF
12375 rm -f conftest.$ac_objext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag"
12385 || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_header_compiler=yes
12398 else
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402 ac_header_compiler=no
12403 fi
12404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406 echo "${ECHO_T}$ac_header_compiler" >&6
12407
12408 # Is the header present?
12409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <$ac_header>
12418 _ACEOF
12419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } >/dev/null; then
12427 if test -s conftest.err; then
12428 ac_cpp_err=$ac_c_preproc_warn_flag
12429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12430 else
12431 ac_cpp_err=
12432 fi
12433 else
12434 ac_cpp_err=yes
12435 fi
12436 if test -z "$ac_cpp_err"; then
12437 ac_header_preproc=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_header_preproc=no
12443 fi
12444 rm -f conftest.err conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446 echo "${ECHO_T}$ac_header_preproc" >&6
12447
12448 # So? What about this header?
12449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 yes:no: )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12455 ac_header_preproc=yes
12456 ;;
12457 no:yes:* )
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470 (
12471 cat <<\_ASBOX
12472 ## ------------------------------------------ ##
12473 ## Report this to the AC_PACKAGE_NAME lists. ##
12474 ## ------------------------------------------ ##
12475 _ASBOX
12476 ) |
12477 sed "s/^/$as_me: WARNING: /" >&2
12478 ;;
12479 esac
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485 eval "$as_ac_Header=\$ac_header_preproc"
12486 fi
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12489
12490 fi
12491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12492 cat >>confdefs.h <<_ACEOF
12493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12494 _ACEOF
12495
12496 fi
12497
12498 done
12499
12500 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12501 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12502 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12503 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-lpng -lz -lm $LIBS"
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char png_get_channels ();
12522 int
12523 main ()
12524 {
12525 png_get_channels ();
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_lib_png_png_get_channels=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_cv_lib_png_png_get_channels=no
12558 fi
12559 rm -f conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12562 fi
12563 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12564 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12565 if test $ac_cv_lib_png_png_get_channels = yes; then
12566 HAVE_PNG=yes
12567 fi
12568
12569 fi
12570 fi
12571
12572 if test "${HAVE_PNG}" = "yes"; then
12573
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_PNG 1
12576 _ACEOF
12577
12578 fi
12579 fi
12580
12581 ### Use -ltiff if available, unless `--with-tiff=no'.
12582 HAVE_TIFF=no
12583 if test "${HAVE_X11}" = "yes"; then
12584 if test "${with_tiff}" != "no"; then
12585 if test "${ac_cv_header_tiffio_h+set}" = set; then
12586 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12587 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12588 if test "${ac_cv_header_tiffio_h+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 fi
12591 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12592 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12593 else
12594 # Is the header compilable?
12595 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12596 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 #include <tiffio.h>
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -z "$ac_c_werror_flag"
12616 || test ! -s conftest.err'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_header_compiler=yes
12629 else
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 ac_header_compiler=no
12634 fi
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637 echo "${ECHO_T}$ac_header_compiler" >&6
12638
12639 # Is the header present?
12640 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12641 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 #include <tiffio.h>
12649 _ACEOF
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } >/dev/null; then
12658 if test -s conftest.err; then
12659 ac_cpp_err=$ac_c_preproc_warn_flag
12660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12661 else
12662 ac_cpp_err=
12663 fi
12664 else
12665 ac_cpp_err=yes
12666 fi
12667 if test -z "$ac_cpp_err"; then
12668 ac_header_preproc=yes
12669 else
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 ac_header_preproc=no
12674 fi
12675 rm -f conftest.err conftest.$ac_ext
12676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12677 echo "${ECHO_T}$ac_header_preproc" >&6
12678
12679 # So? What about this header?
12680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12681 yes:no: )
12682 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12683 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12685 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12686 ac_header_preproc=yes
12687 ;;
12688 no:yes:* )
12689 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12690 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12692 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12694 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12696 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12698 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12699 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12700 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12701 (
12702 cat <<\_ASBOX
12703 ## ------------------------------------------ ##
12704 ## Report this to the AC_PACKAGE_NAME lists. ##
12705 ## ------------------------------------------ ##
12706 _ASBOX
12707 ) |
12708 sed "s/^/$as_me: WARNING: /" >&2
12709 ;;
12710 esac
12711 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12712 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12713 if test "${ac_cv_header_tiffio_h+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 ac_cv_header_tiffio_h=$ac_header_preproc
12717 fi
12718 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12720
12721 fi
12722 if test $ac_cv_header_tiffio_h = yes; then
12723 tifflibs="-lz -lm"
12724 # At least one tiff package requires the jpeg library.
12725 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12726 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12727 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12728 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-ltiff $tifflibs $LIBS"
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h. */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739
12740 /* Override any gcc2 internal prototype to avoid an error. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746 char TIFFGetVersion ();
12747 int
12748 main ()
12749 {
12750 TIFFGetVersion ();
12751 ;
12752 return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag"
12765 || test ! -s conftest.err'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_lib_tiff_TIFFGetVersion=yes
12778 else
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 ac_cv_lib_tiff_TIFFGetVersion=no
12783 fi
12784 rm -f conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12787 fi
12788 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12789 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12790 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12791 HAVE_TIFF=yes
12792 fi
12793
12794 fi
12795
12796
12797 fi
12798
12799 if test "${HAVE_TIFF}" = "yes"; then
12800
12801 cat >>confdefs.h <<\_ACEOF
12802 #define HAVE_TIFF 1
12803 _ACEOF
12804
12805 fi
12806 fi
12807
12808 ### Use -lgif if available, unless `--with-gif=no'.
12809 HAVE_GIF=no
12810 if test "${HAVE_X11}" = "yes"; then
12811 if test "${with_gif}" != "no"; then
12812 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12813 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12814 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12815 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 fi
12818 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12819 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12820 else
12821 # Is the header compilable?
12822 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12823 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h. */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12831 #include <gif_lib.h>
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_header_compiler=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_header_compiler=no
12861 fi
12862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12864 echo "${ECHO_T}$ac_header_compiler" >&6
12865
12866 # Is the header present?
12867 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12868 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h. */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 #include <gif_lib.h>
12876 _ACEOF
12877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev/null; then
12885 if test -s conftest.err; then
12886 ac_cpp_err=$ac_c_preproc_warn_flag
12887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12888 else
12889 ac_cpp_err=
12890 fi
12891 else
12892 ac_cpp_err=yes
12893 fi
12894 if test -z "$ac_cpp_err"; then
12895 ac_header_preproc=yes
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 ac_header_preproc=no
12901 fi
12902 rm -f conftest.err conftest.$ac_ext
12903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12904 echo "${ECHO_T}$ac_header_preproc" >&6
12905
12906 # So? What about this header?
12907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12908 yes:no: )
12909 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12910 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12912 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12913 ac_header_preproc=yes
12914 ;;
12915 no:yes:* )
12916 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12917 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12919 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12921 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12923 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12925 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12927 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12928 (
12929 cat <<\_ASBOX
12930 ## ------------------------------------------ ##
12931 ## Report this to the AC_PACKAGE_NAME lists. ##
12932 ## ------------------------------------------ ##
12933 _ASBOX
12934 ) |
12935 sed "s/^/$as_me: WARNING: /" >&2
12936 ;;
12937 esac
12938 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12939 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12940 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943 ac_cv_header_gif_lib_h=$ac_header_preproc
12944 fi
12945 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12946 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12947
12948 fi
12949 if test $ac_cv_header_gif_lib_h = yes; then
12950 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12951 # Earlier versions can crash Emacs.
12952 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12953 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12954 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 ac_check_lib_save_LIBS=$LIBS
12958 LIBS="-lungif $LIBS"
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965
12966 /* Override any gcc2 internal prototype to avoid an error. */
12967 #ifdef __cplusplus
12968 extern "C"
12969 #endif
12970 /* We use char because int might match the return type of a gcc2
12971 builtin and then its argument prototype would still apply. */
12972 char EGifPutExtensionLast ();
12973 int
12974 main ()
12975 {
12976 EGifPutExtensionLast ();
12977 ;
12978 return 0;
12979 }
12980 _ACEOF
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12983 (eval $ac_link) 2>conftest.er1
12984 ac_status=$?
12985 grep -v '^ *+' conftest.er1 >conftest.err
12986 rm -f conftest.er1
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -z "$ac_c_werror_flag"
12991 || test ! -s conftest.err'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try='test -s conftest$ac_exeext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13004 else
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 ac_cv_lib_ungif_EGifPutExtensionLast=no
13009 fi
13010 rm -f conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13013 fi
13014 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13015 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13016 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13017 HAVE_GIF=yes
13018 fi
13019
13020 fi
13021
13022
13023 fi
13024
13025 if test "${HAVE_GIF}" = "yes"; then
13026
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_GIF 1
13029 _ACEOF
13030
13031 fi
13032 fi
13033
13034 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13035 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13036 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13037 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 fi
13040 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13041 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13042 else
13043 # Is the header compilable?
13044 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13045 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 $ac_includes_default
13053 #include <malloc/malloc.h>
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_header_compiler=yes
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 ac_header_compiler=no
13083 fi
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13086 echo "${ECHO_T}$ac_header_compiler" >&6
13087
13088 # Is the header present?
13089 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13090 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <malloc/malloc.h>
13098 _ACEOF
13099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } >/dev/null; then
13107 if test -s conftest.err; then
13108 ac_cpp_err=$ac_c_preproc_warn_flag
13109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13110 else
13111 ac_cpp_err=
13112 fi
13113 else
13114 ac_cpp_err=yes
13115 fi
13116 if test -z "$ac_cpp_err"; then
13117 ac_header_preproc=yes
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_header_preproc=no
13123 fi
13124 rm -f conftest.err conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13126 echo "${ECHO_T}$ac_header_preproc" >&6
13127
13128 # So? What about this header?
13129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13130 yes:no: )
13131 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13132 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13134 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13135 ac_header_preproc=yes
13136 ;;
13137 no:yes:* )
13138 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13139 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13141 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13143 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13145 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13147 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13149 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13150 (
13151 cat <<\_ASBOX
13152 ## ------------------------------------------ ##
13153 ## Report this to the AC_PACKAGE_NAME lists. ##
13154 ## ------------------------------------------ ##
13155 _ASBOX
13156 ) |
13157 sed "s/^/$as_me: WARNING: /" >&2
13158 ;;
13159 esac
13160 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13161 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13162 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13166 fi
13167 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13168 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13169
13170 fi
13171 if test $ac_cv_header_malloc_malloc_h = yes; then
13172
13173 cat >>confdefs.h <<\_ACEOF
13174 #define HAVE_MALLOC_MALLOC_H 1
13175 _ACEOF
13176
13177 fi
13178
13179
13180
13181 ### Use Mac OS X Carbon API to implement GUI.
13182 if test "${HAVE_CARBON}" = "yes"; then
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_CARBON 1
13186 _ACEOF
13187
13188 ## Specify the install directory
13189 carbon_appdir=
13190 if test "${carbon_appdir_x}" != ""; then
13191 case ${carbon_appdir_x} in
13192 y | ye | yes) carbon_appdir=/Applications ;;
13193 * ) carbon_appdir=${carbon_appdir_x} ;;
13194 esac
13195 fi
13196 # We also have mouse menus.
13197 HAVE_MENUS=yes
13198
13199 tmp_CFLAGS="$CFLAGS"
13200 CFLAGS="$CFLAGS -framework Carbon"
13201 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13202 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13203 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13214 #define CancelMenuTracking innocuous_CancelMenuTracking
13215
13216 /* System header to define __stub macros and hopefully few prototypes,
13217 which can conflict with char CancelMenuTracking (); below.
13218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13219 <limits.h> exists even on freestanding compilers. */
13220
13221 #ifdef __STDC__
13222 # include <limits.h>
13223 #else
13224 # include <assert.h>
13225 #endif
13226
13227 #undef CancelMenuTracking
13228
13229 /* Override any gcc2 internal prototype to avoid an error. */
13230 #ifdef __cplusplus
13231 extern "C"
13232 {
13233 #endif
13234 /* We use char because int might match the return type of a gcc2
13235 builtin and then its argument prototype would still apply. */
13236 char CancelMenuTracking ();
13237 /* The GNU C library defines this for functions which it implements
13238 to always fail with ENOSYS. Some functions are actually named
13239 something starting with __ and the normal name is an alias. */
13240 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13241 choke me
13242 #else
13243 char (*f) () = CancelMenuTracking;
13244 #endif
13245 #ifdef __cplusplus
13246 }
13247 #endif
13248
13249 int
13250 main ()
13251 {
13252 return f != CancelMenuTracking;
13253 ;
13254 return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext conftest$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259 (eval $ac_link) 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest$ac_exeext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_func_CancelMenuTracking=yes
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_cv_func_CancelMenuTracking=no
13285 fi
13286 rm -f conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 fi
13289 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13290 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13291 if test $ac_cv_func_CancelMenuTracking = yes; then
13292 have_cmt=yes
13293 else
13294 have_cmt=no
13295 fi
13296
13297 if test "$have_cmt" = yes; then
13298
13299 cat >>confdefs.h <<\_ACEOF
13300 #define HAVE_CANCELMENUTRACKING 1
13301 _ACEOF
13302
13303 fi
13304 CFLAGS="$tmp_CFLAGS"
13305 fi
13306
13307 ### Use session management (-lSM -lICE) if available
13308 HAVE_X_SM=no
13309 if test "${HAVE_X11}" = "yes"; then
13310 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13311 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13312 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13313 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 fi
13316 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13318 else
13319 # Is the header compilable?
13320 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13321 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13322 cat >conftest.$ac_ext <<_ACEOF
13323 /* confdefs.h. */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 #include <X11/SM/SMlib.h>
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333 (eval $ac_compile) 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag"
13341 || test ! -s conftest.err'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest.$ac_objext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13353 ac_header_compiler=yes
13354 else
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358 ac_header_compiler=no
13359 fi
13360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13362 echo "${ECHO_T}$ac_header_compiler" >&6
13363
13364 # Is the header present?
13365 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13366 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h. */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <X11/SM/SMlib.h>
13374 _ACEOF
13375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } >/dev/null; then
13383 if test -s conftest.err; then
13384 ac_cpp_err=$ac_c_preproc_warn_flag
13385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13386 else
13387 ac_cpp_err=
13388 fi
13389 else
13390 ac_cpp_err=yes
13391 fi
13392 if test -z "$ac_cpp_err"; then
13393 ac_header_preproc=yes
13394 else
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398 ac_header_preproc=no
13399 fi
13400 rm -f conftest.err conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13402 echo "${ECHO_T}$ac_header_preproc" >&6
13403
13404 # So? What about this header?
13405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13406 yes:no: )
13407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13408 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13410 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13411 ac_header_preproc=yes
13412 ;;
13413 no:yes:* )
13414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13415 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13417 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13419 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13421 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13423 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13425 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13426 (
13427 cat <<\_ASBOX
13428 ## ------------------------------------------ ##
13429 ## Report this to the AC_PACKAGE_NAME lists. ##
13430 ## ------------------------------------------ ##
13431 _ASBOX
13432 ) |
13433 sed "s/^/$as_me: WARNING: /" >&2
13434 ;;
13435 esac
13436 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13437 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13438 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13442 fi
13443 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13444 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13445
13446 fi
13447 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13448 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13449 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13450 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lSM -lICE $LIBS"
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461
13462 /* Override any gcc2 internal prototype to avoid an error. */
13463 #ifdef __cplusplus
13464 extern "C"
13465 #endif
13466 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */
13468 char SmcOpenConnection ();
13469 int
13470 main ()
13471 {
13472 SmcOpenConnection ();
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_SM_SmcOpenConnection=yes
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 ac_cv_lib_SM_SmcOpenConnection=no
13505 fi
13506 rm -f conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_check_lib_save_LIBS
13509 fi
13510 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13511 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13512 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13513 HAVE_X_SM=yes
13514 fi
13515
13516 fi
13517
13518
13519
13520 if test "${HAVE_X_SM}" = "yes"; then
13521
13522 cat >>confdefs.h <<\_ACEOF
13523 #define HAVE_X_SM 1
13524 _ACEOF
13525
13526 case "$LIBS" in
13527 *-lSM*) ;;
13528 *) LIBS="-lSM -lICE $LIBS" ;;
13529 esac
13530 fi
13531 fi
13532
13533 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13534 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13535 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13536 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h. */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 #include <netdb.h>
13546 int
13547 main ()
13548 {
13549 return h_errno;
13550 ;
13551 return 0;
13552 }
13553 _ACEOF
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556 (eval $ac_link) 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_c_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest$ac_exeext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 emacs_cv_netdb_declares_h_errno=yes
13577 else
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 emacs_cv_netdb_declares_h_errno=no
13582 fi
13583 rm -f conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
13585 fi
13586 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13587 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13588 if test $emacs_cv_netdb_declares_h_errno = yes; then
13589
13590 cat >>confdefs.h <<\_ACEOF
13591 #define HAVE_H_ERRNO 1
13592 _ACEOF
13593
13594 fi
13595
13596 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13597 # for constant arguments. Useless!
13598 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13599 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13600 if test "${ac_cv_working_alloca_h+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <alloca.h>
13610 int
13611 main ()
13612 {
13613 char *p = (char *) alloca (2 * sizeof (int));
13614 ;
13615 return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest.$ac_objext conftest$ac_exeext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620 (eval $ac_link) 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_working_alloca_h=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_cv_working_alloca_h=no
13646 fi
13647 rm -f conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 fi
13650 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13651 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13652 if test $ac_cv_working_alloca_h = yes; then
13653
13654 cat >>confdefs.h <<\_ACEOF
13655 #define HAVE_ALLOCA_H 1
13656 _ACEOF
13657
13658 fi
13659
13660 echo "$as_me:$LINENO: checking for alloca" >&5
13661 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13662 if test "${ac_cv_func_alloca_works+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 #ifdef __GNUC__
13672 # define alloca __builtin_alloca
13673 #else
13674 # ifdef _MSC_VER
13675 # include <malloc.h>
13676 # define alloca _alloca
13677 # else
13678 # if HAVE_ALLOCA_H
13679 # include <alloca.h>
13680 # else
13681 # ifdef _AIX
13682 #pragma alloca
13683 # else
13684 # ifndef alloca /* predefined by HP cc +Olibcalls */
13685 char *alloca ();
13686 # endif
13687 # endif
13688 # endif
13689 # endif
13690 #endif
13691
13692 int
13693 main ()
13694 {
13695 char *p = (char *) alloca (1);
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_func_alloca_works=yes
13723 else
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13726
13727 ac_cv_func_alloca_works=no
13728 fi
13729 rm -f conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 fi
13732 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13733 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13734
13735 if test $ac_cv_func_alloca_works = yes; then
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define HAVE_ALLOCA 1
13739 _ACEOF
13740
13741 else
13742 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13743 # that cause trouble. Some versions do not even contain alloca or
13744 # contain a buggy version. If you still want to use their alloca,
13745 # use ar to extract alloca.o from them instead of compiling alloca.c.
13746
13747 ALLOCA=alloca.$ac_objext
13748
13749 cat >>confdefs.h <<\_ACEOF
13750 #define C_ALLOCA 1
13751 _ACEOF
13752
13753
13754 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13755 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13756 if test "${ac_cv_os_cray+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #if defined(CRAY) && ! defined(CRAY2)
13766 webecray
13767 #else
13768 wenotbecray
13769 #endif
13770
13771 _ACEOF
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "webecray" >/dev/null 2>&1; then
13774 ac_cv_os_cray=yes
13775 else
13776 ac_cv_os_cray=no
13777 fi
13778 rm -f conftest*
13779
13780 fi
13781 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13782 echo "${ECHO_T}$ac_cv_os_cray" >&6
13783 if test $ac_cv_os_cray = yes; then
13784 for ac_func in _getb67 GETB67 getb67; do
13785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13786 echo "$as_me:$LINENO: checking for $ac_func" >&5
13787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13788 if eval "test \"\${$as_ac_var+set}\" = set"; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 else
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h. */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13799 #define $ac_func innocuous_$ac_func
13800
13801 /* System header to define __stub macros and hopefully few prototypes,
13802 which can conflict with char $ac_func (); below.
13803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13804 <limits.h> exists even on freestanding compilers. */
13805
13806 #ifdef __STDC__
13807 # include <limits.h>
13808 #else
13809 # include <assert.h>
13810 #endif
13811
13812 #undef $ac_func
13813
13814 /* Override any gcc2 internal prototype to avoid an error. */
13815 #ifdef __cplusplus
13816 extern "C"
13817 {
13818 #endif
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13821 char $ac_func ();
13822 /* The GNU C library defines this for functions which it implements
13823 to always fail with ENOSYS. Some functions are actually named
13824 something starting with __ and the normal name is an alias. */
13825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13826 choke me
13827 #else
13828 char (*f) () = $ac_func;
13829 #endif
13830 #ifdef __cplusplus
13831 }
13832 #endif
13833
13834 int
13835 main ()
13836 {
13837 return f != $ac_func;
13838 ;
13839 return 0;
13840 }
13841 _ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag"
13852 || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest$ac_exeext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 eval "$as_ac_var=yes"
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 eval "$as_ac_var=no"
13870 fi
13871 rm -f conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 fi
13874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13876 if test `eval echo '${'$as_ac_var'}'` = yes; then
13877
13878 cat >>confdefs.h <<_ACEOF
13879 #define CRAY_STACKSEG_END $ac_func
13880 _ACEOF
13881
13882 break
13883 fi
13884
13885 done
13886 fi
13887
13888 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13889 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13890 if test "${ac_cv_c_stack_direction+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 if test "$cross_compiling" = yes; then
13894 ac_cv_c_stack_direction=0
13895 else
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 int
13903 find_stack_direction ()
13904 {
13905 static char *addr = 0;
13906 auto char dummy;
13907 if (addr == 0)
13908 {
13909 addr = &dummy;
13910 return find_stack_direction ();
13911 }
13912 else
13913 return (&dummy > addr) ? 1 : -1;
13914 }
13915
13916 int
13917 main ()
13918 {
13919 exit (find_stack_direction () < 0);
13920 }
13921 _ACEOF
13922 rm -f conftest$ac_exeext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_c_stack_direction=1
13934 else
13935 echo "$as_me: program exited with status $ac_status" >&5
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 ( exit $ac_status )
13940 ac_cv_c_stack_direction=-1
13941 fi
13942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13943 fi
13944 fi
13945 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13946 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13947
13948 cat >>confdefs.h <<_ACEOF
13949 #define STACK_DIRECTION $ac_cv_c_stack_direction
13950 _ACEOF
13951
13952
13953 fi
13954
13955
13956 # fmod, logb, and frexp are found in -lm on most systems.
13957 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13958
13959 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13960 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13961 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 ac_check_lib_save_LIBS=$LIBS
13965 LIBS="-lm $LIBS"
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972
13973 /* Override any gcc2 internal prototype to avoid an error. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 /* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13979 char sqrt ();
13980 int
13981 main ()
13982 {
13983 sqrt ();
13984 ;
13985 return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext conftest$ac_exeext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13990 (eval $ac_link) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag"
13998 || test ! -s conftest.err'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_cv_lib_m_sqrt=yes
14011 else
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 ac_cv_lib_m_sqrt=no
14016 fi
14017 rm -f conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
14019 LIBS=$ac_check_lib_save_LIBS
14020 fi
14021 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14022 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14023 if test $ac_cv_lib_m_sqrt = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_LIBM 1
14026 _ACEOF
14027
14028 LIBS="-lm $LIBS"
14029
14030 fi
14031
14032
14033 # Check for mail-locking functions in a "mail" library. Probably this should
14034 # have the same check as for liblockfile below.
14035
14036 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14037 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14038 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lmail $LIBS"
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049
14050 /* Override any gcc2 internal prototype to avoid an error. */
14051 #ifdef __cplusplus
14052 extern "C"
14053 #endif
14054 /* We use char because int might match the return type of a gcc2
14055 builtin and then its argument prototype would still apply. */
14056 char maillock ();
14057 int
14058 main ()
14059 {
14060 maillock ();
14061 ;
14062 return 0;
14063 }
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067 (eval $ac_link) 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try='test -z "$ac_c_werror_flag"
14075 || test ! -s conftest.err'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; } &&
14081 { ac_try='test -s conftest$ac_exeext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_lib_mail_maillock=yes
14088 else
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092 ac_cv_lib_mail_maillock=no
14093 fi
14094 rm -f conftest.err conftest.$ac_objext \
14095 conftest$ac_exeext conftest.$ac_ext
14096 LIBS=$ac_check_lib_save_LIBS
14097 fi
14098 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14099 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14100 if test $ac_cv_lib_mail_maillock = yes; then
14101 cat >>confdefs.h <<_ACEOF
14102 #define HAVE_LIBMAIL 1
14103 _ACEOF
14104
14105 LIBS="-lmail $LIBS"
14106
14107 fi
14108
14109
14110 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14111 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14112 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 ac_check_lib_save_LIBS=$LIBS
14116 LIBS="-llockfile $LIBS"
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123
14124 /* Override any gcc2 internal prototype to avoid an error. */
14125 #ifdef __cplusplus
14126 extern "C"
14127 #endif
14128 /* We use char because int might match the return type of a gcc2
14129 builtin and then its argument prototype would still apply. */
14130 char maillock ();
14131 int
14132 main ()
14133 {
14134 maillock ();
14135 ;
14136 return 0;
14137 }
14138 _ACEOF
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest$ac_exeext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_lib_lockfile_maillock=yes
14162 else
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_cv_lib_lockfile_maillock=no
14167 fi
14168 rm -f conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14171 fi
14172 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14173 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14174 if test $ac_cv_lib_lockfile_maillock = yes; then
14175 cat >>confdefs.h <<_ACEOF
14176 #define HAVE_LIBLOCKFILE 1
14177 _ACEOF
14178
14179 LIBS="-llockfile $LIBS"
14180
14181 fi
14182
14183 # If we have the shared liblockfile, assume we must use it for mail
14184 # locking (e.g. Debian). If we couldn't link against liblockfile
14185 # (no liblockfile.a installed), ensure that we don't need to.
14186 if test "$ac_cv_lib_lockfile_maillock" = no; then
14187 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14188 set dummy liblockfile.so; ac_word=$2
14189 echo "$as_me:$LINENO: checking for $ac_word" >&5
14190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14191 if test "${ac_cv_prog_liblockfile+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194 if test -n "$liblockfile"; then
14195 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14199 for as_dir in $as_dummy
14200 do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
14204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14205 ac_cv_prog_liblockfile="yes"
14206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 break 2
14208 fi
14209 done
14210 done
14211
14212 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14213 fi
14214 fi
14215 liblockfile=$ac_cv_prog_liblockfile
14216 if test -n "$liblockfile"; then
14217 echo "$as_me:$LINENO: result: $liblockfile" >&5
14218 echo "${ECHO_T}$liblockfile" >&6
14219 else
14220 echo "$as_me:$LINENO: result: no" >&5
14221 echo "${ECHO_T}no" >&6
14222 fi
14223
14224 if test $ac_cv_prog_liblockfile = yes; then
14225 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14226 This probably means that movemail could lose mail.
14227 There may be a \`development' package to install containing liblockfile." >&5
14228 echo "$as_me: error: Shared liblockfile found but can't link against it.
14229 This probably means that movemail could lose mail.
14230 There may be a \`development' package to install containing liblockfile." >&2;}
14231 { (exit 1); exit 1; }; }
14232 else :
14233 fi
14234 fi
14235
14236 for ac_func in touchlock
14237 do
14238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239 echo "$as_me:$LINENO: checking for $ac_func" >&5
14240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14241 if eval "test \"\${$as_ac_var+set}\" = set"; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14252 #define $ac_func innocuous_$ac_func
14253
14254 /* System header to define __stub macros and hopefully few prototypes,
14255 which can conflict with char $ac_func (); below.
14256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14257 <limits.h> exists even on freestanding compilers. */
14258
14259 #ifdef __STDC__
14260 # include <limits.h>
14261 #else
14262 # include <assert.h>
14263 #endif
14264
14265 #undef $ac_func
14266
14267 /* Override any gcc2 internal prototype to avoid an error. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 {
14271 #endif
14272 /* We use char because int might match the return type of a gcc2
14273 builtin and then its argument prototype would still apply. */
14274 char $ac_func ();
14275 /* The GNU C library defines this for functions which it implements
14276 to always fail with ENOSYS. Some functions are actually named
14277 something starting with __ and the normal name is an alias. */
14278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14279 choke me
14280 #else
14281 char (*f) () = $ac_func;
14282 #endif
14283 #ifdef __cplusplus
14284 }
14285 #endif
14286
14287 int
14288 main ()
14289 {
14290 return f != $ac_func;
14291 ;
14292 return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297 (eval $ac_link) 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -z "$ac_c_werror_flag"
14305 || test ! -s conftest.err'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest$ac_exeext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 eval "$as_ac_var=yes"
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 eval "$as_ac_var=no"
14323 fi
14324 rm -f conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 fi
14327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14329 if test `eval echo '${'$as_ac_var'}'` = yes; then
14330 cat >>confdefs.h <<_ACEOF
14331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14332 _ACEOF
14333
14334 fi
14335 done
14336
14337
14338 for ac_header in maillock.h
14339 do
14340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14342 echo "$as_me:$LINENO: checking for $ac_header" >&5
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 fi
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14349 else
14350 # Is the header compilable?
14351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 $ac_includes_default
14360 #include <$ac_header>
14361 _ACEOF
14362 rm -f conftest.$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_header_compiler=yes
14385 else
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389 ac_header_compiler=no
14390 fi
14391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14393 echo "${ECHO_T}$ac_header_compiler" >&6
14394
14395 # Is the header present?
14396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 #include <$ac_header>
14405 _ACEOF
14406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } >/dev/null; then
14414 if test -s conftest.err; then
14415 ac_cpp_err=$ac_c_preproc_warn_flag
14416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14417 else
14418 ac_cpp_err=
14419 fi
14420 else
14421 ac_cpp_err=yes
14422 fi
14423 if test -z "$ac_cpp_err"; then
14424 ac_header_preproc=yes
14425 else
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14428
14429 ac_header_preproc=no
14430 fi
14431 rm -f conftest.err conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6
14434
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 yes:no: )
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc=yes
14443 ;;
14444 no:yes:* )
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14457 (
14458 cat <<\_ASBOX
14459 ## ------------------------------------------ ##
14460 ## Report this to the AC_PACKAGE_NAME lists. ##
14461 ## ------------------------------------------ ##
14462 _ASBOX
14463 ) |
14464 sed "s/^/$as_me: WARNING: /" >&2
14465 ;;
14466 esac
14467 echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 eval "$as_ac_Header=\$ac_header_preproc"
14473 fi
14474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14476
14477 fi
14478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14479 cat >>confdefs.h <<_ACEOF
14480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481 _ACEOF
14482
14483 fi
14484
14485 done
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556 for ac_func in gethostname getdomainname dup2 \
14557 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14558 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14559 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14560 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14561 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14562 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14563 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14564 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14565 do
14566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14567 echo "$as_me:$LINENO: checking for $ac_func" >&5
14568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14569 if eval "test \"\${$as_ac_var+set}\" = set"; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14580 #define $ac_func innocuous_$ac_func
14581
14582 /* System header to define __stub macros and hopefully few prototypes,
14583 which can conflict with char $ac_func (); below.
14584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14585 <limits.h> exists even on freestanding compilers. */
14586
14587 #ifdef __STDC__
14588 # include <limits.h>
14589 #else
14590 # include <assert.h>
14591 #endif
14592
14593 #undef $ac_func
14594
14595 /* Override any gcc2 internal prototype to avoid an error. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 {
14599 #endif
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14602 char $ac_func ();
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14607 choke me
14608 #else
14609 char (*f) () = $ac_func;
14610 #endif
14611 #ifdef __cplusplus
14612 }
14613 #endif
14614
14615 int
14616 main ()
14617 {
14618 return f != $ac_func;
14619 ;
14620 return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 eval "$as_ac_var=yes"
14646 else
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650 eval "$as_ac_var=no"
14651 fi
14652 rm -f conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
14654 fi
14655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14657 if test `eval echo '${'$as_ac_var'}'` = yes; then
14658 cat >>confdefs.h <<_ACEOF
14659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14660 _ACEOF
14661
14662 fi
14663 done
14664
14665
14666
14667 for ac_header in sys/un.h
14668 do
14669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14671 echo "$as_me:$LINENO: checking for $ac_header" >&5
14672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 fi
14676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14678 else
14679 # Is the header compilable?
14680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h. */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 $ac_includes_default
14689 #include <$ac_header>
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_header_compiler=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ac_header_compiler=no
14719 fi
14720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14722 echo "${ECHO_T}$ac_header_compiler" >&6
14723
14724 # Is the header present?
14725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14727 cat >conftest.$ac_ext <<_ACEOF
14728 /* confdefs.h. */
14729 _ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14733 #include <$ac_header>
14734 _ACEOF
14735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14737 ac_status=$?
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -f conftest.er1
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } >/dev/null; then
14743 if test -s conftest.err; then
14744 ac_cpp_err=$ac_c_preproc_warn_flag
14745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14746 else
14747 ac_cpp_err=
14748 fi
14749 else
14750 ac_cpp_err=yes
14751 fi
14752 if test -z "$ac_cpp_err"; then
14753 ac_header_preproc=yes
14754 else
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ac_header_preproc=no
14759 fi
14760 rm -f conftest.err conftest.$ac_ext
14761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14762 echo "${ECHO_T}$ac_header_preproc" >&6
14763
14764 # So? What about this header?
14765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14766 yes:no: )
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14771 ac_header_preproc=yes
14772 ;;
14773 no:yes:* )
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14786 (
14787 cat <<\_ASBOX
14788 ## ------------------------------------------ ##
14789 ## Report this to the AC_PACKAGE_NAME lists. ##
14790 ## ------------------------------------------ ##
14791 _ASBOX
14792 ) |
14793 sed "s/^/$as_me: WARNING: /" >&2
14794 ;;
14795 esac
14796 echo "$as_me:$LINENO: checking for $ac_header" >&5
14797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 else
14801 eval "$as_ac_Header=\$ac_header_preproc"
14802 fi
14803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14805
14806 fi
14807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14808 cat >>confdefs.h <<_ACEOF
14809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14810 _ACEOF
14811
14812 fi
14813
14814 done
14815
14816
14817
14818
14819
14820 for ac_header in stdlib.h sys/time.h unistd.h
14821 do
14822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14824 echo "$as_me:$LINENO: checking for $ac_header" >&5
14825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 fi
14829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14831 else
14832 # Is the header compilable?
14833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $ac_includes_default
14842 #include <$ac_header>
14843 _ACEOF
14844 rm -f conftest.$ac_objext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14846 (eval $ac_compile) 2>conftest.er1
14847 ac_status=$?
14848 grep -v '^ *+' conftest.er1 >conftest.err
14849 rm -f conftest.er1
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -z "$ac_c_werror_flag"
14854 || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_header_compiler=yes
14867 else
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14870
14871 ac_header_compiler=no
14872 fi
14873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14875 echo "${ECHO_T}$ac_header_compiler" >&6
14876
14877 # Is the header present?
14878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 #include <$ac_header>
14887 _ACEOF
14888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } >/dev/null; then
14896 if test -s conftest.err; then
14897 ac_cpp_err=$ac_c_preproc_warn_flag
14898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14899 else
14900 ac_cpp_err=
14901 fi
14902 else
14903 ac_cpp_err=yes
14904 fi
14905 if test -z "$ac_cpp_err"; then
14906 ac_header_preproc=yes
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_header_preproc=no
14912 fi
14913 rm -f conftest.err conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14915 echo "${ECHO_T}$ac_header_preproc" >&6
14916
14917 # So? What about this header?
14918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14919 yes:no: )
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14924 ac_header_preproc=yes
14925 ;;
14926 no:yes:* )
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14939 (
14940 cat <<\_ASBOX
14941 ## ------------------------------------------ ##
14942 ## Report this to the AC_PACKAGE_NAME lists. ##
14943 ## ------------------------------------------ ##
14944 _ASBOX
14945 ) |
14946 sed "s/^/$as_me: WARNING: /" >&2
14947 ;;
14948 esac
14949 echo "$as_me:$LINENO: checking for $ac_header" >&5
14950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954 eval "$as_ac_Header=\$ac_header_preproc"
14955 fi
14956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14958
14959 fi
14960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14961 cat >>confdefs.h <<_ACEOF
14962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14963 _ACEOF
14964
14965 fi
14966
14967 done
14968
14969
14970 for ac_func in alarm
14971 do
14972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14973 echo "$as_me:$LINENO: checking for $ac_func" >&5
14974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14975 if eval "test \"\${$as_ac_var+set}\" = set"; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14986 #define $ac_func innocuous_$ac_func
14987
14988 /* System header to define __stub macros and hopefully few prototypes,
14989 which can conflict with char $ac_func (); below.
14990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14991 <limits.h> exists even on freestanding compilers. */
14992
14993 #ifdef __STDC__
14994 # include <limits.h>
14995 #else
14996 # include <assert.h>
14997 #endif
14998
14999 #undef $ac_func
15000
15001 /* Override any gcc2 internal prototype to avoid an error. */
15002 #ifdef __cplusplus
15003 extern "C"
15004 {
15005 #endif
15006 /* We use char because int might match the return type of a gcc2
15007 builtin and then its argument prototype would still apply. */
15008 char $ac_func ();
15009 /* The GNU C library defines this for functions which it implements
15010 to always fail with ENOSYS. Some functions are actually named
15011 something starting with __ and the normal name is an alias. */
15012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15013 choke me
15014 #else
15015 char (*f) () = $ac_func;
15016 #endif
15017 #ifdef __cplusplus
15018 }
15019 #endif
15020
15021 int
15022 main ()
15023 {
15024 return f != $ac_func;
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest$ac_exeext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 eval "$as_ac_var=yes"
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056 eval "$as_ac_var=no"
15057 fi
15058 rm -f conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15060 fi
15061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15063 if test `eval echo '${'$as_ac_var'}'` = yes; then
15064 cat >>confdefs.h <<_ACEOF
15065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15066 _ACEOF
15067
15068 fi
15069 done
15070
15071 echo "$as_me:$LINENO: checking for working mktime" >&5
15072 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15073 if test "${ac_cv_func_working_mktime+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076 if test "$cross_compiling" = yes; then
15077 ac_cv_func_working_mktime=no
15078 else
15079 cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h. */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 /* Test program from Paul Eggert and Tony Leneis. */
15086 #if TIME_WITH_SYS_TIME
15087 # include <sys/time.h>
15088 # include <time.h>
15089 #else
15090 # if HAVE_SYS_TIME_H
15091 # include <sys/time.h>
15092 # else
15093 # include <time.h>
15094 # endif
15095 #endif
15096
15097 #if HAVE_STDLIB_H
15098 # include <stdlib.h>
15099 #endif
15100
15101 #if HAVE_UNISTD_H
15102 # include <unistd.h>
15103 #endif
15104
15105 #if !HAVE_ALARM
15106 # define alarm(X) /* empty */
15107 #endif
15108
15109 /* Work around redefinition to rpl_putenv by other config tests. */
15110 #undef putenv
15111
15112 static time_t time_t_max;
15113 static time_t time_t_min;
15114
15115 /* Values we'll use to set the TZ environment variable. */
15116 static char *tz_strings[] = {
15117 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15118 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15119 };
15120 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15121
15122 /* Fail if mktime fails to convert a date in the spring-forward gap.
15123 Based on a problem report from Andreas Jaeger. */
15124 static void
15125 spring_forward_gap ()
15126 {
15127 /* glibc (up to about 1998-10-07) failed this test. */
15128 struct tm tm;
15129
15130 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15131 instead of "TZ=America/Vancouver" in order to detect the bug even
15132 on systems that don't support the Olson extension, or don't have the
15133 full zoneinfo tables installed. */
15134 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15135
15136 tm.tm_year = 98;
15137 tm.tm_mon = 3;
15138 tm.tm_mday = 5;
15139 tm.tm_hour = 2;
15140 tm.tm_min = 0;
15141 tm.tm_sec = 0;
15142 tm.tm_isdst = -1;
15143 if (mktime (&tm) == (time_t)-1)
15144 exit (1);
15145 }
15146
15147 static void
15148 mktime_test1 (now)
15149 time_t now;
15150 {
15151 struct tm *lt;
15152 if ((lt = localtime (&now)) && mktime (lt) != now)
15153 exit (1);
15154 }
15155
15156 static void
15157 mktime_test (now)
15158 time_t now;
15159 {
15160 mktime_test1 (now);
15161 mktime_test1 ((time_t) (time_t_max - now));
15162 mktime_test1 ((time_t) (time_t_min + now));
15163 }
15164
15165 static void
15166 irix_6_4_bug ()
15167 {
15168 /* Based on code from Ariel Faigon. */
15169 struct tm tm;
15170 tm.tm_year = 96;
15171 tm.tm_mon = 3;
15172 tm.tm_mday = 0;
15173 tm.tm_hour = 0;
15174 tm.tm_min = 0;
15175 tm.tm_sec = 0;
15176 tm.tm_isdst = -1;
15177 mktime (&tm);
15178 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15179 exit (1);
15180 }
15181
15182 static void
15183 bigtime_test (j)
15184 int j;
15185 {
15186 struct tm tm;
15187 time_t now;
15188 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15189 now = mktime (&tm);
15190 if (now != (time_t) -1)
15191 {
15192 struct tm *lt = localtime (&now);
15193 if (! (lt
15194 && lt->tm_year == tm.tm_year
15195 && lt->tm_mon == tm.tm_mon
15196 && lt->tm_mday == tm.tm_mday
15197 && lt->tm_hour == tm.tm_hour
15198 && lt->tm_min == tm.tm_min
15199 && lt->tm_sec == tm.tm_sec
15200 && lt->tm_yday == tm.tm_yday
15201 && lt->tm_wday == tm.tm_wday
15202 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15203 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15204 exit (1);
15205 }
15206 }
15207
15208 int
15209 main ()
15210 {
15211 time_t t, delta;
15212 int i, j;
15213
15214 /* This test makes some buggy mktime implementations loop.
15215 Give up after 60 seconds; a mktime slower than that
15216 isn't worth using anyway. */
15217 alarm (60);
15218
15219 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15220 continue;
15221 time_t_max--;
15222 if ((time_t) -1 < 0)
15223 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15224 continue;
15225 delta = time_t_max / 997; /* a suitable prime number */
15226 for (i = 0; i < N_STRINGS; i++)
15227 {
15228 if (tz_strings[i])
15229 putenv (tz_strings[i]);
15230
15231 for (t = 0; t <= time_t_max - delta; t += delta)
15232 mktime_test (t);
15233 mktime_test ((time_t) 1);
15234 mktime_test ((time_t) (60 * 60));
15235 mktime_test ((time_t) (60 * 60 * 24));
15236
15237 for (j = 1; 0 < j; j *= 2)
15238 bigtime_test (j);
15239 bigtime_test (j - 1);
15240 }
15241 irix_6_4_bug ();
15242 spring_forward_gap ();
15243 exit (0);
15244 }
15245 _ACEOF
15246 rm -f conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_cv_func_working_mktime=yes
15258 else
15259 echo "$as_me: program exited with status $ac_status" >&5
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ( exit $ac_status )
15264 ac_cv_func_working_mktime=no
15265 fi
15266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15267 fi
15268 fi
15269 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15270 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15271 if test $ac_cv_func_working_mktime = no; then
15272 case $LIBOBJS in
15273 "mktime.$ac_objext" | \
15274 *" mktime.$ac_objext" | \
15275 "mktime.$ac_objext "* | \
15276 *" mktime.$ac_objext "* ) ;;
15277 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15278 esac
15279
15280 fi
15281
15282 if test "$ac_cv_func_working_mktime" = no; then
15283
15284 cat >>confdefs.h <<\_ACEOF
15285 #define BROKEN_MKTIME 1
15286 _ACEOF
15287
15288 fi
15289
15290 ac_have_func=no # yes means we've found a way to get the load average.
15291
15292 # Make sure getloadavg.c is where it belongs, at configure-time.
15293 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15294 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15295 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15296 { (exit 1); exit 1; }; }
15297
15298 ac_save_LIBS=$LIBS
15299
15300 # Check for getloadavg, but be sure not to touch the cache variable.
15301 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15302 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15303 if test "${ac_cv_func_getloadavg+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15314 #define getloadavg innocuous_getloadavg
15315
15316 /* System header to define __stub macros and hopefully few prototypes,
15317 which can conflict with char getloadavg (); below.
15318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15319 <limits.h> exists even on freestanding compilers. */
15320
15321 #ifdef __STDC__
15322 # include <limits.h>
15323 #else
15324 # include <assert.h>
15325 #endif
15326
15327 #undef getloadavg
15328
15329 /* Override any gcc2 internal prototype to avoid an error. */
15330 #ifdef __cplusplus
15331 extern "C"
15332 {
15333 #endif
15334 /* We use char because int might match the return type of a gcc2
15335 builtin and then its argument prototype would still apply. */
15336 char getloadavg ();
15337 /* The GNU C library defines this for functions which it implements
15338 to always fail with ENOSYS. Some functions are actually named
15339 something starting with __ and the normal name is an alias. */
15340 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15341 choke me
15342 #else
15343 char (*f) () = getloadavg;
15344 #endif
15345 #ifdef __cplusplus
15346 }
15347 #endif
15348
15349 int
15350 main ()
15351 {
15352 return f != getloadavg;
15353 ;
15354 return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -z "$ac_c_werror_flag"
15367 || test ! -s conftest.err'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest$ac_exeext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_func_getloadavg=yes
15380 else
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_cv_func_getloadavg=no
15385 fi
15386 rm -f conftest.err conftest.$ac_objext \
15387 conftest$ac_exeext conftest.$ac_ext
15388 fi
15389 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15390 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15391 if test $ac_cv_func_getloadavg = yes; then
15392 exit 0
15393 else
15394 exit 1
15395 fi
15396 ) && ac_have_func=yes
15397
15398 # On HPUX9, an unprivileged user can get load averages through this function.
15399
15400 for ac_func in pstat_getdynamic
15401 do
15402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15403 echo "$as_me:$LINENO: checking for $ac_func" >&5
15404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15405 if eval "test \"\${$as_ac_var+set}\" = set"; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15416 #define $ac_func innocuous_$ac_func
15417
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char $ac_func (); below.
15420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421 <limits.h> exists even on freestanding compilers. */
15422
15423 #ifdef __STDC__
15424 # include <limits.h>
15425 #else
15426 # include <assert.h>
15427 #endif
15428
15429 #undef $ac_func
15430
15431 /* Override any gcc2 internal prototype to avoid an error. */
15432 #ifdef __cplusplus
15433 extern "C"
15434 {
15435 #endif
15436 /* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15438 char $ac_func ();
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15443 choke me
15444 #else
15445 char (*f) () = $ac_func;
15446 #endif
15447 #ifdef __cplusplus
15448 }
15449 #endif
15450
15451 int
15452 main ()
15453 {
15454 return f != $ac_func;
15455 ;
15456 return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15461 (eval $ac_link) 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 eval "$as_ac_var=yes"
15482 else
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 eval "$as_ac_var=no"
15487 fi
15488 rm -f conftest.err conftest.$ac_objext \
15489 conftest$ac_exeext conftest.$ac_ext
15490 fi
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15493 if test `eval echo '${'$as_ac_var'}'` = yes; then
15494 cat >>confdefs.h <<_ACEOF
15495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15496 _ACEOF
15497
15498 fi
15499 done
15500
15501
15502 # Solaris has libkstat which does not require root.
15503
15504 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15505 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15506 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 ac_check_lib_save_LIBS=$LIBS
15510 LIBS="-lkstat $LIBS"
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517
15518 /* Override any gcc2 internal prototype to avoid an error. */
15519 #ifdef __cplusplus
15520 extern "C"
15521 #endif
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15524 char kstat_open ();
15525 int
15526 main ()
15527 {
15528 kstat_open ();
15529 ;
15530 return 0;
15531 }
15532 _ACEOF
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535 (eval $ac_link) 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
15542 { ac_try='test -z "$ac_c_werror_flag"
15543 || test ! -s conftest.err'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest$ac_exeext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_lib_kstat_kstat_open=yes
15556 else
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 ac_cv_lib_kstat_kstat_open=no
15561 fi
15562 rm -f conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15565 fi
15566 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15567 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15568 if test $ac_cv_lib_kstat_kstat_open = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_LIBKSTAT 1
15571 _ACEOF
15572
15573 LIBS="-lkstat $LIBS"
15574
15575 fi
15576
15577 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15578
15579 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15580 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15581 # to get the right answer into the cache.
15582 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15583 if test $ac_have_func = no; then
15584 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15585 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15586 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589 ac_check_lib_save_LIBS=$LIBS
15590 LIBS="-lelf $LIBS"
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h. */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597
15598 /* Override any gcc2 internal prototype to avoid an error. */
15599 #ifdef __cplusplus
15600 extern "C"
15601 #endif
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15604 char elf_begin ();
15605 int
15606 main ()
15607 {
15608 elf_begin ();
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag"
15623 || test ! -s conftest.err'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest$ac_exeext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_cv_lib_elf_elf_begin=yes
15636 else
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640 ac_cv_lib_elf_elf_begin=no
15641 fi
15642 rm -f conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15644 LIBS=$ac_check_lib_save_LIBS
15645 fi
15646 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15647 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15648 if test $ac_cv_lib_elf_elf_begin = yes; then
15649 LIBS="-lelf $LIBS"
15650 fi
15651
15652 fi
15653 if test $ac_have_func = no; then
15654 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15655 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15656 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 else
15659 ac_check_lib_save_LIBS=$LIBS
15660 LIBS="-lkvm $LIBS"
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h. */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667
15668 /* Override any gcc2 internal prototype to avoid an error. */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15674 char kvm_open ();
15675 int
15676 main ()
15677 {
15678 kvm_open ();
15679 ;
15680 return 0;
15681 }
15682 _ACEOF
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_cv_lib_kvm_kvm_open=yes
15706 else
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 ac_cv_lib_kvm_kvm_open=no
15711 fi
15712 rm -f conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15715 fi
15716 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15717 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15718 if test $ac_cv_lib_kvm_kvm_open = yes; then
15719 LIBS="-lkvm $LIBS"
15720 fi
15721
15722 # Check for the 4.4BSD definition of getloadavg.
15723 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15724 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15725 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728 ac_check_lib_save_LIBS=$LIBS
15729 LIBS="-lutil $LIBS"
15730 cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h. */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736
15737 /* Override any gcc2 internal prototype to avoid an error. */
15738 #ifdef __cplusplus
15739 extern "C"
15740 #endif
15741 /* We use char because int might match the return type of a gcc2
15742 builtin and then its argument prototype would still apply. */
15743 char getloadavg ();
15744 int
15745 main ()
15746 {
15747 getloadavg ();
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754 (eval $ac_link) 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -z "$ac_c_werror_flag"
15762 || test ! -s conftest.err'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest$ac_exeext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_lib_util_getloadavg=yes
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779 ac_cv_lib_util_getloadavg=no
15780 fi
15781 rm -f conftest.err conftest.$ac_objext \
15782 conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15784 fi
15785 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15786 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15787 if test $ac_cv_lib_util_getloadavg = yes; then
15788 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15789 fi
15790
15791 fi
15792
15793 if test $ac_have_func = no; then
15794 # There is a commonly available library for RS/6000 AIX.
15795 # Since it is not a standard part of AIX, it might be installed locally.
15796 ac_getloadavg_LIBS=$LIBS
15797 LIBS="-L/usr/local/lib $LIBS"
15798 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15799 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15800 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803 ac_check_lib_save_LIBS=$LIBS
15804 LIBS="-lgetloadavg $LIBS"
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811
15812 /* Override any gcc2 internal prototype to avoid an error. */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 /* We use char because int might match the return type of a gcc2
15817 builtin and then its argument prototype would still apply. */
15818 char getloadavg ();
15819 int
15820 main ()
15821 {
15822 getloadavg ();
15823 ;
15824 return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829 (eval $ac_link) 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_lib_getloadavg_getloadavg=yes
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_lib_getloadavg_getloadavg=no
15855 fi
15856 rm -f conftest.err conftest.$ac_objext \
15857 conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15859 fi
15860 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15861 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15862 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15863 LIBS="-lgetloadavg $LIBS"
15864 else
15865 LIBS=$ac_getloadavg_LIBS
15866 fi
15867
15868 fi
15869
15870 # Make sure it is really in the library, if we think we found it,
15871 # otherwise set up the replacement function.
15872
15873 for ac_func in getloadavg
15874 do
15875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15876 echo "$as_me:$LINENO: checking for $ac_func" >&5
15877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15878 if eval "test \"\${$as_ac_var+set}\" = set"; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define $ac_func innocuous_$ac_func
15890
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15895
15896 #ifdef __STDC__
15897 # include <limits.h>
15898 #else
15899 # include <assert.h>
15900 #endif
15901
15902 #undef $ac_func
15903
15904 /* Override any gcc2 internal prototype to avoid an error. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 {
15908 #endif
15909 /* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15911 char $ac_func ();
15912 /* The GNU C library defines this for functions which it implements
15913 to always fail with ENOSYS. Some functions are actually named
15914 something starting with __ and the normal name is an alias. */
15915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15916 choke me
15917 #else
15918 char (*f) () = $ac_func;
15919 #endif
15920 #ifdef __cplusplus
15921 }
15922 #endif
15923
15924 int
15925 main ()
15926 {
15927 return f != $ac_func;
15928 ;
15929 return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext conftest$ac_exeext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15934 (eval $ac_link) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 eval "$as_ac_var=no"
15960 fi
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 fi
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 else
15972 case $LIBOBJS in
15973 "getloadavg.$ac_objext" | \
15974 *" getloadavg.$ac_objext" | \
15975 "getloadavg.$ac_objext "* | \
15976 *" getloadavg.$ac_objext "* ) ;;
15977 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15978 esac
15979
15980
15981 cat >>confdefs.h <<\_ACEOF
15982 #define C_GETLOADAVG 1
15983 _ACEOF
15984
15985 # Figure out what our getloadavg.c needs.
15986 ac_have_func=no
15987 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15988 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15989 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15990 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 fi
15993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15994 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15995 else
15996 # Is the header compilable?
15997 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15998 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16006 #include <sys/dg_sys_info.h>
16007 _ACEOF
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>conftest.er1
16011 ac_status=$?
16012 grep -v '^ *+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_header_compiler=yes
16031 else
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16034
16035 ac_header_compiler=no
16036 fi
16037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16039 echo "${ECHO_T}$ac_header_compiler" >&6
16040
16041 # Is the header present?
16042 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16043 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h. */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 #include <sys/dg_sys_info.h>
16051 _ACEOF
16052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev/null; then
16060 if test -s conftest.err; then
16061 ac_cpp_err=$ac_c_preproc_warn_flag
16062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063 else
16064 ac_cpp_err=
16065 fi
16066 else
16067 ac_cpp_err=yes
16068 fi
16069 if test -z "$ac_cpp_err"; then
16070 ac_header_preproc=yes
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_header_preproc=no
16076 fi
16077 rm -f conftest.err conftest.$ac_ext
16078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6
16080
16081 # So? What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 yes:no: )
16084 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
16089 ;;
16090 no:yes:* )
16091 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16103 (
16104 cat <<\_ASBOX
16105 ## ------------------------------------------ ##
16106 ## Report this to the AC_PACKAGE_NAME lists. ##
16107 ## ------------------------------------------ ##
16108 _ASBOX
16109 ) |
16110 sed "s/^/$as_me: WARNING: /" >&2
16111 ;;
16112 esac
16113 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16114 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16115 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16119 fi
16120 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16121 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16122
16123 fi
16124 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16125 ac_have_func=yes
16126
16127 cat >>confdefs.h <<\_ACEOF
16128 #define DGUX 1
16129 _ACEOF
16130
16131
16132 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16133 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16134 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137 ac_check_lib_save_LIBS=$LIBS
16138 LIBS="-ldgc $LIBS"
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145
16146 /* Override any gcc2 internal prototype to avoid an error. */
16147 #ifdef __cplusplus
16148 extern "C"
16149 #endif
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16152 char dg_sys_info ();
16153 int
16154 main ()
16155 {
16156 dg_sys_info ();
16157 ;
16158 return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163 (eval $ac_link) 2>conftest.er1
16164 ac_status=$?
16165 grep -v '^ *+' conftest.er1 >conftest.err
16166 rm -f conftest.er1
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try='test -z "$ac_c_werror_flag"
16171 || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_lib_dgc_dg_sys_info=yes
16184 else
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16187
16188 ac_cv_lib_dgc_dg_sys_info=no
16189 fi
16190 rm -f conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16193 fi
16194 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16195 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16196 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16197 cat >>confdefs.h <<_ACEOF
16198 #define HAVE_LIBDGC 1
16199 _ACEOF
16200
16201 LIBS="-ldgc $LIBS"
16202
16203 fi
16204
16205 fi
16206
16207
16208
16209 if test "${ac_cv_header_locale_h+set}" = set; then
16210 echo "$as_me:$LINENO: checking for locale.h" >&5
16211 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16212 if test "${ac_cv_header_locale_h+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 fi
16215 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16216 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16217 else
16218 # Is the header compilable?
16219 echo "$as_me:$LINENO: checking locale.h usability" >&5
16220 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16221 cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h. */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16227 $ac_includes_default
16228 #include <locale.h>
16229 _ACEOF
16230 rm -f conftest.$ac_objext
16231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16232 (eval $ac_compile) 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag"
16240 || test ! -s conftest.err'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try='test -s conftest.$ac_objext'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_header_compiler=yes
16253 else
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257 ac_header_compiler=no
16258 fi
16259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261 echo "${ECHO_T}$ac_header_compiler" >&6
16262
16263 # Is the header present?
16264 echo "$as_me:$LINENO: checking locale.h presence" >&5
16265 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h. */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <locale.h>
16273 _ACEOF
16274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } >/dev/null; then
16282 if test -s conftest.err; then
16283 ac_cpp_err=$ac_c_preproc_warn_flag
16284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16285 else
16286 ac_cpp_err=
16287 fi
16288 else
16289 ac_cpp_err=yes
16290 fi
16291 if test -z "$ac_cpp_err"; then
16292 ac_header_preproc=yes
16293 else
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297 ac_header_preproc=no
16298 fi
16299 rm -f conftest.err conftest.$ac_ext
16300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16301 echo "${ECHO_T}$ac_header_preproc" >&6
16302
16303 # So? What about this header?
16304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16305 yes:no: )
16306 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16307 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16309 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16310 ac_header_preproc=yes
16311 ;;
16312 no:yes:* )
16313 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16314 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16316 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16318 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16320 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16322 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16324 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16325 (
16326 cat <<\_ASBOX
16327 ## ------------------------------------------ ##
16328 ## Report this to the AC_PACKAGE_NAME lists. ##
16329 ## ------------------------------------------ ##
16330 _ASBOX
16331 ) |
16332 sed "s/^/$as_me: WARNING: /" >&2
16333 ;;
16334 esac
16335 echo "$as_me:$LINENO: checking for locale.h" >&5
16336 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16337 if test "${ac_cv_header_locale_h+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340 ac_cv_header_locale_h=$ac_header_preproc
16341 fi
16342 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16343 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16344
16345 fi
16346
16347
16348
16349 for ac_func in setlocale
16350 do
16351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16352 echo "$as_me:$LINENO: checking for $ac_func" >&5
16353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16354 if eval "test \"\${$as_ac_var+set}\" = set"; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h. */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16365 #define $ac_func innocuous_$ac_func
16366
16367 /* System header to define __stub macros and hopefully few prototypes,
16368 which can conflict with char $ac_func (); below.
16369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16370 <limits.h> exists even on freestanding compilers. */
16371
16372 #ifdef __STDC__
16373 # include <limits.h>
16374 #else
16375 # include <assert.h>
16376 #endif
16377
16378 #undef $ac_func
16379
16380 /* Override any gcc2 internal prototype to avoid an error. */
16381 #ifdef __cplusplus
16382 extern "C"
16383 {
16384 #endif
16385 /* We use char because int might match the return type of a gcc2
16386 builtin and then its argument prototype would still apply. */
16387 char $ac_func ();
16388 /* The GNU C library defines this for functions which it implements
16389 to always fail with ENOSYS. Some functions are actually named
16390 something starting with __ and the normal name is an alias. */
16391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16392 choke me
16393 #else
16394 char (*f) () = $ac_func;
16395 #endif
16396 #ifdef __cplusplus
16397 }
16398 #endif
16399
16400 int
16401 main ()
16402 {
16403 return f != $ac_func;
16404 ;
16405 return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16410 (eval $ac_link) 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag"
16418 || test ! -s conftest.err'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 eval "$as_ac_var=yes"
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 eval "$as_ac_var=no"
16436 fi
16437 rm -f conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 fi
16440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16442 if test `eval echo '${'$as_ac_var'}'` = yes; then
16443 cat >>confdefs.h <<_ACEOF
16444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16445 _ACEOF
16446
16447 fi
16448 done
16449
16450
16451 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16452 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16453 # Irix 4.0.5F has the header but not the library.
16454 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16455 ac_have_func=yes
16456
16457 cat >>confdefs.h <<\_ACEOF
16458 #define SVR4 1
16459 _ACEOF
16460
16461 fi
16462
16463 if test $ac_have_func = no; then
16464 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16465 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16466 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16467 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 fi
16470 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16472 else
16473 # Is the header compilable?
16474 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16475 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 $ac_includes_default
16483 #include <inq_stats/cpustats.h>
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest.$ac_objext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_header_compiler=yes
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ac_header_compiler=no
16513 fi
16514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16516 echo "${ECHO_T}$ac_header_compiler" >&6
16517
16518 # Is the header present?
16519 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16520 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <inq_stats/cpustats.h>
16528 _ACEOF
16529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } >/dev/null; then
16537 if test -s conftest.err; then
16538 ac_cpp_err=$ac_c_preproc_warn_flag
16539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16540 else
16541 ac_cpp_err=
16542 fi
16543 else
16544 ac_cpp_err=yes
16545 fi
16546 if test -z "$ac_cpp_err"; then
16547 ac_header_preproc=yes
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 ac_header_preproc=no
16553 fi
16554 rm -f conftest.err conftest.$ac_ext
16555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16556 echo "${ECHO_T}$ac_header_preproc" >&6
16557
16558 # So? What about this header?
16559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16560 yes:no: )
16561 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16562 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16564 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16565 ac_header_preproc=yes
16566 ;;
16567 no:yes:* )
16568 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16569 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16571 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16573 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16575 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16577 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16579 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16580 (
16581 cat <<\_ASBOX
16582 ## ------------------------------------------ ##
16583 ## Report this to the AC_PACKAGE_NAME lists. ##
16584 ## ------------------------------------------ ##
16585 _ASBOX
16586 ) |
16587 sed "s/^/$as_me: WARNING: /" >&2
16588 ;;
16589 esac
16590 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16591 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16592 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16596 fi
16597 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16598 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16599
16600 fi
16601 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16602 ac_have_func=yes
16603
16604 cat >>confdefs.h <<\_ACEOF
16605 #define UMAX 1
16606 _ACEOF
16607
16608
16609 cat >>confdefs.h <<\_ACEOF
16610 #define UMAX4_3 1
16611 _ACEOF
16612
16613 fi
16614
16615
16616 fi
16617
16618 if test $ac_have_func = no; then
16619 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16620 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16621 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16622 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 fi
16625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16626 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16627 else
16628 # Is the header compilable?
16629 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16630 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16631 cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h. */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 $ac_includes_default
16638 #include <sys/cpustats.h>
16639 _ACEOF
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642 (eval $ac_compile) 2>conftest.er1
16643 ac_status=$?
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_header_compiler=yes
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ac_header_compiler=no
16668 fi
16669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16671 echo "${ECHO_T}$ac_header_compiler" >&6
16672
16673 # Is the header present?
16674 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16675 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16676 cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h. */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 #include <sys/cpustats.h>
16683 _ACEOF
16684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } >/dev/null; then
16692 if test -s conftest.err; then
16693 ac_cpp_err=$ac_c_preproc_warn_flag
16694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16695 else
16696 ac_cpp_err=
16697 fi
16698 else
16699 ac_cpp_err=yes
16700 fi
16701 if test -z "$ac_cpp_err"; then
16702 ac_header_preproc=yes
16703 else
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707 ac_header_preproc=no
16708 fi
16709 rm -f conftest.err conftest.$ac_ext
16710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16711 echo "${ECHO_T}$ac_header_preproc" >&6
16712
16713 # So? What about this header?
16714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16715 yes:no: )
16716 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16717 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16719 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16720 ac_header_preproc=yes
16721 ;;
16722 no:yes:* )
16723 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16724 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16726 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16728 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16730 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16732 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16734 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16735 (
16736 cat <<\_ASBOX
16737 ## ------------------------------------------ ##
16738 ## Report this to the AC_PACKAGE_NAME lists. ##
16739 ## ------------------------------------------ ##
16740 _ASBOX
16741 ) |
16742 sed "s/^/$as_me: WARNING: /" >&2
16743 ;;
16744 esac
16745 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16746 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16747 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16751 fi
16752 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16753 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16754
16755 fi
16756 if test $ac_cv_header_sys_cpustats_h = yes; then
16757 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16758 #define UMAX 1
16759 _ACEOF
16760
16761 fi
16762
16763
16764 fi
16765
16766 if test $ac_have_func = no; then
16767
16768 for ac_header in mach/mach.h
16769 do
16770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16772 echo "$as_me:$LINENO: checking for $ac_header" >&5
16773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 fi
16777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16779 else
16780 # Is the header compilable?
16781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 $ac_includes_default
16790 #include <$ac_header>
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16794 (eval $ac_compile) 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -z "$ac_c_werror_flag"
16802 || test ! -s conftest.err'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try='test -s conftest.$ac_objext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_header_compiler=yes
16815 else
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_header_compiler=no
16820 fi
16821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16823 echo "${ECHO_T}$ac_header_compiler" >&6
16824
16825 # Is the header present?
16826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <$ac_header>
16835 _ACEOF
16836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } >/dev/null; then
16844 if test -s conftest.err; then
16845 ac_cpp_err=$ac_c_preproc_warn_flag
16846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16847 else
16848 ac_cpp_err=
16849 fi
16850 else
16851 ac_cpp_err=yes
16852 fi
16853 if test -z "$ac_cpp_err"; then
16854 ac_header_preproc=yes
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_header_preproc=no
16860 fi
16861 rm -f conftest.err conftest.$ac_ext
16862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16863 echo "${ECHO_T}$ac_header_preproc" >&6
16864
16865 # So? What about this header?
16866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16867 yes:no: )
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16872 ac_header_preproc=yes
16873 ;;
16874 no:yes:* )
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16887 (
16888 cat <<\_ASBOX
16889 ## ------------------------------------------ ##
16890 ## Report this to the AC_PACKAGE_NAME lists. ##
16891 ## ------------------------------------------ ##
16892 _ASBOX
16893 ) |
16894 sed "s/^/$as_me: WARNING: /" >&2
16895 ;;
16896 esac
16897 echo "$as_me:$LINENO: checking for $ac_header" >&5
16898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902 eval "$as_ac_Header=\$ac_header_preproc"
16903 fi
16904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16906
16907 fi
16908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16911 _ACEOF
16912
16913 fi
16914
16915 done
16916
16917 fi
16918
16919
16920 for ac_header in nlist.h
16921 do
16922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16924 echo "$as_me:$LINENO: checking for $ac_header" >&5
16925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 fi
16929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16931 else
16932 # Is the header compilable?
16933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 $ac_includes_default
16942 #include <$ac_header>
16943 _ACEOF
16944 rm -f conftest.$ac_objext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_header_compiler=yes
16967 else
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971 ac_header_compiler=no
16972 fi
16973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6
16976
16977 # Is the header present?
16978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h. */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <$ac_header>
16987 _ACEOF
16988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
16997 ac_cpp_err=$ac_c_preproc_warn_flag
16998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16999 else
17000 ac_cpp_err=
17001 fi
17002 else
17003 ac_cpp_err=yes
17004 fi
17005 if test -z "$ac_cpp_err"; then
17006 ac_header_preproc=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_header_preproc=no
17012 fi
17013 rm -f conftest.err conftest.$ac_ext
17014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17015 echo "${ECHO_T}$ac_header_preproc" >&6
17016
17017 # So? What about this header?
17018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17019 yes:no: )
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17024 ac_header_preproc=yes
17025 ;;
17026 no:yes:* )
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17039 (
17040 cat <<\_ASBOX
17041 ## ------------------------------------------ ##
17042 ## Report this to the AC_PACKAGE_NAME lists. ##
17043 ## ------------------------------------------ ##
17044 _ASBOX
17045 ) |
17046 sed "s/^/$as_me: WARNING: /" >&2
17047 ;;
17048 esac
17049 echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054 eval "$as_ac_Header=\$ac_header_preproc"
17055 fi
17056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17058
17059 fi
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17063 _ACEOF
17064 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17065 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17066 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <nlist.h>
17076
17077 int
17078 main ()
17079 {
17080 static struct nlist ac_aggr;
17081 if (ac_aggr.n_un.n_name)
17082 return 0;
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17089 (eval $ac_compile) 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest.$ac_objext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_member_struct_nlist_n_un_n_name=yes
17110 else
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h. */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 #include <nlist.h>
17121
17122 int
17123 main ()
17124 {
17125 static struct nlist ac_aggr;
17126 if (sizeof ac_aggr.n_un.n_name)
17127 return 0;
17128 ;
17129 return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134 (eval $ac_compile) 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest.$ac_objext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_member_struct_nlist_n_un_n_name=yes
17155 else
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 ac_cv_member_struct_nlist_n_un_n_name=no
17160 fi
17161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17162 fi
17163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17164 fi
17165 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17166 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17167 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17168
17169 cat >>confdefs.h <<_ACEOF
17170 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17171 _ACEOF
17172
17173
17174 cat >>confdefs.h <<\_ACEOF
17175 #define NLIST_NAME_UNION 1
17176 _ACEOF
17177
17178 fi
17179
17180
17181 fi
17182
17183 done
17184
17185 fi
17186 done
17187
17188
17189 # Some definitions of getloadavg require that the program be installed setgid.
17190 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17191 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17192 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17202 #ifdef LDAV_PRIVILEGED
17203 Yowza Am I SETGID yet
17204 #endif
17205 _ACEOF
17206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17207 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17208 ac_cv_func_getloadavg_setgid=yes
17209 else
17210 ac_cv_func_getloadavg_setgid=no
17211 fi
17212 rm -f conftest*
17213
17214 fi
17215 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17216 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17217 if test $ac_cv_func_getloadavg_setgid = yes; then
17218 NEED_SETGID=true
17219
17220 cat >>confdefs.h <<\_ACEOF
17221 #define GETLOADAVG_PRIVILEGED 1
17222 _ACEOF
17223
17224 else
17225 NEED_SETGID=false
17226 fi
17227
17228 if test $ac_cv_func_getloadavg_setgid = yes; then
17229 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17230 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17231 if test "${ac_cv_group_kmem+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17235 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17236 # If we got an error (system does not support symlinks), try without -L.
17237 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17238 ac_cv_group_kmem=`echo $ac_ls_output \
17239 | sed -ne 's/[ ][ ]*/ /g;
17240 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17241 / /s/.* //;p;'`
17242
17243 fi
17244 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17245 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17246 KMEM_GROUP=$ac_cv_group_kmem
17247 fi
17248 if test "x$ac_save_LIBS" = x; then
17249 GETLOADAVG_LIBS=$LIBS
17250 else
17251 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17252 fi
17253 LIBS=$ac_save_LIBS
17254
17255
17256
17257 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17258 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17259 if test "${ac_cv_sys_largefile_source+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262 while :; do
17263 ac_cv_sys_largefile_source=no
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h. */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 #include <stdio.h>
17271 int
17272 main ()
17273 {
17274 return !fseeko;
17275 ;
17276 return 0;
17277 }
17278 _ACEOF
17279 rm -f conftest.$ac_objext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17281 (eval $ac_compile) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 break
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306 fi
17307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h. */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 #define _LARGEFILE_SOURCE 1
17315 #include <stdio.h>
17316 int
17317 main ()
17318 {
17319 return !fseeko;
17320 ;
17321 return 0;
17322 }
17323 _ACEOF
17324 rm -f conftest.$ac_objext
17325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17326 (eval $ac_compile) 2>conftest.er1
17327 ac_status=$?
17328 grep -v '^ *+' conftest.er1 >conftest.err
17329 rm -f conftest.er1
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } &&
17333 { ac_try='test -z "$ac_c_werror_flag"
17334 || test ! -s conftest.err'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest.$ac_objext'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17346 ac_cv_sys_largefile_source=1; break
17347 else
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351 fi
17352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17353 break
17354 done
17355 fi
17356 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17357 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17358 if test "$ac_cv_sys_largefile_source" != no; then
17359
17360 cat >>confdefs.h <<_ACEOF
17361 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17362 _ACEOF
17363
17364 fi
17365 rm -f conftest*
17366
17367 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17368 # in glibc 2.1.3, but that breaks too many other things.
17369 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17370 echo "$as_me:$LINENO: checking for fseeko" >&5
17371 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17372 if test "${ac_cv_func_fseeko+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #include <stdio.h>
17382 int
17383 main ()
17384 {
17385 return fseeko && fseeko (stdin, 0, 0);
17386 ;
17387 return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>conftest.er1
17393 ac_status=$?
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag"
17400 || test ! -s conftest.err'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest$ac_exeext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_func_fseeko=yes
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417 ac_cv_func_fseeko=no
17418 fi
17419 rm -f conftest.err conftest.$ac_objext \
17420 conftest$ac_exeext conftest.$ac_ext
17421 fi
17422 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17423 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17424 if test $ac_cv_func_fseeko = yes; then
17425
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_FSEEKO 1
17428 _ACEOF
17429
17430 fi
17431
17432
17433 # Configure getopt.
17434 # getopt.m4 serial 10
17435
17436 # The getopt module assume you want GNU getopt, with getopt_long etc,
17437 # rather than vanilla POSIX getopt. This means your your code should
17438 # always include <getopt.h> for the getopt prototypes.
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450 # Prerequisites of lib/getopt*.
17451
17452
17453
17454
17455 GETOPT_H=
17456
17457 for ac_header in getopt.h
17458 do
17459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17461 echo "$as_me:$LINENO: checking for $ac_header" >&5
17462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
17469 # Is the header compilable?
17470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h. */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 $ac_includes_default
17479 #include <$ac_header>
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_header_compiler=yes
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ac_header_compiler=no
17509 fi
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17512 echo "${ECHO_T}$ac_header_compiler" >&6
17513
17514 # Is the header present?
17515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #include <$ac_header>
17524 _ACEOF
17525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } >/dev/null; then
17533 if test -s conftest.err; then
17534 ac_cpp_err=$ac_c_preproc_warn_flag
17535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17536 else
17537 ac_cpp_err=
17538 fi
17539 else
17540 ac_cpp_err=yes
17541 fi
17542 if test -z "$ac_cpp_err"; then
17543 ac_header_preproc=yes
17544 else
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548 ac_header_preproc=no
17549 fi
17550 rm -f conftest.err conftest.$ac_ext
17551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17552 echo "${ECHO_T}$ac_header_preproc" >&6
17553
17554 # So? What about this header?
17555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17556 yes:no: )
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17561 ac_header_preproc=yes
17562 ;;
17563 no:yes:* )
17564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17576 (
17577 cat <<\_ASBOX
17578 ## ------------------------------------------ ##
17579 ## Report this to the AC_PACKAGE_NAME lists. ##
17580 ## ------------------------------------------ ##
17581 _ASBOX
17582 ) |
17583 sed "s/^/$as_me: WARNING: /" >&2
17584 ;;
17585 esac
17586 echo "$as_me:$LINENO: checking for $ac_header" >&5
17587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 eval "$as_ac_Header=\$ac_header_preproc"
17592 fi
17593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17595
17596 fi
17597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17598 cat >>confdefs.h <<_ACEOF
17599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17600 _ACEOF
17601
17602 else
17603 GETOPT_H=getopt.h
17604 fi
17605
17606 done
17607
17608 if test -z "$GETOPT_H"; then
17609
17610 for ac_func in getopt_long_only
17611 do
17612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17613 echo "$as_me:$LINENO: checking for $ac_func" >&5
17614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17615 if eval "test \"\${$as_ac_var+set}\" = set"; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618 cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h. */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17626 #define $ac_func innocuous_$ac_func
17627
17628 /* System header to define __stub macros and hopefully few prototypes,
17629 which can conflict with char $ac_func (); below.
17630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17631 <limits.h> exists even on freestanding compilers. */
17632
17633 #ifdef __STDC__
17634 # include <limits.h>
17635 #else
17636 # include <assert.h>
17637 #endif
17638
17639 #undef $ac_func
17640
17641 /* Override any gcc2 internal prototype to avoid an error. */
17642 #ifdef __cplusplus
17643 extern "C"
17644 {
17645 #endif
17646 /* We use char because int might match the return type of a gcc2
17647 builtin and then its argument prototype would still apply. */
17648 char $ac_func ();
17649 /* The GNU C library defines this for functions which it implements
17650 to always fail with ENOSYS. Some functions are actually named
17651 something starting with __ and the normal name is an alias. */
17652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17653 choke me
17654 #else
17655 char (*f) () = $ac_func;
17656 #endif
17657 #ifdef __cplusplus
17658 }
17659 #endif
17660
17661 int
17662 main ()
17663 {
17664 return f != $ac_func;
17665 ;
17666 return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671 (eval $ac_link) 2>conftest.er1
17672 ac_status=$?
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try='test -z "$ac_c_werror_flag"
17679 || test ! -s conftest.err'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17682 ac_status=$?
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } &&
17685 { ac_try='test -s conftest$ac_exeext'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 eval "$as_ac_var=yes"
17692 else
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696 eval "$as_ac_var=no"
17697 fi
17698 rm -f conftest.err conftest.$ac_objext \
17699 conftest$ac_exeext conftest.$ac_ext
17700 fi
17701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17703 if test `eval echo '${'$as_ac_var'}'` = yes; then
17704 cat >>confdefs.h <<_ACEOF
17705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17706 _ACEOF
17707
17708 else
17709 GETOPT_H=getopt.h
17710 fi
17711 done
17712
17713 fi
17714
17715 if test -z "$GETOPT_H"; then
17716 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17717 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17718 if test "${ac_cv_have_decl_optreset+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h. */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 #include <getopt.h>
17728
17729 int
17730 main ()
17731 {
17732 #ifndef optreset
17733 char *p = (char *) optreset;
17734 #endif
17735
17736 ;
17737 return 0;
17738 }
17739 _ACEOF
17740 rm -f conftest.$ac_objext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_have_decl_optreset=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 ac_cv_have_decl_optreset=no
17768 fi
17769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17770 fi
17771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17772 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17773 if test $ac_cv_have_decl_optreset = yes; then
17774 GETOPT_H=getopt.h
17775 fi
17776
17777 fi
17778
17779 if test -z "$GETOPT_H"; then
17780 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17781 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17782 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 else
17785 if test "$cross_compiling" = yes; then
17786 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17787 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17788 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791 cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h. */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 #include <getopt.h>
17798
17799 int
17800 main ()
17801 {
17802 #ifndef getopt_clip
17803 char *p = (char *) getopt_clip;
17804 #endif
17805
17806 ;
17807 return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17812 (eval $ac_compile) 2>conftest.er1
17813 ac_status=$?
17814 grep -v '^ *+' conftest.er1 >conftest.err
17815 rm -f conftest.er1
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag"
17820 || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest.$ac_objext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_have_decl_getopt_clip=yes
17833 else
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17836
17837 ac_cv_have_decl_getopt_clip=no
17838 fi
17839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17840 fi
17841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17842 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17843 if test $ac_cv_have_decl_getopt_clip = yes; then
17844 gl_cv_func_gnu_getopt=no
17845 else
17846 gl_cv_func_gnu_getopt=yes
17847 fi
17848
17849 else
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <getopt.h>
17857 int
17858 main ()
17859 {
17860
17861 char *myargv[3];
17862 myargv[0] = "conftest";
17863 myargv[1] = "-+";
17864 myargv[2] = 0;
17865 return getopt (2, myargv, "+a") != '?';
17866
17867 ;
17868 return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest$ac_exeext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 gl_cv_func_gnu_getopt=yes
17883 else
17884 echo "$as_me: program exited with status $ac_status" >&5
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 ( exit $ac_status )
17889 gl_cv_func_gnu_getopt=no
17890 fi
17891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17892 fi
17893 fi
17894 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17895 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17896 if test "$gl_cv_func_gnu_getopt" = "no"; then
17897 GETOPT_H=getopt.h
17898 fi
17899 fi
17900
17901
17902
17903 if test -n "$GETOPT_H"; then
17904
17905
17906 GETOPT_H=getopt.h
17907
17908 cat >>confdefs.h <<\_ACEOF
17909 #define __GETOPT_PREFIX rpl_
17910 _ACEOF
17911
17912
17913
17914 :
17915 GETOPTOBJS='getopt.o getopt1.o'
17916
17917 fi
17918
17919
17920
17921
17922 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17923 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17924 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927 # Use it with a single arg.
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 $ac_includes_default
17935 int
17936 main ()
17937 {
17938 getpgrp (0);
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945 (eval $ac_compile) 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_func_getpgrp_void=no
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 ac_cv_func_getpgrp_void=yes
17971 fi
17972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17973
17974 fi
17975 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17976 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17977 if test $ac_cv_func_getpgrp_void = yes; then
17978
17979 cat >>confdefs.h <<\_ACEOF
17980 #define GETPGRP_VOID 1
17981 _ACEOF
17982
17983 fi
17984
17985
17986
17987 for ac_func in strftime
17988 do
17989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990 echo "$as_me:$LINENO: checking for $ac_func" >&5
17991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17992 if eval "test \"\${$as_ac_var+set}\" = set"; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003 #define $ac_func innocuous_$ac_func
18004
18005 /* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18009
18010 #ifdef __STDC__
18011 # include <limits.h>
18012 #else
18013 # include <assert.h>
18014 #endif
18015
18016 #undef $ac_func
18017
18018 /* Override any gcc2 internal prototype to avoid an error. */
18019 #ifdef __cplusplus
18020 extern "C"
18021 {
18022 #endif
18023 /* We use char because int might match the return type of a gcc2
18024 builtin and then its argument prototype would still apply. */
18025 char $ac_func ();
18026 /* The GNU C library defines this for functions which it implements
18027 to always fail with ENOSYS. Some functions are actually named
18028 something starting with __ and the normal name is an alias. */
18029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18030 choke me
18031 #else
18032 char (*f) () = $ac_func;
18033 #endif
18034 #ifdef __cplusplus
18035 }
18036 #endif
18037
18038 int
18039 main ()
18040 {
18041 return f != $ac_func;
18042 ;
18043 return 0;
18044 }
18045 _ACEOF
18046 rm -f conftest.$ac_objext conftest$ac_exeext
18047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18048 (eval $ac_link) 2>conftest.er1
18049 ac_status=$?
18050 grep -v '^ *+' conftest.er1 >conftest.err
18051 rm -f conftest.er1
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try='test -z "$ac_c_werror_flag"
18056 || test ! -s conftest.err'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 eval "$as_ac_var=yes"
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 eval "$as_ac_var=no"
18074 fi
18075 rm -f conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077 fi
18078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18080 if test `eval echo '${'$as_ac_var'}'` = yes; then
18081 cat >>confdefs.h <<_ACEOF
18082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18083 _ACEOF
18084
18085 else
18086 # strftime is in -lintl on SCO UNIX.
18087 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18088 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18089 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 ac_check_lib_save_LIBS=$LIBS
18093 LIBS="-lintl $LIBS"
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100
18101 /* Override any gcc2 internal prototype to avoid an error. */
18102 #ifdef __cplusplus
18103 extern "C"
18104 #endif
18105 /* We use char because int might match the return type of a gcc2
18106 builtin and then its argument prototype would still apply. */
18107 char strftime ();
18108 int
18109 main ()
18110 {
18111 strftime ();
18112 ;
18113 return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 (eval $ac_link) 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest$ac_exeext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_lib_intl_strftime=yes
18139 else
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_cv_lib_intl_strftime=no
18144 fi
18145 rm -f conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18148 fi
18149 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18150 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18151 if test $ac_cv_lib_intl_strftime = yes; then
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_STRFTIME 1
18154 _ACEOF
18155
18156 LIBS="-lintl $LIBS"
18157 fi
18158
18159 fi
18160 done
18161
18162
18163 # UNIX98 PTYs.
18164
18165 for ac_func in grantpt
18166 do
18167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18168 echo "$as_me:$LINENO: checking for $ac_func" >&5
18169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18170 if eval "test \"\${$as_ac_var+set}\" = set"; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173 cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h. */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18181 #define $ac_func innocuous_$ac_func
18182
18183 /* System header to define __stub macros and hopefully few prototypes,
18184 which can conflict with char $ac_func (); below.
18185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18186 <limits.h> exists even on freestanding compilers. */
18187
18188 #ifdef __STDC__
18189 # include <limits.h>
18190 #else
18191 # include <assert.h>
18192 #endif
18193
18194 #undef $ac_func
18195
18196 /* Override any gcc2 internal prototype to avoid an error. */
18197 #ifdef __cplusplus
18198 extern "C"
18199 {
18200 #endif
18201 /* We use char because int might match the return type of a gcc2
18202 builtin and then its argument prototype would still apply. */
18203 char $ac_func ();
18204 /* The GNU C library defines this for functions which it implements
18205 to always fail with ENOSYS. Some functions are actually named
18206 something starting with __ and the normal name is an alias. */
18207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18208 choke me
18209 #else
18210 char (*f) () = $ac_func;
18211 #endif
18212 #ifdef __cplusplus
18213 }
18214 #endif
18215
18216 int
18217 main ()
18218 {
18219 return f != $ac_func;
18220 ;
18221 return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext conftest$ac_exeext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18226 (eval $ac_link) 2>conftest.er1
18227 ac_status=$?
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try='test -z "$ac_c_werror_flag"
18234 || test ! -s conftest.err'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 eval "$as_ac_var=yes"
18247 else
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251 eval "$as_ac_var=no"
18252 fi
18253 rm -f conftest.err conftest.$ac_objext \
18254 conftest$ac_exeext conftest.$ac_ext
18255 fi
18256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18258 if test `eval echo '${'$as_ac_var'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18261 _ACEOF
18262
18263 fi
18264 done
18265
18266
18267 # PTY-related GNU extensions.
18268
18269 for ac_func in getpt
18270 do
18271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18274 if eval "test \"\${$as_ac_var+set}\" = set"; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285 #define $ac_func innocuous_$ac_func
18286
18287 /* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18291
18292 #ifdef __STDC__
18293 # include <limits.h>
18294 #else
18295 # include <assert.h>
18296 #endif
18297
18298 #undef $ac_func
18299
18300 /* Override any gcc2 internal prototype to avoid an error. */
18301 #ifdef __cplusplus
18302 extern "C"
18303 {
18304 #endif
18305 /* We use char because int might match the return type of a gcc2
18306 builtin and then its argument prototype would still apply. */
18307 char $ac_func ();
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18312 choke me
18313 #else
18314 char (*f) () = $ac_func;
18315 #endif
18316 #ifdef __cplusplus
18317 }
18318 #endif
18319
18320 int
18321 main ()
18322 {
18323 return f != $ac_func;
18324 ;
18325 return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest$ac_exeext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 eval "$as_ac_var=yes"
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 eval "$as_ac_var=no"
18356 fi
18357 rm -f conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 fi
18360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18362 if test `eval echo '${'$as_ac_var'}'` = yes; then
18363 cat >>confdefs.h <<_ACEOF
18364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18365 _ACEOF
18366
18367 fi
18368 done
18369
18370
18371 # Check this now, so that we will NOT find the above functions in ncurses.
18372 # That is because we have not set up to link ncurses in lib-src.
18373 # It's better to believe a function is not available
18374 # than to expect to find it in ncurses.
18375
18376 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18377 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18378 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 ac_check_lib_save_LIBS=$LIBS
18382 LIBS="-lncurses $LIBS"
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389
18390 /* Override any gcc2 internal prototype to avoid an error. */
18391 #ifdef __cplusplus
18392 extern "C"
18393 #endif
18394 /* We use char because int might match the return type of a gcc2
18395 builtin and then its argument prototype would still apply. */
18396 char tparm ();
18397 int
18398 main ()
18399 {
18400 tparm ();
18401 ;
18402 return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>conftest.er1
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try='test -z "$ac_c_werror_flag"
18415 || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest$ac_exeext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_cv_lib_ncurses_tparm=yes
18428 else
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18431
18432 ac_cv_lib_ncurses_tparm=no
18433 fi
18434 rm -f conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18437 fi
18438 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18439 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18440 if test $ac_cv_lib_ncurses_tparm = yes; then
18441 cat >>confdefs.h <<_ACEOF
18442 #define HAVE_LIBNCURSES 1
18443 _ACEOF
18444
18445 LIBS="-lncurses $LIBS"
18446
18447 fi
18448
18449
18450 # Do we need the Hesiod library to provide the support routines?
18451 if test "$with_hesiod" = yes ; then
18452 # Don't set $LIBS here -- see comments above.
18453 resolv=no
18454 echo "$as_me:$LINENO: checking for res_send" >&5
18455 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18456 if test "${ac_cv_func_res_send+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h. */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18467 #define res_send innocuous_res_send
18468
18469 /* System header to define __stub macros and hopefully few prototypes,
18470 which can conflict with char res_send (); below.
18471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18472 <limits.h> exists even on freestanding compilers. */
18473
18474 #ifdef __STDC__
18475 # include <limits.h>
18476 #else
18477 # include <assert.h>
18478 #endif
18479
18480 #undef res_send
18481
18482 /* Override any gcc2 internal prototype to avoid an error. */
18483 #ifdef __cplusplus
18484 extern "C"
18485 {
18486 #endif
18487 /* We use char because int might match the return type of a gcc2
18488 builtin and then its argument prototype would still apply. */
18489 char res_send ();
18490 /* The GNU C library defines this for functions which it implements
18491 to always fail with ENOSYS. Some functions are actually named
18492 something starting with __ and the normal name is an alias. */
18493 #if defined (__stub_res_send) || defined (__stub___res_send)
18494 choke me
18495 #else
18496 char (*f) () = res_send;
18497 #endif
18498 #ifdef __cplusplus
18499 }
18500 #endif
18501
18502 int
18503 main ()
18504 {
18505 return f != res_send;
18506 ;
18507 return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest$ac_exeext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_func_res_send=yes
18533 else
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 ac_cv_func_res_send=no
18538 fi
18539 rm -f conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
18541 fi
18542 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18543 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18544 if test $ac_cv_func_res_send = yes; then
18545 :
18546 else
18547 echo "$as_me:$LINENO: checking for __res_send" >&5
18548 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18549 if test "${ac_cv_func___res_send+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552 cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h. */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18560 #define __res_send innocuous___res_send
18561
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char __res_send (); below.
18564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18565 <limits.h> exists even on freestanding compilers. */
18566
18567 #ifdef __STDC__
18568 # include <limits.h>
18569 #else
18570 # include <assert.h>
18571 #endif
18572
18573 #undef __res_send
18574
18575 /* Override any gcc2 internal prototype to avoid an error. */
18576 #ifdef __cplusplus
18577 extern "C"
18578 {
18579 #endif
18580 /* We use char because int might match the return type of a gcc2
18581 builtin and then its argument prototype would still apply. */
18582 char __res_send ();
18583 /* The GNU C library defines this for functions which it implements
18584 to always fail with ENOSYS. Some functions are actually named
18585 something starting with __ and the normal name is an alias. */
18586 #if defined (__stub___res_send) || defined (__stub_____res_send)
18587 choke me
18588 #else
18589 char (*f) () = __res_send;
18590 #endif
18591 #ifdef __cplusplus
18592 }
18593 #endif
18594
18595 int
18596 main ()
18597 {
18598 return f != __res_send;
18599 ;
18600 return 0;
18601 }
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest$ac_exeext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_func___res_send=yes
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18629
18630 ac_cv_func___res_send=no
18631 fi
18632 rm -f conftest.err conftest.$ac_objext \
18633 conftest$ac_exeext conftest.$ac_ext
18634 fi
18635 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18636 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18637 if test $ac_cv_func___res_send = yes; then
18638 :
18639 else
18640 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18641 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18642 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lresolv $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653
18654 /* Override any gcc2 internal prototype to avoid an error. */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char res_send ();
18661 int
18662 main ()
18663 {
18664 res_send ();
18665 ;
18666 return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag"
18679 || test ! -s conftest.err'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_lib_resolv_res_send=yes
18692 else
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_cv_lib_resolv_res_send=no
18697 fi
18698 rm -f conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18701 fi
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18703 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18704 if test $ac_cv_lib_resolv_res_send = yes; then
18705 resolv=yes
18706 else
18707 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18708 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18709 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 ac_check_lib_save_LIBS=$LIBS
18713 LIBS="-lresolv $LIBS"
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720
18721 /* Override any gcc2 internal prototype to avoid an error. */
18722 #ifdef __cplusplus
18723 extern "C"
18724 #endif
18725 /* We use char because int might match the return type of a gcc2
18726 builtin and then its argument prototype would still apply. */
18727 char __res_send ();
18728 int
18729 main ()
18730 {
18731 __res_send ();
18732 ;
18733 return 0;
18734 }
18735 _ACEOF
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18738 (eval $ac_link) 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } &&
18745 { ac_try='test -z "$ac_c_werror_flag"
18746 || test ! -s conftest.err'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest$ac_exeext'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 ac_cv_lib_resolv___res_send=yes
18759 else
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18762
18763 ac_cv_lib_resolv___res_send=no
18764 fi
18765 rm -f conftest.err conftest.$ac_objext \
18766 conftest$ac_exeext conftest.$ac_ext
18767 LIBS=$ac_check_lib_save_LIBS
18768 fi
18769 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18770 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18771 if test $ac_cv_lib_resolv___res_send = yes; then
18772 resolv=yes
18773 fi
18774
18775 fi
18776
18777 fi
18778
18779 fi
18780
18781 if test "$resolv" = yes ; then
18782 RESOLVLIB=-lresolv
18783
18784 cat >>confdefs.h <<\_ACEOF
18785 #define HAVE_LIBRESOLV 1
18786 _ACEOF
18787
18788 else
18789 RESOLVLIB=
18790 fi
18791 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18792 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18793 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796 cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h. */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18804 #define hes_getmailhost innocuous_hes_getmailhost
18805
18806 /* System header to define __stub macros and hopefully few prototypes,
18807 which can conflict with char hes_getmailhost (); below.
18808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 <limits.h> exists even on freestanding compilers. */
18810
18811 #ifdef __STDC__
18812 # include <limits.h>
18813 #else
18814 # include <assert.h>
18815 #endif
18816
18817 #undef hes_getmailhost
18818
18819 /* Override any gcc2 internal prototype to avoid an error. */
18820 #ifdef __cplusplus
18821 extern "C"
18822 {
18823 #endif
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826 char hes_getmailhost ();
18827 /* The GNU C library defines this for functions which it implements
18828 to always fail with ENOSYS. Some functions are actually named
18829 something starting with __ and the normal name is an alias. */
18830 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18831 choke me
18832 #else
18833 char (*f) () = hes_getmailhost;
18834 #endif
18835 #ifdef __cplusplus
18836 }
18837 #endif
18838
18839 int
18840 main ()
18841 {
18842 return f != hes_getmailhost;
18843 ;
18844 return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849 (eval $ac_link) 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_cv_func_hes_getmailhost=yes
18870 else
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874 ac_cv_func_hes_getmailhost=no
18875 fi
18876 rm -f conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878 fi
18879 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18880 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18881 if test $ac_cv_func_hes_getmailhost = yes; then
18882 :
18883 else
18884 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18885 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18886 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889 ac_check_lib_save_LIBS=$LIBS
18890 LIBS="-lhesiod $RESOLVLIB $LIBS"
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897
18898 /* Override any gcc2 internal prototype to avoid an error. */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 /* We use char because int might match the return type of a gcc2
18903 builtin and then its argument prototype would still apply. */
18904 char hes_getmailhost ();
18905 int
18906 main ()
18907 {
18908 hes_getmailhost ();
18909 ;
18910 return 0;
18911 }
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -z "$ac_c_werror_flag"
18923 || test ! -s conftest.err'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_lib_hesiod_hes_getmailhost=yes
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 ac_cv_lib_hesiod_hes_getmailhost=no
18941 fi
18942 rm -f conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18944 LIBS=$ac_check_lib_save_LIBS
18945 fi
18946 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18947 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18948 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18949
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE_LIBHESIOD 1
18952 _ACEOF
18953
18954 else
18955 :
18956 fi
18957
18958 fi
18959
18960 fi
18961
18962 # These tell us which Kerberos-related libraries to use.
18963 if test "${with_kerberos+set}" = set; then
18964
18965 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18966 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18967 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970 ac_check_lib_save_LIBS=$LIBS
18971 LIBS="-lcom_err $LIBS"
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978
18979 /* Override any gcc2 internal prototype to avoid an error. */
18980 #ifdef __cplusplus
18981 extern "C"
18982 #endif
18983 /* We use char because int might match the return type of a gcc2
18984 builtin and then its argument prototype would still apply. */
18985 char com_err ();
18986 int
18987 main ()
18988 {
18989 com_err ();
18990 ;
18991 return 0;
18992 }
18993 _ACEOF
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18996 (eval $ac_link) 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest$ac_exeext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_cv_lib_com_err_com_err=yes
19017 else
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021 ac_cv_lib_com_err_com_err=no
19022 fi
19023 rm -f conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19026 fi
19027 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19028 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19029 if test $ac_cv_lib_com_err_com_err = yes; then
19030 cat >>confdefs.h <<_ACEOF
19031 #define HAVE_LIBCOM_ERR 1
19032 _ACEOF
19033
19034 LIBS="-lcom_err $LIBS"
19035
19036 fi
19037
19038
19039 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19040 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19041 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044 ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-lk5crypto $LIBS"
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h. */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052
19053 /* Override any gcc2 internal prototype to avoid an error. */
19054 #ifdef __cplusplus
19055 extern "C"
19056 #endif
19057 /* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19059 char mit_des_cbc_encrypt ();
19060 int
19061 main ()
19062 {
19063 mit_des_cbc_encrypt ();
19064 ;
19065 return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19070 (eval $ac_link) 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -z "$ac_c_werror_flag"
19078 || test ! -s conftest.err'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest$ac_exeext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19091 else
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19094
19095 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19096 fi
19097 rm -f conftest.err conftest.$ac_objext \
19098 conftest$ac_exeext conftest.$ac_ext
19099 LIBS=$ac_check_lib_save_LIBS
19100 fi
19101 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19102 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19103 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19104 cat >>confdefs.h <<_ACEOF
19105 #define HAVE_LIBK5CRYPTO 1
19106 _ACEOF
19107
19108 LIBS="-lk5crypto $LIBS"
19109
19110 fi
19111
19112
19113 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19114 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19115 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118 ac_check_lib_save_LIBS=$LIBS
19119 LIBS="-lcrypto $LIBS"
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126
19127 /* Override any gcc2 internal prototype to avoid an error. */
19128 #ifdef __cplusplus
19129 extern "C"
19130 #endif
19131 /* We use char because int might match the return type of a gcc2
19132 builtin and then its argument prototype would still apply. */
19133 char mit_des_cbc_encrypt ();
19134 int
19135 main ()
19136 {
19137 mit_des_cbc_encrypt ();
19138 ;
19139 return 0;
19140 }
19141 _ACEOF
19142 rm -f conftest.$ac_objext conftest$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest$ac_exeext'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168
19169 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19170 fi
19171 rm -f conftest.err conftest.$ac_objext \
19172 conftest$ac_exeext conftest.$ac_ext
19173 LIBS=$ac_check_lib_save_LIBS
19174 fi
19175 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19176 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19177 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19178 cat >>confdefs.h <<_ACEOF
19179 #define HAVE_LIBCRYPTO 1
19180 _ACEOF
19181
19182 LIBS="-lcrypto $LIBS"
19183
19184 fi
19185
19186
19187 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19188 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19189 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 else
19192 ac_check_lib_save_LIBS=$LIBS
19193 LIBS="-lkrb5 $LIBS"
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200
19201 /* Override any gcc2 internal prototype to avoid an error. */
19202 #ifdef __cplusplus
19203 extern "C"
19204 #endif
19205 /* We use char because int might match the return type of a gcc2
19206 builtin and then its argument prototype would still apply. */
19207 char krb5_init_context ();
19208 int
19209 main ()
19210 {
19211 krb5_init_context ();
19212 ;
19213 return 0;
19214 }
19215 _ACEOF
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218 (eval $ac_link) 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || 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_krb5_krb5_init_context=yes
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_lib_krb5_krb5_init_context=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_krb5_krb5_init_context" >&5
19250 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19251 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19252 cat >>confdefs.h <<_ACEOF
19253 #define HAVE_LIBKRB5 1
19254 _ACEOF
19255
19256 LIBS="-lkrb5 $LIBS"
19257
19258 fi
19259
19260 if test "${with_kerberos5+set}" != set; then
19261
19262 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19263 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19264 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267 ac_check_lib_save_LIBS=$LIBS
19268 LIBS="-ldes425 $LIBS"
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275
19276 /* Override any gcc2 internal prototype to avoid an error. */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19282 char des_cbc_encrypt ();
19283 int
19284 main ()
19285 {
19286 des_cbc_encrypt ();
19287 ;
19288 return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293 (eval $ac_link) 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag"
19301 || 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_des425_des_cbc_encrypt=yes
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19317
19318 ac_cv_lib_des425_des_cbc_encrypt=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_des425_des_cbc_encrypt" >&5
19325 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19326 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_LIBDES425 1
19329 _ACEOF
19330
19331 LIBS="-ldes425 $LIBS"
19332
19333 else
19334
19335 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19336 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19337 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-ldes $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 des_cbc_encrypt ();
19356 int
19357 main ()
19358 {
19359 des_cbc_encrypt ();
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"
19374 || test ! -s conftest.err'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest$ac_exeext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_lib_des_des_cbc_encrypt=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_lib_des_des_cbc_encrypt=no
19392 fi
19393 rm -f conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19395 LIBS=$ac_check_lib_save_LIBS
19396 fi
19397 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19398 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19399 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19400 cat >>confdefs.h <<_ACEOF
19401 #define HAVE_LIBDES 1
19402 _ACEOF
19403
19404 LIBS="-ldes $LIBS"
19405
19406 fi
19407
19408 fi
19409
19410
19411 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19412 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19413 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19416 ac_check_lib_save_LIBS=$LIBS
19417 LIBS="-lkrb4 $LIBS"
19418 cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h. */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424
19425 /* Override any gcc2 internal prototype to avoid an error. */
19426 #ifdef __cplusplus
19427 extern "C"
19428 #endif
19429 /* We use char because int might match the return type of a gcc2
19430 builtin and then its argument prototype would still apply. */
19431 char krb_get_cred ();
19432 int
19433 main ()
19434 {
19435 krb_get_cred ();
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19442 (eval $ac_link) 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try='test -z "$ac_c_werror_flag"
19450 || test ! -s conftest.err'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest$ac_exeext'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_lib_krb4_krb_get_cred=yes
19463 else
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467 ac_cv_lib_krb4_krb_get_cred=no
19468 fi
19469 rm -f conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19472 fi
19473 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19474 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19475 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_LIBKRB4 1
19478 _ACEOF
19479
19480 LIBS="-lkrb4 $LIBS"
19481
19482 else
19483
19484 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19485 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19486 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 ac_check_lib_save_LIBS=$LIBS
19490 LIBS="-lkrb $LIBS"
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h. */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497
19498 /* Override any gcc2 internal prototype to avoid an error. */
19499 #ifdef __cplusplus
19500 extern "C"
19501 #endif
19502 /* We use char because int might match the return type of a gcc2
19503 builtin and then its argument prototype would still apply. */
19504 char krb_get_cred ();
19505 int
19506 main ()
19507 {
19508 krb_get_cred ();
19509 ;
19510 return 0;
19511 }
19512 _ACEOF
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_lib_krb_krb_get_cred=yes
19536 else
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540 ac_cv_lib_krb_krb_get_cred=no
19541 fi
19542 rm -f conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
19544 LIBS=$ac_check_lib_save_LIBS
19545 fi
19546 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19547 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19548 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19549 cat >>confdefs.h <<_ACEOF
19550 #define HAVE_LIBKRB 1
19551 _ACEOF
19552
19553 LIBS="-lkrb $LIBS"
19554
19555 fi
19556
19557 fi
19558
19559 fi
19560
19561 if test "${with_kerberos5+set}" = set; then
19562
19563 for ac_header in krb5.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"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_header_compiler=yes
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 ac_header_compiler=no
19615 fi
19616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19618 echo "${ECHO_T}$ac_header_compiler" >&6
19619
19620 # Is the header present?
19621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 #include <$ac_header>
19630 _ACEOF
19631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } >/dev/null; then
19639 if test -s conftest.err; then
19640 ac_cpp_err=$ac_c_preproc_warn_flag
19641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19642 else
19643 ac_cpp_err=
19644 fi
19645 else
19646 ac_cpp_err=yes
19647 fi
19648 if test -z "$ac_cpp_err"; then
19649 ac_header_preproc=yes
19650 else
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 ac_header_preproc=no
19655 fi
19656 rm -f conftest.err conftest.$ac_ext
19657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19658 echo "${ECHO_T}$ac_header_preproc" >&6
19659
19660 # So? What about this header?
19661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19662 yes:no: )
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19667 ac_header_preproc=yes
19668 ;;
19669 no:yes:* )
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19682 (
19683 cat <<\_ASBOX
19684 ## ------------------------------------------ ##
19685 ## Report this to the AC_PACKAGE_NAME lists. ##
19686 ## ------------------------------------------ ##
19687 _ASBOX
19688 ) |
19689 sed "s/^/$as_me: WARNING: /" >&2
19690 ;;
19691 esac
19692 echo "$as_me:$LINENO: checking for $ac_header" >&5
19693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697 eval "$as_ac_Header=\$ac_header_preproc"
19698 fi
19699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19701
19702 fi
19703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19704 cat >>confdefs.h <<_ACEOF
19705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 _ACEOF
19707
19708 fi
19709
19710 done
19711
19712 else
19713
19714 for ac_header in des.h
19715 do
19716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19718 echo "$as_me:$LINENO: checking for $ac_header" >&5
19719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 fi
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19725 else
19726 # Is the header compilable?
19727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h. */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 $ac_includes_default
19736 #include <$ac_header>
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
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); }; } &&
19754 { ac_try='test -s conftest.$ac_objext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_header_compiler=yes
19761 else
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765 ac_header_compiler=no
19766 fi
19767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769 echo "${ECHO_T}$ac_header_compiler" >&6
19770
19771 # Is the header present?
19772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <$ac_header>
19781 _ACEOF
19782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } >/dev/null; then
19790 if test -s conftest.err; then
19791 ac_cpp_err=$ac_c_preproc_warn_flag
19792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19793 else
19794 ac_cpp_err=
19795 fi
19796 else
19797 ac_cpp_err=yes
19798 fi
19799 if test -z "$ac_cpp_err"; then
19800 ac_header_preproc=yes
19801 else
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 ac_header_preproc=no
19806 fi
19807 rm -f conftest.err conftest.$ac_ext
19808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19809 echo "${ECHO_T}$ac_header_preproc" >&6
19810
19811 # So? What about this header?
19812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19813 yes:no: )
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19818 ac_header_preproc=yes
19819 ;;
19820 no:yes:* )
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19833 (
19834 cat <<\_ASBOX
19835 ## ------------------------------------------ ##
19836 ## Report this to the AC_PACKAGE_NAME lists. ##
19837 ## ------------------------------------------ ##
19838 _ASBOX
19839 ) |
19840 sed "s/^/$as_me: WARNING: /" >&2
19841 ;;
19842 esac
19843 echo "$as_me:$LINENO: checking for $ac_header" >&5
19844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 eval "$as_ac_Header=\$ac_header_preproc"
19849 fi
19850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19852
19853 fi
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19857 _ACEOF
19858
19859 else
19860
19861 for ac_header in kerberosIV/des.h
19862 do
19863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19865 echo "$as_me:$LINENO: checking for $ac_header" >&5
19866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 fi
19870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19872 else
19873 # Is the header compilable?
19874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 $ac_includes_default
19883 #include <$ac_header>
19884 _ACEOF
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_header_compiler=yes
19908 else
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_header_compiler=no
19913 fi
19914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19916 echo "${ECHO_T}$ac_header_compiler" >&6
19917
19918 # Is the header present?
19919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #include <$ac_header>
19928 _ACEOF
19929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19931 ac_status=$?
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } >/dev/null; then
19937 if test -s conftest.err; then
19938 ac_cpp_err=$ac_c_preproc_warn_flag
19939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19940 else
19941 ac_cpp_err=
19942 fi
19943 else
19944 ac_cpp_err=yes
19945 fi
19946 if test -z "$ac_cpp_err"; then
19947 ac_header_preproc=yes
19948 else
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952 ac_header_preproc=no
19953 fi
19954 rm -f conftest.err conftest.$ac_ext
19955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19956 echo "${ECHO_T}$ac_header_preproc" >&6
19957
19958 # So? What about this header?
19959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19960 yes:no: )
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19965 ac_header_preproc=yes
19966 ;;
19967 no:yes:* )
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19980 (
19981 cat <<\_ASBOX
19982 ## ------------------------------------------ ##
19983 ## Report this to the AC_PACKAGE_NAME lists. ##
19984 ## ------------------------------------------ ##
19985 _ASBOX
19986 ) |
19987 sed "s/^/$as_me: WARNING: /" >&2
19988 ;;
19989 esac
19990 echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 eval "$as_ac_Header=\$ac_header_preproc"
19996 fi
19997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19999
20000 fi
20001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20002 cat >>confdefs.h <<_ACEOF
20003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20004 _ACEOF
20005
20006 else
20007
20008 for ac_header in kerberos/des.h
20009 do
20010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20012 echo "$as_me:$LINENO: checking for $ac_header" >&5
20013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 fi
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20019 else
20020 # Is the header compilable?
20021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 $ac_includes_default
20030 #include <$ac_header>
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_header_compiler=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_header_compiler=no
20060 fi
20061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20063 echo "${ECHO_T}$ac_header_compiler" >&6
20064
20065 # Is the header present?
20066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 #include <$ac_header>
20075 _ACEOF
20076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } >/dev/null; then
20084 if test -s conftest.err; then
20085 ac_cpp_err=$ac_c_preproc_warn_flag
20086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20087 else
20088 ac_cpp_err=
20089 fi
20090 else
20091 ac_cpp_err=yes
20092 fi
20093 if test -z "$ac_cpp_err"; then
20094 ac_header_preproc=yes
20095 else
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 ac_header_preproc=no
20100 fi
20101 rm -f conftest.err conftest.$ac_ext
20102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20103 echo "${ECHO_T}$ac_header_preproc" >&6
20104
20105 # So? What about this header?
20106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20107 yes:no: )
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20112 ac_header_preproc=yes
20113 ;;
20114 no:yes:* )
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20127 (
20128 cat <<\_ASBOX
20129 ## ------------------------------------------ ##
20130 ## Report this to the AC_PACKAGE_NAME lists. ##
20131 ## ------------------------------------------ ##
20132 _ASBOX
20133 ) |
20134 sed "s/^/$as_me: WARNING: /" >&2
20135 ;;
20136 esac
20137 echo "$as_me:$LINENO: checking for $ac_header" >&5
20138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 eval "$as_ac_Header=\$ac_header_preproc"
20143 fi
20144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20146
20147 fi
20148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20149 cat >>confdefs.h <<_ACEOF
20150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20151 _ACEOF
20152
20153 fi
20154
20155 done
20156
20157 fi
20158
20159 done
20160
20161 fi
20162
20163 done
20164
20165
20166 for ac_header in krb.h
20167 do
20168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20170 echo "$as_me:$LINENO: checking for $ac_header" >&5
20171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 fi
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20177 else
20178 # Is the header compilable?
20179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h. */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20188 #include <$ac_header>
20189 _ACEOF
20190 rm -f conftest.$ac_objext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_header_compiler=yes
20213 else
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 ac_header_compiler=no
20218 fi
20219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20221 echo "${ECHO_T}$ac_header_compiler" >&6
20222
20223 # Is the header present?
20224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20226 cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 #include <$ac_header>
20233 _ACEOF
20234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } >/dev/null; then
20242 if test -s conftest.err; then
20243 ac_cpp_err=$ac_c_preproc_warn_flag
20244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20245 else
20246 ac_cpp_err=
20247 fi
20248 else
20249 ac_cpp_err=yes
20250 fi
20251 if test -z "$ac_cpp_err"; then
20252 ac_header_preproc=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ac_header_preproc=no
20258 fi
20259 rm -f conftest.err conftest.$ac_ext
20260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20261 echo "${ECHO_T}$ac_header_preproc" >&6
20262
20263 # So? What about this header?
20264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20265 yes:no: )
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20270 ac_header_preproc=yes
20271 ;;
20272 no:yes:* )
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20285 (
20286 cat <<\_ASBOX
20287 ## ------------------------------------------ ##
20288 ## Report this to the AC_PACKAGE_NAME lists. ##
20289 ## ------------------------------------------ ##
20290 _ASBOX
20291 ) |
20292 sed "s/^/$as_me: WARNING: /" >&2
20293 ;;
20294 esac
20295 echo "$as_me:$LINENO: checking for $ac_header" >&5
20296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300 eval "$as_ac_Header=\$ac_header_preproc"
20301 fi
20302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20304
20305 fi
20306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20307 cat >>confdefs.h <<_ACEOF
20308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20309 _ACEOF
20310
20311 else
20312
20313 for ac_header in kerberosIV/krb.h
20314 do
20315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20317 echo "$as_me:$LINENO: checking for $ac_header" >&5
20318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 fi
20322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20324 else
20325 # Is the header compilable?
20326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 $ac_includes_default
20335 #include <$ac_header>
20336 _ACEOF
20337 rm -f conftest.$ac_objext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20339 (eval $ac_compile) 2>conftest.er1
20340 ac_status=$?
20341 grep -v '^ *+' conftest.er1 >conftest.err
20342 rm -f conftest.er1
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -z "$ac_c_werror_flag"
20347 || test ! -s conftest.err'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest.$ac_objext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_header_compiler=yes
20360 else
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ac_header_compiler=no
20365 fi
20366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20368 echo "${ECHO_T}$ac_header_compiler" >&6
20369
20370 # Is the header present?
20371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h. */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 #include <$ac_header>
20380 _ACEOF
20381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20383 ac_status=$?
20384 grep -v '^ *+' conftest.er1 >conftest.err
20385 rm -f conftest.er1
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } >/dev/null; then
20389 if test -s conftest.err; then
20390 ac_cpp_err=$ac_c_preproc_warn_flag
20391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20392 else
20393 ac_cpp_err=
20394 fi
20395 else
20396 ac_cpp_err=yes
20397 fi
20398 if test -z "$ac_cpp_err"; then
20399 ac_header_preproc=yes
20400 else
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20403
20404 ac_header_preproc=no
20405 fi
20406 rm -f conftest.err conftest.$ac_ext
20407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20408 echo "${ECHO_T}$ac_header_preproc" >&6
20409
20410 # So? What about this header?
20411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20412 yes:no: )
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20417 ac_header_preproc=yes
20418 ;;
20419 no:yes:* )
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20432 (
20433 cat <<\_ASBOX
20434 ## ------------------------------------------ ##
20435 ## Report this to the AC_PACKAGE_NAME lists. ##
20436 ## ------------------------------------------ ##
20437 _ASBOX
20438 ) |
20439 sed "s/^/$as_me: WARNING: /" >&2
20440 ;;
20441 esac
20442 echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 eval "$as_ac_Header=\$ac_header_preproc"
20448 fi
20449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20451
20452 fi
20453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20454 cat >>confdefs.h <<_ACEOF
20455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20456 _ACEOF
20457
20458 else
20459
20460 for ac_header in kerberos/krb.h
20461 do
20462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20464 echo "$as_me:$LINENO: checking for $ac_header" >&5
20465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 fi
20469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20471 else
20472 # Is the header compilable?
20473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20475 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h. */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20482 #include <$ac_header>
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_header_compiler=yes
20507 else
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_header_compiler=no
20512 fi
20513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20515 echo "${ECHO_T}$ac_header_compiler" >&6
20516
20517 # Is the header present?
20518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h. */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 #include <$ac_header>
20527 _ACEOF
20528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } >/dev/null; then
20536 if test -s conftest.err; then
20537 ac_cpp_err=$ac_c_preproc_warn_flag
20538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20539 else
20540 ac_cpp_err=
20541 fi
20542 else
20543 ac_cpp_err=yes
20544 fi
20545 if test -z "$ac_cpp_err"; then
20546 ac_header_preproc=yes
20547 else
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 ac_header_preproc=no
20552 fi
20553 rm -f conftest.err conftest.$ac_ext
20554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20555 echo "${ECHO_T}$ac_header_preproc" >&6
20556
20557 # So? What about this header?
20558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20559 yes:no: )
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20564 ac_header_preproc=yes
20565 ;;
20566 no:yes:* )
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20579 (
20580 cat <<\_ASBOX
20581 ## ------------------------------------------ ##
20582 ## Report this to the AC_PACKAGE_NAME lists. ##
20583 ## ------------------------------------------ ##
20584 _ASBOX
20585 ) |
20586 sed "s/^/$as_me: WARNING: /" >&2
20587 ;;
20588 esac
20589 echo "$as_me:$LINENO: checking for $ac_header" >&5
20590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 else
20594 eval "$as_ac_Header=\$ac_header_preproc"
20595 fi
20596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20598
20599 fi
20600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20603 _ACEOF
20604
20605 fi
20606
20607 done
20608
20609 fi
20610
20611 done
20612
20613 fi
20614
20615 done
20616
20617 fi
20618
20619 for ac_header in com_err.h
20620 do
20621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20623 echo "$as_me:$LINENO: checking for $ac_header" >&5
20624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 fi
20628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20630 else
20631 # Is the header compilable?
20632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 $ac_includes_default
20641 #include <$ac_header>
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645 (eval $ac_compile) 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag"
20653 || 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_objext'
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_header_compiler=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_header_compiler=no
20671 fi
20672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20674 echo "${ECHO_T}$ac_header_compiler" >&6
20675
20676 # Is the header present?
20677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 #include <$ac_header>
20686 _ACEOF
20687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } >/dev/null; then
20695 if test -s conftest.err; then
20696 ac_cpp_err=$ac_c_preproc_warn_flag
20697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20698 else
20699 ac_cpp_err=
20700 fi
20701 else
20702 ac_cpp_err=yes
20703 fi
20704 if test -z "$ac_cpp_err"; then
20705 ac_header_preproc=yes
20706 else
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710 ac_header_preproc=no
20711 fi
20712 rm -f conftest.err conftest.$ac_ext
20713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20714 echo "${ECHO_T}$ac_header_preproc" >&6
20715
20716 # So? What about this header?
20717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20718 yes:no: )
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20723 ac_header_preproc=yes
20724 ;;
20725 no:yes:* )
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20738 (
20739 cat <<\_ASBOX
20740 ## ------------------------------------------ ##
20741 ## Report this to the AC_PACKAGE_NAME lists. ##
20742 ## ------------------------------------------ ##
20743 _ASBOX
20744 ) |
20745 sed "s/^/$as_me: WARNING: /" >&2
20746 ;;
20747 esac
20748 echo "$as_me:$LINENO: checking for $ac_header" >&5
20749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753 eval "$as_ac_Header=\$ac_header_preproc"
20754 fi
20755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20757
20758 fi
20759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20760 cat >>confdefs.h <<_ACEOF
20761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20762 _ACEOF
20763
20764 fi
20765
20766 done
20767
20768 fi
20769
20770 # Solaris requires -lintl if you want strerror (which calls dgettext)
20771 # to return localized messages.
20772
20773 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20774 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20775 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 else
20778 ac_check_lib_save_LIBS=$LIBS
20779 LIBS="-lintl $LIBS"
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786
20787 /* Override any gcc2 internal prototype to avoid an error. */
20788 #ifdef __cplusplus
20789 extern "C"
20790 #endif
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20793 char dgettext ();
20794 int
20795 main ()
20796 {
20797 dgettext ();
20798 ;
20799 return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804 (eval $ac_link) 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try='test -z "$ac_c_werror_flag"
20812 || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest$ac_exeext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_lib_intl_dgettext=yes
20825 else
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829 ac_cv_lib_intl_dgettext=no
20830 fi
20831 rm -f conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20833 LIBS=$ac_check_lib_save_LIBS
20834 fi
20835 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20836 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20837 if test $ac_cv_lib_intl_dgettext = yes; then
20838 cat >>confdefs.h <<_ACEOF
20839 #define HAVE_LIBINTL 1
20840 _ACEOF
20841
20842 LIBS="-lintl $LIBS"
20843
20844 fi
20845
20846
20847 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20848 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20849 if test "${emacs_cv_localtime_cache+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852 if test x$ac_cv_func_tzset = xyes; then
20853 if test "$cross_compiling" = yes; then
20854 # If we have tzset, assume the worst when cross-compiling.
20855 emacs_cv_localtime_cache=yes
20856 else
20857 cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h. */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 #include <time.h>
20864 extern char **environ;
20865 unset_TZ ()
20866 {
20867 char **from, **to;
20868 for (to = from = environ; (*to = *from); from++)
20869 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20870 to++;
20871 }
20872 char TZ_GMT0[] = "TZ=GMT0";
20873 char TZ_PST8[] = "TZ=PST8";
20874 main()
20875 {
20876 time_t now = time ((time_t *) 0);
20877 int hour_GMT0, hour_unset;
20878 if (putenv (TZ_GMT0) != 0)
20879 exit (1);
20880 hour_GMT0 = localtime (&now)->tm_hour;
20881 unset_TZ ();
20882 hour_unset = localtime (&now)->tm_hour;
20883 if (putenv (TZ_PST8) != 0)
20884 exit (1);
20885 if (localtime (&now)->tm_hour == hour_GMT0)
20886 exit (1);
20887 unset_TZ ();
20888 if (localtime (&now)->tm_hour != hour_unset)
20889 exit (1);
20890 exit (0);
20891 }
20892 _ACEOF
20893 rm -f conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 emacs_cv_localtime_cache=no
20905 else
20906 echo "$as_me: program exited with status $ac_status" >&5
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 ( exit $ac_status )
20911 emacs_cv_localtime_cache=yes
20912 fi
20913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20914 fi
20915 else
20916 # If we lack tzset, report that localtime does not cache TZ,
20917 # since we can't invalidate the cache if we don't have tzset.
20918 emacs_cv_localtime_cache=no
20919 fi
20920 fi
20921 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20922 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20923 if test $emacs_cv_localtime_cache = yes; then
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define LOCALTIME_CACHE 1
20927 _ACEOF
20928
20929 fi
20930
20931 if test "x$HAVE_TIMEVAL" = xyes; then
20932
20933 for ac_func in gettimeofday
20934 do
20935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20936 echo "$as_me:$LINENO: checking for $ac_func" >&5
20937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20938 if eval "test \"\${$as_ac_var+set}\" = set"; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h. */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20949 #define $ac_func innocuous_$ac_func
20950
20951 /* System header to define __stub macros and hopefully few prototypes,
20952 which can conflict with char $ac_func (); below.
20953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20954 <limits.h> exists even on freestanding compilers. */
20955
20956 #ifdef __STDC__
20957 # include <limits.h>
20958 #else
20959 # include <assert.h>
20960 #endif
20961
20962 #undef $ac_func
20963
20964 /* Override any gcc2 internal prototype to avoid an error. */
20965 #ifdef __cplusplus
20966 extern "C"
20967 {
20968 #endif
20969 /* We use char because int might match the return type of a gcc2
20970 builtin and then its argument prototype would still apply. */
20971 char $ac_func ();
20972 /* The GNU C library defines this for functions which it implements
20973 to always fail with ENOSYS. Some functions are actually named
20974 something starting with __ and the normal name is an alias. */
20975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20976 choke me
20977 #else
20978 char (*f) () = $ac_func;
20979 #endif
20980 #ifdef __cplusplus
20981 }
20982 #endif
20983
20984 int
20985 main ()
20986 {
20987 return f != $ac_func;
20988 ;
20989 return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext conftest$ac_exeext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994 (eval $ac_link) 2>conftest.er1
20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 eval "$as_ac_var=yes"
21015 else
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 eval "$as_ac_var=no"
21020 fi
21021 rm -f conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
21023 fi
21024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026 if test `eval echo '${'$as_ac_var'}'` = yes; then
21027 cat >>confdefs.h <<_ACEOF
21028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21030
21031 fi
21032 done
21033
21034 if test $ac_cv_func_gettimeofday = yes; then
21035 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21036 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21037 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046
21047 #ifdef TIME_WITH_SYS_TIME
21048 #include <sys/time.h>
21049 #include <time.h>
21050 #else
21051 #ifdef HAVE_SYS_TIME_H
21052 #include <sys/time.h>
21053 #else
21054 #include <time.h>
21055 #endif
21056 #endif
21057 int
21058 main ()
21059 {
21060 struct timeval time;
21061 gettimeofday (&time, 0);
21062 ;
21063 return 0;
21064 }
21065 _ACEOF
21066 rm -f conftest.$ac_objext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_c_werror_flag"
21076 || test ! -s conftest.err'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest.$ac_objext'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
21088 emacs_cv_gettimeofday_two_arguments=yes
21089 else
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093 emacs_cv_gettimeofday_two_arguments=no
21094 fi
21095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21096 fi
21097 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21098 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21099 if test $emacs_cv_gettimeofday_two_arguments = no; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21103 _ACEOF
21104
21105 fi
21106 fi
21107 fi
21108
21109 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21110 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21111 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21112 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h. */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121 #include <sys/types.h>
21122 #include <$ac_cv_struct_tm>
21123
21124
21125 int
21126 main ()
21127 {
21128 static struct tm ac_aggr;
21129 if (ac_aggr.tm_zone)
21130 return 0;
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21137 (eval $ac_compile) 2>conftest.er1
21138 ac_status=$?
21139 grep -v '^ *+' conftest.er1 >conftest.err
21140 rm -f conftest.er1
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } &&
21144 { ac_try='test -z "$ac_c_werror_flag"
21145 || test ! -s conftest.err'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest.$ac_objext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_member_struct_tm_tm_zone=yes
21158 else
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <sys/types.h>
21169 #include <$ac_cv_struct_tm>
21170
21171
21172 int
21173 main ()
21174 {
21175 static struct tm ac_aggr;
21176 if (sizeof ac_aggr.tm_zone)
21177 return 0;
21178 ;
21179 return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21184 (eval $ac_compile) 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try='test -z "$ac_c_werror_flag"
21192 || test ! -s conftest.err'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; } &&
21198 { ac_try='test -s conftest.$ac_objext'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 ac_cv_member_struct_tm_tm_zone=yes
21205 else
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 ac_cv_member_struct_tm_tm_zone=no
21210 fi
21211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21212 fi
21213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21214 fi
21215 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21216 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21217 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21218
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_STRUCT_TM_TM_ZONE 1
21221 _ACEOF
21222
21223
21224 fi
21225
21226 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21227
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_TM_ZONE 1
21230 _ACEOF
21231
21232 else
21233 echo "$as_me:$LINENO: checking for tzname" >&5
21234 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21235 if test "${ac_cv_var_tzname+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238 cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h. */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 #include <time.h>
21245 #ifndef tzname /* For SGI. */
21246 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21247 #endif
21248
21249 int
21250 main ()
21251 {
21252 atoi(*tzname);
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext conftest$ac_exeext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259 (eval $ac_link) 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_c_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest$ac_exeext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_var_tzname=yes
21280 else
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 ac_cv_var_tzname=no
21285 fi
21286 rm -f conftest.err conftest.$ac_objext \
21287 conftest$ac_exeext conftest.$ac_ext
21288 fi
21289 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21290 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21291 if test $ac_cv_var_tzname = yes; then
21292
21293 cat >>confdefs.h <<\_ACEOF
21294 #define HAVE_TZNAME 1
21295 _ACEOF
21296
21297 fi
21298 fi
21299
21300
21301 if test "$ac_cv_func_gettimeofday" = yes; then
21302 echo "$as_me:$LINENO: checking for struct timezone" >&5
21303 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21304 if test "${emacs_cv_struct_timezone+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <sys/time.h>
21314 int
21315 main ()
21316 {
21317 struct timezone tz;
21318 ;
21319 return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21324 (eval $ac_compile) 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag"
21332 || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest.$ac_objext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 if test "$cross_compiling" = yes; then
21345 emacs_cv_struct_timezone=yes
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353
21354 #ifdef TIME_WITH_SYS_TIME
21355 #include <sys/time.h>
21356 #include <time.h>
21357 #else
21358 #ifdef HAVE_SYS_TIME_H
21359 #include <sys/time.h>
21360 #else
21361 #include <time.h>
21362 #endif
21363 #endif
21364 main () {
21365 struct timeval time;
21366 struct timezone dummy;
21367 exit (gettimeofday (&time, &dummy));
21368 }
21369 _ACEOF
21370 rm -f conftest$ac_exeext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21372 (eval $ac_link) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 emacs_cv_struct_timezone=yes
21382 else
21383 echo "$as_me: program exited with status $ac_status" >&5
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ( exit $ac_status )
21388 emacs_cv_struct_timezone=no
21389 fi
21390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21391 fi
21392 else
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396 emacs_cv_struct_timezone=no
21397 fi
21398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21399 fi
21400 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21401 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21402 fi
21403
21404 ok_so_far=yes
21405 echo "$as_me:$LINENO: checking for socket" >&5
21406 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21407 if test "${ac_cv_func_socket+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h. */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21418 #define socket innocuous_socket
21419
21420 /* System header to define __stub macros and hopefully few prototypes,
21421 which can conflict with char socket (); below.
21422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21423 <limits.h> exists even on freestanding compilers. */
21424
21425 #ifdef __STDC__
21426 # include <limits.h>
21427 #else
21428 # include <assert.h>
21429 #endif
21430
21431 #undef socket
21432
21433 /* Override any gcc2 internal prototype to avoid an error. */
21434 #ifdef __cplusplus
21435 extern "C"
21436 {
21437 #endif
21438 /* We use char because int might match the return type of a gcc2
21439 builtin and then its argument prototype would still apply. */
21440 char socket ();
21441 /* The GNU C library defines this for functions which it implements
21442 to always fail with ENOSYS. Some functions are actually named
21443 something starting with __ and the normal name is an alias. */
21444 #if defined (__stub_socket) || defined (__stub___socket)
21445 choke me
21446 #else
21447 char (*f) () = socket;
21448 #endif
21449 #ifdef __cplusplus
21450 }
21451 #endif
21452
21453 int
21454 main ()
21455 {
21456 return f != socket;
21457 ;
21458 return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_func_socket=yes
21484 else
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488 ac_cv_func_socket=no
21489 fi
21490 rm -f conftest.err conftest.$ac_objext \
21491 conftest$ac_exeext conftest.$ac_ext
21492 fi
21493 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21494 echo "${ECHO_T}$ac_cv_func_socket" >&6
21495 if test $ac_cv_func_socket = yes; then
21496 :
21497 else
21498 ok_so_far=no
21499 fi
21500
21501 if test $ok_so_far = yes; then
21502 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21503 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21504 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21505 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 fi
21508 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21509 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21510 else
21511 # Is the header compilable?
21512 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21513 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21521 #include <netinet/in.h>
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525 (eval $ac_compile) 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
21532 { ac_try='test -z "$ac_c_werror_flag"
21533 || test ! -s conftest.err'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest.$ac_objext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ac_header_compiler=yes
21546 else
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550 ac_header_compiler=no
21551 fi
21552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21554 echo "${ECHO_T}$ac_header_compiler" >&6
21555
21556 # Is the header present?
21557 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21558 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h. */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 #include <netinet/in.h>
21566 _ACEOF
21567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } >/dev/null; then
21575 if test -s conftest.err; then
21576 ac_cpp_err=$ac_c_preproc_warn_flag
21577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21578 else
21579 ac_cpp_err=
21580 fi
21581 else
21582 ac_cpp_err=yes
21583 fi
21584 if test -z "$ac_cpp_err"; then
21585 ac_header_preproc=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_header_preproc=no
21591 fi
21592 rm -f conftest.err conftest.$ac_ext
21593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21594 echo "${ECHO_T}$ac_header_preproc" >&6
21595
21596 # So? What about this header?
21597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21598 yes:no: )
21599 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21600 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21602 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21603 ac_header_preproc=yes
21604 ;;
21605 no:yes:* )
21606 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21607 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21609 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21611 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21613 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21614 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21615 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21617 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21618 (
21619 cat <<\_ASBOX
21620 ## ------------------------------------------ ##
21621 ## Report this to the AC_PACKAGE_NAME lists. ##
21622 ## ------------------------------------------ ##
21623 _ASBOX
21624 ) |
21625 sed "s/^/$as_me: WARNING: /" >&2
21626 ;;
21627 esac
21628 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21629 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21630 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633 ac_cv_header_netinet_in_h=$ac_header_preproc
21634 fi
21635 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21636 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21637
21638 fi
21639 if test $ac_cv_header_netinet_in_h = yes; then
21640 :
21641 else
21642 ok_so_far=no
21643 fi
21644
21645
21646 fi
21647 if test $ok_so_far = yes; then
21648 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21649 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21650 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21651 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 fi
21654 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21655 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21656 else
21657 # Is the header compilable?
21658 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21659 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21660 cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h. */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 $ac_includes_default
21667 #include <arpa/inet.h>
21668 _ACEOF
21669 rm -f conftest.$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671 (eval $ac_compile) 2>conftest.er1
21672 ac_status=$?
21673 grep -v '^ *+' conftest.er1 >conftest.err
21674 rm -f conftest.er1
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
21678 { ac_try='test -z "$ac_c_werror_flag"
21679 || test ! -s conftest.err'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_header_compiler=yes
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 ac_header_compiler=no
21697 fi
21698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21701
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21704 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h. */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <arpa/inet.h>
21712 _ACEOF
21713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21715 ac_status=$?
21716 grep -v '^ *+' conftest.er1 >conftest.err
21717 rm -f conftest.er1
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } >/dev/null; then
21721 if test -s conftest.err; then
21722 ac_cpp_err=$ac_c_preproc_warn_flag
21723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21724 else
21725 ac_cpp_err=
21726 fi
21727 else
21728 ac_cpp_err=yes
21729 fi
21730 if test -z "$ac_cpp_err"; then
21731 ac_header_preproc=yes
21732 else
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ac_header_preproc=no
21737 fi
21738 rm -f conftest.err conftest.$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21741
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21744 yes:no: )
21745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21749 ac_header_preproc=yes
21750 ;;
21751 no:yes:* )
21752 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21753 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21755 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21757 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21759 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21761 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21763 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21764 (
21765 cat <<\_ASBOX
21766 ## ------------------------------------------ ##
21767 ## Report this to the AC_PACKAGE_NAME lists. ##
21768 ## ------------------------------------------ ##
21769 _ASBOX
21770 ) |
21771 sed "s/^/$as_me: WARNING: /" >&2
21772 ;;
21773 esac
21774 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21775 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21776 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 ac_cv_header_arpa_inet_h=$ac_header_preproc
21780 fi
21781 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21782 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21783
21784 fi
21785 if test $ac_cv_header_arpa_inet_h = yes; then
21786 :
21787 else
21788 ok_so_far=no
21789 fi
21790
21791
21792 fi
21793 if test $ok_so_far = yes; then
21794
21795 cat >>confdefs.h <<\_ACEOF
21796 #define HAVE_INET_SOCKETS 1
21797 _ACEOF
21798
21799 fi
21800
21801
21802 for ac_header in sys/ioctl.h
21803 do
21804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21806 echo "$as_me:$LINENO: checking for $ac_header" >&5
21807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 fi
21811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21813 else
21814 # Is the header compilable?
21815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 $ac_includes_default
21824 #include <$ac_header>
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828 (eval $ac_compile) 2>conftest.er1
21829 ac_status=$?
21830 grep -v '^ *+' conftest.er1 >conftest.err
21831 rm -f conftest.er1
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } &&
21835 { ac_try='test -z "$ac_c_werror_flag"
21836 || test ! -s conftest.err'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; } &&
21842 { ac_try='test -s conftest.$ac_objext'
21843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844 (eval $ac_try) 2>&5
21845 ac_status=$?
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; }; then
21848 ac_header_compiler=yes
21849 else
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 ac_header_compiler=no
21854 fi
21855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21857 echo "${ECHO_T}$ac_header_compiler" >&6
21858
21859 # Is the header present?
21860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #include <$ac_header>
21869 _ACEOF
21870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } >/dev/null; then
21878 if test -s conftest.err; then
21879 ac_cpp_err=$ac_c_preproc_warn_flag
21880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21881 else
21882 ac_cpp_err=
21883 fi
21884 else
21885 ac_cpp_err=yes
21886 fi
21887 if test -z "$ac_cpp_err"; then
21888 ac_header_preproc=yes
21889 else
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 ac_header_preproc=no
21894 fi
21895 rm -f conftest.err conftest.$ac_ext
21896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21897 echo "${ECHO_T}$ac_header_preproc" >&6
21898
21899 # So? What about this header?
21900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21901 yes:no: )
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21906 ac_header_preproc=yes
21907 ;;
21908 no:yes:* )
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21921 (
21922 cat <<\_ASBOX
21923 ## ------------------------------------------ ##
21924 ## Report this to the AC_PACKAGE_NAME lists. ##
21925 ## ------------------------------------------ ##
21926 _ASBOX
21927 ) |
21928 sed "s/^/$as_me: WARNING: /" >&2
21929 ;;
21930 esac
21931 echo "$as_me:$LINENO: checking for $ac_header" >&5
21932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 else
21936 eval "$as_ac_Header=\$ac_header_preproc"
21937 fi
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21940
21941 fi
21942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21943 cat >>confdefs.h <<_ACEOF
21944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21945 _ACEOF
21946
21947 fi
21948
21949 done
21950
21951
21952 if test -f /usr/lpp/X11/bin/smt.exp; then
21953
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_AIX_SMT_EXP 1
21956 _ACEOF
21957
21958 fi
21959
21960 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21961 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21962 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21963 echo "$as_me:$LINENO: result: yes" >&5
21964 echo "${ECHO_T}yes" >&6
21965
21966 cat >>confdefs.h <<\_ACEOF
21967 #define HAVE_DEV_PTMX 1
21968 _ACEOF
21969
21970 else
21971 echo "$as_me:$LINENO: result: no" >&5
21972 echo "${ECHO_T}no" >&6
21973 fi
21974
21975 echo "$as_me:$LINENO: checking for pid_t" >&5
21976 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21977 if test "${ac_cv_type_pid_t+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21987 int
21988 main ()
21989 {
21990 if ((pid_t *) 0)
21991 return 0;
21992 if (sizeof (pid_t))
21993 return 0;
21994 ;
21995 return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000 (eval $ac_compile) 2>conftest.er1
22001 ac_status=$?
22002 grep -v '^ *+' conftest.er1 >conftest.err
22003 rm -f conftest.er1
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -z "$ac_c_werror_flag"
22008 || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ac_cv_type_pid_t=yes
22021 else
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ac_cv_type_pid_t=no
22026 fi
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22031 if test $ac_cv_type_pid_t = yes; then
22032 :
22033 else
22034
22035 cat >>confdefs.h <<_ACEOF
22036 #define pid_t int
22037 _ACEOF
22038
22039 fi
22040
22041
22042
22043 for ac_header in unistd.h vfork.h
22044 do
22045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 fi
22052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22054 else
22055 # Is the header compilable?
22056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h. */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 $ac_includes_default
22065 #include <$ac_header>
22066 _ACEOF
22067 rm -f conftest.$ac_objext
22068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22069 (eval $ac_compile) 2>conftest.er1
22070 ac_status=$?
22071 grep -v '^ *+' conftest.er1 >conftest.err
22072 rm -f conftest.er1
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
22076 { ac_try='test -z "$ac_c_werror_flag"
22077 || test ! -s conftest.err'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; } &&
22083 { ac_try='test -s conftest.$ac_objext'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089 ac_header_compiler=yes
22090 else
22091 echo "$as_me: failed program was:" >&5
22092 sed 's/^/| /' conftest.$ac_ext >&5
22093
22094 ac_header_compiler=no
22095 fi
22096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6
22099
22100 # Is the header present?
22101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <$ac_header>
22110 _ACEOF
22111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } >/dev/null; then
22119 if test -s conftest.err; then
22120 ac_cpp_err=$ac_c_preproc_warn_flag
22121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22122 else
22123 ac_cpp_err=
22124 fi
22125 else
22126 ac_cpp_err=yes
22127 fi
22128 if test -z "$ac_cpp_err"; then
22129 ac_header_preproc=yes
22130 else
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 ac_header_preproc=no
22135 fi
22136 rm -f conftest.err conftest.$ac_ext
22137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22138 echo "${ECHO_T}$ac_header_preproc" >&6
22139
22140 # So? What about this header?
22141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22142 yes:no: )
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22147 ac_header_preproc=yes
22148 ;;
22149 no:yes:* )
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22162 (
22163 cat <<\_ASBOX
22164 ## ------------------------------------------ ##
22165 ## Report this to the AC_PACKAGE_NAME lists. ##
22166 ## ------------------------------------------ ##
22167 _ASBOX
22168 ) |
22169 sed "s/^/$as_me: WARNING: /" >&2
22170 ;;
22171 esac
22172 echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177 eval "$as_ac_Header=\$ac_header_preproc"
22178 fi
22179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22181
22182 fi
22183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22184 cat >>confdefs.h <<_ACEOF
22185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22186 _ACEOF
22187
22188 fi
22189
22190 done
22191
22192
22193
22194 for ac_func in fork vfork
22195 do
22196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22197 echo "$as_me:$LINENO: checking for $ac_func" >&5
22198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22199 if eval "test \"\${$as_ac_var+set}\" = set"; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h. */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22210 #define $ac_func innocuous_$ac_func
22211
22212 /* System header to define __stub macros and hopefully few prototypes,
22213 which can conflict with char $ac_func (); below.
22214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22215 <limits.h> exists even on freestanding compilers. */
22216
22217 #ifdef __STDC__
22218 # include <limits.h>
22219 #else
22220 # include <assert.h>
22221 #endif
22222
22223 #undef $ac_func
22224
22225 /* Override any gcc2 internal prototype to avoid an error. */
22226 #ifdef __cplusplus
22227 extern "C"
22228 {
22229 #endif
22230 /* We use char because int might match the return type of a gcc2
22231 builtin and then its argument prototype would still apply. */
22232 char $ac_func ();
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22237 choke me
22238 #else
22239 char (*f) () = $ac_func;
22240 #endif
22241 #ifdef __cplusplus
22242 }
22243 #endif
22244
22245 int
22246 main ()
22247 {
22248 return f != $ac_func;
22249 ;
22250 return 0;
22251 }
22252 _ACEOF
22253 rm -f conftest.$ac_objext conftest$ac_exeext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22255 (eval $ac_link) 2>conftest.er1
22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag"
22263 || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22266 ac_status=$?
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest$ac_exeext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22272 ac_status=$?
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 eval "$as_ac_var=yes"
22276 else
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 eval "$as_ac_var=no"
22281 fi
22282 rm -f conftest.err conftest.$ac_objext \
22283 conftest$ac_exeext conftest.$ac_ext
22284 fi
22285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22287 if test `eval echo '${'$as_ac_var'}'` = yes; then
22288 cat >>confdefs.h <<_ACEOF
22289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22290 _ACEOF
22291
22292 fi
22293 done
22294
22295 if test "x$ac_cv_func_fork" = xyes; then
22296 echo "$as_me:$LINENO: checking for working fork" >&5
22297 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22298 if test "${ac_cv_func_fork_works+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 if test "$cross_compiling" = yes; then
22302 ac_cv_func_fork_works=cross
22303 else
22304 cat >conftest.$ac_ext <<_ACEOF
22305 /* By Ruediger Kuhlmann. */
22306 #include <sys/types.h>
22307 #if HAVE_UNISTD_H
22308 # include <unistd.h>
22309 #endif
22310 /* Some systems only have a dummy stub for fork() */
22311 int main ()
22312 {
22313 if (fork() < 0)
22314 exit (1);
22315 exit (0);
22316 }
22317 _ACEOF
22318 rm -f conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22329 ac_cv_func_fork_works=yes
22330 else
22331 echo "$as_me: program exited with status $ac_status" >&5
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335 ( exit $ac_status )
22336 ac_cv_func_fork_works=no
22337 fi
22338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22339 fi
22340 fi
22341 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22342 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22343
22344 else
22345 ac_cv_func_fork_works=$ac_cv_func_fork
22346 fi
22347 if test "x$ac_cv_func_fork_works" = xcross; then
22348 case $host in
22349 *-*-amigaos* | *-*-msdosdjgpp*)
22350 # Override, as these systems have only a dummy fork() stub
22351 ac_cv_func_fork_works=no
22352 ;;
22353 *)
22354 ac_cv_func_fork_works=yes
22355 ;;
22356 esac
22357 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22358 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22359 fi
22360 ac_cv_func_vfork_works=$ac_cv_func_vfork
22361 if test "x$ac_cv_func_vfork" = xyes; then
22362 echo "$as_me:$LINENO: checking for working vfork" >&5
22363 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22364 if test "${ac_cv_func_vfork_works+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 else
22367 if test "$cross_compiling" = yes; then
22368 ac_cv_func_vfork_works=cross
22369 else
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 /* Thanks to Paul Eggert for this test. */
22377 #include <stdio.h>
22378 #include <stdlib.h>
22379 #include <sys/types.h>
22380 #include <sys/stat.h>
22381 #include <sys/wait.h>
22382 #if HAVE_UNISTD_H
22383 # include <unistd.h>
22384 #endif
22385 #if HAVE_VFORK_H
22386 # include <vfork.h>
22387 #endif
22388 /* On some sparc systems, changes by the child to local and incoming
22389 argument registers are propagated back to the parent. The compiler
22390 is told about this with #include <vfork.h>, but some compilers
22391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22392 static variable whose address is put into a register that is
22393 clobbered by the vfork. */
22394 static void
22395 #ifdef __cplusplus
22396 sparc_address_test (int arg)
22397 # else
22398 sparc_address_test (arg) int arg;
22399 #endif
22400 {
22401 static pid_t child;
22402 if (!child) {
22403 child = vfork ();
22404 if (child < 0) {
22405 perror ("vfork");
22406 _exit(2);
22407 }
22408 if (!child) {
22409 arg = getpid();
22410 write(-1, "", 0);
22411 _exit (arg);
22412 }
22413 }
22414 }
22415
22416 int
22417 main ()
22418 {
22419 pid_t parent = getpid ();
22420 pid_t child;
22421
22422 sparc_address_test (0);
22423
22424 child = vfork ();
22425
22426 if (child == 0) {
22427 /* Here is another test for sparc vfork register problems. This
22428 test uses lots of local variables, at least as many local
22429 variables as main has allocated so far including compiler
22430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22432 reuse the register of parent for one of the local variables,
22433 since it will think that parent can't possibly be used any more
22434 in this routine. Assigning to the local variable will thus
22435 munge parent in the parent process. */
22436 pid_t
22437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22439 /* Convince the compiler that p..p7 are live; otherwise, it might
22440 use the same hardware register for all 8 local variables. */
22441 if (p != p1 || p != p2 || p != p3 || p != p4
22442 || p != p5 || p != p6 || p != p7)
22443 _exit(1);
22444
22445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22446 from child file descriptors. If the child closes a descriptor
22447 before it execs or exits, this munges the parent's descriptor
22448 as well. Test for this by closing stdout in the child. */
22449 _exit(close(fileno(stdout)) != 0);
22450 } else {
22451 int status;
22452 struct stat st;
22453
22454 while (wait(&status) != child)
22455 ;
22456 exit(
22457 /* Was there some problem with vforking? */
22458 child < 0
22459
22460 /* Did the child fail? (This shouldn't happen.) */
22461 || status
22462
22463 /* Did the vfork/compiler bug occur? */
22464 || parent != getpid()
22465
22466 /* Did the file descriptor bug occur? */
22467 || fstat(fileno(stdout), &st) != 0
22468 );
22469 }
22470 }
22471 _ACEOF
22472 rm -f conftest$ac_exeext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474 (eval $ac_link) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_func_vfork_works=yes
22484 else
22485 echo "$as_me: program exited with status $ac_status" >&5
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ( exit $ac_status )
22490 ac_cv_func_vfork_works=no
22491 fi
22492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 fi
22495 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22496 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22497
22498 fi;
22499 if test "x$ac_cv_func_fork_works" = xcross; then
22500 ac_cv_func_vfork_works=$ac_cv_func_vfork
22501 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22502 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22503 fi
22504
22505 if test "x$ac_cv_func_vfork_works" = xyes; then
22506
22507 cat >>confdefs.h <<\_ACEOF
22508 #define HAVE_WORKING_VFORK 1
22509 _ACEOF
22510
22511 else
22512
22513 cat >>confdefs.h <<\_ACEOF
22514 #define vfork fork
22515 _ACEOF
22516
22517 fi
22518 if test "x$ac_cv_func_fork_works" = xyes; then
22519
22520 cat >>confdefs.h <<\_ACEOF
22521 #define HAVE_WORKING_FORK 1
22522 _ACEOF
22523
22524 fi
22525
22526
22527 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22528 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22529 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532 cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h. */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 #include <langinfo.h>
22539 int
22540 main ()
22541 {
22542 char* cs = nl_langinfo(CODESET);
22543 ;
22544 return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext conftest$ac_exeext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22549 (eval $ac_link) 2>conftest.er1
22550 ac_status=$?
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
22556 { ac_try='test -z "$ac_c_werror_flag"
22557 || test ! -s conftest.err'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest$ac_exeext'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 emacs_cv_langinfo_codeset=yes
22570 else
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574 emacs_cv_langinfo_codeset=no
22575 fi
22576 rm -f conftest.err conftest.$ac_objext \
22577 conftest$ac_exeext conftest.$ac_ext
22578
22579 fi
22580 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22581 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22582 if test $emacs_cv_langinfo_codeset = yes; then
22583
22584 cat >>confdefs.h <<\_ACEOF
22585 #define HAVE_LANGINFO_CODESET 1
22586 _ACEOF
22587
22588 fi
22589
22590 echo "$as_me:$LINENO: checking for size_t" >&5
22591 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22592 if test "${ac_cv_type_size_t+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595 cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h. */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 $ac_includes_default
22602 int
22603 main ()
22604 {
22605 if ((size_t *) 0)
22606 return 0;
22607 if (sizeof (size_t))
22608 return 0;
22609 ;
22610 return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22615 (eval $ac_compile) 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
22622 { ac_try='test -z "$ac_c_werror_flag"
22623 || test ! -s conftest.err'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try='test -s conftest.$ac_objext'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_cv_type_size_t=yes
22636 else
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 ac_cv_type_size_t=no
22641 fi
22642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22643 fi
22644 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22645 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22646 if test $ac_cv_type_size_t = yes; then
22647
22648 cat >>confdefs.h <<_ACEOF
22649 #define HAVE_SIZE_T 1
22650 _ACEOF
22651
22652
22653 fi
22654
22655
22656 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22657 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22658 if test "${ac_cv_type_mbstate_t+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22661 cat >conftest.$ac_ext <<_ACEOF
22662 /* confdefs.h. */
22663 _ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 $ac_includes_default
22668 # include <wchar.h>
22669 int
22670 main ()
22671 {
22672 mbstate_t x; return sizeof x;
22673 ;
22674 return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22679 (eval $ac_compile) 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } &&
22686 { ac_try='test -z "$ac_c_werror_flag"
22687 || test ! -s conftest.err'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_type_mbstate_t=yes
22700 else
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704 ac_cv_type_mbstate_t=no
22705 fi
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22707 fi
22708 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22709 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22710 if test $ac_cv_type_mbstate_t = yes; then
22711
22712 cat >>confdefs.h <<\_ACEOF
22713 #define HAVE_MBSTATE_T 1
22714 _ACEOF
22715
22716 else
22717
22718 cat >>confdefs.h <<\_ACEOF
22719 #define mbstate_t int
22720 _ACEOF
22721
22722 fi
22723
22724 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22725 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22726 if test "${emacs_cv_c_restrict+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22728 else
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 void fred (int *restrict x);
22736 int
22737 main ()
22738 {
22739
22740 ;
22741 return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746 (eval $ac_compile) 2>conftest.er1
22747 ac_status=$?
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } &&
22753 { ac_try='test -z "$ac_c_werror_flag"
22754 || test ! -s conftest.err'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; } &&
22760 { ac_try='test -s conftest.$ac_objext'
22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 (eval $ac_try) 2>&5
22763 ac_status=$?
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); }; }; then
22766 emacs_cv_c_restrict=yes
22767 else
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771 cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h. */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 void fred (int *__restrict x);
22778 int
22779 main ()
22780 {
22781
22782 ;
22783 return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22788 (eval $ac_compile) 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
22795 { ac_try='test -z "$ac_c_werror_flag"
22796 || test ! -s conftest.err'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; } &&
22802 { ac_try='test -s conftest.$ac_objext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 emacs_cv_c_restrict=__restrict
22809 else
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813 emacs_cv_c_restrict=no
22814 fi
22815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22816 fi
22817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22818 fi
22819 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22820 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22821 case "$emacs_cv_c_restrict" in
22822 yes) emacs_restrict=restrict;;
22823 no) emacs_restrict="";;
22824 *) emacs_restrict="$emacs_cv_c_restrict";;
22825 esac
22826 if test "$emacs_restrict" != __restrict; then
22827
22828 cat >>confdefs.h <<_ACEOF
22829 #define __restrict $emacs_restrict
22830 _ACEOF
22831
22832 fi
22833
22834 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22835 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22836 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 else
22839 cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h. */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 void fred (int x[__restrict]);
22846 int
22847 main ()
22848 {
22849
22850 ;
22851 return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856 (eval $ac_compile) 2>conftest.er1
22857 ac_status=$?
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -z "$ac_c_werror_flag"
22864 || test ! -s conftest.err'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try='test -s conftest.$ac_objext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 emacs_cv_c_restrict_arr=yes
22877 else
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881 emacs_cv_c_restrict_arr=no
22882 fi
22883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22884 fi
22885 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22886 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22887 if test "$emacs_cv_c_restrict_arr" = yes; then
22888
22889 cat >>confdefs.h <<\_ACEOF
22890 #define __restrict_arr __restrict
22891 _ACEOF
22892
22893 fi
22894
22895
22896
22897 # Set up the CFLAGS for real compilation, so we can substitute it.
22898 CFLAGS="$REAL_CFLAGS"
22899 CPPFLAGS="$REAL_CPPFLAGS"
22900
22901 #### Find out which version of Emacs this is.
22902 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22903 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22904 if test x"${version}" = x; then
22905 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22906 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22907 { (exit 1); exit 1; }; }
22908 fi
22909
22910 ### Specify what sort of things we'll be editing into Makefile and config.h.
22911 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947 cat >>confdefs.h <<_ACEOF
22948 #define EMACS_CONFIGURATION "${canonical}"
22949 _ACEOF
22950
22951
22952 cat >>confdefs.h <<_ACEOF
22953 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22954 _ACEOF
22955
22956
22957 cat >>confdefs.h <<_ACEOF
22958 #define config_machfile "${machfile}"
22959 _ACEOF
22960
22961
22962 cat >>confdefs.h <<_ACEOF
22963 #define config_opsysfile "${opsysfile}"
22964 _ACEOF
22965
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22969 _ACEOF
22970
22971
22972 cat >>confdefs.h <<_ACEOF
22973 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22974 _ACEOF
22975
22976
22977 cat >>confdefs.h <<_ACEOF
22978 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22979 _ACEOF
22980
22981
22982 cat >>confdefs.h <<_ACEOF
22983 #define UNEXEC_SRC ${UNEXEC_SRC}
22984 _ACEOF
22985
22986
22987 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22988
22989 cat >>confdefs.h <<\_ACEOF
22990 #define HAVE_X_WINDOWS 1
22991 _ACEOF
22992
22993 fi
22994 if test "${USE_X_TOOLKIT}" != "none" ; then
22995
22996 cat >>confdefs.h <<\_ACEOF
22997 #define USE_X_TOOLKIT 1
22998 _ACEOF
22999
23000 fi
23001 if test "${HAVE_X11}" = "yes" ; then
23002
23003 cat >>confdefs.h <<\_ACEOF
23004 #define HAVE_X11 1
23005 _ACEOF
23006
23007 fi
23008 if test "${HAVE_XFREE386}" = "yes" ; then
23009
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_XFREE386 1
23012 _ACEOF
23013
23014 fi
23015 if test "${HAVE_MENUS}" = "yes" ; then
23016
23017 cat >>confdefs.h <<\_ACEOF
23018 #define HAVE_MENUS 1
23019 _ACEOF
23020
23021 fi
23022 if test "${GNU_MALLOC}" = "yes" ; then
23023
23024 cat >>confdefs.h <<\_ACEOF
23025 #define GNU_MALLOC 1
23026 _ACEOF
23027
23028 fi
23029 if test "${REL_ALLOC}" = "yes" ; then
23030
23031 cat >>confdefs.h <<\_ACEOF
23032 #define REL_ALLOC 1
23033 _ACEOF
23034
23035 fi
23036
23037
23038
23039
23040
23041 #### Report on what we decided to do.
23042 #### Report GTK as a toolkit, even if it doesn't use Xt.
23043 #### It makes printing result more understandable as using GTK sets
23044 #### toolkit_scroll_bars to yes by default.
23045 if test "${HAVE_GTK}" = "yes"; then
23046 USE_X_TOOLKIT=GTK
23047 fi
23048
23049 echo "
23050 Configured for \`${canonical}'.
23051
23052 Where should the build process find the source code? ${srcdir}
23053 What operating system and machine description files should Emacs use?
23054 \`${opsysfile}' and \`${machfile}'
23055 What compiler should emacs be built with? ${CC} ${CFLAGS}
23056 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23057 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23058 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23059 What window system should Emacs use? ${window_system}
23060 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23061
23062 if test -n "${x_includes}"; then
23063 echo " Where do we find X Windows header files? ${x_includes}"
23064 else
23065 echo " Where do we find X Windows header files? Standard dirs"
23066 fi
23067 if test -n "${x_libraries}"; then
23068 echo " Where do we find X Windows libraries? ${x_libraries}"
23069 else
23070 echo " Where do we find X Windows libraries? Standard dirs"
23071 fi
23072
23073 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23074 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23075 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23076 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23077 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23078 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23079 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23080 echo
23081
23082 if test $USE_XASSERTS = yes; then
23083 echo " Compiling with asserts turned on."
23084 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23085 echo
23086 fi
23087
23088
23089
23090 # Remove any trailing slashes in these variables.
23091 test "${prefix}" != NONE &&
23092 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23093 test "${exec_prefix}" != NONE &&
23094 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23095
23096 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23097 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23098 ## from Makefile.c can correctly provide the arg `-traditional' to the
23099 ## C preprocessor.
23100
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 yes..yes
23108 _ACEOF
23109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23110 $EGREP "yes..yes" >/dev/null 2>&1; then
23111 CPP_NEED_TRADITIONAL=no
23112 else
23113 CPP_NEED_TRADITIONAL=yes
23114 fi
23115 rm -f conftest*
23116
23117
23118 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"
23119 ac_config_commands="$ac_config_commands default"
23120 cat >confcache <<\_ACEOF
23121 # This file is a shell script that caches the results of configure
23122 # tests run on this system so they can be shared between configure
23123 # scripts and configure runs, see configure's option --config-cache.
23124 # It is not useful on other systems. If it contains results you don't
23125 # want to keep, you may remove or edit it.
23126 #
23127 # config.status only pays attention to the cache file if you give it
23128 # the --recheck option to rerun configure.
23129 #
23130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23132 # following values.
23133
23134 _ACEOF
23135
23136 # The following way of writing the cache mishandles newlines in values,
23137 # but we know of no workaround that is simple, portable, and efficient.
23138 # So, don't put newlines in cache variables' values.
23139 # Ultrix sh set writes to stderr and can't be redirected directly,
23140 # and sets the high bit in the cache file unless we assign to the vars.
23141 {
23142 (set) 2>&1 |
23143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23144 *ac_space=\ *)
23145 # `set' does not quote correctly, so add quotes (double-quote
23146 # substitution turns \\\\ into \\, and sed turns \\ into \).
23147 sed -n \
23148 "s/'/'\\\\''/g;
23149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23150 ;;
23151 *)
23152 # `set' quotes correctly as required by POSIX, so do not add quotes.
23153 sed -n \
23154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23155 ;;
23156 esac;
23157 } |
23158 sed '
23159 t clear
23160 : clear
23161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23162 t end
23163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23164 : end' >>confcache
23165 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23166 if test -w $cache_file; then
23167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23168 cat confcache >$cache_file
23169 else
23170 echo "not updating unwritable cache $cache_file"
23171 fi
23172 fi
23173 rm -f confcache
23174
23175 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23176 # Let make expand exec_prefix.
23177 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23178
23179 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23180 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23181 # trailing colons and then remove the whole line if VPATH becomes empty
23182 # (actually we leave an empty line to preserve line numbers).
23183 if test "x$srcdir" = x.; then
23184 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23185 s/:*\$(srcdir):*/:/;
23186 s/:*\${srcdir}:*/:/;
23187 s/:*@srcdir@:*/:/;
23188 s/^\([^=]*=[ ]*\):*/\1/;
23189 s/:*$//;
23190 s/^[^=]*=[ ]*$//;
23191 }'
23192 fi
23193
23194 DEFS=-DHAVE_CONFIG_H
23195
23196 ac_libobjs=
23197 ac_ltlibobjs=
23198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23199 # 1. Remove the extension, and $U if already installed.
23200 ac_i=`echo "$ac_i" |
23201 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23202 # 2. Add them.
23203 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23204 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23205 done
23206 LIBOBJS=$ac_libobjs
23207
23208 LTLIBOBJS=$ac_ltlibobjs
23209
23210
23211
23212 : ${CONFIG_STATUS=./config.status}
23213 ac_clean_files_save=$ac_clean_files
23214 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23215 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23216 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23217 cat >$CONFIG_STATUS <<_ACEOF
23218 #! $SHELL
23219 # Generated by $as_me.
23220 # Run this file to recreate the current configuration.
23221 # Compiler output produced by configure, useful for debugging
23222 # configure, is in config.log if it exists.
23223
23224 debug=false
23225 ac_cs_recheck=false
23226 ac_cs_silent=false
23227 SHELL=\${CONFIG_SHELL-$SHELL}
23228 _ACEOF
23229
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23231 ## --------------------- ##
23232 ## M4sh Initialization. ##
23233 ## --------------------- ##
23234
23235 # Be Bourne compatible
23236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23237 emulate sh
23238 NULLCMD=:
23239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23240 # is contrary to our usage. Disable this feature.
23241 alias -g '${1+"$@"}'='"$@"'
23242 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23243 set -o posix
23244 fi
23245 DUALCASE=1; export DUALCASE # for MKS sh
23246
23247 # Support unset when possible.
23248 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23249 as_unset=unset
23250 else
23251 as_unset=false
23252 fi
23253
23254
23255 # Work around bugs in pre-3.0 UWIN ksh.
23256 $as_unset ENV MAIL MAILPATH
23257 PS1='$ '
23258 PS2='> '
23259 PS4='+ '
23260
23261 # NLS nuisances.
23262 for as_var in \
23263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23265 LC_TELEPHONE LC_TIME
23266 do
23267 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23268 eval $as_var=C; export $as_var
23269 else
23270 $as_unset $as_var
23271 fi
23272 done
23273
23274 # Required to use basename.
23275 if expr a : '\(a\)' >/dev/null 2>&1; then
23276 as_expr=expr
23277 else
23278 as_expr=false
23279 fi
23280
23281 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23282 as_basename=basename
23283 else
23284 as_basename=false
23285 fi
23286
23287
23288 # Name of the executable.
23289 as_me=`$as_basename "$0" ||
23290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23291 X"$0" : 'X\(//\)$' \| \
23292 X"$0" : 'X\(/\)$' \| \
23293 . : '\(.\)' 2>/dev/null ||
23294 echo X/"$0" |
23295 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23296 /^X\/\(\/\/\)$/{ s//\1/; q; }
23297 /^X\/\(\/\).*/{ s//\1/; q; }
23298 s/.*/./; q'`
23299
23300
23301 # PATH needs CR, and LINENO needs CR and PATH.
23302 # Avoid depending upon Character Ranges.
23303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23306 as_cr_digits='0123456789'
23307 as_cr_alnum=$as_cr_Letters$as_cr_digits
23308
23309 # The user is always right.
23310 if test "${PATH_SEPARATOR+set}" != set; then
23311 echo "#! /bin/sh" >conf$$.sh
23312 echo "exit 0" >>conf$$.sh
23313 chmod +x conf$$.sh
23314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23315 PATH_SEPARATOR=';'
23316 else
23317 PATH_SEPARATOR=:
23318 fi
23319 rm -f conf$$.sh
23320 fi
23321
23322
23323 as_lineno_1=$LINENO
23324 as_lineno_2=$LINENO
23325 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23326 test "x$as_lineno_1" != "x$as_lineno_2" &&
23327 test "x$as_lineno_3" = "x$as_lineno_2" || {
23328 # Find who we are. Look in the path if we contain no path at all
23329 # relative or not.
23330 case $0 in
23331 *[\\/]* ) as_myself=$0 ;;
23332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23333 for as_dir in $PATH
23334 do
23335 IFS=$as_save_IFS
23336 test -z "$as_dir" && as_dir=.
23337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23338 done
23339
23340 ;;
23341 esac
23342 # We did not find ourselves, most probably we were run as `sh COMMAND'
23343 # in which case we are not to be found in the path.
23344 if test "x$as_myself" = x; then
23345 as_myself=$0
23346 fi
23347 if test ! -f "$as_myself"; then
23348 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23349 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23350 { (exit 1); exit 1; }; }
23351 fi
23352 case $CONFIG_SHELL in
23353 '')
23354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23355 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23356 do
23357 IFS=$as_save_IFS
23358 test -z "$as_dir" && as_dir=.
23359 for as_base in sh bash ksh sh5; do
23360 case $as_dir in
23361 /*)
23362 if ("$as_dir/$as_base" -c '
23363 as_lineno_1=$LINENO
23364 as_lineno_2=$LINENO
23365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23366 test "x$as_lineno_1" != "x$as_lineno_2" &&
23367 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23368 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23369 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23370 CONFIG_SHELL=$as_dir/$as_base
23371 export CONFIG_SHELL
23372 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23373 fi;;
23374 esac
23375 done
23376 done
23377 ;;
23378 esac
23379
23380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23381 # uniformly replaced by the line number. The first 'sed' inserts a
23382 # line-number line before each line; the second 'sed' does the real
23383 # work. The second script uses 'N' to pair each line-number line
23384 # with the numbered line, and appends trailing '-' during
23385 # substitution so that $LINENO is not a special case at line end.
23386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23387 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23388 sed '=' <$as_myself |
23389 sed '
23390 N
23391 s,$,-,
23392 : loop
23393 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23394 t loop
23395 s,-$,,
23396 s,^['$as_cr_digits']*\n,,
23397 ' >$as_me.lineno &&
23398 chmod +x $as_me.lineno ||
23399 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23400 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23401 { (exit 1); exit 1; }; }
23402
23403 # Don't try to exec as it changes $[0], causing all sort of problems
23404 # (the dirname of $[0] is not the place where we might find the
23405 # original and so on. Autoconf is especially sensible to this).
23406 . ./$as_me.lineno
23407 # Exit status is that of the last command.
23408 exit
23409 }
23410
23411
23412 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23413 *c*,-n*) ECHO_N= ECHO_C='
23414 ' ECHO_T=' ' ;;
23415 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23416 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23417 esac
23418
23419 if expr a : '\(a\)' >/dev/null 2>&1; then
23420 as_expr=expr
23421 else
23422 as_expr=false
23423 fi
23424
23425 rm -f conf$$ conf$$.exe conf$$.file
23426 echo >conf$$.file
23427 if ln -s conf$$.file conf$$ 2>/dev/null; then
23428 # We could just check for DJGPP; but this test a) works b) is more generic
23429 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23430 if test -f conf$$.exe; then
23431 # Don't use ln at all; we don't have any links
23432 as_ln_s='cp -p'
23433 else
23434 as_ln_s='ln -s'
23435 fi
23436 elif ln conf$$.file conf$$ 2>/dev/null; then
23437 as_ln_s=ln
23438 else
23439 as_ln_s='cp -p'
23440 fi
23441 rm -f conf$$ conf$$.exe conf$$.file
23442
23443 if mkdir -p . 2>/dev/null; then
23444 as_mkdir_p=:
23445 else
23446 test -d ./-p && rmdir ./-p
23447 as_mkdir_p=false
23448 fi
23449
23450 as_executable_p="test -f"
23451
23452 # Sed expression to map a string onto a valid CPP name.
23453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23454
23455 # Sed expression to map a string onto a valid variable name.
23456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23457
23458
23459 # IFS
23460 # We need space, tab and new line, in precisely that order.
23461 as_nl='
23462 '
23463 IFS=" $as_nl"
23464
23465 # CDPATH.
23466 $as_unset CDPATH
23467
23468 exec 6>&1
23469
23470 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23471 # report actual input values of CONFIG_FILES etc. instead of their
23472 # values after options handling. Logging --version etc. is OK.
23473 exec 5>>config.log
23474 {
23475 echo
23476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23477 ## Running $as_me. ##
23478 _ASBOX
23479 } >&5
23480 cat >&5 <<_CSEOF
23481
23482 This file was extended by $as_me, which was
23483 generated by GNU Autoconf 2.59. Invocation command line was
23484
23485 CONFIG_FILES = $CONFIG_FILES
23486 CONFIG_HEADERS = $CONFIG_HEADERS
23487 CONFIG_LINKS = $CONFIG_LINKS
23488 CONFIG_COMMANDS = $CONFIG_COMMANDS
23489 $ $0 $@
23490
23491 _CSEOF
23492 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23493 echo >&5
23494 _ACEOF
23495
23496 # Files that config.status was made for.
23497 if test -n "$ac_config_files"; then
23498 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23499 fi
23500
23501 if test -n "$ac_config_headers"; then
23502 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23503 fi
23504
23505 if test -n "$ac_config_links"; then
23506 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23507 fi
23508
23509 if test -n "$ac_config_commands"; then
23510 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23511 fi
23512
23513 cat >>$CONFIG_STATUS <<\_ACEOF
23514
23515 ac_cs_usage="\
23516 \`$as_me' instantiates files from templates according to the
23517 current configuration.
23518
23519 Usage: $0 [OPTIONS] [FILE]...
23520
23521 -h, --help print this help, then exit
23522 -V, --version print version number, then exit
23523 -q, --quiet do not print progress messages
23524 -d, --debug don't remove temporary files
23525 --recheck update $as_me by reconfiguring in the same conditions
23526 --file=FILE[:TEMPLATE]
23527 instantiate the configuration file FILE
23528 --header=FILE[:TEMPLATE]
23529 instantiate the configuration header FILE
23530
23531 Configuration files:
23532 $config_files
23533
23534 Configuration headers:
23535 $config_headers
23536
23537 Configuration commands:
23538 $config_commands
23539
23540 Report bugs to <bug-autoconf@gnu.org>."
23541 _ACEOF
23542
23543 cat >>$CONFIG_STATUS <<_ACEOF
23544 ac_cs_version="\\
23545 config.status
23546 configured by $0, generated by GNU Autoconf 2.59,
23547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23548
23549 Copyright (C) 2003 Free Software Foundation, Inc.
23550 This config.status script is free software; the Free Software Foundation
23551 gives unlimited permission to copy, distribute and modify it."
23552 srcdir=$srcdir
23553 INSTALL="$INSTALL"
23554 _ACEOF
23555
23556 cat >>$CONFIG_STATUS <<\_ACEOF
23557 # If no file are specified by the user, then we need to provide default
23558 # value. By we need to know if files were specified by the user.
23559 ac_need_defaults=:
23560 while test $# != 0
23561 do
23562 case $1 in
23563 --*=*)
23564 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23565 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23566 ac_shift=:
23567 ;;
23568 -*)
23569 ac_option=$1
23570 ac_optarg=$2
23571 ac_shift=shift
23572 ;;
23573 *) # This is not an option, so the user has probably given explicit
23574 # arguments.
23575 ac_option=$1
23576 ac_need_defaults=false;;
23577 esac
23578
23579 case $ac_option in
23580 # Handling of the options.
23581 _ACEOF
23582 cat >>$CONFIG_STATUS <<\_ACEOF
23583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23584 ac_cs_recheck=: ;;
23585 --version | --vers* | -V )
23586 echo "$ac_cs_version"; exit 0 ;;
23587 --he | --h)
23588 # Conflict between --help and --header
23589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23590 Try \`$0 --help' for more information." >&5
23591 echo "$as_me: error: ambiguous option: $1
23592 Try \`$0 --help' for more information." >&2;}
23593 { (exit 1); exit 1; }; };;
23594 --help | --hel | -h )
23595 echo "$ac_cs_usage"; exit 0 ;;
23596 --debug | --d* | -d )
23597 debug=: ;;
23598 --file | --fil | --fi | --f )
23599 $ac_shift
23600 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23601 ac_need_defaults=false;;
23602 --header | --heade | --head | --hea )
23603 $ac_shift
23604 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23605 ac_need_defaults=false;;
23606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23608 ac_cs_silent=: ;;
23609
23610 # This is an error.
23611 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23612 Try \`$0 --help' for more information." >&5
23613 echo "$as_me: error: unrecognized option: $1
23614 Try \`$0 --help' for more information." >&2;}
23615 { (exit 1); exit 1; }; } ;;
23616
23617 *) ac_config_targets="$ac_config_targets $1" ;;
23618
23619 esac
23620 shift
23621 done
23622
23623 ac_configure_extra_args=
23624
23625 if $ac_cs_silent; then
23626 exec 6>/dev/null
23627 ac_configure_extra_args="$ac_configure_extra_args --silent"
23628 fi
23629
23630 _ACEOF
23631 cat >>$CONFIG_STATUS <<_ACEOF
23632 if \$ac_cs_recheck; then
23633 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23634 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23635 fi
23636
23637 _ACEOF
23638
23639 cat >>$CONFIG_STATUS <<_ACEOF
23640 #
23641 # INIT-COMMANDS section.
23642 #
23643
23644 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23645
23646 _ACEOF
23647
23648
23649
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 for ac_config_target in $ac_config_targets
23652 do
23653 case "$ac_config_target" in
23654 # Handling of arguments.
23655 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23656 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23657 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23658 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23659 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23660 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23661 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23662 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23663 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23664 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23665 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23666 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23669 { (exit 1); exit 1; }; };;
23670 esac
23671 done
23672
23673 # If the user did not use the arguments to specify the items to instantiate,
23674 # then the envvar interface is used. Set only those that are not.
23675 # We use the long form for the default assignment because of an extremely
23676 # bizarre bug on SunOS 4.1.3.
23677 if $ac_need_defaults; then
23678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23681 fi
23682
23683 # Have a temporary directory for convenience. Make it in the build tree
23684 # simply because there is no reason to put it here, and in addition,
23685 # creating and moving files from /tmp can sometimes cause problems.
23686 # Create a temporary directory, and hook for its removal unless debugging.
23687 $debug ||
23688 {
23689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23690 trap '{ (exit 1); exit 1; }' 1 2 13 15
23691 }
23692
23693 # Create a (secure) tmp directory for tmp files.
23694
23695 {
23696 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23697 test -n "$tmp" && test -d "$tmp"
23698 } ||
23699 {
23700 tmp=./confstat$$-$RANDOM
23701 (umask 077 && mkdir $tmp)
23702 } ||
23703 {
23704 echo "$me: cannot create a temporary directory in ." >&2
23705 { (exit 1); exit 1; }
23706 }
23707
23708 _ACEOF
23709
23710 cat >>$CONFIG_STATUS <<_ACEOF
23711
23712 #
23713 # CONFIG_FILES section.
23714 #
23715
23716 # No need to generate the scripts if there are no CONFIG_FILES.
23717 # This happens for instance when ./config.status config.h
23718 if test -n "\$CONFIG_FILES"; then
23719 # Protect against being on the right side of a sed subst in config.status.
23720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23722 s,@SHELL@,$SHELL,;t t
23723 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23724 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23725 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23726 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23727 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23728 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23729 s,@exec_prefix@,$exec_prefix,;t t
23730 s,@prefix@,$prefix,;t t
23731 s,@program_transform_name@,$program_transform_name,;t t
23732 s,@bindir@,$bindir,;t t
23733 s,@sbindir@,$sbindir,;t t
23734 s,@libexecdir@,$libexecdir,;t t
23735 s,@datadir@,$datadir,;t t
23736 s,@sysconfdir@,$sysconfdir,;t t
23737 s,@sharedstatedir@,$sharedstatedir,;t t
23738 s,@localstatedir@,$localstatedir,;t t
23739 s,@libdir@,$libdir,;t t
23740 s,@includedir@,$includedir,;t t
23741 s,@oldincludedir@,$oldincludedir,;t t
23742 s,@infodir@,$infodir,;t t
23743 s,@mandir@,$mandir,;t t
23744 s,@build_alias@,$build_alias,;t t
23745 s,@host_alias@,$host_alias,;t t
23746 s,@target_alias@,$target_alias,;t t
23747 s,@DEFS@,$DEFS,;t t
23748 s,@ECHO_C@,$ECHO_C,;t t
23749 s,@ECHO_N@,$ECHO_N,;t t
23750 s,@ECHO_T@,$ECHO_T,;t t
23751 s,@LIBS@,$LIBS,;t t
23752 s,@MAINT@,$MAINT,;t t
23753 s,@build@,$build,;t t
23754 s,@build_cpu@,$build_cpu,;t t
23755 s,@build_vendor@,$build_vendor,;t t
23756 s,@build_os@,$build_os,;t t
23757 s,@host@,$host,;t t
23758 s,@host_cpu@,$host_cpu,;t t
23759 s,@host_vendor@,$host_vendor,;t t
23760 s,@host_os@,$host_os,;t t
23761 s,@CC@,$CC,;t t
23762 s,@CFLAGS@,$CFLAGS,;t t
23763 s,@LDFLAGS@,$LDFLAGS,;t t
23764 s,@CPPFLAGS@,$CPPFLAGS,;t t
23765 s,@ac_ct_CC@,$ac_ct_CC,;t t
23766 s,@EXEEXT@,$EXEEXT,;t t
23767 s,@OBJEXT@,$OBJEXT,;t t
23768 s,@CPP@,$CPP,;t t
23769 s,@EGREP@,$EGREP,;t t
23770 s,@LN_S@,$LN_S,;t t
23771 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23772 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23773 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23774 s,@RANLIB@,$RANLIB,;t t
23775 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23776 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23777 s,@GZIP_PROG@,$GZIP_PROG,;t t
23778 s,@LIBSOUND@,$LIBSOUND,;t t
23779 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23780 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23781 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23782 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23783 s,@SET_MAKE@,$SET_MAKE,;t t
23784 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23785 s,@GTK_LIBS@,$GTK_LIBS,;t t
23786 s,@ALLOCA@,$ALLOCA,;t t
23787 s,@liblockfile@,$liblockfile,;t t
23788 s,@LIBOBJS@,$LIBOBJS,;t t
23789 s,@NEED_SETGID@,$NEED_SETGID,;t t
23790 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23791 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23792 s,@GETOPT_H@,$GETOPT_H,;t t
23793 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23794 s,@version@,$version,;t t
23795 s,@configuration@,$configuration,;t t
23796 s,@canonical@,$canonical,;t t
23797 s,@srcdir@,$srcdir,;t t
23798 s,@lispdir@,$lispdir,;t t
23799 s,@locallisppath@,$locallisppath,;t t
23800 s,@lisppath@,$lisppath,;t t
23801 s,@x_default_search_path@,$x_default_search_path,;t t
23802 s,@etcdir@,$etcdir,;t t
23803 s,@archlibdir@,$archlibdir,;t t
23804 s,@docdir@,$docdir,;t t
23805 s,@bitmapdir@,$bitmapdir,;t t
23806 s,@gamedir@,$gamedir,;t t
23807 s,@gameuser@,$gameuser,;t t
23808 s,@c_switch_system@,$c_switch_system,;t t
23809 s,@c_switch_machine@,$c_switch_machine,;t t
23810 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23811 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23812 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23813 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23814 s,@machfile@,$machfile,;t t
23815 s,@opsysfile@,$opsysfile,;t t
23816 s,@carbon_appdir@,$carbon_appdir,;t t
23817 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23818 CEOF
23819
23820 _ACEOF
23821
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 # Split the substitutions into bite-sized pieces for seds with
23824 # small command number limits, like on Digital OSF/1 and HP-UX.
23825 ac_max_sed_lines=48
23826 ac_sed_frag=1 # Number of current file.
23827 ac_beg=1 # First line for current file.
23828 ac_end=$ac_max_sed_lines # Line after last line for current file.
23829 ac_more_lines=:
23830 ac_sed_cmds=
23831 while $ac_more_lines; do
23832 if test $ac_beg -gt 1; then
23833 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23834 else
23835 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23836 fi
23837 if test ! -s $tmp/subs.frag; then
23838 ac_more_lines=false
23839 else
23840 # The purpose of the label and of the branching condition is to
23841 # speed up the sed processing (if there are no `@' at all, there
23842 # is no need to browse any of the substitutions).
23843 # These are the two extra sed commands mentioned above.
23844 (echo ':t
23845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23846 if test -z "$ac_sed_cmds"; then
23847 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23848 else
23849 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23850 fi
23851 ac_sed_frag=`expr $ac_sed_frag + 1`
23852 ac_beg=$ac_end
23853 ac_end=`expr $ac_end + $ac_max_sed_lines`
23854 fi
23855 done
23856 if test -z "$ac_sed_cmds"; then
23857 ac_sed_cmds=cat
23858 fi
23859 fi # test -n "$CONFIG_FILES"
23860
23861 _ACEOF
23862 cat >>$CONFIG_STATUS <<\_ACEOF
23863 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23865 case $ac_file in
23866 - | *:- | *:-:* ) # input from stdin
23867 cat >$tmp/stdin
23868 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23870 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23871 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23872 * ) ac_file_in=$ac_file.in ;;
23873 esac
23874
23875 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23878 X"$ac_file" : 'X\(//\)[^/]' \| \
23879 X"$ac_file" : 'X\(//\)$' \| \
23880 X"$ac_file" : 'X\(/\)' \| \
23881 . : '\(.\)' 2>/dev/null ||
23882 echo X"$ac_file" |
23883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23885 /^X\(\/\/\)$/{ s//\1/; q; }
23886 /^X\(\/\).*/{ s//\1/; q; }
23887 s/.*/./; q'`
23888 { if $as_mkdir_p; then
23889 mkdir -p "$ac_dir"
23890 else
23891 as_dir="$ac_dir"
23892 as_dirs=
23893 while test ! -d "$as_dir"; do
23894 as_dirs="$as_dir $as_dirs"
23895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23897 X"$as_dir" : 'X\(//\)[^/]' \| \
23898 X"$as_dir" : 'X\(//\)$' \| \
23899 X"$as_dir" : 'X\(/\)' \| \
23900 . : '\(.\)' 2>/dev/null ||
23901 echo X"$as_dir" |
23902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23904 /^X\(\/\/\)$/{ s//\1/; q; }
23905 /^X\(\/\).*/{ s//\1/; q; }
23906 s/.*/./; q'`
23907 done
23908 test ! -n "$as_dirs" || mkdir $as_dirs
23909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23911 { (exit 1); exit 1; }; }; }
23912
23913 ac_builddir=.
23914
23915 if test "$ac_dir" != .; then
23916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23917 # A "../" for each directory in $ac_dir_suffix.
23918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23919 else
23920 ac_dir_suffix= ac_top_builddir=
23921 fi
23922
23923 case $srcdir in
23924 .) # No --srcdir option. We are building in place.
23925 ac_srcdir=.
23926 if test -z "$ac_top_builddir"; then
23927 ac_top_srcdir=.
23928 else
23929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23930 fi ;;
23931 [\\/]* | ?:[\\/]* ) # Absolute path.
23932 ac_srcdir=$srcdir$ac_dir_suffix;
23933 ac_top_srcdir=$srcdir ;;
23934 *) # Relative path.
23935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23937 esac
23938
23939 # Do not use `cd foo && pwd` to compute absolute paths, because
23940 # the directories may not exist.
23941 case `pwd` in
23942 .) ac_abs_builddir="$ac_dir";;
23943 *)
23944 case "$ac_dir" in
23945 .) ac_abs_builddir=`pwd`;;
23946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23948 esac;;
23949 esac
23950 case $ac_abs_builddir in
23951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23952 *)
23953 case ${ac_top_builddir}. in
23954 .) ac_abs_top_builddir=$ac_abs_builddir;;
23955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23957 esac;;
23958 esac
23959 case $ac_abs_builddir in
23960 .) ac_abs_srcdir=$ac_srcdir;;
23961 *)
23962 case $ac_srcdir in
23963 .) ac_abs_srcdir=$ac_abs_builddir;;
23964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23966 esac;;
23967 esac
23968 case $ac_abs_builddir in
23969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23970 *)
23971 case $ac_top_srcdir in
23972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23975 esac;;
23976 esac
23977
23978
23979 case $INSTALL in
23980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23981 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23982 esac
23983
23984 if test x"$ac_file" != x-; then
23985 { echo "$as_me:$LINENO: creating $ac_file" >&5
23986 echo "$as_me: creating $ac_file" >&6;}
23987 rm -f "$ac_file"
23988 fi
23989 # Let's still pretend it is `configure' which instantiates (i.e., don't
23990 # use $as_me), people would be surprised to read:
23991 # /* config.h. Generated by config.status. */
23992 if test x"$ac_file" = x-; then
23993 configure_input=
23994 else
23995 configure_input="$ac_file. "
23996 fi
23997 configure_input=$configure_input"Generated from `echo $ac_file_in |
23998 sed 's,.*/,,'` by configure."
23999
24000 # First look for the input files in the build tree, otherwise in the
24001 # src tree.
24002 ac_file_inputs=`IFS=:
24003 for f in $ac_file_in; do
24004 case $f in
24005 -) echo $tmp/stdin ;;
24006 [\\/$]*)
24007 # Absolute (can't be DOS-style, as IFS=:)
24008 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24009 echo "$as_me: error: cannot find input file: $f" >&2;}
24010 { (exit 1); exit 1; }; }
24011 echo "$f";;
24012 *) # Relative
24013 if test -f "$f"; then
24014 # Build tree
24015 echo "$f"
24016 elif test -f "$srcdir/$f"; then
24017 # Source tree
24018 echo "$srcdir/$f"
24019 else
24020 # /dev/null tree
24021 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24022 echo "$as_me: error: cannot find input file: $f" >&2;}
24023 { (exit 1); exit 1; }; }
24024 fi;;
24025 esac
24026 done` || { (exit 1); exit 1; }
24027 _ACEOF
24028 cat >>$CONFIG_STATUS <<_ACEOF
24029 sed "$ac_vpsub
24030 $extrasub
24031 _ACEOF
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24033 :t
24034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24035 s,@configure_input@,$configure_input,;t t
24036 s,@srcdir@,$ac_srcdir,;t t
24037 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24038 s,@top_srcdir@,$ac_top_srcdir,;t t
24039 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24040 s,@builddir@,$ac_builddir,;t t
24041 s,@abs_builddir@,$ac_abs_builddir,;t t
24042 s,@top_builddir@,$ac_top_builddir,;t t
24043 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24044 s,@INSTALL@,$ac_INSTALL,;t t
24045 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24046 rm -f $tmp/stdin
24047 if test x"$ac_file" != x-; then
24048 mv $tmp/out $ac_file
24049 else
24050 cat $tmp/out
24051 rm -f $tmp/out
24052 fi
24053
24054 done
24055 _ACEOF
24056 cat >>$CONFIG_STATUS <<\_ACEOF
24057
24058 #
24059 # CONFIG_HEADER section.
24060 #
24061
24062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24064 #
24065 # ac_d sets the value in "#define NAME VALUE" lines.
24066 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24067 ac_dB='[ ].*$,\1#\2'
24068 ac_dC=' '
24069 ac_dD=',;t'
24070 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24071 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24072 ac_uB='$,\1#\2define\3'
24073 ac_uC=' '
24074 ac_uD=',;t'
24075
24076 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24078 case $ac_file in
24079 - | *:- | *:-:* ) # input from stdin
24080 cat >$tmp/stdin
24081 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24083 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24085 * ) ac_file_in=$ac_file.in ;;
24086 esac
24087
24088 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24089 echo "$as_me: creating $ac_file" >&6;}
24090
24091 # First look for the input files in the build tree, otherwise in the
24092 # src tree.
24093 ac_file_inputs=`IFS=:
24094 for f in $ac_file_in; do
24095 case $f in
24096 -) echo $tmp/stdin ;;
24097 [\\/$]*)
24098 # Absolute (can't be DOS-style, as IFS=:)
24099 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24100 echo "$as_me: error: cannot find input file: $f" >&2;}
24101 { (exit 1); exit 1; }; }
24102 # Do quote $f, to prevent DOS paths from being IFS'd.
24103 echo "$f";;
24104 *) # Relative
24105 if test -f "$f"; then
24106 # Build tree
24107 echo "$f"
24108 elif test -f "$srcdir/$f"; then
24109 # Source tree
24110 echo "$srcdir/$f"
24111 else
24112 # /dev/null tree
24113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24114 echo "$as_me: error: cannot find input file: $f" >&2;}
24115 { (exit 1); exit 1; }; }
24116 fi;;
24117 esac
24118 done` || { (exit 1); exit 1; }
24119 # Remove the trailing spaces.
24120 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24121
24122 _ACEOF
24123
24124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24125 # `conftest.undefs', that substitutes the proper values into
24126 # config.h.in to produce config.h. The first handles `#define'
24127 # templates, and the second `#undef' templates.
24128 # And first: Protect against being on the right side of a sed subst in
24129 # config.status. Protect against being in an unquoted here document
24130 # in config.status.
24131 rm -f conftest.defines conftest.undefs
24132 # Using a here document instead of a string reduces the quoting nightmare.
24133 # Putting comments in sed scripts is not portable.
24134 #
24135 # `end' is used to avoid that the second main sed command (meant for
24136 # 0-ary CPP macros) applies to n-ary macro definitions.
24137 # See the Autoconf documentation for `clear'.
24138 cat >confdef2sed.sed <<\_ACEOF
24139 s/[\\&,]/\\&/g
24140 s,[\\$`],\\&,g
24141 t clear
24142 : clear
24143 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24144 t end
24145 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24146 : end
24147 _ACEOF
24148 # If some macros were called several times there might be several times
24149 # the same #defines, which is useless. Nevertheless, we may not want to
24150 # sort them, since we want the *last* AC-DEFINE to be honored.
24151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24153 rm -f confdef2sed.sed
24154
24155 # This sed command replaces #undef with comments. This is necessary, for
24156 # example, in the case of _POSIX_SOURCE, which is predefined and required
24157 # on some systems where configure will not decide to define it.
24158 cat >>conftest.undefs <<\_ACEOF
24159 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24160 _ACEOF
24161
24162 # Break up conftest.defines because some shells have a limit on the size
24163 # of here documents, and old seds have small limits too (100 cmds).
24164 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24165 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24166 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24167 echo ' :' >>$CONFIG_STATUS
24168 rm -f conftest.tail
24169 while grep . conftest.defines >/dev/null
24170 do
24171 # Write a limited-size here document to $tmp/defines.sed.
24172 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24173 # Speed up: don't consider the non `#define' lines.
24174 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24175 # Work around the forget-to-reset-the-flag bug.
24176 echo 't clr' >>$CONFIG_STATUS
24177 echo ': clr' >>$CONFIG_STATUS
24178 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24179 echo 'CEOF
24180 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24181 rm -f $tmp/in
24182 mv $tmp/out $tmp/in
24183 ' >>$CONFIG_STATUS
24184 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24185 rm -f conftest.defines
24186 mv conftest.tail conftest.defines
24187 done
24188 rm -f conftest.defines
24189 echo ' fi # grep' >>$CONFIG_STATUS
24190 echo >>$CONFIG_STATUS
24191
24192 # Break up conftest.undefs because some shells have a limit on the size
24193 # of here documents, and old seds have small limits too (100 cmds).
24194 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24195 rm -f conftest.tail
24196 while grep . conftest.undefs >/dev/null
24197 do
24198 # Write a limited-size here document to $tmp/undefs.sed.
24199 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24200 # Speed up: don't consider the non `#undef'
24201 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24202 # Work around the forget-to-reset-the-flag bug.
24203 echo 't clr' >>$CONFIG_STATUS
24204 echo ': clr' >>$CONFIG_STATUS
24205 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24206 echo 'CEOF
24207 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24208 rm -f $tmp/in
24209 mv $tmp/out $tmp/in
24210 ' >>$CONFIG_STATUS
24211 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24212 rm -f conftest.undefs
24213 mv conftest.tail conftest.undefs
24214 done
24215 rm -f conftest.undefs
24216
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 # Let's still pretend it is `configure' which instantiates (i.e., don't
24219 # use $as_me), people would be surprised to read:
24220 # /* config.h. Generated by config.status. */
24221 if test x"$ac_file" = x-; then
24222 echo "/* Generated by configure. */" >$tmp/config.h
24223 else
24224 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24225 fi
24226 cat $tmp/in >>$tmp/config.h
24227 rm -f $tmp/in
24228 if test x"$ac_file" != x-; then
24229 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24231 echo "$as_me: $ac_file is unchanged" >&6;}
24232 else
24233 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24235 X"$ac_file" : 'X\(//\)[^/]' \| \
24236 X"$ac_file" : 'X\(//\)$' \| \
24237 X"$ac_file" : 'X\(/\)' \| \
24238 . : '\(.\)' 2>/dev/null ||
24239 echo X"$ac_file" |
24240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24242 /^X\(\/\/\)$/{ s//\1/; q; }
24243 /^X\(\/\).*/{ s//\1/; q; }
24244 s/.*/./; q'`
24245 { if $as_mkdir_p; then
24246 mkdir -p "$ac_dir"
24247 else
24248 as_dir="$ac_dir"
24249 as_dirs=
24250 while test ! -d "$as_dir"; do
24251 as_dirs="$as_dir $as_dirs"
24252 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24254 X"$as_dir" : 'X\(//\)[^/]' \| \
24255 X"$as_dir" : 'X\(//\)$' \| \
24256 X"$as_dir" : 'X\(/\)' \| \
24257 . : '\(.\)' 2>/dev/null ||
24258 echo X"$as_dir" |
24259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24261 /^X\(\/\/\)$/{ s//\1/; q; }
24262 /^X\(\/\).*/{ s//\1/; q; }
24263 s/.*/./; q'`
24264 done
24265 test ! -n "$as_dirs" || mkdir $as_dirs
24266 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24268 { (exit 1); exit 1; }; }; }
24269
24270 rm -f $ac_file
24271 mv $tmp/config.h $ac_file
24272 fi
24273 else
24274 cat $tmp/config.h
24275 rm -f $tmp/config.h
24276 fi
24277 done
24278 _ACEOF
24279 cat >>$CONFIG_STATUS <<\_ACEOF
24280
24281 #
24282 # CONFIG_COMMANDS section.
24283 #
24284 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24285 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24286 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24287 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24288 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24289 X"$ac_dest" : 'X\(//\)[^/]' \| \
24290 X"$ac_dest" : 'X\(//\)$' \| \
24291 X"$ac_dest" : 'X\(/\)' \| \
24292 . : '\(.\)' 2>/dev/null ||
24293 echo X"$ac_dest" |
24294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24296 /^X\(\/\/\)$/{ s//\1/; q; }
24297 /^X\(\/\).*/{ s//\1/; q; }
24298 s/.*/./; q'`
24299 { if $as_mkdir_p; then
24300 mkdir -p "$ac_dir"
24301 else
24302 as_dir="$ac_dir"
24303 as_dirs=
24304 while test ! -d "$as_dir"; do
24305 as_dirs="$as_dir $as_dirs"
24306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24308 X"$as_dir" : 'X\(//\)[^/]' \| \
24309 X"$as_dir" : 'X\(//\)$' \| \
24310 X"$as_dir" : 'X\(/\)' \| \
24311 . : '\(.\)' 2>/dev/null ||
24312 echo X"$as_dir" |
24313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24315 /^X\(\/\/\)$/{ s//\1/; q; }
24316 /^X\(\/\).*/{ s//\1/; q; }
24317 s/.*/./; q'`
24318 done
24319 test ! -n "$as_dirs" || mkdir $as_dirs
24320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24322 { (exit 1); exit 1; }; }; }
24323
24324 ac_builddir=.
24325
24326 if test "$ac_dir" != .; then
24327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24328 # A "../" for each directory in $ac_dir_suffix.
24329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24330 else
24331 ac_dir_suffix= ac_top_builddir=
24332 fi
24333
24334 case $srcdir in
24335 .) # No --srcdir option. We are building in place.
24336 ac_srcdir=.
24337 if test -z "$ac_top_builddir"; then
24338 ac_top_srcdir=.
24339 else
24340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24341 fi ;;
24342 [\\/]* | ?:[\\/]* ) # Absolute path.
24343 ac_srcdir=$srcdir$ac_dir_suffix;
24344 ac_top_srcdir=$srcdir ;;
24345 *) # Relative path.
24346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24348 esac
24349
24350 # Do not use `cd foo && pwd` to compute absolute paths, because
24351 # the directories may not exist.
24352 case `pwd` in
24353 .) ac_abs_builddir="$ac_dir";;
24354 *)
24355 case "$ac_dir" in
24356 .) ac_abs_builddir=`pwd`;;
24357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24359 esac;;
24360 esac
24361 case $ac_abs_builddir in
24362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24363 *)
24364 case ${ac_top_builddir}. in
24365 .) ac_abs_top_builddir=$ac_abs_builddir;;
24366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24368 esac;;
24369 esac
24370 case $ac_abs_builddir in
24371 .) ac_abs_srcdir=$ac_srcdir;;
24372 *)
24373 case $ac_srcdir in
24374 .) ac_abs_srcdir=$ac_abs_builddir;;
24375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24377 esac;;
24378 esac
24379 case $ac_abs_builddir in
24380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24381 *)
24382 case $ac_top_srcdir in
24383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24386 esac;;
24387 esac
24388
24389
24390 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24391 echo "$as_me: executing $ac_dest commands" >&6;}
24392 case $ac_dest in
24393 default )
24394
24395 ### Make the necessary directories, if they don't exist.
24396 for dir in etc lisp ; do
24397 test -d ${dir} || mkdir ${dir}
24398 done
24399
24400 # Build src/Makefile from ${srcdir}/src/Makefile.c
24401 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24402 # This must be done after src/config.h is built, since we rely on that file.
24403
24404 # Now get this: Some word that is part of the ${srcdir} directory name
24405 # or the ${configuration} value might, just might, happen to be an
24406 # identifier like `sun4' or `i386' or something, and be predefined by
24407 # the C preprocessor to some helpful value like 1, or maybe the empty
24408 # string. Needless to say consequent macro substitutions are less
24409 # than conducive to the makefile finding the correct directory.
24410 undefs="`echo $top_srcdir $configuration $canonical |
24411 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24412 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24413 `"
24414
24415 echo creating src/epaths.h
24416 ${MAKE-make} epaths-force
24417
24418 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24419 # `..' to `. .' unless invoked with -traditional
24420
24421 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24422 CPPFLAGS="$CPPFLAGS -traditional"
24423 fi
24424
24425 echo creating lib-src/Makefile
24426 ( cd lib-src
24427 rm -f junk.c junk1.c junk2.c
24428 sed -e '/start of cpp stuff/q' \
24429 < Makefile.c > junk1.c
24430 sed -e '1,/start of cpp stuff/d'\
24431 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24432 < Makefile.c > junk.c
24433 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24434 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24435 cat junk1.c junk2.c > Makefile.new
24436 rm -f junk.c junk1.c junk2.c
24437 chmod 444 Makefile.new
24438 mv -f Makefile.new Makefile
24439 )
24440
24441 echo creating src/Makefile
24442 ( cd src
24443 rm -f junk.c junk1.c junk2.c
24444 sed -e '/start of cpp stuff/q' \
24445 < Makefile.c > junk1.c
24446 sed -e '1,/start of cpp stuff/d'\
24447 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24448 < Makefile.c > junk.c
24449 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24450 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24451 cat junk1.c junk2.c > Makefile.new
24452 rm -f junk.c junk1.c junk2.c
24453 chmod 444 Makefile.new
24454 mv -f Makefile.new Makefile
24455 )
24456
24457 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24458 echo creating src/.gdbinit
24459 echo source $srcdir/src/.gdbinit > src/.gdbinit
24460 fi
24461
24462 # This is how we know whether to re-run configure in certain cases.
24463 touch src/config.stamp
24464
24465 ;;
24466 esac
24467 done
24468 _ACEOF
24469
24470 cat >>$CONFIG_STATUS <<\_ACEOF
24471
24472 { (exit 0); exit 0; }
24473 _ACEOF
24474 chmod +x $CONFIG_STATUS
24475 ac_clean_files=$ac_clean_files_save
24476
24477
24478 # configure is writing to config.log, and then calls config.status.
24479 # config.status does its own redirection, appending to config.log.
24480 # Unfortunately, on DOS this fails, as config.log is still kept open
24481 # by configure, so config.status won't be able to write to it; its
24482 # output is simply discarded. So we exec the FD to /dev/null,
24483 # effectively closing config.log, so it can be properly (re)opened and
24484 # appended to by config.status. When coming back to configure, we
24485 # need to make the FD available again.
24486 if test "$no_create" != yes; then
24487 ac_cs_success=:
24488 ac_config_status_args=
24489 test "$silent" = yes &&
24490 ac_config_status_args="$ac_config_status_args --quiet"
24491 exec 5>/dev/null
24492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24493 exec 5>>config.log
24494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24495 # would make configure fail if this is the last instruction.
24496 $ac_cs_success || { (exit 1); exit 1; }
24497 fi
24498
24499