Cygwin support patch.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS 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'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
847 fi
848
849 if test -n "$ac_init_help"; then
850
851 cat <<\_ACEOF
852
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
859
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
883
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 fi
951 cd $ac_popdir
952 done
953 fi
954
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
958
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
973
974 $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1033 do
1034 for ac_arg
1035 do
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 2)
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1059 ;;
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1062 fi
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1066 ;;
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1080 {
1081 echo
1082
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1090 {
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 ;;
1098 *)
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ;;
1102 esac;
1103 }
1104 echo
1105
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1113 do
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1118
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1127 do
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1132 fi
1133
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1143 fi
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1151 ' 0
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1156
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1161
1162 # Predefined preprocessor variables.
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1187
1188
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 fi
1197 fi
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1204 fi
1205 done
1206
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1217 fi
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1222 fi
1223
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1243 *)
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1265 fi
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1273 fi
1274
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1300
1301
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1314
1315
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1324
1325 gameuser=games
1326
1327
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1331
1332 fi;
1333
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1341
1342 else :
1343 fi
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1348
1349 fi;
1350
1351
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1358
1359 fi;
1360
1361
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1371
1372 fi
1373 fi
1374
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1378
1379 fi;
1380
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1384
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1388
1389 fi;
1390
1391
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1395
1396 fi;
1397
1398
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1409 * )
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1417 ;;
1418 esac
1419 with_x_toolkit=$val
1420
1421 fi;
1422
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1426
1427 fi;
1428
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1432
1433 fi;
1434
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1438
1439 fi;
1440
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1444
1445 fi;
1446
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1450
1451 fi;
1452
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1456
1457 fi;
1458
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1462
1463 fi;
1464
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1468
1469 fi;
1470
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1474
1475 fi;
1476
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1480
1481 fi;
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1486 fi;
1487
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493 unset CDPATH
1494 case "${srcdir}" in
1495 /* ) ;;
1496 . )
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1507 fi
1508 ;;
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510 esac
1511
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1527
1528 extrasub='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1536 fi
1537
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1540
1541 ### Canonicalize the configuration name.
1542
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1563 fi
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591 fi
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613 fi
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622 canonical=$host
1623 configuration=${host_alias-$host}
1624
1625
1626
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1630
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1639 ###
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1645 ###
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1649
1650 machine='' opsys='' unported=no
1651 case "${canonical}" in
1652
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1660 ;;
1661
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*)
1669 # This is somewhat bogus.
1670 machine=hp9000s300 ;;
1671 powerpc-apple-netbsd*) machine=macppc ;;
1672 mips-*-netbsd*) machine=pmax ;;
1673 mipsel-*-netbsd*) machine=pmax ;;
1674 mipseb-*-netbsd*) machine=pmax ;;
1675 ns32k-*-netbsd*) machine=ns32000 ;;
1676 powerpc-*-netbsd*) machine=macppc ;;
1677 sparc*-*-netbsd*) machine=sparc ;;
1678 vax-*-netbsd*) machine=vax ;;
1679 arm-*-netbsd*) machine=arm ;;
1680 esac
1681 ;;
1682
1683 ## OpenBSD ports
1684 *-*-openbsd* )
1685 opsys=openbsd
1686 case "${canonical}" in
1687 alpha*-*-openbsd*) machine=alpha ;;
1688 i386-*-openbsd*) machine=intel386 ;;
1689 m68k-*-openbsd*) machine=hp9000s300 ;;
1690 mipsel-*-openbsd*) machine=pmax ;;
1691 ns32k-*-openbsd*) machine=ns32000 ;;
1692 sparc-*-openbsd*) machine=sparc ;;
1693 vax-*-openbsd*) machine=vax ;;
1694 esac
1695 ;;
1696
1697 ## Acorn RISCiX:
1698 arm-acorn-riscix1.1* )
1699 machine=acorn opsys=riscix1-1
1700 ;;
1701 arm-acorn-riscix1.2* | arm-acorn-riscix )
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine=acorn opsys=riscix12
1705 ;;
1706
1707 ## BSDI ports
1708 *-*-bsdi* )
1709 opsys=bsdi
1710 case "${canonical}" in
1711 i[345]86-*-bsdi*) machine=intel386 ;;
1712 sparc-*-bsdi*) machine=sparc ;;
1713 powerpc-*-bsdi*) machine=macppc ;;
1714 esac
1715 case "${canonical}" in
1716 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1717 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1718 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1719 *-*-bsdi3* ) opsys=bsdos3 ;;
1720 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1721 esac
1722 ;;
1723
1724 ## Alliant machines
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1730 fx80-alliant-* )
1731 machine=alliant4 opsys=bsd4-2
1732 ;;
1733 i860-alliant-* )
1734 machine=alliant-2800 opsys=bsd4-3
1735 ;;
1736
1737 ## Alpha (DEC) machines.
1738 alpha*-dec-osf* )
1739 machine=alpha opsys=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1742 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP=/usr/bin/cpp
1748 case "${canonical}" in
1749 alpha*-dec-osf[5-9]*)
1750 opsys=osf5-0 ;;
1751 esac
1752 ;;
1753
1754 alpha*-*-linux-gnu* )
1755 machine=alpha opsys=gnu-linux
1756 ;;
1757
1758 arm*-*-linux-gnu* )
1759 machine=arm opsys=gnu-linux
1760 ;;
1761
1762 ppc-*-linux | \
1763 powerpc-*-linux* )
1764 machine=macppc opsys=gnu-linux
1765 ;;
1766
1767 ## Altos 3068
1768 m68*-altos-sysv* )
1769 machine=altos opsys=usg5-2
1770 ;;
1771
1772 ## Amdahl UTS
1773 580-amdahl-sysv* )
1774 machine=amdahl opsys=usg5-2-2
1775 ;;
1776
1777 ## Apollo, Domain/OS
1778 m68*-apollo-* )
1779 machine=apollo opsys=bsd4-3
1780 ;;
1781
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1783 we32k-att-sysv* )
1784 machine=att3b opsys=usg5-2-2
1785 ;;
1786
1787 ## AT&T 3b1 - The Mighty Unix PC!
1788 m68*-att-sysv* )
1789 machine=7300 opsys=usg5-2-2
1790 ;;
1791
1792 ## Bull dpx20
1793 rs6000-bull-bosx* )
1794 machine=ibmrs6000 opsys=aix3-2
1795 ;;
1796
1797 ## Bull dpx2
1798 m68*-bull-sysv3* )
1799 machine=dpx2 opsys=usg5-3
1800 ;;
1801
1802 ## Bull sps7
1803 m68*-bull-sysv2* )
1804 machine=sps7 opsys=usg5-2
1805 ;;
1806
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1808
1809 ## Celerity
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd* )
1814 machine=celerity opsys=bsd4-2
1815 ;;
1816
1817 ## Clipper
1818 ## What operating systems does this chip run that Emacs has been
1819 ## tested on?
1820 clipper-* )
1821 machine=clipper
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1824 ;;
1825
1826 ## Compaq Nonstop
1827 mips-compaq-nonstopux* )
1828 machine=nonstopux opsys=nonstopux
1829 ;;
1830
1831 ## Convex
1832 *-convex-bsd* | *-convex-convexos* )
1833 machine=convex opsys=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP="cc -E -P"
1836 ;;
1837
1838 ## Cubix QBx/386
1839 i[3456]86-cubix-sysv* )
1840 machine=intel386 opsys=usg5-3
1841 ;;
1842
1843 ## Cydra 5
1844 cydra*-cydrome-sysv* )
1845 machine=cydra5 opsys=usg5-3
1846 ;;
1847
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1855 machine=aviion opsys=dgux4
1856 ;;
1857 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine=aviion opsys=dgux5-4-3
1861 ;;
1862 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1863 machine=aviion opsys=dgux5-4r2
1864 ;;
1865 m88k-dg-dgux* )
1866 machine=aviion opsys=dgux
1867 ;;
1868
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i[345]86-dg-dguxR4* )
1873 machine=aviion-intel opsys=dgux4
1874 ;;
1875
1876 ## DECstations
1877 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1878 machine=pmax opsys=bsd4-2
1879 ;;
1880 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1881 machine=pmax opsys=bsd4-3
1882 ;;
1883 mips-dec-ultrix* )
1884 machine=pmax opsys=ultrix4-3
1885 ;;
1886 mips-dec-osf* )
1887 machine=pmax opsys=osf1
1888 ;;
1889 mips-dec-mach_bsd4.3* )
1890 machine=pmax opsys=mach-bsd4-3
1891 ;;
1892
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv* | m68000-motorola-sysv* )
1895 machine=delta opsys=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1897 then
1898 if test -s /etc/167config
1899 then CC="gnucc -m68040"
1900 else CC="gnucc -m68881"
1901 fi
1902 else
1903 if test -z "`type gcc | grep 'not found'`"
1904 then CC=gcc
1905 else CC=cc
1906 fi
1907 fi
1908 ;;
1909 m88k-motorola-sysv4* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine=delta88k opsys=usg5-4-2
1915 ;;
1916 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1917 machine=delta88k opsys=usg5-3
1918 ;;
1919
1920 ## Dual machines
1921 m68*-dual-sysv* )
1922 machine=dual opsys=usg5-2
1923 ;;
1924 m68*-dual-uniplus* )
1925 machine=dual opsys=unipl5-2
1926 ;;
1927
1928 ## Elxsi 6400
1929 elxsi-elxsi-sysv* )
1930 machine=elxsi opsys=usg5-2
1931 ;;
1932
1933 ## Encore machines
1934 ns16k-encore-bsd* )
1935 machine=ns16000 opsys=umax
1936 ;;
1937
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1940
1941 ## Gould Power Node and NP1
1942 pn-gould-bsd4.2* )
1943 machine=gould opsys=bsd4-2
1944 ;;
1945 pn-gould-bsd4.3* )
1946 machine=gould opsys=bsd4-3
1947 ;;
1948 np1-gould-bsd* )
1949 machine=gould-np1 opsys=bsd4-3
1950 ;;
1951
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1954 m88k-harris-cxux* )
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1958 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1959 esac
1960 NON_GNU_CPP="/lib/cpp"
1961 ;;
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1963 m68k-harris-cxux* )
1964 machine=nh3000 opsys=cxux
1965 ;;
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix )
1968 machine=nh6000 opsys=powerunix
1969 NON_GNU_CPP="cc -Xo -E -P"
1970 ;;
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1-hitachi-hiuxmpp* )
1973 machine=sr2k opsys=hiuxmpp
1974 ;;
1975 hppa1.1-hitachi-hiuxwe2* )
1976 machine=sr2k opsys=hiuxwe2
1977 ;;
1978 ## Honeywell XPS100
1979 xps*-honeywell-sysv* )
1980 machine=xps100 opsys=usg5-2
1981 ;;
1982
1983 ## HP 9000 series 200 or 300
1984 m68*-hp-bsd* )
1985 machine=hp9000s300 opsys=bsd4-3
1986 ;;
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1988 m68*-hp-hpux* )
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1993 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1994 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1995 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1996 *) machine=hp9000s300 opsys=hpux ;;
1997 esac
1998 ;;
1999
2000 ## HP 9000 series 700 and 800, running HP/UX
2001 hppa*-hp-hpux7* )
2002 machine=hp800 opsys=hpux
2003 ;;
2004 hppa*-hp-hpux8* )
2005 machine=hp800 opsys=hpux8
2006 ;;
2007 hppa*-hp-hpux9shr* )
2008 machine=hp800 opsys=hpux9shr
2009 ;;
2010 hppa*-hp-hpux9* )
2011 machine=hp800 opsys=hpux9
2012 ;;
2013 hppa*-hp-hpux10* )
2014 machine=hp800 opsys=hpux10
2015 ;;
2016 hppa*-hp-hpux1[1-9]* )
2017 machine=hp800 opsys=hpux11
2018 ;;
2019
2020 hppa*-*-linux-gnu* )
2021 machine=hp800 opsys=gnu-linux
2022 ;;
2023
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux* )
2026 ## Cross-compilation? Nah!
2027 case "`uname -r`" in
2028 ## Someone's system reports A.B8.05 for this.
2029 ## I wonder what other possibilities there are.
2030 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2031 *.08.* ) machine=hp800 opsys=hpux8 ;;
2032 *.09.* ) machine=hp800 opsys=hpux9 ;;
2033 *) machine=hp800 opsys=hpux10 ;;
2034 esac
2035 ;;
2036 hppa*-*-nextstep* )
2037 machine=hp800 opsys=nextstep
2038 ;;
2039
2040 ## Orion machines
2041 orion-orion-bsd* )
2042 machine=orion opsys=bsd4-2
2043 ;;
2044 clipper-orion-bsd* )
2045 machine=orion105 opsys=bsd4-2
2046 ;;
2047
2048 ## IBM machines
2049 i[3456]86-ibm-aix1.1* )
2050 machine=ibmps2-aix opsys=usg5-2-2
2051 ;;
2052 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2053 machine=ibmps2-aix opsys=usg5-3
2054 ;;
2055 i370-ibm-aix*)
2056 machine=ibm370aix opsys=usg5-3
2057 ;;
2058 s390-*-linux-gnu)
2059 machine=ibms390 opsys=gnu-linux
2060 ;;
2061 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2062 machine=ibmrs6000 opsys=aix3-1
2063 ;;
2064 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2065 machine=ibmrs6000 opsys=aix3-2-5
2066 ;;
2067 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2068 machine=ibmrs6000 opsys=aix4-1
2069 ;;
2070 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2071 machine=ibmrs6000 opsys=aix4-2
2072 ;;
2073 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2074 machine=ibmrs6000 opsys=aix4-2
2075 ;;
2076 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2077 machine=ibmrs6000 opsys=aix4
2078 ;;
2079 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2080 machine=ibmrs6000 opsys=aix4-1
2081 ;;
2082 rs6000-ibm-aix* | powerpc-ibm-aix* )
2083 machine=ibmrs6000 opsys=aix3-2
2084 ;;
2085 romp-ibm-bsd4.3* )
2086 machine=ibmrt opsys=bsd4-3
2087 ;;
2088 romp-ibm-bsd4.2* )
2089 machine=ibmrt opsys=bsd4-2
2090 ;;
2091 romp-ibm-aos4.3* )
2092 machine=ibmrt opsys=bsd4-3
2093 ;;
2094 romp-ibm-aos4.2* )
2095 machine=ibmrt opsys=bsd4-2
2096 ;;
2097 romp-ibm-aos* )
2098 machine=ibmrt opsys=bsd4-3
2099 ;;
2100 romp-ibm-bsd* )
2101 machine=ibmrt opsys=bsd4-3
2102 ;;
2103 romp-ibm-aix* )
2104 machine=ibmrt-aix opsys=usg5-2-2
2105 ;;
2106
2107 ## Integrated Solutions `Optimum V'
2108 m68*-isi-bsd4.2* )
2109 machine=isi-ov opsys=bsd4-2
2110 ;;
2111 m68*-isi-bsd4.3* )
2112 machine=isi-ov opsys=bsd4-3
2113 ;;
2114
2115 ## Intel 386 machines where we do care about the manufacturer
2116 i[3456]86-intsys-sysv* )
2117 machine=is386 opsys=usg5-2-2
2118 ;;
2119
2120 ## Prime EXL
2121 i[3456]86-prime-sysv* )
2122 machine=i386 opsys=usg5-3
2123 ;;
2124
2125 ## Sequent Symmetry running Dynix
2126 i[3456]86-sequent-bsd* )
2127 machine=symmetry opsys=bsd4-3
2128 ;;
2129
2130 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2131 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2132 machine=sequent-ptx opsys=ptx4
2133 NON_GNU_CPP=/lib/cpp
2134 ;;
2135
2136 ## Sequent Symmetry running DYNIX/ptx
2137 ## Use the old cpp rather than the newer ANSI one.
2138 i[3456]86-sequent-ptx* )
2139 machine=sequent-ptx opsys=ptx
2140 NON_GNU_CPP="/lib/cpp"
2141 ;;
2142
2143 ## ncr machine running svr4.3.
2144 i[3456]86-ncr-sysv4.3 )
2145 machine=ncr386 opsys=usg5-4-3
2146 ;;
2147
2148 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2149 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2150 i[3456]86-ncr-sysv* )
2151 machine=ncr386 opsys=usg5-4-2
2152 ;;
2153
2154 ## Intel Paragon OSF/1
2155 i860-intel-osf1* )
2156 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2157 ;;
2158
2159 ## Intel 860
2160 i860-*-sysv4* )
2161 machine=i860 opsys=usg5-4
2162 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2163 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2164 ;;
2165
2166 ## Macintosh PowerPC
2167 powerpc*-*-linux-gnu* )
2168 machine=macppc opsys=gnu-linux
2169 ;;
2170
2171 ## Masscomp machines
2172 m68*-masscomp-rtu* )
2173 machine=masscomp opsys=rtu
2174 ;;
2175
2176 ## Megatest machines
2177 m68*-megatest-bsd* )
2178 machine=mega68 opsys=bsd4-2
2179 ;;
2180
2181 ## Workstations sold by MIPS
2182 ## This is not necessarily all workstations using the MIPS processor -
2183 ## Irises are produced by SGI, and DECstations by DEC.
2184
2185 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2186 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2187 ## it gives for choosing between the alternatives seems to be "Use
2188 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2189 ## the BSD world." I'll assume that these are instructions for
2190 ## handling two odd situations, and that every other situation
2191 ## should use mips.h and usg5-2-2, they being listed first.
2192 mips-mips-usg* )
2193 machine=mips4
2194 ## Fall through to the general code at the bottom to decide on the OS.
2195 ;;
2196 mips-mips-riscos4* )
2197 machine=mips4 opsys=bsd4-3
2198 NON_GNU_CC="cc -systype bsd43"
2199 NON_GNU_CPP="cc -systype bsd43 -E"
2200 ;;
2201 mips-mips-riscos5* )
2202 machine=mips4 opsys=riscos5
2203 NON_GNU_CC="cc -systype bsd43"
2204 NON_GNU_CPP="cc -systype bsd43 -E"
2205 ;;
2206 mips-mips-bsd* )
2207 machine=mips opsys=bsd4-3
2208 ;;
2209 mips-mips-* )
2210 machine=mips opsys=usg5-2-2
2211 ;;
2212
2213 ## NeXT
2214 m68*-next-* | m68k-*-nextstep* )
2215 machine=m68k opsys=nextstep
2216 ;;
2217
2218 ## The complete machine from National Semiconductor
2219 ns32k-ns-genix* )
2220 machine=ns32000 opsys=usg5-2
2221 ;;
2222
2223 ## NCR machines
2224 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2225 machine=tower32 opsys=usg5-2-2
2226 ;;
2227 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2228 machine=tower32v3 opsys=usg5-3
2229 ;;
2230
2231 ## NEC EWS4800
2232 mips-nec-sysv4*)
2233 machine=ews4800 opsys=ux4800
2234 ;;
2235
2236 ## Nixdorf Targon 31
2237 m68*-nixdorf-sysv* )
2238 machine=targon31 opsys=usg5-2-2
2239 ;;
2240
2241 ## Nu (TI or LMI)
2242 m68*-nu-sysv* )
2243 machine=nu opsys=usg5-2
2244 ;;
2245
2246 ## Plexus
2247 m68*-plexus-sysv* )
2248 machine=plexus opsys=usg5-2
2249 ;;
2250
2251 ## Pyramid machines
2252 ## I don't really have any idea what sort of processor the Pyramid has,
2253 ## so I'm assuming it is its own architecture.
2254 pyramid-pyramid-bsd* )
2255 machine=pyramid opsys=bsd4-2
2256 ;;
2257
2258 ## Sequent Balance
2259 ns32k-sequent-bsd4.2* )
2260 machine=sequent opsys=bsd4-2
2261 ;;
2262 ns32k-sequent-bsd4.3* )
2263 machine=sequent opsys=bsd4-3
2264 ;;
2265
2266 ## Siemens Nixdorf
2267 mips-siemens-sysv* | mips-sni-sysv*)
2268 machine=mips-siemens opsys=usg5-4
2269 NON_GNU_CC=/usr/ccs/bin/cc
2270 NON_GNU_CPP=/usr/ccs/lib/cpp
2271 ;;
2272
2273 ## Silicon Graphics machines
2274 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2275 m68*-sgi-iris3.5* )
2276 machine=irist opsys=iris3-5
2277 ;;
2278 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2279 machine=irist opsys=iris3-6
2280 ;;
2281 ## Iris 4D
2282 mips-sgi-irix3* )
2283 machine=iris4d opsys=irix3-3
2284 ;;
2285 mips-sgi-irix4* )
2286 machine=iris4d opsys=irix4-0
2287 ;;
2288 mips-sgi-irix6.5 )
2289 machine=iris4d opsys=irix6-5
2290 # Without defining _LANGUAGE_C, things get masked out in the headers
2291 # so that, for instance, grepping for `free' in stdlib.h fails and
2292 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2293 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2294 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2295 ;;
2296 mips-sgi-irix6* )
2297 machine=iris4d opsys=irix6-0
2298 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2299 # but presumably it does no harm.
2300 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2301 # -32 probably isn't necessary in later v.6s -- anyone know which?
2302 NON_GCC_TEST_OPTIONS=-32
2303 ;;
2304 mips-sgi-irix5.[01]* )
2305 machine=iris4d opsys=irix5-0
2306 ;;
2307 mips-sgi-irix5* | mips-sgi-irix* )
2308 machine=iris4d opsys=irix5-2
2309 ;;
2310
2311 ## SONY machines
2312 m68*-sony-bsd4.2* )
2313 machine=news opsys=bsd4-2
2314 ;;
2315 m68*-sony-bsd4.3* )
2316 machine=news opsys=bsd4-3
2317 ;;
2318 m68*-sony-newsos3* | m68*-sony-news3*)
2319 machine=news opsys=bsd4-3
2320 ;;
2321 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2322 machine=news-risc opsys=bsd4-3
2323 ;;
2324 mips-sony-newsos6* )
2325 machine=news-r6 opsys=newsos6
2326 ;;
2327 mips-sony-news* )
2328 machine=news-risc opsys=newsos5
2329 ;;
2330
2331 ## Stride
2332 m68*-stride-sysv* )
2333 machine=stride opsys=usg5-2
2334 ;;
2335
2336 ## Suns
2337 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2338 machine=sparc opsys=gnu-linux
2339 ;;
2340
2341 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2342 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2343 | rs6000-*-solaris2*)
2344 case "${canonical}" in
2345 m68*-sunos1* ) machine=sun1 ;;
2346 m68*-sunos2* ) machine=sun2 ;;
2347 m68* ) machine=sun3 ;;
2348 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2349 i[3456]86-*-* ) machine=intel386 ;;
2350 powerpcle* ) machine=powerpcle ;;
2351 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2352 sparc* ) machine=sparc ;;
2353 * ) unported=yes ;;
2354 esac
2355 case "${canonical}" in
2356 ## The Sun386 didn't get past 4.0.
2357 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2358 *-sunos4.0* ) opsys=sunos4-0 ;;
2359 *-sunos4.1.[3-9]*noshare )
2360 ## This name is sunos413 instead of sunos4-1-3
2361 ## to avoid a file name conflict on MSDOS.
2362 opsys=sunos413
2363 NON_GNU_CPP=/usr/lib/cpp
2364 NON_GCC_TEST_OPTIONS=-Bstatic
2365 GCC_TEST_OPTIONS=-static
2366 ;;
2367 *-sunos4.1.[3-9]* | *-sunos4shr*)
2368 opsys=sunos4shr
2369 NON_GNU_CPP=/usr/lib/cpp
2370 ;;
2371 *-sunos4* | *-sunos )
2372 opsys=sunos4-1
2373 NON_GCC_TEST_OPTIONS=-Bstatic
2374 GCC_TEST_OPTIONS=-static
2375 ;;
2376 *-sunos5.3* | *-solaris2.3* )
2377 opsys=sol2-3
2378 NON_GNU_CPP=/usr/ccs/lib/cpp
2379 ;;
2380 *-sunos5.4* | *-solaris2.4* )
2381 opsys=sol2-4
2382 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 RANLIB="ar -ts"
2384 ;;
2385 *-sunos5.5* | *-solaris2.5* )
2386 opsys=sol2-5
2387 NON_GNU_CPP=/usr/ccs/lib/cpp
2388 RANLIB="ar -ts"
2389 ;;
2390 *-sunos5.6* | *-solaris2.6* )
2391 opsys=sol2-6
2392 NON_GNU_CPP=/usr/ccs/lib/cpp
2393 RANLIB="ar -ts"
2394 ;;
2395 *-sunos5* | *-solaris* )
2396 opsys=sol2-6
2397 NON_GNU_CPP=/usr/ccs/lib/cpp
2398 ;;
2399 * ) opsys=bsd4-2 ;;
2400 esac
2401 ## Watch out for a compiler that we know will not work.
2402 case "${canonical}" in
2403 *-solaris* | *-sunos5* )
2404 if [ "x$CC" = x/usr/ucb/cc ]; then
2405 ## /usr/ucb/cc doesn't work;
2406 ## we should find some other compiler that does work.
2407 unset CC
2408 fi
2409 ;;
2410 *) ;;
2411 esac
2412 ;;
2413 sparc-*-nextstep* )
2414 machine=sparc opsys=nextstep
2415 ;;
2416
2417 ## Tadpole 68k
2418 m68*-tadpole-sysv* )
2419 machine=tad68k opsys=usg5-3
2420 ;;
2421
2422 ## Tahoe machines
2423 tahoe-tahoe-bsd4.2* )
2424 machine=tahoe opsys=bsd4-2
2425 ;;
2426 tahoe-tahoe-bsd4.3* )
2427 machine=tahoe opsys=bsd4-3
2428 ;;
2429
2430 ## Tandem Integrity S2
2431 mips-tandem-sysv* )
2432 machine=tandem-s2 opsys=usg5-3
2433 ;;
2434
2435 ## Tektronix XD88
2436 m88k-tektronix-sysv3* )
2437 machine=tekxd88 opsys=usg5-3
2438 ;;
2439
2440 ## Tektronix 16000 box (6130?)
2441 ns16k-tektronix-bsd* )
2442 machine=ns16000 opsys=bsd4-2
2443 ;;
2444 ## Tektronix 4300
2445 ## src/m/tek4300.h hints that this is a m68k machine.
2446 m68*-tektronix-bsd* )
2447 machine=tek4300 opsys=bsd4-3
2448 ;;
2449
2450 ## Titan P2 or P3
2451 ## We seem to have lost the machine-description file titan.h!
2452 titan-titan-sysv* )
2453 machine=titan opsys=usg5-3
2454 ;;
2455
2456 ## Ustation E30 (SS5E)
2457 m68*-unisys-uniplus* )
2458 machine=ustation opsystem=unipl5-2
2459 ;;
2460
2461 ## Vaxen.
2462 vax-dec-* )
2463 machine=vax
2464 case "${canonical}" in
2465 *-bsd4.1* ) opsys=bsd4-1 ;;
2466 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2467 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2468 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2469 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2470 *-vms* ) opsys=vms ;;
2471 * ) unported=yes
2472 esac
2473 ;;
2474
2475 ## Whitechapel MG1
2476 ns16k-whitechapel-* )
2477 machine=mg1
2478 ## We don't know what sort of OS runs on these; we'll let the
2479 ## operating system guessing code below try.
2480 ;;
2481
2482 ## Wicat
2483 m68*-wicat-sysv* )
2484 machine=wicat opsys=usg5-2
2485 ;;
2486
2487 ## IA-64
2488 ia64*-*-linux* )
2489 machine=ia64 opsys=gnu-linux
2490 ;;
2491
2492 ## Intel 386 machines where we don't care about the manufacturer
2493 i[3456]86-*-* )
2494 machine=intel386
2495 case "${canonical}" in
2496 *-cygwin ) opsys=cygwin ;;
2497 *-lynxos* ) opsys=lynxos ;;
2498 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2499 *-isc2.2* ) opsys=isc2-2 ;;
2500 *-isc4.0* ) opsys=isc4-0 ;;
2501 *-isc4.* ) opsys=isc4-1
2502 GCC_TEST_OPTIONS=-posix
2503 NON_GCC_TEST_OPTIONS=-Xp
2504 ;;
2505 *-isc* ) opsys=isc3-0 ;;
2506 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2507 *-esix* ) opsys=esix ;;
2508 *-xenix* ) opsys=xenix ;;
2509 *-linux-gnu* ) opsys=gnu-linux ;;
2510 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2511 *-sco3.2v5* ) opsys=sco5
2512 NON_GNU_CPP=/lib/cpp
2513 # Prevent -belf from being passed to $CPP.
2514 # /lib/cpp does not accept it.
2515 OVERRIDE_CPPFLAGS=" "
2516 ;;
2517 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2518 *-386bsd* ) opsys=386bsd ;;
2519 *-nextstep* ) opsys=nextstep ;;
2520 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2521 esac
2522 ;;
2523
2524 ## m68k Linux-based GNU system
2525 m68k-*-linux-gnu* )
2526 machine=m68k opsys=gnu-linux
2527 ;;
2528
2529 ## Mips Linux-based GNU system
2530 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2531 machine=mips opsys=gnu-linux
2532 ;;
2533
2534 ## UXP/DS
2535 sparc-fujitsu-sysv4* )
2536 machine=sparc opsys=uxpds
2537 NON_GNU_CPP=/usr/ccs/lib/cpp
2538 RANLIB="ar -ts"
2539 ;;
2540
2541 ## UXP/V
2542 f301-fujitsu-uxpv4.1)
2543 machine=f301 opsys=uxpv
2544 ;;
2545
2546 ## Darwin / Mac OS X
2547 powerpc-apple-darwin* )
2548 machine=powermac opsys=darwin
2549 # Define CPP as follows to make autoconf work correctly.
2550 CPP="cc -E -traditional-cpp"
2551 ;;
2552
2553 ## AMD x86-64 Linux-based GNU system
2554 x86_64-*-linux-gnu* )
2555 machine=amdx86-64 opsys=gnu-linux
2556 ;;
2557
2558 * )
2559 unported=yes
2560 ;;
2561 esac
2562
2563 ### If the code above didn't choose an operating system, just choose
2564 ### an operating system based on the configuration name. You really
2565 ### only want to use this when you have no idea what the right
2566 ### operating system is; if you know what operating systems a machine
2567 ### runs, it's cleaner to make it explicit in the case statement
2568 ### above.
2569 if test x"${opsys}" = x; then
2570 case "${canonical}" in
2571 *-gnu* ) opsys=gnu ;;
2572 *-bsd4.[01] ) opsys=bsd4-1 ;;
2573 *-bsd4.2 ) opsys=bsd4-2 ;;
2574 *-bsd4.3 ) opsys=bsd4-3 ;;
2575 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2576 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2577 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2578 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2579 *-sysv4.2uw* ) opsys=unixware ;;
2580 *-sysv4.1* | *-sysvr4.1* )
2581 NON_GNU_CPP=/usr/lib/cpp
2582 opsys=usg5-4 ;;
2583 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2584 if [ x$NON_GNU_CPP = x ]; then
2585 if [ -f /usr/ccs/lib/cpp ]; then
2586 NON_GNU_CPP=/usr/ccs/lib/cpp
2587 else
2588 NON_GNU_CPP=/lib/cpp
2589 fi
2590 fi
2591 opsys=usg5-4-2 ;;
2592 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2593 * )
2594 unported=yes
2595 ;;
2596 esac
2597 fi
2598
2599
2600
2601 if test $unported = yes; then
2602 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2603 Check \`etc/MACHINES' for recognized configuration names." >&5
2604 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2605 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2606 { (exit 1); exit 1; }; }
2607 fi
2608
2609 machfile="m/${machine}.h"
2610 opsysfile="s/${opsys}.h"
2611
2612
2613 #### Choose a compiler.
2614 test -n "$CC" && cc_specified=yes
2615
2616 # Save the value of CFLAGS that the user specified.
2617 SPECIFIED_CFLAGS="$CFLAGS"
2618
2619 case ${with_gcc} in
2620 "yes" ) CC="gcc" GCC=yes ;;
2621 "no" ) : ${CC=cc} ;;
2622 * )
2623 esac
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2632 echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6
2660 else
2661 echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2663 fi
2664
2665 fi
2666 if test -z "$ac_cv_prog_CC"; then
2667 ac_ct_CC=$CC
2668 # Extract the first word of "gcc", so it can be a program name with args.
2669 set dummy gcc; ac_word=$2
2670 echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_ac_ct_CC="gcc"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689 done
2690 done
2691
2692 fi
2693 fi
2694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695 if test -n "$ac_ct_CC"; then
2696 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2697 echo "${ECHO_T}$ac_ct_CC" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2701 fi
2702
2703 CC=$ac_ct_CC
2704 else
2705 CC="$ac_cv_prog_CC"
2706 fi
2707
2708 if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}cc; ac_word=$2
2712 echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714 if test "${ac_cv_prog_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_CC="${ac_tool_prefix}cc"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6
2740 else
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743 fi
2744
2745 fi
2746 if test -z "$ac_cv_prog_CC"; then
2747 ac_ct_CC=$CC
2748 # Extract the first word of "cc", so it can be a program name with args.
2749 set dummy cc; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_ac_ct_CC="cc"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771
2772 fi
2773 fi
2774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775 if test -n "$ac_ct_CC"; then
2776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2777 echo "${ECHO_T}$ac_ct_CC" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2781 fi
2782
2783 CC=$ac_ct_CC
2784 else
2785 CC="$ac_cv_prog_CC"
2786 fi
2787
2788 fi
2789 if test -z "$CC"; then
2790 # Extract the first word of "cc", so it can be a program name with args.
2791 set dummy cc; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_CC+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 ac_prog_rejected=no
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2809 ac_prog_rejected=yes
2810 continue
2811 fi
2812 ac_cv_prog_CC="cc"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816 done
2817 done
2818
2819 if test $ac_prog_rejected = yes; then
2820 # We found a bogon in the path, so make sure we never use it.
2821 set dummy $ac_cv_prog_CC
2822 shift
2823 if test $# != 0; then
2824 # We chose a different compiler from the bogus one.
2825 # However, it has the same basename, so the bogon will be chosen
2826 # first if we set CC to just the basename; use the full file name.
2827 shift
2828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2829 fi
2830 fi
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6
2837 else
2838 echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2840 fi
2841
2842 fi
2843 if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 for ac_prog in cl
2846 do
2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868 done
2869 done
2870
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 echo "$as_me:$LINENO: result: $CC" >&5
2876 echo "${ECHO_T}$CC" >&6
2877 else
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2880 fi
2881
2882 test -n "$CC" && break
2883 done
2884 fi
2885 if test -z "$CC"; then
2886 ac_ct_CC=$CC
2887 for ac_prog in cl
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CC="$ac_prog"
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 fi
2914 fi
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2918 echo "${ECHO_T}$ac_ct_CC" >&6
2919 else
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 fi
2923
2924 test -n "$ac_ct_CC" && break
2925 done
2926
2927 CC=$ac_ct_CC
2928 fi
2929
2930 fi
2931
2932
2933 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: no acceptable C compiler found in \$PATH
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2938
2939 # Provide some information about the compiler.
2940 echo "$as_me:$LINENO:" \
2941 "checking for C compiler version" >&5
2942 ac_compiler=`set X $ac_compile; echo $2`
2943 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2944 (eval $ac_compiler --version </dev/null >&5) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2949 (eval $ac_compiler -v </dev/null >&5) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }
2953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2954 (eval $ac_compiler -V </dev/null >&5) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }
2958
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966
2967 int
2968 main ()
2969 {
2970
2971 ;
2972 return 0;
2973 }
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2981 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2982 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2984 (eval $ac_link_default) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 # Find the output, starting from the most likely. This scheme is
2989 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2990 # resort.
2991
2992 # Be careful to initialize this variable, since it used to be cached.
2993 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2994 ac_cv_exeext=
2995 # b.out is created by i960 compilers.
2996 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2997 do
2998 test -f "$ac_file" || continue
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3001 ;;
3002 conftest.$ac_ext )
3003 # This is the source file.
3004 ;;
3005 [ab].out )
3006 # We found the default executable, but exeext='' is most
3007 # certainly right.
3008 break;;
3009 *.* )
3010 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 # FIXME: I believe we export ac_cv_exeext for Libtool,
3012 # but it would be cool to find out if it's true. Does anybody
3013 # maintain Libtool? --akim.
3014 export ac_cv_exeext
3015 break;;
3016 * )
3017 break;;
3018 esac
3019 done
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&2;}
3028 { (exit 77); exit 77; }; }
3029 fi
3030
3031 ac_exeext=$ac_cv_exeext
3032 echo "$as_me:$LINENO: result: $ac_file" >&5
3033 echo "${ECHO_T}$ac_file" >&6
3034
3035 # Check the compiler produces executables we can run. If not, either
3036 # the compiler is broken, or we cross compile.
3037 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040 # If not cross compiling, check that we can run a simple program.
3041 if test "$cross_compiling" != yes; then
3042 if { ac_try='./$ac_file'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 cross_compiling=no
3049 else
3050 if test "$cross_compiling" = maybe; then
3051 cross_compiling=yes
3052 else
3053 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3054 If you meant to cross compile, use \`--host'.
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: cannot run C compiled programs.
3057 If you meant to cross compile, use \`--host'.
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3060 fi
3061 fi
3062 fi
3063 echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3065
3066 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3067 ac_clean_files=$ac_clean_files_save
3068 # Check the compiler produces executables we can run. If not, either
3069 # the compiler is broken, or we cross compile.
3070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3073 echo "${ECHO_T}$cross_compiling" >&6
3074
3075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 # `rm'.
3086 for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 export ac_cv_exeext
3092 break;;
3093 * ) break;;
3094 esac
3095 done
3096 else
3097 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3102 fi
3103
3104 rm -f conftest$ac_cv_exeext
3105 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3106 echo "${ECHO_T}$ac_cv_exeext" >&6
3107
3108 rm -f conftest.$ac_ext
3109 EXEEXT=$ac_cv_exeext
3110 ac_exeext=$EXEEXT
3111 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3112 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3113 if test "${ac_cv_objext+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #line $LINENO "configure"
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123
3124 int
3125 main ()
3126 {
3127
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.o conftest.obj
3133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134 (eval $ac_compile) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; then
3138 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3142 break;;
3143 esac
3144 done
3145 else
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3152 See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3154 fi
3155
3156 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3157 fi
3158 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3159 echo "${ECHO_T}$ac_cv_objext" >&6
3160 OBJEXT=$ac_cv_objext
3161 ac_objext=$OBJEXT
3162 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3163 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3164 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 cat >conftest.$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174
3175 int
3176 main ()
3177 {
3178 #ifndef __GNUC__
3179 choke me
3180 #endif
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 (eval $ac_compile) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_compiler_gnu=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ac_compiler_gnu=no
3204 fi
3205 rm -f conftest.$ac_objext conftest.$ac_ext
3206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3207
3208 fi
3209 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3211 GCC=`test $ac_compiler_gnu = yes && echo yes`
3212 ac_test_CFLAGS=${CFLAGS+set}
3213 ac_save_CFLAGS=$CFLAGS
3214 CFLAGS="-g"
3215 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3216 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3217 if test "${ac_cv_prog_cc_g+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_prog_cc_g=yes
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 ac_cv_prog_cc_g=no
3254 fi
3255 rm -f conftest.$ac_objext conftest.$ac_ext
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3263 CFLAGS="-g -O2"
3264 else
3265 CFLAGS="-g"
3266 fi
3267 else
3268 if test "$GCC" = yes; then
3269 CFLAGS="-O2"
3270 else
3271 CFLAGS=
3272 fi
3273 fi
3274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 ac_cv_prog_cc_stdc=no
3280 ac_save_CC=$CC
3281 cat >conftest.$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <stdarg.h>
3289 #include <stdio.h>
3290 #include <sys/types.h>
3291 #include <sys/stat.h>
3292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3293 struct buf { int x; };
3294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3295 static char *e (p, i)
3296 char **p;
3297 int i;
3298 {
3299 return p[i];
3300 }
3301 static char *f (char * (*g) (char **, int), char **p, ...)
3302 {
3303 char *s;
3304 va_list v;
3305 va_start (v,p);
3306 s = g (p, va_arg (v,int));
3307 va_end (v);
3308 return s;
3309 }
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3316 int
3317 main ()
3318 {
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 # Don't try gcc -ansi; that turns off useful extensions and
3325 # breaks some systems' header files.
3326 # AIX -qlanglvl=ansi
3327 # Ultrix and OSF/1 -std1
3328 # HP-UX 10.20 and later -Ae
3329 # HP-UX older versions -Aa -D_HPUX_SOURCE
3330 # SVR4 -Xc -D__EXTENSIONS__
3331 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 do
3333 CC="$ac_save_CC $ac_arg"
3334 rm -f conftest.$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 ac_cv_prog_cc_stdc=$ac_arg
3347 break
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 fi
3353 rm -f conftest.$ac_objext
3354 done
3355 rm -f conftest.$ac_ext conftest.$ac_objext
3356 CC=$ac_save_CC
3357
3358 fi
3359
3360 case "x$ac_cv_prog_cc_stdc" in
3361 x|xno)
3362 echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6 ;;
3364 *)
3365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3367 CC="$CC $ac_cv_prog_cc_stdc" ;;
3368 esac
3369
3370 # Some people use a C++ compiler to compile C. Since we use `exit',
3371 # in C++ we need to declare it. In case someone uses the same compiler
3372 # for both compiling C and C++ we need to have the C++ compiler decide
3373 # the declaration of exit, since it's the most demanding environment.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 #ifndef __cplusplus
3376 choke me
3377 #endif
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 for ac_declaration in \
3392 ''\
3393 '#include <stdlib.h>' \
3394 'extern "C" void std::exit (int) throw (); using std::exit;' \
3395 'extern "C" void std::exit (int); using std::exit;' \
3396 'extern "C" void exit (int) throw ();' \
3397 'extern "C" void exit (int);' \
3398 'void exit (int);'
3399 do
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <stdlib.h>
3408 $ac_declaration
3409 int
3410 main ()
3411 {
3412 exit (42);
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 :
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 continue
3435 fi
3436 rm -f conftest.$ac_objext conftest.$ac_ext
3437 cat >conftest.$ac_ext <<_ACEOF
3438 #line $LINENO "configure"
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 $ac_declaration
3445 int
3446 main ()
3447 {
3448 exit (42);
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 break
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 fi
3471 rm -f conftest.$ac_objext conftest.$ac_ext
3472 done
3473 rm -f conftest*
3474 if test -n "$ac_declaration"; then
3475 echo '#ifdef __cplusplus' >>confdefs.h
3476 echo $ac_declaration >>confdefs.h
3477 echo '#endif' >>confdefs.h
3478 fi
3479
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 fi
3485 rm -f conftest.$ac_objext conftest.$ac_ext
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491
3492
3493 # On Suns, sometimes $CPP names a directory.
3494 if test -n "$CPP" && test -d "$CPP"; then
3495 CPP=
3496 fi
3497
3498 #### Some systems specify a CPP to use unless we are using GCC.
3499 #### Now that we know whether we are using GCC, we can decide whether
3500 #### to use that one.
3501 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3502 then
3503 CPP="$NON_GNU_CPP"
3504 fi
3505
3506 #### Some systems specify a CC to use unless we are using GCC.
3507 #### Now that we know whether we are using GCC, we can decide whether
3508 #### to use that one.
3509 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3510 test x$cc_specified != xyes
3511 then
3512 CC="$NON_GNU_CC"
3513 fi
3514
3515 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3516 then
3517 CC="$CC $GCC_TEST_OPTIONS"
3518 fi
3519
3520 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3521 then
3522 CC="$CC $NON_GCC_TEST_OPTIONS"
3523 fi
3524
3525 #### Some other nice autoconf tests.
3526
3527 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3528 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3529 LN_S=$as_ln_s
3530 if test "$LN_S" = "ln -s"; then
3531 echo "$as_me:$LINENO: result: yes" >&5
3532 echo "${ECHO_T}yes" >&6
3533 else
3534 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3535 echo "${ECHO_T}no, using $LN_S" >&6
3536 fi
3537
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3544 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3545 # On Suns, sometimes $CPP names a directory.
3546 if test -n "$CPP" && test -d "$CPP"; then
3547 CPP=
3548 fi
3549 if test -z "$CPP"; then
3550 if test "${ac_cv_prog_CPP+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 # Double quotes because CPP needs to be expanded
3554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3555 do
3556 ac_preproc_ok=false
3557 for ac_c_preproc_warn_flag in '' yes
3558 do
3559 # Use a header file that comes with gcc, so configuring glibc
3560 # with a fresh cross-compiler works.
3561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562 # <limits.h> exists even on freestanding compilers.
3563 # On the NeXT, cc -E runs the code through the compiler's parser,
3564 # not just through cpp. "Syntax error" is here to catch this case.
3565 cat >conftest.$ac_ext <<_ACEOF
3566 #line $LINENO "configure"
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #ifdef __STDC__
3573 # include <limits.h>
3574 #else
3575 # include <assert.h>
3576 #endif
3577 Syntax error
3578 _ACEOF
3579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } >/dev/null; then
3587 if test -s conftest.err; then
3588 ac_cpp_err=$ac_c_preproc_warn_flag
3589 else
3590 ac_cpp_err=
3591 fi
3592 else
3593 ac_cpp_err=yes
3594 fi
3595 if test -z "$ac_cpp_err"; then
3596 :
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 # Broken: fails on valid input.
3602 continue
3603 fi
3604 rm -f conftest.err conftest.$ac_ext
3605
3606 # OK, works on sane cases. Now check whether non-existent headers
3607 # can be detected and how.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #include <ac_nonexistent.h>
3616 _ACEOF
3617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } >/dev/null; then
3625 if test -s conftest.err; then
3626 ac_cpp_err=$ac_c_preproc_warn_flag
3627 else
3628 ac_cpp_err=
3629 fi
3630 else
3631 ac_cpp_err=yes
3632 fi
3633 if test -z "$ac_cpp_err"; then
3634 # Broken: success on invalid input.
3635 continue
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 # Passes both tests.
3641 ac_preproc_ok=:
3642 break
3643 fi
3644 rm -f conftest.err conftest.$ac_ext
3645
3646 done
3647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648 rm -f conftest.err conftest.$ac_ext
3649 if $ac_preproc_ok; then
3650 break
3651 fi
3652
3653 done
3654 ac_cv_prog_CPP=$CPP
3655
3656 fi
3657 CPP=$ac_cv_prog_CPP
3658 else
3659 ac_cv_prog_CPP=$CPP
3660 fi
3661 echo "$as_me:$LINENO: result: $CPP" >&5
3662 echo "${ECHO_T}$CPP" >&6
3663 ac_preproc_ok=false
3664 for ac_c_preproc_warn_flag in '' yes
3665 do
3666 # Use a header file that comes with gcc, so configuring glibc
3667 # with a fresh cross-compiler works.
3668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 # <limits.h> exists even on freestanding compilers.
3670 # On the NeXT, cc -E runs the code through the compiler's parser,
3671 # not just through cpp. "Syntax error" is here to catch this case.
3672 cat >conftest.$ac_ext <<_ACEOF
3673 #line $LINENO "configure"
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3684 Syntax error
3685 _ACEOF
3686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } >/dev/null; then
3694 if test -s conftest.err; then
3695 ac_cpp_err=$ac_c_preproc_warn_flag
3696 else
3697 ac_cpp_err=
3698 fi
3699 else
3700 ac_cpp_err=yes
3701 fi
3702 if test -z "$ac_cpp_err"; then
3703 :
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 # Broken: fails on valid input.
3709 continue
3710 fi
3711 rm -f conftest.err conftest.$ac_ext
3712
3713 # OK, works on sane cases. Now check whether non-existent headers
3714 # can be detected and how.
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 else
3735 ac_cpp_err=
3736 fi
3737 else
3738 ac_cpp_err=yes
3739 fi
3740 if test -z "$ac_cpp_err"; then
3741 # Broken: success on invalid input.
3742 continue
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 # Passes both tests.
3748 ac_preproc_ok=:
3749 break
3750 fi
3751 rm -f conftest.err conftest.$ac_ext
3752
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3757 :
3758 else
3759 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3764 fi
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772 # Find a good install program. We prefer a C program (faster),
3773 # so one script is as good as another. But avoid the broken or
3774 # incompatible versions:
3775 # SysV /etc/install, /usr/sbin/install
3776 # SunOS /usr/etc/install
3777 # IRIX /sbin/install
3778 # AIX /bin/install
3779 # AmigaOS /C/install, which installs bootblocks on floppy discs
3780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3783 # ./install, which can be erroneously created by make from ./install.sh.
3784 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3785 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3786 if test -z "$INSTALL"; then
3787 if test "${ac_cv_path_install+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 # Account for people who put trailing slashes in PATH elements.
3796 case $as_dir/ in
3797 ./ | .// | /cC/* | \
3798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3799 /usr/ucb/* ) ;;
3800 *)
3801 # OSF1 and SCO ODT 3.0 have their own names for install.
3802 # Don't use installbsd from OSF since it installs stuff as root
3803 # by default.
3804 for ac_prog in ginstall scoinst install; do
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3807 if test $ac_prog = install &&
3808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3809 # AIX install. It has an incompatible calling convention.
3810 :
3811 elif test $ac_prog = install &&
3812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3813 # program-specific install script used by HP pwplus--don't use.
3814 :
3815 else
3816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3817 break 3
3818 fi
3819 fi
3820 done
3821 done
3822 ;;
3823 esac
3824 done
3825
3826
3827 fi
3828 if test "${ac_cv_path_install+set}" = set; then
3829 INSTALL=$ac_cv_path_install
3830 else
3831 # As a last resort, use the slow shell script. We don't cache a
3832 # path for INSTALL within a source directory, because that will
3833 # break other packages using the cache if that directory is
3834 # removed, or if the path is relative.
3835 INSTALL=$ac_install_sh
3836 fi
3837 fi
3838 echo "$as_me:$LINENO: result: $INSTALL" >&5
3839 echo "${ECHO_T}$INSTALL" >&6
3840
3841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3842 # It thinks the first close brace ends the variable substitution.
3843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3844
3845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3846
3847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3848
3849 if test "x$RANLIB" = x; then
3850 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_RANLIB+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 if test -n "$RANLIB"; then
3859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872 done
3873 done
3874
3875 fi
3876 fi
3877 RANLIB=$ac_cv_prog_RANLIB
3878 if test -n "$RANLIB"; then
3879 echo "$as_me:$LINENO: result: $RANLIB" >&5
3880 echo "${ECHO_T}$RANLIB" >&6
3881 else
3882 echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884 fi
3885
3886 fi
3887 if test -z "$ac_cv_prog_RANLIB"; then
3888 ac_ct_RANLIB=$RANLIB
3889 # Extract the first word of "ranlib", so it can be a program name with args.
3890 set dummy ranlib; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 if test -n "$ac_ct_RANLIB"; then
3897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_ac_ct_RANLIB="ranlib"
3907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910 done
3911 done
3912
3913 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3914 fi
3915 fi
3916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3917 if test -n "$ac_ct_RANLIB"; then
3918 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3919 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3920 else
3921 echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923 fi
3924
3925 RANLIB=$ac_ct_RANLIB
3926 else
3927 RANLIB="$ac_cv_prog_RANLIB"
3928 fi
3929
3930 fi
3931 # Extract the first word of "install-info", so it can be a program name with args.
3932 set dummy install-info; ac_word=$2
3933 echo "$as_me:$LINENO: checking for $ac_word" >&5
3934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3935 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 case $INSTALL_INFO in
3939 [\\/]* | ?:[\\/]*)
3940 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3941 ;;
3942 *)
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954 done
3955 done
3956
3957 ;;
3958 esac
3959 fi
3960 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3961
3962 if test -n "$INSTALL_INFO"; then
3963 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3964 echo "${ECHO_T}$INSTALL_INFO" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968 fi
3969
3970 # Extract the first word of "install-info", so it can be a program name with args.
3971 set dummy install-info; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 case $INSTALL_INFO in
3978 [\\/]* | ?:[\\/]*)
3979 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3980 ;;
3981 *)
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in /usr/sbin
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995
3996 ;;
3997 esac
3998 fi
3999 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4000
4001 if test -n "$INSTALL_INFO"; then
4002 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4003 echo "${ECHO_T}$INSTALL_INFO" >&6
4004 else
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009 # Extract the first word of "install-info", so it can be a program name with args.
4010 set dummy install-info; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 case $INSTALL_INFO in
4017 [\\/]* | ?:[\\/]*)
4018 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4019 ;;
4020 *)
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in /sbin
4023 do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032 done
4033 done
4034
4035 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4036 ;;
4037 esac
4038 fi
4039 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4040
4041 if test -n "$INSTALL_INFO"; then
4042 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4043 echo "${ECHO_T}$INSTALL_INFO" >&6
4044 else
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049
4050
4051 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4052 then
4053 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4054 fi
4055
4056 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4057 then
4058 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4059 fi
4060
4061
4062
4063 echo "$as_me:$LINENO: checking for egrep" >&5
4064 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4065 if test "${ac_cv_prog_egrep+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4069 then ac_cv_prog_egrep='grep -E'
4070 else ac_cv_prog_egrep='egrep'
4071 fi
4072 fi
4073 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4074 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4075 EGREP=$ac_cv_prog_egrep
4076
4077
4078
4079 echo "$as_me:$LINENO: checking for AIX" >&5
4080 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4081 cat >conftest.$ac_ext <<_ACEOF
4082 #line $LINENO "configure"
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 #ifdef _AIX
4089 yes
4090 #endif
4091
4092 _ACEOF
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "yes" >/dev/null 2>&1; then
4095 echo "$as_me:$LINENO: result: yes" >&5
4096 echo "${ECHO_T}yes" >&6
4097 cat >>confdefs.h <<\_ACEOF
4098 #define _ALL_SOURCE 1
4099 _ACEOF
4100
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105 rm -f conftest*
4106
4107
4108
4109 #### Extract some information from the operating system and machine files.
4110
4111 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4112 - which libraries the lib-src programs will want, and
4113 - whether the GNU malloc routines are usable..." >&5
4114 echo "$as_me: checking the machine- and system-dependent files to find out
4115 - which libraries the lib-src programs will want, and
4116 - whether the GNU malloc routines are usable..." >&6;}
4117
4118 ### First figure out CFLAGS (which we use for running the compiler here)
4119 ### and REAL_CFLAGS (which we use for real compilation).
4120 ### The two are the same except on a few systems, where they are made
4121 ### different to work around various lossages. For example,
4122 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4123 ### as implying static linking.
4124
4125 ### If the CFLAGS env var is specified, we use that value
4126 ### instead of the default.
4127
4128 ### It's not important that this name contain the PID; you can't run
4129 ### two configures in the same directory and have anything work
4130 ### anyway.
4131 tempcname="conftest.c"
4132
4133 echo '
4134 #include "'${srcdir}'/src/'${opsysfile}'"
4135 #include "'${srcdir}'/src/'${machfile}'"
4136 #ifndef LIBS_MACHINE
4137 #define LIBS_MACHINE
4138 #endif
4139 #ifndef LIBS_SYSTEM
4140 #define LIBS_SYSTEM
4141 #endif
4142 #ifndef C_SWITCH_SYSTEM
4143 #define C_SWITCH_SYSTEM
4144 #endif
4145 #ifndef C_SWITCH_MACHINE
4146 #define C_SWITCH_MACHINE
4147 #endif
4148 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4149 configure___ c_switch_system=C_SWITCH_SYSTEM
4150 configure___ c_switch_machine=C_SWITCH_MACHINE
4151
4152 #ifndef LIB_X11_LIB
4153 #define LIB_X11_LIB -lX11
4154 #endif
4155
4156 #ifndef LIBX11_MACHINE
4157 #define LIBX11_MACHINE
4158 #endif
4159
4160 #ifndef LIBX11_SYSTEM
4161 #define LIBX11_SYSTEM
4162 #endif
4163 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4164
4165 #ifdef UNEXEC
4166 configure___ unexec=UNEXEC
4167 #else
4168 configure___ unexec=unexec.o
4169 #endif
4170
4171 #ifdef SYSTEM_MALLOC
4172 configure___ system_malloc=yes
4173 #else
4174 configure___ system_malloc=no
4175 #endif
4176
4177 #ifdef USE_MMAP_FOR_BUFFERS
4178 configure___ use_mmap_for_buffers=yes
4179 #else
4180 configure___ use_mmap_for_buffers=no
4181 #endif
4182
4183 #ifndef C_DEBUG_SWITCH
4184 #define C_DEBUG_SWITCH -g
4185 #endif
4186
4187 #ifndef C_OPTIMIZE_SWITCH
4188 #ifdef __GNUC__
4189 #define C_OPTIMIZE_SWITCH -O2
4190 #else
4191 #define C_OPTIMIZE_SWITCH -O
4192 #endif
4193 #endif
4194
4195 #ifndef LD_SWITCH_MACHINE
4196 #define LD_SWITCH_MACHINE
4197 #endif
4198
4199 #ifndef LD_SWITCH_SYSTEM
4200 #define LD_SWITCH_SYSTEM
4201 #endif
4202
4203 #ifndef LD_SWITCH_X_SITE_AUX
4204 #define LD_SWITCH_X_SITE_AUX
4205 #endif
4206
4207 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4208 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4209
4210 #ifdef THIS_IS_CONFIGURE
4211
4212 /* Get the CFLAGS for tests in configure. */
4213 #ifdef __GNUC__
4214 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4215 #else
4216 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4217 #endif
4218
4219 #else /* not THIS_IS_CONFIGURE */
4220
4221 /* Get the CFLAGS for real compilation. */
4222 #ifdef __GNUC__
4223 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4224 #else
4225 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4226 #endif
4227
4228 #endif /* not THIS_IS_CONFIGURE */
4229 ' > ${tempcname}
4230
4231 # The value of CPP is a quoted variable reference, so we need to do this
4232 # to get its actual value...
4233 CPP=`eval "echo $CPP"`
4234 eval `${CPP} -Isrc ${tempcname} \
4235 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4236 if test "x$SPECIFIED_CFLAGS" = x; then
4237 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4238 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4239 else
4240 REAL_CFLAGS="$CFLAGS"
4241 fi
4242 rm ${tempcname}
4243
4244 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4245
4246 ### Make sure subsequent tests use flags consistent with the build flags.
4247
4248 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4249 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4250 else
4251 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4252 fi
4253
4254
4255
4256
4257 cat >>confdefs.h <<\_ACEOF
4258 #define _GNU_SOURCE 1
4259 _ACEOF
4260
4261
4262
4263 # Check whether --enable-largefile or --disable-largefile was given.
4264 if test "${enable_largefile+set}" = set; then
4265 enableval="$enable_largefile"
4266
4267 fi;
4268 if test "$enable_largefile" != no; then
4269
4270 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4271 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4272 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 ac_cv_sys_largefile_CC=no
4276 if test "$GCC" != yes; then
4277 ac_save_CC=$CC
4278 while :; do
4279 # IRIX 6.2 and later do not support large files by default,
4280 # so use the C compiler's -n32 option if that helps.
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 /* Check that off_t can represent 2**63 - 1 correctly.
4290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291 since some C++ compilers masquerading as C compilers
4292 incorrectly reject 9223372036854775807. */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295 && LARGE_OFF_T % 2147483647 == 1)
4296 ? 1 : -1];
4297 int
4298 main ()
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 break
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 fi
4323 rm -f conftest.$ac_objext
4324 CC="$CC -n32"
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_sys_largefile_CC=' -n32'; break
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 fi
4343 rm -f conftest.$ac_objext
4344 break
4345 done
4346 CC=$ac_save_CC
4347 rm -f conftest.$ac_ext
4348 fi
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4351 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4352 if test "$ac_cv_sys_largefile_CC" != no; then
4353 CC=$CC$ac_cv_sys_largefile_CC
4354 fi
4355
4356 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4357 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 while :; do
4362 ac_cv_sys_file_offset_bits=no
4363 cat >conftest.$ac_ext <<_ACEOF
4364 #line $LINENO "configure"
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <sys/types.h>
4371 /* Check that off_t can represent 2**63 - 1 correctly.
4372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4373 since some C++ compilers masquerading as C compilers
4374 incorrectly reject 9223372036854775807. */
4375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4377 && LARGE_OFF_T % 2147483647 == 1)
4378 ? 1 : -1];
4379 int
4380 main ()
4381 {
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 break
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 fi
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #define _FILE_OFFSET_BITS 64
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4422 ? 1 : -1];
4423 int
4424 main ()
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_cv_sys_file_offset_bits=64; break
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 fi
4449 rm -f conftest.$ac_objext conftest.$ac_ext
4450 break
4451 done
4452 fi
4453 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4454 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4455 if test "$ac_cv_sys_file_offset_bits" != no; then
4456
4457 cat >>confdefs.h <<_ACEOF
4458 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4459 _ACEOF
4460
4461 fi
4462 rm -f conftest*
4463 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4464 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4465 if test "${ac_cv_sys_large_files+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 while :; do
4469 ac_cv_sys_large_files=no
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <sys/types.h>
4478 /* Check that off_t can represent 2**63 - 1 correctly.
4479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4480 since some C++ compilers masquerading as C compilers
4481 incorrectly reject 9223372036854775807. */
4482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4484 && LARGE_OFF_T % 2147483647 == 1)
4485 ? 1 : -1];
4486 int
4487 main ()
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -s conftest.$ac_objext'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 break
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 fi
4512 rm -f conftest.$ac_objext conftest.$ac_ext
4513 cat >conftest.$ac_ext <<_ACEOF
4514 #line $LINENO "configure"
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #define _LARGE_FILES 1
4521 #include <sys/types.h>
4522 /* Check that off_t can represent 2**63 - 1 correctly.
4523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524 since some C++ compilers masquerading as C compilers
4525 incorrectly reject 9223372036854775807. */
4526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528 && LARGE_OFF_T % 2147483647 == 1)
4529 ? 1 : -1];
4530 int
4531 main ()
4532 {
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_sys_large_files=1; break
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 fi
4556 rm -f conftest.$ac_objext conftest.$ac_ext
4557 break
4558 done
4559 fi
4560 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4561 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4562 if test "$ac_cv_sys_large_files" != no; then
4563
4564 cat >>confdefs.h <<_ACEOF
4565 #define _LARGE_FILES $ac_cv_sys_large_files
4566 _ACEOF
4567
4568 fi
4569 rm -f conftest*
4570 fi
4571
4572
4573 if test "${with_sound}" != "no"; then
4574 # Sound support for GNU/Linux and the free BSDs.
4575 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4577 if test "${ac_cv_header_stdc+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 #include <stdlib.h>
4588 #include <stdarg.h>
4589 #include <string.h>
4590 #include <float.h>
4591
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_header_stdc=yes
4613 else
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 ac_cv_header_stdc=no
4618 fi
4619 rm -f conftest.$ac_objext conftest.$ac_ext
4620
4621 if test $ac_cv_header_stdc = yes; then
4622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4623 cat >conftest.$ac_ext <<_ACEOF
4624 #line $LINENO "configure"
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #include <string.h>
4631
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "memchr" >/dev/null 2>&1; then
4635 :
4636 else
4637 ac_cv_header_stdc=no
4638 fi
4639 rm -f conftest*
4640
4641 fi
4642
4643 if test $ac_cv_header_stdc = yes; then
4644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <stdlib.h>
4653
4654 _ACEOF
4655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4656 $EGREP "free" >/dev/null 2>&1; then
4657 :
4658 else
4659 ac_cv_header_stdc=no
4660 fi
4661 rm -f conftest*
4662
4663 fi
4664
4665 if test $ac_cv_header_stdc = yes; then
4666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4667 if test "$cross_compiling" = yes; then
4668 :
4669 else
4670 cat >conftest.$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4672 /* confdefs.h. */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <ctype.h>
4678 #if ((' ' & 0x0FF) == 0x020)
4679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4681 #else
4682 # define ISLOWER(c) \
4683 (('a' <= (c) && (c) <= 'i') \
4684 || ('j' <= (c) && (c) <= 'r') \
4685 || ('s' <= (c) && (c) <= 'z'))
4686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4687 #endif
4688
4689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690 int
4691 main ()
4692 {
4693 int i;
4694 for (i = 0; i < 256; i++)
4695 if (XOR (islower (i), ISLOWER (i))
4696 || toupper (i) != TOUPPER (i))
4697 exit(2);
4698 exit (0);
4699 }
4700 _ACEOF
4701 rm -f conftest$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 :
4713 else
4714 echo "$as_me: program exited with status $ac_status" >&5
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718 ( exit $ac_status )
4719 ac_cv_header_stdc=no
4720 fi
4721 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 fi
4724 fi
4725 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4726 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4727 if test $ac_cv_header_stdc = yes; then
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define STDC_HEADERS 1
4731 _ACEOF
4732
4733 fi
4734
4735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4746 inttypes.h stdint.h unistd.h
4747 do
4748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4749 echo "$as_me:$LINENO: checking for $ac_header" >&5
4750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line $LINENO "configure"
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 $ac_includes_default
4762
4763 #include <$ac_header>
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 eval "$as_ac_Header=yes"
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 eval "$as_ac_Header=no"
4783 fi
4784 rm -f conftest.$ac_objext conftest.$ac_ext
4785 fi
4786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4789 cat >>confdefs.h <<_ACEOF
4790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4791 _ACEOF
4792
4793 fi
4794
4795 done
4796
4797
4798
4799
4800
4801 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4802 do
4803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo "$as_me:$LINENO: checking for $ac_header" >&5
4806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 fi
4810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4812 else
4813 # Is the header compilable?
4814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 $ac_includes_default
4824 #include <$ac_header>
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_header_compiler=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ac_header_compiler=no
4844 fi
4845 rm -f conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4847 echo "${ECHO_T}$ac_header_compiler" >&6
4848
4849 # Is the header present?
4850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <$ac_header>
4860 _ACEOF
4861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null; then
4869 if test -s conftest.err; then
4870 ac_cpp_err=$ac_c_preproc_warn_flag
4871 else
4872 ac_cpp_err=
4873 fi
4874 else
4875 ac_cpp_err=yes
4876 fi
4877 if test -z "$ac_cpp_err"; then
4878 ac_header_preproc=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_header_preproc=no
4884 fi
4885 rm -f conftest.err conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887 echo "${ECHO_T}$ac_header_preproc" >&6
4888
4889 # So? What about this header?
4890 case $ac_header_compiler:$ac_header_preproc in
4891 yes:no )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4896 (
4897 cat <<\_ASBOX
4898 ## ------------------------------------ ##
4899 ## Report this to bug-autoconf@gnu.org. ##
4900 ## ------------------------------------ ##
4901 _ASBOX
4902 ) |
4903 sed "s/^/$as_me: WARNING: /" >&2
4904 ;;
4905 no:yes )
4906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4912 (
4913 cat <<\_ASBOX
4914 ## ------------------------------------ ##
4915 ## Report this to bug-autoconf@gnu.org. ##
4916 ## ------------------------------------ ##
4917 _ASBOX
4918 ) |
4919 sed "s/^/$as_me: WARNING: /" >&2
4920 ;;
4921 esac
4922 echo "$as_me:$LINENO: checking for $ac_header" >&5
4923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 eval "$as_ac_Header=$ac_header_preproc"
4928 fi
4929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4931
4932 fi
4933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4934 cat >>confdefs.h <<_ACEOF
4935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4936 _ACEOF
4937
4938 fi
4939
4940 done
4941
4942 # Emulation library used on NetBSD.
4943 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4944 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4945 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 ac_check_lib_save_LIBS=$LIBS
4949 LIBS="-lossaudio $LIBS"
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957
4958 /* Override any gcc2 internal prototype to avoid an error. */
4959 #ifdef __cplusplus
4960 extern "C"
4961 #endif
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4964 char _oss_ioctl ();
4965 int
4966 main ()
4967 {
4968 _oss_ioctl ();
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -s conftest$ac_exeext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_lib_ossaudio__oss_ioctl=yes
4986 else
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 ac_cv_lib_ossaudio__oss_ioctl=no
4991 fi
4992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4993 LIBS=$ac_check_lib_save_LIBS
4994 fi
4995 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4996 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4997 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4998 LIBSOUND=-lossaudio
4999 else
5000 LIBSOUND=
5001 fi
5002
5003
5004 fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5029 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5030 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5031 sys/param.h sys/vlimit.h sys/resource.h
5032 do
5033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5035 echo "$as_me:$LINENO: checking for $ac_header" >&5
5036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 fi
5040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5042 else
5043 # Is the header compilable?
5044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5046 cat >conftest.$ac_ext <<_ACEOF
5047 #line $LINENO "configure"
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 $ac_includes_default
5054 #include <$ac_header>
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_header_compiler=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 ac_header_compiler=no
5074 fi
5075 rm -f conftest.$ac_objext conftest.$ac_ext
5076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5077 echo "${ECHO_T}$ac_header_compiler" >&6
5078
5079 # Is the header present?
5080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 #include <$ac_header>
5090 _ACEOF
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_c_preproc_warn_flag
5101 else
5102 ac_cpp_err=
5103 fi
5104 else
5105 ac_cpp_err=yes
5106 fi
5107 if test -z "$ac_cpp_err"; then
5108 ac_header_preproc=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_header_preproc=no
5114 fi
5115 rm -f conftest.err conftest.$ac_ext
5116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5117 echo "${ECHO_T}$ac_header_preproc" >&6
5118
5119 # So? What about this header?
5120 case $ac_header_compiler:$ac_header_preproc in
5121 yes:no )
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5126 (
5127 cat <<\_ASBOX
5128 ## ------------------------------------ ##
5129 ## Report this to bug-autoconf@gnu.org. ##
5130 ## ------------------------------------ ##
5131 _ASBOX
5132 ) |
5133 sed "s/^/$as_me: WARNING: /" >&2
5134 ;;
5135 no:yes )
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5142 (
5143 cat <<\_ASBOX
5144 ## ------------------------------------ ##
5145 ## Report this to bug-autoconf@gnu.org. ##
5146 ## ------------------------------------ ##
5147 _ASBOX
5148 ) |
5149 sed "s/^/$as_me: WARNING: /" >&2
5150 ;;
5151 esac
5152 echo "$as_me:$LINENO: checking for $ac_header" >&5
5153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 eval "$as_ac_Header=$ac_header_preproc"
5158 fi
5159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5161
5162 fi
5163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5166 _ACEOF
5167
5168 fi
5169
5170 done
5171
5172
5173 for ac_header in term.h
5174 do
5175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176 echo "$as_me:$LINENO: checking for $ac_header" >&5
5177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 cat >conftest.$ac_ext <<_ACEOF
5182 #line $LINENO "configure"
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #include <$ac_header>
5189 _ACEOF
5190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } >/dev/null; then
5198 if test -s conftest.err; then
5199 ac_cpp_err=$ac_c_preproc_warn_flag
5200 else
5201 ac_cpp_err=
5202 fi
5203 else
5204 ac_cpp_err=yes
5205 fi
5206 if test -z "$ac_cpp_err"; then
5207 eval "$as_ac_Header=yes"
5208 else
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 eval "$as_ac_Header=no"
5213 fi
5214 rm -f conftest.err conftest.$ac_ext
5215 fi
5216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5219 cat >>confdefs.h <<_ACEOF
5220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5221 _ACEOF
5222
5223 fi
5224
5225 done
5226
5227 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5229 if test "${ac_cv_header_stdc+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5243
5244 int
5245 main ()
5246 {
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_header_stdc=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 ac_cv_header_stdc=no
5270 fi
5271 rm -f conftest.$ac_objext conftest.$ac_ext
5272
5273 if test $ac_cv_header_stdc = yes; then
5274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5275 cat >conftest.$ac_ext <<_ACEOF
5276 #line $LINENO "configure"
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <string.h>
5283
5284 _ACEOF
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 $EGREP "memchr" >/dev/null 2>&1; then
5287 :
5288 else
5289 ac_cv_header_stdc=no
5290 fi
5291 rm -f conftest*
5292
5293 fi
5294
5295 if test $ac_cv_header_stdc = yes; then
5296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5297 cat >conftest.$ac_ext <<_ACEOF
5298 #line $LINENO "configure"
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <stdlib.h>
5305
5306 _ACEOF
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "free" >/dev/null 2>&1; then
5309 :
5310 else
5311 ac_cv_header_stdc=no
5312 fi
5313 rm -f conftest*
5314
5315 fi
5316
5317 if test $ac_cv_header_stdc = yes; then
5318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319 if test "$cross_compiling" = yes; then
5320 :
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <ctype.h>
5330 #if ((' ' & 0x0FF) == 0x020)
5331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5333 #else
5334 # define ISLOWER(c) \
5335 (('a' <= (c) && (c) <= 'i') \
5336 || ('j' <= (c) && (c) <= 'r') \
5337 || ('s' <= (c) && (c) <= 'z'))
5338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5339 #endif
5340
5341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 int
5343 main ()
5344 {
5345 int i;
5346 for (i = 0; i < 256; i++)
5347 if (XOR (islower (i), ISLOWER (i))
5348 || toupper (i) != TOUPPER (i))
5349 exit(2);
5350 exit (0);
5351 }
5352 _ACEOF
5353 rm -f conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355 (eval $ac_link) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 :
5365 else
5366 echo "$as_me: program exited with status $ac_status" >&5
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 ( exit $ac_status )
5371 ac_cv_header_stdc=no
5372 fi
5373 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5374 fi
5375 fi
5376 fi
5377 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5378 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5379 if test $ac_cv_header_stdc = yes; then
5380
5381 cat >>confdefs.h <<\_ACEOF
5382 #define STDC_HEADERS 1
5383 _ACEOF
5384
5385 fi
5386
5387 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5388 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5389 if test "${ac_cv_header_time+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 cat >conftest.$ac_ext <<_ACEOF
5393 #line $LINENO "configure"
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <sys/types.h>
5400 #include <sys/time.h>
5401 #include <time.h>
5402
5403 int
5404 main ()
5405 {
5406 if ((struct tm *) 0)
5407 return 0;
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414 (eval $ac_compile) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_cv_header_time=yes
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 ac_cv_header_time=no
5430 fi
5431 rm -f conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5434 echo "${ECHO_T}$ac_cv_header_time" >&6
5435 if test $ac_cv_header_time = yes; then
5436
5437 cat >>confdefs.h <<\_ACEOF
5438 #define TIME_WITH_SYS_TIME 1
5439 _ACEOF
5440
5441 fi
5442
5443 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5444 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5445 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5456 int
5457 main ()
5458 {
5459 #ifndef sys_siglist
5460 char *p = (char *) sys_siglist;
5461 #endif
5462
5463 ;
5464 return 0;
5465 }
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_cv_have_decl_sys_siglist=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_cv_have_decl_sys_siglist=no
5485 fi
5486 rm -f conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5489 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5490 if test $ac_cv_have_decl_sys_siglist = yes; then
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define HAVE_DECL_SYS_SIGLIST 1
5494 _ACEOF
5495
5496
5497 else
5498 cat >>confdefs.h <<_ACEOF
5499 #define HAVE_DECL_SYS_SIGLIST 0
5500 _ACEOF
5501
5502
5503 fi
5504
5505
5506 if test $ac_cv_have_decl_sys_siglist != yes; then
5507 # For Tru64, at least:
5508 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5509 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5510 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5521 int
5522 main ()
5523 {
5524 #ifndef __sys_siglist
5525 char *p = (char *) __sys_siglist;
5526 #endif
5527
5528 ;
5529 return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_have_decl___sys_siglist=yes
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 ac_cv_have_decl___sys_siglist=no
5550 fi
5551 rm -f conftest.$ac_objext conftest.$ac_ext
5552 fi
5553 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5554 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5555 if test $ac_cv_have_decl___sys_siglist = yes; then
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_DECL___SYS_SIGLIST 1
5559 _ACEOF
5560
5561
5562 else
5563 cat >>confdefs.h <<_ACEOF
5564 #define HAVE_DECL___SYS_SIGLIST 0
5565 _ACEOF
5566
5567
5568 fi
5569
5570
5571 if test $ac_cv_have_decl___sys_siglist = yes; then
5572
5573 cat >>confdefs.h <<\_ACEOF
5574 #define sys_siglist __sys_siglist
5575 _ACEOF
5576
5577 fi
5578 fi
5579 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5580 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5581 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <sys/types.h>
5592 #include <sys/wait.h>
5593 #ifndef WEXITSTATUS
5594 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5595 #endif
5596 #ifndef WIFEXITED
5597 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5598 #endif
5599
5600 int
5601 main ()
5602 {
5603 int s;
5604 wait (&s);
5605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_header_sys_wait_h=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_header_sys_wait_h=no
5628 fi
5629 rm -f conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5632 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5633 if test $ac_cv_header_sys_wait_h = yes; then
5634
5635 cat >>confdefs.h <<\_ACEOF
5636 #define HAVE_SYS_WAIT_H 1
5637 _ACEOF
5638
5639 fi
5640
5641
5642 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5643 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5644 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #ifdef TIME_WITH_SYS_TIME
5655 #include <sys/time.h>
5656 #include <time.h>
5657 #else
5658 #ifdef HAVE_SYS_TIME_H
5659 #include <sys/time.h>
5660 #else
5661 #include <time.h>
5662 #endif
5663 #endif
5664 #ifdef HAVE_UTIME_H
5665 #include <utime.h>
5666 #endif
5667 int
5668 main ()
5669 {
5670 static struct utimbuf x; x.actime = x.modtime;
5671 ;
5672 return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 emacs_cv_struct_utimbuf=yes
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 emacs_cv_struct_utimbuf=no
5693 fi
5694 rm -f conftest.$ac_objext conftest.$ac_ext
5695 fi
5696 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5697 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5698 if test $emacs_cv_struct_utimbuf = yes; then
5699
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_STRUCT_UTIMBUF 1
5702 _ACEOF
5703
5704 fi
5705
5706 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5707 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5708 if test "${ac_cv_type_signal+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line $LINENO "configure"
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <sys/types.h>
5719 #include <signal.h>
5720 #ifdef signal
5721 # undef signal
5722 #endif
5723 #ifdef __cplusplus
5724 extern "C" void (*signal (int, void (*)(int)))(int);
5725 #else
5726 void (*signal ()) ();
5727 #endif
5728
5729 int
5730 main ()
5731 {
5732 int i;
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_cv_type_signal=void
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 ac_cv_type_signal=int
5755 fi
5756 rm -f conftest.$ac_objext conftest.$ac_ext
5757 fi
5758 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5759 echo "${ECHO_T}$ac_cv_type_signal" >&6
5760
5761 cat >>confdefs.h <<_ACEOF
5762 #define RETSIGTYPE $ac_cv_type_signal
5763 _ACEOF
5764
5765
5766
5767 echo "$as_me:$LINENO: checking for speed_t" >&5
5768 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5769 if test "${emacs_cv_speed_t+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #include <termios.h>
5780 int
5781 main ()
5782 {
5783 speed_t x = 1;
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 emacs_cv_speed_t=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 emacs_cv_speed_t=no
5806 fi
5807 rm -f conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5810 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5811 if test $emacs_cv_speed_t = yes; then
5812
5813 cat >>confdefs.h <<\_ACEOF
5814 #define HAVE_SPEED_T 1
5815 _ACEOF
5816
5817 fi
5818
5819 echo "$as_me:$LINENO: checking for struct timeval" >&5
5820 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5821 if test "${emacs_cv_struct_timeval+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 #line $LINENO "configure"
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #ifdef TIME_WITH_SYS_TIME
5832 #include <sys/time.h>
5833 #include <time.h>
5834 #else
5835 #ifdef HAVE_SYS_TIME_H
5836 #include <sys/time.h>
5837 #else
5838 #include <time.h>
5839 #endif
5840 #endif
5841 int
5842 main ()
5843 {
5844 static struct timeval x; x.tv_sec = x.tv_usec;
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851 (eval $ac_compile) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 emacs_cv_struct_timeval=yes
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866 emacs_cv_struct_timeval=no
5867 fi
5868 rm -f conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5871 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5872 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5873 if test $emacs_cv_struct_timeval = yes; then
5874
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_TIMEVAL 1
5877 _ACEOF
5878
5879 fi
5880
5881 echo "$as_me:$LINENO: checking for struct exception" >&5
5882 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5883 if test "${emacs_cv_struct_exception+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 cat >conftest.$ac_ext <<_ACEOF
5887 #line $LINENO "configure"
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <math.h>
5894 int
5895 main ()
5896 {
5897 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904 (eval $ac_compile) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -s conftest.$ac_objext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 emacs_cv_struct_exception=yes
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 emacs_cv_struct_exception=no
5920 fi
5921 rm -f conftest.$ac_objext conftest.$ac_ext
5922 fi
5923 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5924 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5925 HAVE_EXCEPTION=$emacs_cv_struct_exception
5926 if test $emacs_cv_struct_exception != yes; then
5927
5928 cat >>confdefs.h <<\_ACEOF
5929 #define NO_MATHERR 1
5930 _ACEOF
5931
5932 fi
5933
5934 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5935 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5936 if test "${ac_cv_struct_tm+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5947 #include <time.h>
5948
5949 int
5950 main ()
5951 {
5952 struct tm *tp; tp->tm_sec;
5953 ;
5954 return 0;
5955 }
5956 _ACEOF
5957 rm -f conftest.$ac_objext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959 (eval $ac_compile) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_struct_tm=time.h
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974 ac_cv_struct_tm=sys/time.h
5975 fi
5976 rm -f conftest.$ac_objext conftest.$ac_ext
5977 fi
5978 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5979 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5980 if test $ac_cv_struct_tm = sys/time.h; then
5981
5982 cat >>confdefs.h <<\_ACEOF
5983 #define TM_IN_SYS_TIME 1
5984 _ACEOF
5985
5986 fi
5987
5988 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5989 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5990 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #include <sys/types.h>
6001 #include <$ac_cv_struct_tm>
6002
6003
6004 int
6005 main ()
6006 {
6007 static struct tm ac_aggr;
6008 if (ac_aggr.tm_zone)
6009 return 0;
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -s conftest.$ac_objext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 ac_cv_member_struct_tm_tm_zone=yes
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 cat >conftest.$ac_ext <<_ACEOF
6032 #line $LINENO "configure"
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039 #include <$ac_cv_struct_tm>
6040
6041
6042 int
6043 main ()
6044 {
6045 static struct tm ac_aggr;
6046 if (sizeof ac_aggr.tm_zone)
6047 return 0;
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054 (eval $ac_compile) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -s conftest.$ac_objext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_member_struct_tm_tm_zone=yes
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 ac_cv_member_struct_tm_tm_zone=no
6070 fi
6071 rm -f conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 rm -f conftest.$ac_objext conftest.$ac_ext
6074 fi
6075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6076 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6077 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6078
6079 cat >>confdefs.h <<_ACEOF
6080 #define HAVE_STRUCT_TM_TM_ZONE 1
6081 _ACEOF
6082
6083
6084 fi
6085
6086 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6087
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_TM_ZONE 1
6090 _ACEOF
6091
6092 else
6093 echo "$as_me:$LINENO: checking for tzname" >&5
6094 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6095 if test "${ac_cv_var_tzname+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <time.h>
6106 #ifndef tzname /* For SGI. */
6107 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6108 #endif
6109
6110 int
6111 main ()
6112 {
6113 atoi(*tzname);
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_var_tzname=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 ac_cv_var_tzname=no
6136 fi
6137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6138 fi
6139 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6140 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6141 if test $ac_cv_var_tzname = yes; then
6142
6143 cat >>confdefs.h <<\_ACEOF
6144 #define HAVE_TZNAME 1
6145 _ACEOF
6146
6147 fi
6148 fi
6149
6150 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6151 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6152 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <time.h>
6163
6164 int
6165 main ()
6166 {
6167 static struct tm ac_aggr;
6168 if (ac_aggr.tm_gmtoff)
6169 return 0;
6170 ;
6171 return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -s conftest.$ac_objext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_member_struct_tm_tm_gmtoff=yes
6187 else
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <time.h>
6199
6200 int
6201 main ()
6202 {
6203 static struct tm ac_aggr;
6204 if (sizeof ac_aggr.tm_gmtoff)
6205 return 0;
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_member_struct_tm_tm_gmtoff=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_cv_member_struct_tm_tm_gmtoff=no
6228 fi
6229 rm -f conftest.$ac_objext conftest.$ac_ext
6230 fi
6231 rm -f conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6234 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6235 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6236
6237 cat >>confdefs.h <<\_ACEOF
6238 #define HAVE_TM_GMTOFF 1
6239 _ACEOF
6240
6241 fi
6242
6243
6244
6245 echo "$as_me:$LINENO: checking for function prototypes" >&5
6246 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6247 if test "$ac_cv_prog_cc_stdc" != no; then
6248 echo "$as_me:$LINENO: result: yes" >&5
6249 echo "${ECHO_T}yes" >&6
6250
6251 cat >>confdefs.h <<\_ACEOF
6252 #define PROTOTYPES 1
6253 _ACEOF
6254
6255
6256 cat >>confdefs.h <<\_ACEOF
6257 #define __PROTOTYPES 1
6258 _ACEOF
6259
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6263 fi
6264
6265 echo "$as_me:$LINENO: checking for working volatile" >&5
6266 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6267 if test "${ac_cv_c_volatile+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 cat >conftest.$ac_ext <<_ACEOF
6271 #line $LINENO "configure"
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277
6278 int
6279 main ()
6280 {
6281
6282 volatile int x;
6283 int * volatile y;
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6290 (eval $ac_compile) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_c_volatile=yes
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 ac_cv_c_volatile=no
6306 fi
6307 rm -f conftest.$ac_objext conftest.$ac_ext
6308 fi
6309 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6310 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6311 if test $ac_cv_c_volatile = no; then
6312
6313 cat >>confdefs.h <<\_ACEOF
6314 #define volatile
6315 _ACEOF
6316
6317 fi
6318
6319 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6320 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6321 if test "${ac_cv_c_const+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331
6332 int
6333 main ()
6334 {
6335 /* FIXME: Include the comments suggested by Paul. */
6336 #ifndef __cplusplus
6337 /* Ultrix mips cc rejects this. */
6338 typedef int charset[2];
6339 const charset x;
6340 /* SunOS 4.1.1 cc rejects this. */
6341 char const *const *ccp;
6342 char **p;
6343 /* NEC SVR4.0.2 mips cc rejects this. */
6344 struct point {int x, y;};
6345 static struct point const zero = {0,0};
6346 /* AIX XL C 1.02.0.0 rejects this.
6347 It does not let you subtract one const X* pointer from another in
6348 an arm of an if-expression whose if-part is not a constant
6349 expression */
6350 const char *g = "string";
6351 ccp = &g + (g ? g-g : 0);
6352 /* HPUX 7.0 cc rejects these. */
6353 ++ccp;
6354 p = (char**) ccp;
6355 ccp = (char const *const *) p;
6356 { /* SCO 3.2v4 cc rejects this. */
6357 char *t;
6358 char const *s = 0 ? (char *) 0 : (char const *) 0;
6359
6360 *t++ = 0;
6361 }
6362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6363 int x[] = {25, 17};
6364 const int *foo = &x[0];
6365 ++foo;
6366 }
6367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6368 typedef const int *iptr;
6369 iptr p = 0;
6370 ++p;
6371 }
6372 { /* AIX XL C 1.02.0.0 rejects this saying
6373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6374 struct s { int j; const int *ap[3]; };
6375 struct s *b; b->j = 5;
6376 }
6377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6378 const int foo = 10;
6379 }
6380 #endif
6381
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_c_const=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_cv_c_const=no
6404 fi
6405 rm -f conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6408 echo "${ECHO_T}$ac_cv_c_const" >&6
6409 if test $ac_cv_c_const = no; then
6410
6411 cat >>confdefs.h <<\_ACEOF
6412 #define const
6413 _ACEOF
6414
6415 fi
6416
6417 echo "$as_me:$LINENO: checking for void * support" >&5
6418 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6419 if test "${emacs_cv_void_star+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line $LINENO "configure"
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429
6430 int
6431 main ()
6432 {
6433 void * foo;
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 emacs_cv_void_star=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 emacs_cv_void_star=no
6456 fi
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6458 fi
6459 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6460 echo "${ECHO_T}$emacs_cv_void_star" >&6
6461 if test $emacs_cv_void_star = yes; then
6462 cat >>confdefs.h <<\_ACEOF
6463 #define POINTER_TYPE void
6464 _ACEOF
6465
6466 else
6467 cat >>confdefs.h <<\_ACEOF
6468 #define POINTER_TYPE char
6469 _ACEOF
6470
6471 fi
6472
6473
6474
6475 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6476 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6477 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6478 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 cat >conftest.make <<\_ACEOF
6482 all:
6483 @echo 'ac_maketemp="$(MAKE)"'
6484 _ACEOF
6485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6486 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6487 if test -n "$ac_maketemp"; then
6488 eval ac_cv_prog_make_${ac_make}_set=yes
6489 else
6490 eval ac_cv_prog_make_${ac_make}_set=no
6491 fi
6492 rm -f conftest.make
6493 fi
6494 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6495 echo "$as_me:$LINENO: result: yes" >&5
6496 echo "${ECHO_T}yes" >&6
6497 SET_MAKE=
6498 else
6499 echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6
6501 SET_MAKE="MAKE=${MAKE-make}"
6502 fi
6503
6504
6505 echo "$as_me:$LINENO: checking for long file names" >&5
6506 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6507 if test "${ac_cv_sys_long_file_names+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 ac_cv_sys_long_file_names=yes
6511 # Test for long file names in all the places we know might matter:
6512 # . the current directory, where building will happen
6513 # $prefix/lib where we will be installing things
6514 # $exec_prefix/lib likewise
6515 # eval it to expand exec_prefix.
6516 # $TMPDIR if set, where it might want to write temporary files
6517 # if $TMPDIR is not set:
6518 # /tmp where it might want to write temporary files
6519 # /var/tmp likewise
6520 # /usr/tmp likewise
6521 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6522 ac_tmpdirs=$TMPDIR
6523 else
6524 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6525 fi
6526 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6527 test -d $ac_dir || continue
6528 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6529 ac_xdir=$ac_dir/cf$$
6530 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6531 ac_tf1=$ac_xdir/conftest9012345
6532 ac_tf2=$ac_xdir/conftest9012346
6533 (echo 1 >$ac_tf1) 2>/dev/null
6534 (echo 2 >$ac_tf2) 2>/dev/null
6535 ac_val=`cat $ac_tf1 2>/dev/null`
6536 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6537 ac_cv_sys_long_file_names=no
6538 rm -rf $ac_xdir 2>/dev/null
6539 break
6540 fi
6541 rm -rf $ac_xdir 2>/dev/null
6542 done
6543 fi
6544 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6545 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6546 if test $ac_cv_sys_long_file_names = yes; then
6547
6548 cat >>confdefs.h <<\_ACEOF
6549 #define HAVE_LONG_FILE_NAMES 1
6550 _ACEOF
6551
6552 fi
6553
6554
6555 #### Choose a window system.
6556
6557 echo "$as_me:$LINENO: checking for X" >&5
6558 echo $ECHO_N "checking for X... $ECHO_C" >&6
6559
6560
6561 # Check whether --with-x or --without-x was given.
6562 if test "${with_x+set}" = set; then
6563 withval="$with_x"
6564
6565 fi;
6566 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6567 if test "x$with_x" = xno; then
6568 # The user explicitly disabled X.
6569 have_x=disabled
6570 else
6571 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6572 # Both variables are already set.
6573 have_x=yes
6574 else
6575 if test "${ac_cv_have_x+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 # One or both of the vars are not set, and there is no cached value.
6579 ac_x_includes=no ac_x_libraries=no
6580 rm -fr conftest.dir
6581 if mkdir conftest.dir; then
6582 cd conftest.dir
6583 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6584 cat >Imakefile <<'_ACEOF'
6585 acfindx:
6586 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6587 _ACEOF
6588 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6590 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6591 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6592 for ac_extension in a so sl; do
6593 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6594 test -f $ac_im_libdir/libX11.$ac_extension; then
6595 ac_im_usrlibdir=$ac_im_libdir; break
6596 fi
6597 done
6598 # Screen out bogus values from the imake configuration. They are
6599 # bogus both because they are the default anyway, and because
6600 # using them would break gcc on systems where it needs fixed includes.
6601 case $ac_im_incroot in
6602 /usr/include) ;;
6603 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6604 esac
6605 case $ac_im_usrlibdir in
6606 /usr/lib | /lib) ;;
6607 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6608 esac
6609 fi
6610 cd ..
6611 rm -fr conftest.dir
6612 fi
6613
6614 # Standard set of common directories for X headers.
6615 # Check X11 before X11Rn because it is often a symlink to the current release.
6616 ac_x_header_dirs='
6617 /usr/X11/include
6618 /usr/X11R6/include
6619 /usr/X11R5/include
6620 /usr/X11R4/include
6621
6622 /usr/include/X11
6623 /usr/include/X11R6
6624 /usr/include/X11R5
6625 /usr/include/X11R4
6626
6627 /usr/local/X11/include
6628 /usr/local/X11R6/include
6629 /usr/local/X11R5/include
6630 /usr/local/X11R4/include
6631
6632 /usr/local/include/X11
6633 /usr/local/include/X11R6
6634 /usr/local/include/X11R5
6635 /usr/local/include/X11R4
6636
6637 /usr/X386/include
6638 /usr/x386/include
6639 /usr/XFree86/include/X11
6640
6641 /usr/include
6642 /usr/local/include
6643 /usr/unsupported/include
6644 /usr/athena/include
6645 /usr/local/x11r5/include
6646 /usr/lpp/Xamples/include
6647
6648 /usr/openwin/include
6649 /usr/openwin/share/include'
6650
6651 if test "$ac_x_includes" = no; then
6652 # Guess where to find include files, by looking for Intrinsic.h.
6653 # First, try using that file with no special directory specified.
6654 cat >conftest.$ac_ext <<_ACEOF
6655 #line $LINENO "configure"
6656 /* confdefs.h. */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 #include <X11/Intrinsic.h>
6662 _ACEOF
6663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } >/dev/null; then
6671 if test -s conftest.err; then
6672 ac_cpp_err=$ac_c_preproc_warn_flag
6673 else
6674 ac_cpp_err=
6675 fi
6676 else
6677 ac_cpp_err=yes
6678 fi
6679 if test -z "$ac_cpp_err"; then
6680 # We can compile using X headers with no special include directory.
6681 ac_x_includes=
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 for ac_dir in $ac_x_header_dirs; do
6687 if test -r "$ac_dir/X11/Intrinsic.h"; then
6688 ac_x_includes=$ac_dir
6689 break
6690 fi
6691 done
6692 fi
6693 rm -f conftest.err conftest.$ac_ext
6694 fi # $ac_x_includes = no
6695
6696 if test "$ac_x_libraries" = no; then
6697 # Check for the libraries.
6698 # See if we find them without any special options.
6699 # Don't add to $LIBS permanently.
6700 ac_save_LIBS=$LIBS
6701 LIBS="-lXt $LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #include <X11/Intrinsic.h>
6710 int
6711 main ()
6712 {
6713 XtMalloc (0)
6714 ;
6715 return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -s conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 LIBS=$ac_save_LIBS
6731 # We can link X programs with no special library path.
6732 ac_x_libraries=
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 LIBS=$ac_save_LIBS
6738 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6739 do
6740 # Don't even attempt the hair of trying to link an X program!
6741 for ac_extension in a so sl; do
6742 if test -r $ac_dir/libXt.$ac_extension; then
6743 ac_x_libraries=$ac_dir
6744 break 2
6745 fi
6746 done
6747 done
6748 fi
6749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6750 fi # $ac_x_libraries = no
6751
6752 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6753 # Didn't find X anywhere. Cache the known absence of X.
6754 ac_cv_have_x="have_x=no"
6755 else
6756 # Record where we found X for the cache.
6757 ac_cv_have_x="have_x=yes \
6758 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6759 fi
6760 fi
6761
6762 fi
6763 eval "$ac_cv_have_x"
6764 fi # $with_x != no
6765
6766 if test "$have_x" != yes; then
6767 echo "$as_me:$LINENO: result: $have_x" >&5
6768 echo "${ECHO_T}$have_x" >&6
6769 no_x=yes
6770 else
6771 # If each of the values was on the command line, it overrides each guess.
6772 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6773 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6774 # Update the cache value to reflect the command line values.
6775 ac_cv_have_x="have_x=yes \
6776 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6777 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6778 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6779 fi
6780
6781 if test "$no_x" = yes; then
6782 window_system=none
6783 else
6784 window_system=x11
6785 fi
6786
6787 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6788 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6789 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6790 x_default_search_path=""
6791 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6792 x_search_path="\
6793 ${x_library}/X11/%L/%T/%N%C%S:\
6794 ${x_library}/X11/%l/%T/%N%C%S:\
6795 ${x_library}/X11/%T/%N%C%S:\
6796 ${x_library}/X11/%L/%T/%N%S:\
6797 ${x_library}/X11/%l/%T/%N%S:\
6798 ${x_library}/X11/%T/%N%S"
6799 if test x"${x_default_search_path}" = x; then
6800 x_default_search_path=${x_search_path}
6801 else
6802 x_default_search_path="${x_search_path}:${x_default_search_path}"
6803 fi
6804 done
6805 fi
6806 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6807 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6808 fi
6809
6810 if test x"${x_includes}" = x; then
6811 bitmapdir=/usr/include/X11/bitmaps
6812 else
6813 # accumulate include directories that have X11 bitmap subdirectories
6814 bmd_acc="dummyval"
6815 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6816 if test -d "${bmd}/X11/bitmaps"; then
6817 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6818 fi
6819 if test -d "${bmd}/bitmaps"; then
6820 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6821 fi
6822 done
6823 if test ${bmd_acc} != "dummyval"; then
6824 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6825 fi
6826 fi
6827
6828 case "${window_system}" in
6829 x11 )
6830 HAVE_X_WINDOWS=yes
6831 HAVE_X11=yes
6832 case "${with_x_toolkit}" in
6833 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6834 motif ) USE_X_TOOLKIT=MOTIF ;;
6835 gtk ) with_gtk=yes
6836 USE_X_TOOLKIT=none ;;
6837 no ) USE_X_TOOLKIT=none ;;
6838 * ) USE_X_TOOLKIT=maybe ;;
6839 esac
6840 ;;
6841 none )
6842 HAVE_X_WINDOWS=no
6843 HAVE_X11=no
6844 USE_X_TOOLKIT=none
6845 ;;
6846 esac
6847
6848 ### If we're using X11, we should use the X menu package.
6849 HAVE_MENUS=no
6850 case ${HAVE_X11} in
6851 yes ) HAVE_MENUS=yes ;;
6852 esac
6853
6854 if test "${opsys}" = "hpux9"; then
6855 case "${x_libraries}" in
6856 *X11R4* )
6857 opsysfile="s/hpux9-x11r4.h"
6858 ;;
6859 esac
6860 fi
6861
6862 if test "${opsys}" = "hpux9shr"; then
6863 case "${x_libraries}" in
6864 *X11R4* )
6865 opsysfile="s/hpux9shxr4.h"
6866 ;;
6867 esac
6868 fi
6869
6870 ### Compute the unexec source name from the object name.
6871 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6872
6873 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6874 # Assume not, until told otherwise.
6875 GNU_MALLOC=yes
6876 doug_lea_malloc=yes
6877 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6878 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6879 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 cat >conftest.$ac_ext <<_ACEOF
6883 #line $LINENO "configure"
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char malloc_get_state (); below.
6891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892 <limits.h> exists even on freestanding compilers. */
6893 #ifdef __STDC__
6894 # include <limits.h>
6895 #else
6896 # include <assert.h>
6897 #endif
6898 /* Override any gcc2 internal prototype to avoid an error. */
6899 #ifdef __cplusplus
6900 extern "C"
6901 {
6902 #endif
6903 /* We use char because int might match the return type of a gcc2
6904 builtin and then its argument prototype would still apply. */
6905 char malloc_get_state ();
6906 /* The GNU C library defines this for functions which it implements
6907 to always fail with ENOSYS. Some functions are actually named
6908 something starting with __ and the normal name is an alias. */
6909 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6910 choke me
6911 #else
6912 char (*f) () = malloc_get_state;
6913 #endif
6914 #ifdef __cplusplus
6915 }
6916 #endif
6917
6918 int
6919 main ()
6920 {
6921 return f != malloc_get_state;
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 rm -f conftest.$ac_objext conftest$ac_exeext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6928 (eval $ac_link) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try='test -s conftest$ac_exeext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_cv_func_malloc_get_state=yes
6939 else
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 ac_cv_func_malloc_get_state=no
6944 fi
6945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6946 fi
6947 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6948 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6949 if test $ac_cv_func_malloc_get_state = yes; then
6950 :
6951 else
6952 doug_lea_malloc=no
6953 fi
6954
6955 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6956 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6957 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 #line $LINENO "configure"
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 /* System header to define __stub macros and hopefully few prototypes,
6968 which can conflict with char malloc_set_state (); below.
6969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970 <limits.h> exists even on freestanding compilers. */
6971 #ifdef __STDC__
6972 # include <limits.h>
6973 #else
6974 # include <assert.h>
6975 #endif
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 #ifdef __cplusplus
6978 extern "C"
6979 {
6980 #endif
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6983 char malloc_set_state ();
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6988 choke me
6989 #else
6990 char (*f) () = malloc_set_state;
6991 #endif
6992 #ifdef __cplusplus
6993 }
6994 #endif
6995
6996 int
6997 main ()
6998 {
6999 return f != malloc_set_state;
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -s conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_func_malloc_set_state=yes
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_cv_func_malloc_set_state=no
7022 fi
7023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7024 fi
7025 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7026 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7027 if test $ac_cv_func_malloc_set_state = yes; then
7028 :
7029 else
7030 doug_lea_malloc=no
7031 fi
7032
7033 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7034 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7035 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 #line $LINENO "configure"
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 extern void (* __after_morecore_hook)();
7046 int
7047 main ()
7048 {
7049 __after_morecore_hook = 0
7050 ;
7051 return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext conftest$ac_exeext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -s conftest$ac_exeext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 emacs_cv_var___after_morecore_hook=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 emacs_cv_var___after_morecore_hook=no
7072 fi
7073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7074 fi
7075 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7076 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7077 if test $emacs_cv_var___after_morecore_hook = no; then
7078 doug_lea_malloc=no
7079 fi
7080 if test "${system_malloc}" = "yes"; then
7081 GNU_MALLOC=no
7082 GNU_MALLOC_reason="
7083 (The GNU allocators don't work with this system configuration.)"
7084 fi
7085 if test "$doug_lea_malloc" = "yes" ; then
7086 if test "$GNU_MALLOC" = yes ; then
7087 GNU_MALLOC_reason="
7088 (Using Doug Lea's new malloc from the GNU C Library.)"
7089 fi
7090
7091 cat >>confdefs.h <<\_ACEOF
7092 #define DOUG_LEA_MALLOC 1
7093 _ACEOF
7094
7095 fi
7096
7097 if test x"${REL_ALLOC}" = x; then
7098 REL_ALLOC=${GNU_MALLOC}
7099 fi
7100
7101
7102
7103
7104 for ac_header in stdlib.h unistd.h
7105 do
7106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7108 echo "$as_me:$LINENO: checking for $ac_header" >&5
7109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 fi
7113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7115 else
7116 # Is the header compilable?
7117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7119 cat >conftest.$ac_ext <<_ACEOF
7120 #line $LINENO "configure"
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 #include <$ac_header>
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try='test -s conftest.$ac_objext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_header_compiler=yes
7142 else
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 ac_header_compiler=no
7147 fi
7148 rm -f conftest.$ac_objext conftest.$ac_ext
7149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7150 echo "${ECHO_T}$ac_header_compiler" >&6
7151
7152 # Is the header present?
7153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <$ac_header>
7163 _ACEOF
7164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } >/dev/null; then
7172 if test -s conftest.err; then
7173 ac_cpp_err=$ac_c_preproc_warn_flag
7174 else
7175 ac_cpp_err=
7176 fi
7177 else
7178 ac_cpp_err=yes
7179 fi
7180 if test -z "$ac_cpp_err"; then
7181 ac_header_preproc=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_header_preproc=no
7187 fi
7188 rm -f conftest.err conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7190 echo "${ECHO_T}$ac_header_preproc" >&6
7191
7192 # So? What about this header?
7193 case $ac_header_compiler:$ac_header_preproc in
7194 yes:no )
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7199 (
7200 cat <<\_ASBOX
7201 ## ------------------------------------ ##
7202 ## Report this to bug-autoconf@gnu.org. ##
7203 ## ------------------------------------ ##
7204 _ASBOX
7205 ) |
7206 sed "s/^/$as_me: WARNING: /" >&2
7207 ;;
7208 no:yes )
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7215 (
7216 cat <<\_ASBOX
7217 ## ------------------------------------ ##
7218 ## Report this to bug-autoconf@gnu.org. ##
7219 ## ------------------------------------ ##
7220 _ASBOX
7221 ) |
7222 sed "s/^/$as_me: WARNING: /" >&2
7223 ;;
7224 esac
7225 echo "$as_me:$LINENO: checking for $ac_header" >&5
7226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 eval "$as_ac_Header=$ac_header_preproc"
7231 fi
7232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7234
7235 fi
7236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7237 cat >>confdefs.h <<_ACEOF
7238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239 _ACEOF
7240
7241 fi
7242
7243 done
7244
7245
7246 for ac_func in getpagesize
7247 do
7248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7249 echo "$as_me:$LINENO: checking for $ac_func" >&5
7250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7251 if eval "test \"\${$as_ac_var+set}\" = set"; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
7265 #ifdef __STDC__
7266 # include <limits.h>
7267 #else
7268 # include <assert.h>
7269 #endif
7270 /* Override any gcc2 internal prototype to avoid an error. */
7271 #ifdef __cplusplus
7272 extern "C"
7273 {
7274 #endif
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char $ac_func ();
7278 /* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7282 choke me
7283 #else
7284 char (*f) () = $ac_func;
7285 #endif
7286 #ifdef __cplusplus
7287 }
7288 #endif
7289
7290 int
7291 main ()
7292 {
7293 return f != $ac_func;
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300 (eval $ac_link) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 eval "$as_ac_var=yes"
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 eval "$as_ac_var=no"
7316 fi
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 fi
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 fi
7327 done
7328
7329 echo "$as_me:$LINENO: checking for working mmap" >&5
7330 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7331 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 if test "$cross_compiling" = yes; then
7335 ac_cv_func_mmap_fixed_mapped=no
7336 else
7337 cat >conftest.$ac_ext <<_ACEOF
7338 #line $LINENO "configure"
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7345 /* malloc might have been renamed as rpl_malloc. */
7346 #undef malloc
7347
7348 /* Thanks to Mike Haertel and Jim Avera for this test.
7349 Here is a matrix of mmap possibilities:
7350 mmap private not fixed
7351 mmap private fixed at somewhere currently unmapped
7352 mmap private fixed at somewhere already mapped
7353 mmap shared not fixed
7354 mmap shared fixed at somewhere currently unmapped
7355 mmap shared fixed at somewhere already mapped
7356 For private mappings, we should verify that changes cannot be read()
7357 back from the file, nor mmap's back from the file at a different
7358 address. (There have been systems where private was not correctly
7359 implemented like the infamous i386 svr4.0, and systems where the
7360 VM page cache was not coherent with the file system buffer cache
7361 like early versions of FreeBSD and possibly contemporary NetBSD.)
7362 For shared mappings, we should conversely verify that changes get
7363 propagated back to all the places they're supposed to be.
7364
7365 Grep wants private fixed already mapped.
7366 The main things grep needs to know about mmap are:
7367 * does it exist and is it safe to write into the mmap'd area
7368 * how to use it (BSD variants) */
7369
7370 #include <fcntl.h>
7371 #include <sys/mman.h>
7372
7373 #if !STDC_HEADERS && !HAVE_STDLIB_H
7374 char *malloc ();
7375 #endif
7376
7377 /* This mess was copied from the GNU getpagesize.h. */
7378 #if !HAVE_GETPAGESIZE
7379 /* Assume that all systems that can run configure have sys/param.h. */
7380 # if !HAVE_SYS_PARAM_H
7381 # define HAVE_SYS_PARAM_H 1
7382 # endif
7383
7384 # ifdef _SC_PAGESIZE
7385 # define getpagesize() sysconf(_SC_PAGESIZE)
7386 # else /* no _SC_PAGESIZE */
7387 # if HAVE_SYS_PARAM_H
7388 # include <sys/param.h>
7389 # ifdef EXEC_PAGESIZE
7390 # define getpagesize() EXEC_PAGESIZE
7391 # else /* no EXEC_PAGESIZE */
7392 # ifdef NBPG
7393 # define getpagesize() NBPG * CLSIZE
7394 # ifndef CLSIZE
7395 # define CLSIZE 1
7396 # endif /* no CLSIZE */
7397 # else /* no NBPG */
7398 # ifdef NBPC
7399 # define getpagesize() NBPC
7400 # else /* no NBPC */
7401 # ifdef PAGESIZE
7402 # define getpagesize() PAGESIZE
7403 # endif /* PAGESIZE */
7404 # endif /* no NBPC */
7405 # endif /* no NBPG */
7406 # endif /* no EXEC_PAGESIZE */
7407 # else /* no HAVE_SYS_PARAM_H */
7408 # define getpagesize() 8192 /* punt totally */
7409 # endif /* no HAVE_SYS_PARAM_H */
7410 # endif /* no _SC_PAGESIZE */
7411
7412 #endif /* no HAVE_GETPAGESIZE */
7413
7414 int
7415 main ()
7416 {
7417 char *data, *data2, *data3;
7418 int i, pagesize;
7419 int fd;
7420
7421 pagesize = getpagesize ();
7422
7423 /* First, make a file with some known garbage in it. */
7424 data = (char *) malloc (pagesize);
7425 if (!data)
7426 exit (1);
7427 for (i = 0; i < pagesize; ++i)
7428 *(data + i) = rand ();
7429 umask (0);
7430 fd = creat ("conftest.mmap", 0600);
7431 if (fd < 0)
7432 exit (1);
7433 if (write (fd, data, pagesize) != pagesize)
7434 exit (1);
7435 close (fd);
7436
7437 /* Next, try to mmap the file at a fixed address which already has
7438 something else allocated at it. If we can, also make sure that
7439 we see the same garbage. */
7440 fd = open ("conftest.mmap", O_RDWR);
7441 if (fd < 0)
7442 exit (1);
7443 data2 = (char *) malloc (2 * pagesize);
7444 if (!data2)
7445 exit (1);
7446 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7447 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7448 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7449 exit (1);
7450 for (i = 0; i < pagesize; ++i)
7451 if (*(data + i) != *(data2 + i))
7452 exit (1);
7453
7454 /* Finally, make sure that changes to the mapped area do not
7455 percolate back to the file as seen by read(). (This is a bug on
7456 some variants of i386 svr4.0.) */
7457 for (i = 0; i < pagesize; ++i)
7458 *(data2 + i) = *(data2 + i) + 1;
7459 data3 = (char *) malloc (pagesize);
7460 if (!data3)
7461 exit (1);
7462 if (read (fd, data3, pagesize) != pagesize)
7463 exit (1);
7464 for (i = 0; i < pagesize; ++i)
7465 if (*(data + i) != *(data3 + i))
7466 exit (1);
7467 close (fd);
7468 exit (0);
7469 }
7470 _ACEOF
7471 rm -f conftest$ac_exeext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473 (eval $ac_link) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_func_mmap_fixed_mapped=yes
7483 else
7484 echo "$as_me: program exited with status $ac_status" >&5
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 ( exit $ac_status )
7489 ac_cv_func_mmap_fixed_mapped=no
7490 fi
7491 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7492 fi
7493 fi
7494 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7495 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7496 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7497
7498 cat >>confdefs.h <<\_ACEOF
7499 #define HAVE_MMAP 1
7500 _ACEOF
7501
7502 fi
7503 rm -f conftest.mmap
7504
7505 if test $use_mmap_for_buffers = yes; then
7506 REL_ALLOC=no
7507 fi
7508
7509 LIBS="$libsrc_libs $LIBS"
7510
7511
7512 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7513 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7514 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 ac_check_lib_save_LIBS=$LIBS
7518 LIBS="-ldnet $LIBS"
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #line $LINENO "configure"
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526
7527 /* Override any gcc2 internal prototype to avoid an error. */
7528 #ifdef __cplusplus
7529 extern "C"
7530 #endif
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7533 char dnet_ntoa ();
7534 int
7535 main ()
7536 {
7537 dnet_ntoa ();
7538 ;
7539 return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544 (eval $ac_link) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -s conftest$ac_exeext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_lib_dnet_dnet_ntoa=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ac_cv_lib_dnet_dnet_ntoa=no
7560 fi
7561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7562 LIBS=$ac_check_lib_save_LIBS
7563 fi
7564 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7565 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7566 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7567 cat >>confdefs.h <<_ACEOF
7568 #define HAVE_LIBDNET 1
7569 _ACEOF
7570
7571 LIBS="-ldnet $LIBS"
7572
7573 fi
7574
7575
7576 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7577 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7578 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 ac_check_lib_save_LIBS=$LIBS
7582 LIBS="-lXbsd $LIBS"
7583 cat >conftest.$ac_ext <<_ACEOF
7584 #line $LINENO "configure"
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590
7591
7592 int
7593 main ()
7594 {
7595 main ();
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext conftest$ac_exeext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602 (eval $ac_link) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try='test -s conftest$ac_exeext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_cv_lib_Xbsd_main=yes
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 ac_cv_lib_Xbsd_main=no
7618 fi
7619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7621 fi
7622 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7623 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7624 if test $ac_cv_lib_Xbsd_main = yes; then
7625 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7626 fi
7627
7628
7629
7630 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7631 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7632 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lpthreads $LIBS"
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char cma_open ();
7652 int
7653 main ()
7654 {
7655 cma_open ();
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_lib_pthreads_cma_open=yes
7673 else
7674 echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_cv_lib_pthreads_cma_open=no
7678 fi
7679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680 LIBS=$ac_check_lib_save_LIBS
7681 fi
7682 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7683 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7684 if test $ac_cv_lib_pthreads_cma_open = yes; then
7685 cat >>confdefs.h <<_ACEOF
7686 #define HAVE_LIBPTHREADS 1
7687 _ACEOF
7688
7689 LIBS="-lpthreads $LIBS"
7690
7691 fi
7692
7693
7694 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7695 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7696 if test -d /usr/X386/include; then
7697 HAVE_XFREE386=yes
7698 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7699 else
7700 HAVE_XFREE386=no
7701 fi
7702 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7703 echo "${ECHO_T}$HAVE_XFREE386" >&6
7704
7705 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7706 # used for the tests that follow. We set them back to REAL_CFLAGS and
7707 # REAL_CPPFLAGS later on.
7708
7709 REAL_CPPFLAGS="$CPPFLAGS"
7710
7711 if test "${HAVE_X11}" = "yes"; then
7712 DEFS="$C_SWITCH_X_SITE $DEFS"
7713 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7714 LIBS="$LIBX $LIBS"
7715 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7716 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7717
7718 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7719 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7720 # but it's more convenient here to set LD_RUN_PATH
7721 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7722 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7723 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7724 export LD_RUN_PATH
7725 fi
7726
7727 if test "${opsys}" = "gnu-linux"; then
7728 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7729 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737
7738 int
7739 main ()
7740 {
7741 XOpenDisplay ("foo");
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 xlinux_first_failure=no
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 xlinux_first_failure=yes
7764 fi
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 if test "${xlinux_first_failure}" = "yes"; then
7767 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7768 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7769 OLD_CPPFLAGS="$CPPFLAGS"
7770 OLD_LIBS="$LIBS"
7771 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7772 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7773 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7774 LIBS="$LIBS -b i486-linuxaout"
7775 cat >conftest.$ac_ext <<_ACEOF
7776 #line $LINENO "configure"
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782
7783 int
7784 main ()
7785 {
7786 XOpenDisplay ("foo");
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793 (eval $ac_link) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 xlinux_second_failure=no
7804 else
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 xlinux_second_failure=yes
7809 fi
7810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7811 if test "${xlinux_second_failure}" = "yes"; then
7812 # If we get the same failure with -b, there is no use adding -b.
7813 # So take it out. This plays safe.
7814 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7815 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7816 CPPFLAGS="$OLD_CPPFLAGS"
7817 LIBS="$OLD_LIBS"
7818 echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6
7820 else
7821 echo "$as_me:$LINENO: result: yes" >&5
7822 echo "${ECHO_T}yes" >&6
7823 fi
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7827 fi
7828 fi
7829
7830 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7831 # header files included from there.
7832 echo "$as_me:$LINENO: checking for Xkb" >&5
7833 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7835 #line $LINENO "configure"
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 #include <X11/Xlib.h>
7842 #include <X11/XKBlib.h>
7843 int
7844 main ()
7845 {
7846 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -s conftest$ac_exeext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 emacs_xkb=yes
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 emacs_xkb=no
7869 fi
7870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7871 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7872 echo "${ECHO_T}$emacs_xkb" >&6
7873 if test $emacs_xkb = yes; then
7874
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_XKBGETKEYBOARD 1
7877 _ACEOF
7878
7879 fi
7880
7881
7882
7883
7884
7885 for ac_func in XrmSetDatabase XScreenResourceString \
7886 XScreenNumberOfScreen XSetWMProtocols
7887 do
7888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7889 echo "$as_me:$LINENO: checking for $ac_func" >&5
7890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7891 if eval "test \"\${$as_ac_var+set}\" = set"; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 cat >conftest.$ac_ext <<_ACEOF
7895 #line $LINENO "configure"
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 /* System header to define __stub macros and hopefully few prototypes,
7902 which can conflict with char $ac_func (); below.
7903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904 <limits.h> exists even on freestanding compilers. */
7905 #ifdef __STDC__
7906 # include <limits.h>
7907 #else
7908 # include <assert.h>
7909 #endif
7910 /* Override any gcc2 internal prototype to avoid an error. */
7911 #ifdef __cplusplus
7912 extern "C"
7913 {
7914 #endif
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7917 char $ac_func ();
7918 /* The GNU C library defines this for functions which it implements
7919 to always fail with ENOSYS. Some functions are actually named
7920 something starting with __ and the normal name is an alias. */
7921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7922 choke me
7923 #else
7924 char (*f) () = $ac_func;
7925 #endif
7926 #ifdef __cplusplus
7927 }
7928 #endif
7929
7930 int
7931 main ()
7932 {
7933 return f != $ac_func;
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940 (eval $ac_link) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 eval "$as_ac_var=yes"
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 eval "$as_ac_var=no"
7956 fi
7957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958 fi
7959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7961 if test `eval echo '${'$as_ac_var'}'` = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7964 _ACEOF
7965
7966 fi
7967 done
7968
7969 fi
7970
7971 if test "${window_system}" = "x11"; then
7972 echo "$as_me:$LINENO: checking X11 version 6" >&5
7973 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7974 if test "${emacs_cv_x11_version_6+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 cat >conftest.$ac_ext <<_ACEOF
7978 #line $LINENO "configure"
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <X11/Xlib.h>
7985 int
7986 main ()
7987 {
7988 #if XlibSpecificationRelease < 6
7989 fail;
7990 #endif
7991
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest$ac_exeext'
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 emacs_cv_x11_version_6=yes
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 emacs_cv_x11_version_6=no
8014 fi
8015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8016 fi
8017
8018 if test $emacs_cv_x11_version_6 = yes; then
8019 echo "$as_me:$LINENO: result: 6 or newer" >&5
8020 echo "${ECHO_T}6 or newer" >&6
8021
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_X11R6 1
8024 _ACEOF
8025
8026 else
8027 echo "$as_me:$LINENO: result: before 6" >&5
8028 echo "${ECHO_T}before 6" >&6
8029 fi
8030 fi
8031
8032 if test "${window_system}" = "x11"; then
8033 echo "$as_me:$LINENO: checking X11 version 5" >&5
8034 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8035 if test "${emacs_cv_x11_version_5+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038 cat >conftest.$ac_ext <<_ACEOF
8039 #line $LINENO "configure"
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <X11/Xlib.h>
8046 int
8047 main ()
8048 {
8049 #if XlibSpecificationRelease < 5
8050 fail;
8051 #endif
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 rm -f conftest.$ac_objext conftest$ac_exeext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 emacs_cv_x11_version_5=yes
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 emacs_cv_x11_version_5=no
8075 fi
8076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8077 fi
8078
8079 if test $emacs_cv_x11_version_5 = yes; then
8080 echo "$as_me:$LINENO: result: 5 or newer" >&5
8081 echo "${ECHO_T}5 or newer" >&6
8082 HAVE_X11R5=yes
8083
8084 cat >>confdefs.h <<\_ACEOF
8085 #define HAVE_X11R5 1
8086 _ACEOF
8087
8088 else
8089 HAVE_X11R5=no
8090 echo "$as_me:$LINENO: result: before 5" >&5
8091 echo "${ECHO_T}before 5" >&6
8092 fi
8093 fi
8094
8095
8096
8097 HAVE_GTK=no
8098 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8099 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8100 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8101 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8102 { (exit 1); exit 1; }; };
8103 fi
8104 GLIB_REQUIRED=2.0.1
8105 GTK_REQUIRED=2.0.1
8106 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8107
8108 if test "X${with_pkg_config_prog}" != X; then
8109 PKG_CONFIG="${with_pkg_config_prog}"
8110 fi
8111
8112 succeeded=no
8113
8114 if test -z "$PKG_CONFIG"; then
8115 # Extract the first word of "pkg-config", so it can be a program name with args.
8116 set dummy pkg-config; ac_word=$2
8117 echo "$as_me:$LINENO: checking for $ac_word" >&5
8118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8119 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 case $PKG_CONFIG in
8123 [\\/]* | ?:[\\/]*)
8124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8125 ;;
8126 *)
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140
8141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8142 ;;
8143 esac
8144 fi
8145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8146
8147 if test -n "$PKG_CONFIG"; then
8148 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8149 echo "${ECHO_T}$PKG_CONFIG" >&6
8150 else
8151 echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6
8153 fi
8154
8155 fi
8156
8157 if test "$PKG_CONFIG" = "no" ; then
8158 echo "*** The pkg-config script could not be found. Make sure it is"
8159 echo "*** in your path, or give the full path to pkg-config with"
8160 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8161 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8162 else
8163 PKG_CONFIG_MIN_VERSION=0.9.0
8164 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8165 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8166 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8167
8168 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8169 echo "$as_me:$LINENO: result: yes" >&5
8170 echo "${ECHO_T}yes" >&6
8171 succeeded=yes
8172
8173 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8174 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8175 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8176 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8177 echo "${ECHO_T}$GTK_CFLAGS" >&6
8178
8179 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8180 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8181 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8182 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8183 echo "${ECHO_T}$GTK_LIBS" >&6
8184 else
8185 GTK_CFLAGS=""
8186 GTK_LIBS=""
8187 ## If we have a custom action on failure, don't print errors, but
8188 ## do set a variable so people can do so.
8189 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8190 echo $GTK_PKG_ERRORS
8191 fi
8192
8193
8194
8195 else
8196 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8197 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8198 fi
8199 fi
8200
8201 if test $succeeded = yes; then
8202 :
8203 else
8204 { { 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
8205 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;}
8206 { (exit 1); exit 1; }; }
8207 fi
8208
8209
8210
8211 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8212 HAVE_GTK=yes
8213
8214 cat >>confdefs.h <<\_ACEOF
8215 #define HAVE_GTK 1
8216 _ACEOF
8217
8218 USE_X_TOOLKIT=none
8219
8220 with_toolkit_scroll_bars=yes
8221 fi
8222
8223 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8224 if test x"${HAVE_X11R5}" = xyes; then
8225 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8226 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8227 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237
8238 #include <X11/Intrinsic.h>
8239 #include <X11/Xaw/Simple.h>
8240 int
8241 main ()
8242 {
8243
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250 (eval $ac_link) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest$ac_exeext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 emacs_cv_x11_version_5_with_xaw=yes
8261 else
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 emacs_cv_x11_version_5_with_xaw=no
8266 fi
8267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8268 fi
8269
8270 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8271 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8272 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8273 USE_X_TOOLKIT=LUCID
8274 else
8275 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8276 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8277 USE_X_TOOLKIT=none
8278 fi
8279 else
8280 USE_X_TOOLKIT=none
8281 fi
8282 fi
8283
8284 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8285
8286 if test "${USE_X_TOOLKIT}" != "none"; then
8287 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8288 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8289 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <X11/Intrinsic.h>
8300 int
8301 main ()
8302 {
8303 #if XtSpecificationRelease < 6
8304 fail;
8305 #endif
8306
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 emacs_cv_x11_toolkit_version_6=yes
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 emacs_cv_x11_toolkit_version_6=no
8329 fi
8330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8331 fi
8332
8333 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8334 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8335 echo "$as_me:$LINENO: result: 6 or newer" >&5
8336 echo "${ECHO_T}6 or newer" >&6
8337
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_X11XTR6 1
8340 _ACEOF
8341
8342 else
8343 echo "$as_me:$LINENO: result: before 6" >&5
8344 echo "${ECHO_T}before 6" >&6
8345 fi
8346
8347 OLDLIBS="$LIBS"
8348 if test x$HAVE_X11XTR6 = xyes; then
8349 LIBS="-lXt -lSM -lICE $LIBS"
8350 else
8351 LIBS="-lXt $LIBS"
8352 fi
8353
8354 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8355 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8356 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359 ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-lXmu $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8362 #line $LINENO "configure"
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375 char XmuConvertStandardSelection ();
8376 int
8377 main ()
8378 {
8379 XmuConvertStandardSelection ();
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -s conftest$ac_exeext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8397 else
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8402 fi
8403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8405 fi
8406 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8407 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8408 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_LIBXMU 1
8411 _ACEOF
8412
8413 LIBS="-lXmu $LIBS"
8414
8415 fi
8416
8417 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8418 fi
8419
8420 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8421 if test "${HAVE_X11}" = "yes"; then
8422 if test "${USE_X_TOOLKIT}" != "none"; then
8423
8424 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8425 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8426 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lXext $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char XShapeQueryExtension ();
8446 int
8447 main ()
8448 {
8449 XShapeQueryExtension ();
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_Xext_XShapeQueryExtension=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 ac_cv_lib_Xext_XShapeQueryExtension=no
8472 fi
8473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8475 fi
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8477 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8478 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_LIBXEXT 1
8481 _ACEOF
8482
8483 LIBS="-lXext $LIBS"
8484
8485 fi
8486
8487 fi
8488 fi
8489
8490 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8491 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8492 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8493 if test "${emacs_cv_lesstif+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 # We put this in CFLAGS temporarily to precede other -I options
8497 # that might be in CFLAGS temporarily.
8498 # We put this in CPPFLAGS where it precedes the other -I options.
8499 OLD_CPPFLAGS=$CPPFLAGS
8500 OLD_CFLAGS=$CFLAGS
8501 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8502 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 #line $LINENO "configure"
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8511 int
8512 main ()
8513 {
8514 int x = 5;
8515 ;
8516 return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521 (eval $ac_compile) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 emacs_cv_lesstif=yes
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 emacs_cv_lesstif=no
8537 fi
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8539 fi
8540 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8541 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8542 if test $emacs_cv_lesstif = yes; then
8543 # Make sure this -I option remains in CPPFLAGS after it is set
8544 # back to REAL_CPPFLAGS.
8545 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8546 # have those other -I options anyway. Ultimately, having this
8547 # directory ultimately in CPPFLAGS will be enough.
8548 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8549 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8550 else
8551 CFLAGS=$OLD_CFLAGS
8552 CPPFLAGS=$OLD_CPPFLAGS
8553 fi
8554 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8555 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8556 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559 cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 #include <Xm/Xm.h>
8567 int
8568 main ()
8569 {
8570 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8571 int x = 5;
8572 #else
8573 Motif version prior to 2.1.
8574 #endif
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581 (eval $ac_compile) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -s conftest.$ac_objext'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
8591 emacs_cv_motif_version_2_1=yes
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596 emacs_cv_motif_version_2_1=no
8597 fi
8598 rm -f conftest.$ac_objext conftest.$ac_ext
8599 fi
8600 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8601 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8602 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8603 if test $emacs_cv_motif_version_2_1 = yes; then
8604 HAVE_LIBXP=no
8605
8606 cat >>confdefs.h <<\_ACEOF
8607 #define HAVE_MOTIF_2_1 1
8608 _ACEOF
8609
8610 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8611 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8612 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615 ac_check_lib_save_LIBS=$LIBS
8616 LIBS="-lXp $LIBS"
8617 cat >conftest.$ac_ext <<_ACEOF
8618 #line $LINENO "configure"
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624
8625 /* Override any gcc2 internal prototype to avoid an error. */
8626 #ifdef __cplusplus
8627 extern "C"
8628 #endif
8629 /* We use char because int might match the return type of a gcc2
8630 builtin and then its argument prototype would still apply. */
8631 char XpCreateContext ();
8632 int
8633 main ()
8634 {
8635 XpCreateContext ();
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_lib_Xp_XpCreateContext=yes
8653 else
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_cv_lib_Xp_XpCreateContext=no
8658 fi
8659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8660 LIBS=$ac_check_lib_save_LIBS
8661 fi
8662 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8663 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8664 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8665 HAVE_LIBXP=yes
8666 fi
8667
8668 if test ${HAVE_LIBXP} = yes; then
8669
8670 cat >>confdefs.h <<\_ACEOF
8671 #define HAVE_LIBXP 1
8672 _ACEOF
8673
8674 fi
8675 fi
8676 fi
8677
8678 ### Is -lXaw3d available?
8679 HAVE_XAW3D=no
8680 if test "${HAVE_X11}" = "yes"; then
8681 if test "${USE_X_TOOLKIT}" != "none"; then
8682 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8683 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8684 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <X11/Xaw3d/Scrollbar.h>
8695 _ACEOF
8696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } >/dev/null; then
8704 if test -s conftest.err; then
8705 ac_cpp_err=$ac_c_preproc_warn_flag
8706 else
8707 ac_cpp_err=
8708 fi
8709 else
8710 ac_cpp_err=yes
8711 fi
8712 if test -z "$ac_cpp_err"; then
8713 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8719 fi
8720 rm -f conftest.err conftest.$ac_ext
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8723 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8724 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8725 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8726 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8727 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-lXaw3d $LIBS"
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739
8740 /* Override any gcc2 internal prototype to avoid an error. */
8741 #ifdef __cplusplus
8742 extern "C"
8743 #endif
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8746 char XawScrollbarSetThumb ();
8747 int
8748 main ()
8749 {
8750 XawScrollbarSetThumb ();
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -s conftest$ac_exeext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8773 fi
8774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8776 fi
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8778 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8779 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8780 HAVE_XAW3D=yes
8781 fi
8782
8783 fi
8784
8785
8786 if test "${HAVE_XAW3D}" = "yes"; then
8787
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_XAW3D 1
8790 _ACEOF
8791
8792 fi
8793 fi
8794 fi
8795
8796
8797
8798 USE_TOOLKIT_SCROLL_BARS=no
8799 if test "${with_toolkit_scroll_bars}" != "no"; then
8800 if test "${USE_X_TOOLKIT}" != "none"; then
8801 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define USE_TOOLKIT_SCROLL_BARS 1
8804 _ACEOF
8805
8806 HAVE_XAW3D=no
8807 USE_TOOLKIT_SCROLL_BARS=yes
8808 elif test "${HAVE_XAW3D}" = "yes"; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define USE_TOOLKIT_SCROLL_BARS 1
8811 _ACEOF
8812
8813 USE_TOOLKIT_SCROLL_BARS=yes
8814 fi
8815 elif test "${HAVE_GTK}" = "yes"; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define USE_TOOLKIT_SCROLL_BARS 1
8818 _ACEOF
8819
8820 USE_TOOLKIT_SCROLL_BARS=yes
8821 fi
8822 fi
8823
8824
8825 if test "${with_xim}" != "no"; then
8826
8827 cat >>confdefs.h <<\_ACEOF
8828 #define USE_XIM 1
8829 _ACEOF
8830
8831 fi
8832
8833 ### Use -lXpm if available, unless `--with-xpm=no'.
8834 HAVE_XPM=no
8835 if test "${HAVE_X11}" = "yes"; then
8836 if test "${with_xpm}" != "no"; then
8837 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8838 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8839 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8844 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8845 else
8846 # Is the header compilable?
8847 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8848 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8850 #line $LINENO "configure"
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8857 #include <X11/xpm.h>
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_header_compiler=yes
8872 else
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_header_compiler=no
8877 fi
8878 rm -f conftest.$ac_objext conftest.$ac_ext
8879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8880 echo "${ECHO_T}$ac_header_compiler" >&6
8881
8882 # Is the header present?
8883 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8884 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8885 cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <X11/xpm.h>
8893 _ACEOF
8894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null; then
8902 if test -s conftest.err; then
8903 ac_cpp_err=$ac_c_preproc_warn_flag
8904 else
8905 ac_cpp_err=
8906 fi
8907 else
8908 ac_cpp_err=yes
8909 fi
8910 if test -z "$ac_cpp_err"; then
8911 ac_header_preproc=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_header_preproc=no
8917 fi
8918 rm -f conftest.err conftest.$ac_ext
8919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8920 echo "${ECHO_T}$ac_header_preproc" >&6
8921
8922 # So? What about this header?
8923 case $ac_header_compiler:$ac_header_preproc in
8924 yes:no )
8925 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8926 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8929 (
8930 cat <<\_ASBOX
8931 ## ------------------------------------ ##
8932 ## Report this to bug-autoconf@gnu.org. ##
8933 ## ------------------------------------ ##
8934 _ASBOX
8935 ) |
8936 sed "s/^/$as_me: WARNING: /" >&2
8937 ;;
8938 no:yes )
8939 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8940 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8942 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8944 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8945 (
8946 cat <<\_ASBOX
8947 ## ------------------------------------ ##
8948 ## Report this to bug-autoconf@gnu.org. ##
8949 ## ------------------------------------ ##
8950 _ASBOX
8951 ) |
8952 sed "s/^/$as_me: WARNING: /" >&2
8953 ;;
8954 esac
8955 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8956 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8957 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 ac_cv_header_X11_xpm_h=$ac_header_preproc
8961 fi
8962 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8963 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8964
8965 fi
8966 if test $ac_cv_header_X11_xpm_h = yes; then
8967 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8968 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8969 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972 ac_check_lib_save_LIBS=$LIBS
8973 LIBS="-lXpm -lX11 $LIBS"
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 /* confdefs.h. */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8981
8982 /* Override any gcc2 internal prototype to avoid an error. */
8983 #ifdef __cplusplus
8984 extern "C"
8985 #endif
8986 /* We use char because int might match the return type of a gcc2
8987 builtin and then its argument prototype would still apply. */
8988 char XpmReadFileToPixmap ();
8989 int
8990 main ()
8991 {
8992 XpmReadFileToPixmap ();
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9015 fi
9016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9017 LIBS=$ac_check_lib_save_LIBS
9018 fi
9019 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9020 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9021 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9022 HAVE_XPM=yes
9023 fi
9024
9025 fi
9026
9027
9028 if test "${HAVE_XPM}" = "yes"; then
9029 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9030 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line $LINENO "configure"
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038 #include "X11/xpm.h"
9039 #ifndef XpmReturnAllocPixels
9040 no_return_alloc_pixels
9041 #endif
9042
9043 _ACEOF
9044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9045 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9046 HAVE_XPM=no
9047 else
9048 HAVE_XPM=yes
9049 fi
9050 rm -f conftest*
9051
9052
9053 if test "${HAVE_XPM}" = "yes"; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055 echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058 echo "${ECHO_T}no" >&6
9059 fi
9060 fi
9061 fi
9062
9063 if test "${HAVE_XPM}" = "yes"; then
9064
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_XPM 1
9067 _ACEOF
9068
9069 fi
9070 fi
9071
9072 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9073 HAVE_JPEG=no
9074 if test "${HAVE_X11}" = "yes"; then
9075 if test "${with_jpeg}" != "no"; then
9076 if test "${ac_cv_header_jerror_h+set}" = set; then
9077 echo "$as_me:$LINENO: checking for jerror.h" >&5
9078 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9079 if test "${ac_cv_header_jerror_h+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 fi
9082 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9084 else
9085 # Is the header compilable?
9086 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9087 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9088 cat >conftest.$ac_ext <<_ACEOF
9089 #line $LINENO "configure"
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 #include <jerror.h>
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -s conftest.$ac_objext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_header_compiler=yes
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_header_compiler=no
9116 fi
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9119 echo "${ECHO_T}$ac_header_compiler" >&6
9120
9121 # Is the header present?
9122 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9123 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9125 #line $LINENO "configure"
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <jerror.h>
9132 _ACEOF
9133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } >/dev/null; then
9141 if test -s conftest.err; then
9142 ac_cpp_err=$ac_c_preproc_warn_flag
9143 else
9144 ac_cpp_err=
9145 fi
9146 else
9147 ac_cpp_err=yes
9148 fi
9149 if test -z "$ac_cpp_err"; then
9150 ac_header_preproc=yes
9151 else
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155 ac_header_preproc=no
9156 fi
9157 rm -f conftest.err conftest.$ac_ext
9158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159 echo "${ECHO_T}$ac_header_preproc" >&6
9160
9161 # So? What about this header?
9162 case $ac_header_compiler:$ac_header_preproc in
9163 yes:no )
9164 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9165 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9167 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9168 (
9169 cat <<\_ASBOX
9170 ## ------------------------------------ ##
9171 ## Report this to bug-autoconf@gnu.org. ##
9172 ## ------------------------------------ ##
9173 _ASBOX
9174 ) |
9175 sed "s/^/$as_me: WARNING: /" >&2
9176 ;;
9177 no:yes )
9178 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9179 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9181 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9183 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9184 (
9185 cat <<\_ASBOX
9186 ## ------------------------------------ ##
9187 ## Report this to bug-autoconf@gnu.org. ##
9188 ## ------------------------------------ ##
9189 _ASBOX
9190 ) |
9191 sed "s/^/$as_me: WARNING: /" >&2
9192 ;;
9193 esac
9194 echo "$as_me:$LINENO: checking for jerror.h" >&5
9195 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9196 if test "${ac_cv_header_jerror_h+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 ac_cv_header_jerror_h=$ac_header_preproc
9200 fi
9201 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9202 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9203
9204 fi
9205 if test $ac_cv_header_jerror_h = yes; then
9206 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9207 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9208 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 ac_check_lib_save_LIBS=$LIBS
9212 LIBS="-ljpeg $LIBS"
9213 cat >conftest.$ac_ext <<_ACEOF
9214 #line $LINENO "configure"
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220
9221 /* Override any gcc2 internal prototype to avoid an error. */
9222 #ifdef __cplusplus
9223 extern "C"
9224 #endif
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9227 char jpeg_destroy_compress ();
9228 int
9229 main ()
9230 {
9231 jpeg_destroy_compress ();
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9254 fi
9255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9259 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9260 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9261 HAVE_JPEG=yes
9262 fi
9263
9264 fi
9265
9266
9267 fi
9268
9269
9270 if test "${HAVE_JPEG}" = "yes"; then
9271 cat >>confdefs.h <<\_ACEOF
9272 #define HAVE_JPEG 1
9273 _ACEOF
9274
9275 cat >conftest.$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 #include <jpeglib.h>
9283 version=JPEG_LIB_VERSION
9284
9285 _ACEOF
9286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9287 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_JPEG 1
9290 _ACEOF
9291
9292 else
9293 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9294 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9295 HAVE_JPEG=no
9296 fi
9297 rm -f conftest*
9298
9299 fi
9300 fi
9301
9302 ### Use -lpng if available, unless `--with-png=no'.
9303 HAVE_PNG=no
9304 if test "${HAVE_X11}" = "yes"; then
9305 if test "${with_png}" != "no"; then
9306 if test "${ac_cv_header_png_h+set}" = set; then
9307 echo "$as_me:$LINENO: checking for png.h" >&5
9308 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9309 if test "${ac_cv_header_png_h+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 fi
9312 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9313 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9314 else
9315 # Is the header compilable?
9316 echo "$as_me:$LINENO: checking png.h usability" >&5
9317 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 $ac_includes_default
9326 #include <png.h>
9327 _ACEOF
9328 rm -f conftest.$ac_objext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9330 (eval $ac_compile) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -s conftest.$ac_objext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_header_compiler=yes
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_header_compiler=no
9346 fi
9347 rm -f conftest.$ac_objext conftest.$ac_ext
9348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9349 echo "${ECHO_T}$ac_header_compiler" >&6
9350
9351 # Is the header present?
9352 echo "$as_me:$LINENO: checking png.h presence" >&5
9353 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <png.h>
9362 _ACEOF
9363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } >/dev/null; then
9371 if test -s conftest.err; then
9372 ac_cpp_err=$ac_c_preproc_warn_flag
9373 else
9374 ac_cpp_err=
9375 fi
9376 else
9377 ac_cpp_err=yes
9378 fi
9379 if test -z "$ac_cpp_err"; then
9380 ac_header_preproc=yes
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9384
9385 ac_header_preproc=no
9386 fi
9387 rm -f conftest.err conftest.$ac_ext
9388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9389 echo "${ECHO_T}$ac_header_preproc" >&6
9390
9391 # So? What about this header?
9392 case $ac_header_compiler:$ac_header_preproc in
9393 yes:no )
9394 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9395 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9398 (
9399 cat <<\_ASBOX
9400 ## ------------------------------------ ##
9401 ## Report this to bug-autoconf@gnu.org. ##
9402 ## ------------------------------------ ##
9403 _ASBOX
9404 ) |
9405 sed "s/^/$as_me: WARNING: /" >&2
9406 ;;
9407 no:yes )
9408 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9409 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9411 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9413 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9414 (
9415 cat <<\_ASBOX
9416 ## ------------------------------------ ##
9417 ## Report this to bug-autoconf@gnu.org. ##
9418 ## ------------------------------------ ##
9419 _ASBOX
9420 ) |
9421 sed "s/^/$as_me: WARNING: /" >&2
9422 ;;
9423 esac
9424 echo "$as_me:$LINENO: checking for png.h" >&5
9425 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9426 if test "${ac_cv_header_png_h+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 ac_cv_header_png_h=$ac_header_preproc
9430 fi
9431 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9432 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9433
9434 fi
9435 if test $ac_cv_header_png_h = yes; then
9436 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9437 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9438 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 ac_check_lib_save_LIBS=$LIBS
9442 LIBS="-lpng -lz -lm $LIBS"
9443 cat >conftest.$ac_ext <<_ACEOF
9444 #line $LINENO "configure"
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450
9451 /* Override any gcc2 internal prototype to avoid an error. */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9457 char png_get_channels ();
9458 int
9459 main ()
9460 {
9461 png_get_channels ();
9462 ;
9463 return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 ac_cv_lib_png_png_get_channels=yes
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 ac_cv_lib_png_png_get_channels=no
9484 fi
9485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9487 fi
9488 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9489 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9490 if test $ac_cv_lib_png_png_get_channels = yes; then
9491 HAVE_PNG=yes
9492 fi
9493
9494 fi
9495
9496
9497 fi
9498
9499 if test "${HAVE_PNG}" = "yes"; then
9500
9501 cat >>confdefs.h <<\_ACEOF
9502 #define HAVE_PNG 1
9503 _ACEOF
9504
9505 fi
9506 fi
9507
9508 ### Use -ltiff if available, unless `--with-tiff=no'.
9509 HAVE_TIFF=no
9510 if test "${HAVE_X11}" = "yes"; then
9511 if test "${with_tiff}" != "no"; then
9512 if test "${ac_cv_header_tiffio_h+set}" = set; then
9513 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9514 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9515 if test "${ac_cv_header_tiffio_h+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 fi
9518 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9519 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9520 else
9521 # Is the header compilable?
9522 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9523 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9525 #line $LINENO "configure"
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 #include <tiffio.h>
9533 _ACEOF
9534 rm -f conftest.$ac_objext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -s conftest.$ac_objext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 ac_header_compiler=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 ac_header_compiler=no
9552 fi
9553 rm -f conftest.$ac_objext conftest.$ac_ext
9554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9555 echo "${ECHO_T}$ac_header_compiler" >&6
9556
9557 # Is the header present?
9558 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9559 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9560 cat >conftest.$ac_ext <<_ACEOF
9561 #line $LINENO "configure"
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <tiffio.h>
9568 _ACEOF
9569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } >/dev/null; then
9577 if test -s conftest.err; then
9578 ac_cpp_err=$ac_c_preproc_warn_flag
9579 else
9580 ac_cpp_err=
9581 fi
9582 else
9583 ac_cpp_err=yes
9584 fi
9585 if test -z "$ac_cpp_err"; then
9586 ac_header_preproc=yes
9587 else
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 ac_header_preproc=no
9592 fi
9593 rm -f conftest.err conftest.$ac_ext
9594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9595 echo "${ECHO_T}$ac_header_preproc" >&6
9596
9597 # So? What about this header?
9598 case $ac_header_compiler:$ac_header_preproc in
9599 yes:no )
9600 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9601 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9603 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9604 (
9605 cat <<\_ASBOX
9606 ## ------------------------------------ ##
9607 ## Report this to bug-autoconf@gnu.org. ##
9608 ## ------------------------------------ ##
9609 _ASBOX
9610 ) |
9611 sed "s/^/$as_me: WARNING: /" >&2
9612 ;;
9613 no:yes )
9614 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9615 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9617 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9619 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9620 (
9621 cat <<\_ASBOX
9622 ## ------------------------------------ ##
9623 ## Report this to bug-autoconf@gnu.org. ##
9624 ## ------------------------------------ ##
9625 _ASBOX
9626 ) |
9627 sed "s/^/$as_me: WARNING: /" >&2
9628 ;;
9629 esac
9630 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9631 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9632 if test "${ac_cv_header_tiffio_h+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635 ac_cv_header_tiffio_h=$ac_header_preproc
9636 fi
9637 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9638 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9639
9640 fi
9641 if test $ac_cv_header_tiffio_h = yes; then
9642 tifflibs="-lz -lm"
9643 # At least one tiff package requires the jpeg library.
9644 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9645 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9646 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9647 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-ltiff $tifflibs $LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char TIFFGetVersion ();
9667 int
9668 main ()
9669 {
9670 TIFFGetVersion ();
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_lib_tiff_TIFFGetVersion=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ac_cv_lib_tiff_TIFFGetVersion=no
9693 fi
9694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9695 LIBS=$ac_check_lib_save_LIBS
9696 fi
9697 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9698 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9699 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9700 HAVE_TIFF=yes
9701 fi
9702
9703 fi
9704
9705
9706 fi
9707
9708 if test "${HAVE_TIFF}" = "yes"; then
9709
9710 cat >>confdefs.h <<\_ACEOF
9711 #define HAVE_TIFF 1
9712 _ACEOF
9713
9714 fi
9715 fi
9716
9717 ### Use -lgif if available, unless `--with-gif=no'.
9718 HAVE_GIF=no
9719 if test "${HAVE_X11}" = "yes"; then
9720 if test "${with_gif}" != "no"; then
9721 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9722 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9723 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9724 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 fi
9727 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9728 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9729 else
9730 # Is the header compilable?
9731 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9732 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9733 cat >conftest.$ac_ext <<_ACEOF
9734 #line $LINENO "configure"
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 $ac_includes_default
9741 #include <gif_lib.h>
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_header_compiler=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_header_compiler=no
9761 fi
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9764 echo "${ECHO_T}$ac_header_compiler" >&6
9765
9766 # Is the header present?
9767 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9768 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9769 cat >conftest.$ac_ext <<_ACEOF
9770 #line $LINENO "configure"
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <gif_lib.h>
9777 _ACEOF
9778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } >/dev/null; then
9786 if test -s conftest.err; then
9787 ac_cpp_err=$ac_c_preproc_warn_flag
9788 else
9789 ac_cpp_err=
9790 fi
9791 else
9792 ac_cpp_err=yes
9793 fi
9794 if test -z "$ac_cpp_err"; then
9795 ac_header_preproc=yes
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 ac_header_preproc=no
9801 fi
9802 rm -f conftest.err conftest.$ac_ext
9803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9804 echo "${ECHO_T}$ac_header_preproc" >&6
9805
9806 # So? What about this header?
9807 case $ac_header_compiler:$ac_header_preproc in
9808 yes:no )
9809 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9810 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9811 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9812 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9813 (
9814 cat <<\_ASBOX
9815 ## ------------------------------------ ##
9816 ## Report this to bug-autoconf@gnu.org. ##
9817 ## ------------------------------------ ##
9818 _ASBOX
9819 ) |
9820 sed "s/^/$as_me: WARNING: /" >&2
9821 ;;
9822 no:yes )
9823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9824 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9826 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9828 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9829 (
9830 cat <<\_ASBOX
9831 ## ------------------------------------ ##
9832 ## Report this to bug-autoconf@gnu.org. ##
9833 ## ------------------------------------ ##
9834 _ASBOX
9835 ) |
9836 sed "s/^/$as_me: WARNING: /" >&2
9837 ;;
9838 esac
9839 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9840 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9841 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 ac_cv_header_gif_lib_h=$ac_header_preproc
9845 fi
9846 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9847 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9848
9849 fi
9850 if test $ac_cv_header_gif_lib_h = yes; then
9851 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9852 # Earlier versions can crash Emacs.
9853 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9854 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9855 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 ac_check_lib_save_LIBS=$LIBS
9859 LIBS="-lungif $LIBS"
9860 cat >conftest.$ac_ext <<_ACEOF
9861 #line $LINENO "configure"
9862 /* confdefs.h. */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867
9868 /* Override any gcc2 internal prototype to avoid an error. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 /* We use char because int might match the return type of a gcc2
9873 builtin and then its argument prototype would still apply. */
9874 char EGifPutExtensionLast ();
9875 int
9876 main ()
9877 {
9878 EGifPutExtensionLast ();
9879 ;
9880 return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885 (eval $ac_link) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 (eval $ac_try) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
9895 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900 ac_cv_lib_ungif_EGifPutExtensionLast=no
9901 fi
9902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9906 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9907 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9908 HAVE_GIF=yes
9909 fi
9910
9911 fi
9912
9913
9914 fi
9915
9916 if test "${HAVE_GIF}" = "yes"; then
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_GIF 1
9920 _ACEOF
9921
9922 fi
9923 fi
9924
9925 ### Use Mac OS X Carbon API to implement GUI.
9926 HAVE_CARBON=no
9927 if test "${with_carbon}" != "no"; then
9928 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9929 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9930 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9931 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 fi
9934 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9935 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9936 else
9937 # Is the header compilable?
9938 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9939 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9940 cat >conftest.$ac_ext <<_ACEOF
9941 #line $LINENO "configure"
9942 /* confdefs.h. */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 $ac_includes_default
9948 #include <Carbon/Carbon.h>
9949 _ACEOF
9950 rm -f conftest.$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_header_compiler=yes
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9966
9967 ac_header_compiler=no
9968 fi
9969 rm -f conftest.$ac_objext conftest.$ac_ext
9970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9971 echo "${ECHO_T}$ac_header_compiler" >&6
9972
9973 # Is the header present?
9974 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9975 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 #include <Carbon/Carbon.h>
9984 _ACEOF
9985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } >/dev/null; then
9993 if test -s conftest.err; then
9994 ac_cpp_err=$ac_c_preproc_warn_flag
9995 else
9996 ac_cpp_err=
9997 fi
9998 else
9999 ac_cpp_err=yes
10000 fi
10001 if test -z "$ac_cpp_err"; then
10002 ac_header_preproc=yes
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 ac_header_preproc=no
10008 fi
10009 rm -f conftest.err conftest.$ac_ext
10010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10011 echo "${ECHO_T}$ac_header_preproc" >&6
10012
10013 # So? What about this header?
10014 case $ac_header_compiler:$ac_header_preproc in
10015 yes:no )
10016 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10017 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10019 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10020 (
10021 cat <<\_ASBOX
10022 ## ------------------------------------ ##
10023 ## Report this to bug-autoconf@gnu.org. ##
10024 ## ------------------------------------ ##
10025 _ASBOX
10026 ) |
10027 sed "s/^/$as_me: WARNING: /" >&2
10028 ;;
10029 no:yes )
10030 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10031 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10033 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10035 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10036 (
10037 cat <<\_ASBOX
10038 ## ------------------------------------ ##
10039 ## Report this to bug-autoconf@gnu.org. ##
10040 ## ------------------------------------ ##
10041 _ASBOX
10042 ) |
10043 sed "s/^/$as_me: WARNING: /" >&2
10044 ;;
10045 esac
10046 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10047 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10048 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10052 fi
10053 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10054 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10055
10056 fi
10057 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10058 HAVE_CARBON=yes
10059 fi
10060
10061
10062 fi
10063
10064 if test "${HAVE_CARBON}" = "yes"; then
10065
10066 cat >>confdefs.h <<\_ACEOF
10067 #define HAVE_CARBON 1
10068 _ACEOF
10069
10070 window_system=mac
10071 ## Specify the install directory
10072 carbon_appdir=
10073 if test "${carbon_appdir_x}" != ""; then
10074 case ${carbon_appdir_x} in
10075 y | ye | yes) carbon_appdir=/Applications ;;
10076 * ) carbon_appdir=${carbon_appdir_x} ;;
10077 esac
10078 fi
10079 # We also have mouse menus.
10080 HAVE_MENUS=yes
10081 fi
10082
10083 ### Use session management (-lSM -lICE) if available
10084 HAVE_X_SM=no
10085 if test "${HAVE_X11}" = "yes"; then
10086 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10087 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10088 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10089 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 fi
10092 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10093 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10094 else
10095 # Is the header compilable?
10096 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10097 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 $ac_includes_default
10106 #include <X11/SM/SMlib.h>
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -s conftest.$ac_objext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_header_compiler=yes
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10124
10125 ac_header_compiler=no
10126 fi
10127 rm -f conftest.$ac_objext conftest.$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10129 echo "${ECHO_T}$ac_header_compiler" >&6
10130
10131 # Is the header present?
10132 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10133 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <X11/SM/SMlib.h>
10142 _ACEOF
10143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } >/dev/null; then
10151 if test -s conftest.err; then
10152 ac_cpp_err=$ac_c_preproc_warn_flag
10153 else
10154 ac_cpp_err=
10155 fi
10156 else
10157 ac_cpp_err=yes
10158 fi
10159 if test -z "$ac_cpp_err"; then
10160 ac_header_preproc=yes
10161 else
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_header_preproc=no
10166 fi
10167 rm -f conftest.err conftest.$ac_ext
10168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10169 echo "${ECHO_T}$ac_header_preproc" >&6
10170
10171 # So? What about this header?
10172 case $ac_header_compiler:$ac_header_preproc in
10173 yes:no )
10174 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10175 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10177 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10178 (
10179 cat <<\_ASBOX
10180 ## ------------------------------------ ##
10181 ## Report this to bug-autoconf@gnu.org. ##
10182 ## ------------------------------------ ##
10183 _ASBOX
10184 ) |
10185 sed "s/^/$as_me: WARNING: /" >&2
10186 ;;
10187 no:yes )
10188 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10189 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10191 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10193 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10194 (
10195 cat <<\_ASBOX
10196 ## ------------------------------------ ##
10197 ## Report this to bug-autoconf@gnu.org. ##
10198 ## ------------------------------------ ##
10199 _ASBOX
10200 ) |
10201 sed "s/^/$as_me: WARNING: /" >&2
10202 ;;
10203 esac
10204 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10205 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10206 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10210 fi
10211 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10212 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10213
10214 fi
10215 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10216 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10217 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10218 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lSM $LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230
10231 /* Override any gcc2 internal prototype to avoid an error. */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10237 char SmcOpenConnection ();
10238 int
10239 main ()
10240 {
10241 SmcOpenConnection ();
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -s conftest$ac_exeext'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10258 ac_cv_lib_SM_SmcOpenConnection=yes
10259 else
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10262
10263 ac_cv_lib_SM_SmcOpenConnection=no
10264 fi
10265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10267 fi
10268 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10269 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10270 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10271 HAVE_X_SM=yes
10272 else
10273 -lICE
10274 fi
10275
10276 fi
10277
10278
10279
10280 if test "${HAVE_X_SM}" = "yes"; then
10281
10282 cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_X_SM 1
10284 _ACEOF
10285
10286 case "$LIBS" in
10287 *-lSM*) ;;
10288 *) LIBS="-lSM -lICE $LIBS" ;;
10289 esac
10290 fi
10291 fi
10292
10293 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10294 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10295 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10296 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299 cat >conftest.$ac_ext <<_ACEOF
10300 #line $LINENO "configure"
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 #include <netdb.h>
10307 int
10308 main ()
10309 {
10310 return h_errno;
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 emacs_cv_netdb_declares_h_errno=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332 emacs_cv_netdb_declares_h_errno=no
10333 fi
10334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10335 fi
10336 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10337 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10338 if test $emacs_cv_netdb_declares_h_errno = yes; then
10339
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_H_ERRNO 1
10342 _ACEOF
10343
10344 fi
10345
10346 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10347 # for constant arguments. Useless!
10348 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10349 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10350 if test "${ac_cv_working_alloca_h+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353 cat >conftest.$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10355 /* confdefs.h. */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 #include <alloca.h>
10361 int
10362 main ()
10363 {
10364 char *p = (char *) alloca (2 * sizeof (int));
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 ac_cv_working_alloca_h=yes
10382 else
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_cv_working_alloca_h=no
10387 fi
10388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10389 fi
10390 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10391 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10392 if test $ac_cv_working_alloca_h = yes; then
10393
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_ALLOCA_H 1
10396 _ACEOF
10397
10398 fi
10399
10400 echo "$as_me:$LINENO: checking for alloca" >&5
10401 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10402 if test "${ac_cv_func_alloca_works+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 #ifdef __GNUC__
10413 # define alloca __builtin_alloca
10414 #else
10415 # ifdef _MSC_VER
10416 # include <malloc.h>
10417 # define alloca _alloca
10418 # else
10419 # if HAVE_ALLOCA_H
10420 # include <alloca.h>
10421 # else
10422 # ifdef _AIX
10423 #pragma alloca
10424 # else
10425 # ifndef alloca /* predefined by HP cc +Olibcalls */
10426 char *alloca ();
10427 # endif
10428 # endif
10429 # endif
10430 # endif
10431 #endif
10432
10433 int
10434 main ()
10435 {
10436 char *p = (char *) alloca (1);
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10443 (eval $ac_link) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 ac_cv_func_alloca_works=yes
10454 else
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458 ac_cv_func_alloca_works=no
10459 fi
10460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10461 fi
10462 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10463 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10464
10465 if test $ac_cv_func_alloca_works = yes; then
10466
10467 cat >>confdefs.h <<\_ACEOF
10468 #define HAVE_ALLOCA 1
10469 _ACEOF
10470
10471 else
10472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10473 # that cause trouble. Some versions do not even contain alloca or
10474 # contain a buggy version. If you still want to use their alloca,
10475 # use ar to extract alloca.o from them instead of compiling alloca.c.
10476
10477 ALLOCA=alloca.$ac_objext
10478
10479 cat >>confdefs.h <<\_ACEOF
10480 #define C_ALLOCA 1
10481 _ACEOF
10482
10483
10484 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10485 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10486 if test "${ac_cv_os_cray+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 cat >conftest.$ac_ext <<_ACEOF
10490 #line $LINENO "configure"
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 #if defined(CRAY) && ! defined(CRAY2)
10497 webecray
10498 #else
10499 wenotbecray
10500 #endif
10501
10502 _ACEOF
10503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10504 $EGREP "webecray" >/dev/null 2>&1; then
10505 ac_cv_os_cray=yes
10506 else
10507 ac_cv_os_cray=no
10508 fi
10509 rm -f conftest*
10510
10511 fi
10512 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10513 echo "${ECHO_T}$ac_cv_os_cray" >&6
10514 if test $ac_cv_os_cray = yes; then
10515 for ac_func in _getb67 GETB67 getb67; do
10516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10517 echo "$as_me:$LINENO: checking for $ac_func" >&5
10518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10519 if eval "test \"\${$as_ac_var+set}\" = set"; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522 cat >conftest.$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 /* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char $ac_func (); below.
10531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10532 <limits.h> exists even on freestanding compilers. */
10533 #ifdef __STDC__
10534 # include <limits.h>
10535 #else
10536 # include <assert.h>
10537 #endif
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 {
10542 #endif
10543 /* We use char because int might match the return type of a gcc2
10544 builtin and then its argument prototype would still apply. */
10545 char $ac_func ();
10546 /* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
10549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10550 choke me
10551 #else
10552 char (*f) () = $ac_func;
10553 #endif
10554 #ifdef __cplusplus
10555 }
10556 #endif
10557
10558 int
10559 main ()
10560 {
10561 return f != $ac_func;
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 eval "$as_ac_var=yes"
10579 else
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10582
10583 eval "$as_ac_var=no"
10584 fi
10585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10586 fi
10587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10589 if test `eval echo '${'$as_ac_var'}'` = yes; then
10590
10591 cat >>confdefs.h <<_ACEOF
10592 #define CRAY_STACKSEG_END $ac_func
10593 _ACEOF
10594
10595 break
10596 fi
10597
10598 done
10599 fi
10600
10601 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10602 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10603 if test "${ac_cv_c_stack_direction+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 if test "$cross_compiling" = yes; then
10607 ac_cv_c_stack_direction=0
10608 else
10609 cat >conftest.$ac_ext <<_ACEOF
10610 #line $LINENO "configure"
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 int
10617 find_stack_direction ()
10618 {
10619 static char *addr = 0;
10620 auto char dummy;
10621 if (addr == 0)
10622 {
10623 addr = &dummy;
10624 return find_stack_direction ();
10625 }
10626 else
10627 return (&dummy > addr) ? 1 : -1;
10628 }
10629
10630 int
10631 main ()
10632 {
10633 exit (find_stack_direction () < 0);
10634 }
10635 _ACEOF
10636 rm -f conftest$ac_exeext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638 (eval $ac_link) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_c_stack_direction=1
10648 else
10649 echo "$as_me: program exited with status $ac_status" >&5
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ( exit $ac_status )
10654 ac_cv_c_stack_direction=-1
10655 fi
10656 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10657 fi
10658 fi
10659 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10660 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10661
10662 cat >>confdefs.h <<_ACEOF
10663 #define STACK_DIRECTION $ac_cv_c_stack_direction
10664 _ACEOF
10665
10666
10667 fi
10668
10669
10670 # fmod, logb, and frexp are found in -lm on most systems.
10671 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10672
10673 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10674 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10675 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678 ac_check_lib_save_LIBS=$LIBS
10679 LIBS="-lm $LIBS"
10680 cat >conftest.$ac_ext <<_ACEOF
10681 #line $LINENO "configure"
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687
10688 /* Override any gcc2 internal prototype to avoid an error. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 /* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
10694 char sqrt ();
10695 int
10696 main ()
10697 {
10698 sqrt ();
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_lib_m_sqrt=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 ac_cv_lib_m_sqrt=no
10721 fi
10722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10724 fi
10725 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10726 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10727 if test $ac_cv_lib_m_sqrt = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729 #define HAVE_LIBM 1
10730 _ACEOF
10731
10732 LIBS="-lm $LIBS"
10733
10734 fi
10735
10736
10737 # Check for mail-locking functions in a "mail" library
10738
10739 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10740 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10741 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-lmail $LIBS"
10746 cat >conftest.$ac_ext <<_ACEOF
10747 #line $LINENO "configure"
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753
10754 /* Override any gcc2 internal prototype to avoid an error. */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 /* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10760 char maillock ();
10761 int
10762 main ()
10763 {
10764 maillock ();
10765 ;
10766 return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -s conftest$ac_exeext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_lib_mail_maillock=yes
10782 else
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_cv_lib_mail_maillock=no
10787 fi
10788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10789 LIBS=$ac_check_lib_save_LIBS
10790 fi
10791 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10792 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10793 if test $ac_cv_lib_mail_maillock = yes; then
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_LIBMAIL 1
10796 _ACEOF
10797
10798 LIBS="-lmail $LIBS"
10799
10800 fi
10801
10802
10803 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10804 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10805 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 ac_check_lib_save_LIBS=$LIBS
10809 LIBS="-llockfile $LIBS"
10810 cat >conftest.$ac_ext <<_ACEOF
10811 #line $LINENO "configure"
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817
10818 /* Override any gcc2 internal prototype to avoid an error. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 /* We use char because int might match the return type of a gcc2
10823 builtin and then its argument prototype would still apply. */
10824 char maillock ();
10825 int
10826 main ()
10827 {
10828 maillock ();
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835 (eval $ac_link) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -s conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_lib_lockfile_maillock=yes
10846 else
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10849
10850 ac_cv_lib_lockfile_maillock=no
10851 fi
10852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10854 fi
10855 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10856 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10857 if test $ac_cv_lib_lockfile_maillock = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_LIBLOCKFILE 1
10860 _ACEOF
10861
10862 LIBS="-llockfile $LIBS"
10863
10864 fi
10865
10866 # If we have the shared liblockfile, assume we must use it for mail
10867 # locking (e.g. Debian). If we couldn't link against liblockfile
10868 # (no liblockfile.a installed), ensure that we don't need to.
10869 if test "$ac_cv_lib_lockfile_maillock" = no; then
10870 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10871 set dummy liblockfile.so; ac_word=$2
10872 echo "$as_me:$LINENO: checking for $ac_word" >&5
10873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874 if test "${ac_cv_prog_liblockfile+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877 if test -n "$liblockfile"; then
10878 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10882 for as_dir in $as_dummy
10883 do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888 ac_cv_prog_liblockfile="yes"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892 done
10893 done
10894
10895 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10896 fi
10897 fi
10898 liblockfile=$ac_cv_prog_liblockfile
10899 if test -n "$liblockfile"; then
10900 echo "$as_me:$LINENO: result: $liblockfile" >&5
10901 echo "${ECHO_T}$liblockfile" >&6
10902 else
10903 echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10905 fi
10906
10907 if test $ac_cv_prog_liblockfile = yes; then
10908 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10909 This probably means that movemail could lose mail.
10910 There may be a \`development' package to install containing liblockfile." >&5
10911 echo "$as_me: error: Shared liblockfile found but can't link against it.
10912 This probably means that movemail could lose mail.
10913 There may be a \`development' package to install containing liblockfile." >&2;}
10914 { (exit 1); exit 1; }; }
10915 else
10916 cat >>confdefs.h <<\_ACEOF
10917 #define LIBMAIL -llockfile
10918 _ACEOF
10919
10920 fi
10921 else :
10922 fi
10923
10924 for ac_func in touchlock
10925 do
10926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 echo "$as_me:$LINENO: checking for $ac_func" >&5
10928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_var+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10943 #ifdef __STDC__
10944 # include <limits.h>
10945 #else
10946 # include <assert.h>
10947 #endif
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 {
10952 #endif
10953 /* We use char because int might match the return type of a gcc2
10954 builtin and then its argument prototype would still apply. */
10955 char $ac_func ();
10956 /* The GNU C library defines this for functions which it implements
10957 to always fail with ENOSYS. Some functions are actually named
10958 something starting with __ and the normal name is an alias. */
10959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10960 choke me
10961 #else
10962 char (*f) () = $ac_func;
10963 #endif
10964 #ifdef __cplusplus
10965 }
10966 #endif
10967
10968 int
10969 main ()
10970 {
10971 return f != $ac_func;
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10978 (eval $ac_link) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 eval "$as_ac_var=yes"
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 eval "$as_ac_var=no"
10994 fi
10995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10996 fi
10997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10999 if test `eval echo '${'$as_ac_var'}'` = yes; then
11000 cat >>confdefs.h <<_ACEOF
11001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11002 _ACEOF
11003
11004 fi
11005 done
11006
11007
11008 for ac_header in maillock.h
11009 do
11010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11012 echo "$as_me:$LINENO: checking for $ac_header" >&5
11013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 fi
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11019 else
11020 # Is the header compilable?
11021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 /* confdefs.h. */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 #include <$ac_header>
11032 _ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -s conftest.$ac_objext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_header_compiler=yes
11046 else
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050 ac_header_compiler=no
11051 fi
11052 rm -f conftest.$ac_objext conftest.$ac_ext
11053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11054 echo "${ECHO_T}$ac_header_compiler" >&6
11055
11056 # Is the header present?
11057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11059 cat >conftest.$ac_ext <<_ACEOF
11060 #line $LINENO "configure"
11061 /* confdefs.h. */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 #include <$ac_header>
11067 _ACEOF
11068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } >/dev/null; then
11076 if test -s conftest.err; then
11077 ac_cpp_err=$ac_c_preproc_warn_flag
11078 else
11079 ac_cpp_err=
11080 fi
11081 else
11082 ac_cpp_err=yes
11083 fi
11084 if test -z "$ac_cpp_err"; then
11085 ac_header_preproc=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 ac_header_preproc=no
11091 fi
11092 rm -f conftest.err conftest.$ac_ext
11093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11094 echo "${ECHO_T}$ac_header_preproc" >&6
11095
11096 # So? What about this header?
11097 case $ac_header_compiler:$ac_header_preproc in
11098 yes:no )
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11103 (
11104 cat <<\_ASBOX
11105 ## ------------------------------------ ##
11106 ## Report this to bug-autoconf@gnu.org. ##
11107 ## ------------------------------------ ##
11108 _ASBOX
11109 ) |
11110 sed "s/^/$as_me: WARNING: /" >&2
11111 ;;
11112 no:yes )
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11119 (
11120 cat <<\_ASBOX
11121 ## ------------------------------------ ##
11122 ## Report this to bug-autoconf@gnu.org. ##
11123 ## ------------------------------------ ##
11124 _ASBOX
11125 ) |
11126 sed "s/^/$as_me: WARNING: /" >&2
11127 ;;
11128 esac
11129 echo "$as_me:$LINENO: checking for $ac_header" >&5
11130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 eval "$as_ac_Header=$ac_header_preproc"
11135 fi
11136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11138
11139 fi
11140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11143 _ACEOF
11144
11145 fi
11146
11147 done
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210 for ac_func in gethostname getdomainname dup2 \
11211 rename closedir mkdir rmdir sysinfo \
11212 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11213 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11214 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11215 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11216 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11217 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11218 do
11219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11220 echo "$as_me:$LINENO: checking for $ac_func" >&5
11221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11222 if eval "test \"\${$as_ac_var+set}\" = set"; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 cat >conftest.$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* System header to define __stub macros and hopefully few prototypes,
11233 which can conflict with char $ac_func (); below.
11234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11235 <limits.h> exists even on freestanding compilers. */
11236 #ifdef __STDC__
11237 # include <limits.h>
11238 #else
11239 # include <assert.h>
11240 #endif
11241 /* Override any gcc2 internal prototype to avoid an error. */
11242 #ifdef __cplusplus
11243 extern "C"
11244 {
11245 #endif
11246 /* We use char because int might match the return type of a gcc2
11247 builtin and then its argument prototype would still apply. */
11248 char $ac_func ();
11249 /* The GNU C library defines this for functions which it implements
11250 to always fail with ENOSYS. Some functions are actually named
11251 something starting with __ and the normal name is an alias. */
11252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11253 choke me
11254 #else
11255 char (*f) () = $ac_func;
11256 #endif
11257 #ifdef __cplusplus
11258 }
11259 #endif
11260
11261 int
11262 main ()
11263 {
11264 return f != $ac_func;
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271 (eval $ac_link) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -s conftest$ac_exeext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 eval "$as_ac_var=yes"
11282 else
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 eval "$as_ac_var=no"
11287 fi
11288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11289 fi
11290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11296
11297 fi
11298 done
11299
11300
11301
11302 for ac_header in sys/un.h
11303 do
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11306 echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 fi
11311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11313 else
11314 # Is the header compilable?
11315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11318 #line $LINENO "configure"
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_header_compiler=yes
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_header_compiler=no
11345 fi
11346 rm -f conftest.$ac_objext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6
11349
11350 # Is the header present?
11351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11353 cat >conftest.$ac_ext <<_ACEOF
11354 #line $LINENO "configure"
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <$ac_header>
11361 _ACEOF
11362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null; then
11370 if test -s conftest.err; then
11371 ac_cpp_err=$ac_c_preproc_warn_flag
11372 else
11373 ac_cpp_err=
11374 fi
11375 else
11376 ac_cpp_err=yes
11377 fi
11378 if test -z "$ac_cpp_err"; then
11379 ac_header_preproc=yes
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 ac_header_preproc=no
11385 fi
11386 rm -f conftest.err conftest.$ac_ext
11387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6
11389
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc in
11392 yes:no )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 (
11398 cat <<\_ASBOX
11399 ## ------------------------------------ ##
11400 ## Report this to bug-autoconf@gnu.org. ##
11401 ## ------------------------------------ ##
11402 _ASBOX
11403 ) |
11404 sed "s/^/$as_me: WARNING: /" >&2
11405 ;;
11406 no:yes )
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413 (
11414 cat <<\_ASBOX
11415 ## ------------------------------------ ##
11416 ## Report this to bug-autoconf@gnu.org. ##
11417 ## ------------------------------------ ##
11418 _ASBOX
11419 ) |
11420 sed "s/^/$as_me: WARNING: /" >&2
11421 ;;
11422 esac
11423 echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 eval "$as_ac_Header=$ac_header_preproc"
11429 fi
11430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11432
11433 fi
11434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11435 cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11437 _ACEOF
11438
11439 fi
11440
11441 done
11442
11443
11444
11445
11446 for ac_header in sys/time.h unistd.h
11447 do
11448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11450 echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 fi
11455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11457 else
11458 # Is the header compilable?
11459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11469 #include <$ac_header>
11470 _ACEOF
11471 rm -f conftest.$ac_objext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11473 (eval $ac_compile) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_header_compiler=yes
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ac_header_compiler=no
11489 fi
11490 rm -f conftest.$ac_objext conftest.$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6
11493
11494 # Is the header present?
11495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 #line $LINENO "configure"
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 #include <$ac_header>
11505 _ACEOF
11506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } >/dev/null; then
11514 if test -s conftest.err; then
11515 ac_cpp_err=$ac_c_preproc_warn_flag
11516 else
11517 ac_cpp_err=
11518 fi
11519 else
11520 ac_cpp_err=yes
11521 fi
11522 if test -z "$ac_cpp_err"; then
11523 ac_header_preproc=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 ac_header_preproc=no
11529 fi
11530 rm -f conftest.err conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11532 echo "${ECHO_T}$ac_header_preproc" >&6
11533
11534 # So? What about this header?
11535 case $ac_header_compiler:$ac_header_preproc in
11536 yes:no )
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 (
11542 cat <<\_ASBOX
11543 ## ------------------------------------ ##
11544 ## Report this to bug-autoconf@gnu.org. ##
11545 ## ------------------------------------ ##
11546 _ASBOX
11547 ) |
11548 sed "s/^/$as_me: WARNING: /" >&2
11549 ;;
11550 no:yes )
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11557 (
11558 cat <<\_ASBOX
11559 ## ------------------------------------ ##
11560 ## Report this to bug-autoconf@gnu.org. ##
11561 ## ------------------------------------ ##
11562 _ASBOX
11563 ) |
11564 sed "s/^/$as_me: WARNING: /" >&2
11565 ;;
11566 esac
11567 echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572 eval "$as_ac_Header=$ac_header_preproc"
11573 fi
11574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11576
11577 fi
11578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11579 cat >>confdefs.h <<_ACEOF
11580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581 _ACEOF
11582
11583 fi
11584
11585 done
11586
11587
11588 for ac_func in alarm
11589 do
11590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11591 echo "$as_me:$LINENO: checking for $ac_func" >&5
11592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_var+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596 cat >conftest.$ac_ext <<_ACEOF
11597 #line $LINENO "configure"
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 /* System header to define __stub macros and hopefully few prototypes,
11604 which can conflict with char $ac_func (); below.
11605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11606 <limits.h> exists even on freestanding compilers. */
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11612 /* Override any gcc2 internal prototype to avoid an error. */
11613 #ifdef __cplusplus
11614 extern "C"
11615 {
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char $ac_func ();
11620 /* The GNU C library defines this for functions which it implements
11621 to always fail with ENOSYS. Some functions are actually named
11622 something starting with __ and the normal name is an alias. */
11623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11624 choke me
11625 #else
11626 char (*f) () = $ac_func;
11627 #endif
11628 #ifdef __cplusplus
11629 }
11630 #endif
11631
11632 int
11633 main ()
11634 {
11635 return f != $ac_func;
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11642 (eval $ac_link) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -s conftest$ac_exeext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 eval "$as_ac_var=yes"
11653 else
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 eval "$as_ac_var=no"
11658 fi
11659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11660 fi
11661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11663 if test `eval echo '${'$as_ac_var'}'` = yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11666 _ACEOF
11667
11668 fi
11669 done
11670
11671 echo "$as_me:$LINENO: checking for working mktime" >&5
11672 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11673 if test "${ac_cv_func_working_mktime+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676 if test "$cross_compiling" = yes; then
11677 ac_cv_func_working_mktime=no
11678 else
11679 cat >conftest.$ac_ext <<_ACEOF
11680 #line $LINENO "configure"
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 /* Test program from Paul Eggert and Tony Leneis. */
11687 #if TIME_WITH_SYS_TIME
11688 # include <sys/time.h>
11689 # include <time.h>
11690 #else
11691 # if HAVE_SYS_TIME_H
11692 # include <sys/time.h>
11693 # else
11694 # include <time.h>
11695 # endif
11696 #endif
11697
11698 #if HAVE_UNISTD_H
11699 # include <unistd.h>
11700 #endif
11701
11702 #if !HAVE_ALARM
11703 # define alarm(X) /* empty */
11704 #endif
11705
11706 /* Work around redefinition to rpl_putenv by other config tests. */
11707 #undef putenv
11708
11709 static time_t time_t_max;
11710
11711 /* Values we'll use to set the TZ environment variable. */
11712 static const char *const tz_strings[] = {
11713 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11714 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11715 };
11716 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11717
11718 /* Fail if mktime fails to convert a date in the spring-forward gap.
11719 Based on a problem report from Andreas Jaeger. */
11720 static void
11721 spring_forward_gap ()
11722 {
11723 /* glibc (up to about 1998-10-07) failed this test. */
11724 struct tm tm;
11725
11726 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11727 instead of "TZ=America/Vancouver" in order to detect the bug even
11728 on systems that don't support the Olson extension, or don't have the
11729 full zoneinfo tables installed. */
11730 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11731
11732 tm.tm_year = 98;
11733 tm.tm_mon = 3;
11734 tm.tm_mday = 5;
11735 tm.tm_hour = 2;
11736 tm.tm_min = 0;
11737 tm.tm_sec = 0;
11738 tm.tm_isdst = -1;
11739 if (mktime (&tm) == (time_t)-1)
11740 exit (1);
11741 }
11742
11743 static void
11744 mktime_test (now)
11745 time_t now;
11746 {
11747 struct tm *lt;
11748 if ((lt = localtime (&now)) && mktime (lt) != now)
11749 exit (1);
11750 now = time_t_max - now;
11751 if ((lt = localtime (&now)) && mktime (lt) != now)
11752 exit (1);
11753 }
11754
11755 static void
11756 irix_6_4_bug ()
11757 {
11758 /* Based on code from Ariel Faigon. */
11759 struct tm tm;
11760 tm.tm_year = 96;
11761 tm.tm_mon = 3;
11762 tm.tm_mday = 0;
11763 tm.tm_hour = 0;
11764 tm.tm_min = 0;
11765 tm.tm_sec = 0;
11766 tm.tm_isdst = -1;
11767 mktime (&tm);
11768 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11769 exit (1);
11770 }
11771
11772 static void
11773 bigtime_test (j)
11774 int j;
11775 {
11776 struct tm tm;
11777 time_t now;
11778 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11779 now = mktime (&tm);
11780 if (now != (time_t) -1)
11781 {
11782 struct tm *lt = localtime (&now);
11783 if (! (lt
11784 && lt->tm_year == tm.tm_year
11785 && lt->tm_mon == tm.tm_mon
11786 && lt->tm_mday == tm.tm_mday
11787 && lt->tm_hour == tm.tm_hour
11788 && lt->tm_min == tm.tm_min
11789 && lt->tm_sec == tm.tm_sec
11790 && lt->tm_yday == tm.tm_yday
11791 && lt->tm_wday == tm.tm_wday
11792 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11793 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11794 exit (1);
11795 }
11796 }
11797
11798 int
11799 main ()
11800 {
11801 time_t t, delta;
11802 int i, j;
11803
11804 /* This test makes some buggy mktime implementations loop.
11805 Give up after 60 seconds; a mktime slower than that
11806 isn't worth using anyway. */
11807 alarm (60);
11808
11809 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11810 continue;
11811 time_t_max--;
11812 delta = time_t_max / 997; /* a suitable prime number */
11813 for (i = 0; i < N_STRINGS; i++)
11814 {
11815 if (tz_strings[i])
11816 putenv (tz_strings[i]);
11817
11818 for (t = 0; t <= time_t_max - delta; t += delta)
11819 mktime_test (t);
11820 mktime_test ((time_t) 60 * 60);
11821 mktime_test ((time_t) 60 * 60 * 24);
11822
11823 for (j = 1; 0 < j; j *= 2)
11824 bigtime_test (j);
11825 bigtime_test (j - 1);
11826 }
11827 irix_6_4_bug ();
11828 spring_forward_gap ();
11829 exit (0);
11830 }
11831 _ACEOF
11832 rm -f conftest$ac_exeext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834 (eval $ac_link) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_cv_func_working_mktime=yes
11844 else
11845 echo "$as_me: program exited with status $ac_status" >&5
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 ( exit $ac_status )
11850 ac_cv_func_working_mktime=no
11851 fi
11852 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 fi
11855 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11856 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11857 if test $ac_cv_func_working_mktime = no; then
11858 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11859 fi
11860
11861 if test "$ac_cv_func_working_mktime" = no; then
11862
11863 cat >>confdefs.h <<\_ACEOF
11864 #define BROKEN_MKTIME 1
11865 _ACEOF
11866
11867 fi
11868
11869 ac_have_func=no # yes means we've found a way to get the load average.
11870
11871 # Make sure getloadavg.c is where it belongs, at configure-time.
11872 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11873 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11874 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11875 { (exit 1); exit 1; }; }
11876
11877 ac_save_LIBS=$LIBS
11878
11879 # Check for getloadavg, but be sure not to touch the cache variable.
11880 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11881 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11882 if test "${ac_cv_func_getloadavg+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char getloadavg (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11901 /* Override any gcc2 internal prototype to avoid an error. */
11902 #ifdef __cplusplus
11903 extern "C"
11904 {
11905 #endif
11906 /* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */
11908 char getloadavg ();
11909 /* The GNU C library defines this for functions which it implements
11910 to always fail with ENOSYS. Some functions are actually named
11911 something starting with __ and the normal name is an alias. */
11912 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11913 choke me
11914 #else
11915 char (*f) () = getloadavg;
11916 #endif
11917 #ifdef __cplusplus
11918 }
11919 #endif
11920
11921 int
11922 main ()
11923 {
11924 return f != getloadavg;
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931 (eval $ac_link) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 ac_cv_func_getloadavg=yes
11942 else
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946 ac_cv_func_getloadavg=no
11947 fi
11948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11951 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11952 if test $ac_cv_func_getloadavg = yes; then
11953 exit 0
11954 else
11955 exit 1
11956 fi
11957 ) && ac_have_func=yes
11958
11959 # On HPUX9, an unprivileged user can get load averages through this function.
11960
11961 for ac_func in pstat_getdynamic
11962 do
11963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964 echo "$as_me:$LINENO: checking for $ac_func" >&5
11965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11966 if eval "test \"\${$as_ac_var+set}\" = set"; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969 cat >conftest.$ac_ext <<_ACEOF
11970 #line $LINENO "configure"
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11980 #ifdef __STDC__
11981 # include <limits.h>
11982 #else
11983 # include <assert.h>
11984 #endif
11985 /* Override any gcc2 internal prototype to avoid an error. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 {
11989 #endif
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11992 char $ac_func ();
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11997 choke me
11998 #else
11999 char (*f) () = $ac_func;
12000 #endif
12001 #ifdef __cplusplus
12002 }
12003 #endif
12004
12005 int
12006 main ()
12007 {
12008 return f != $ac_func;
12009 ;
12010 return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015 (eval $ac_link) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 eval "$as_ac_var=no"
12031 fi
12032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12033 fi
12034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12036 if test `eval echo '${'$as_ac_var'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 _ACEOF
12040
12041 fi
12042 done
12043
12044
12045 # Solaris has libkstat which does not require root.
12046
12047 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12048 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12049 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-lkstat $LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055 #line $LINENO "configure"
12056 /* confdefs.h. */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061
12062 /* Override any gcc2 internal prototype to avoid an error. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 /* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12068 char kstat_open ();
12069 int
12070 main ()
12071 {
12072 kstat_open ();
12073 ;
12074 return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -s conftest$ac_exeext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 ac_cv_lib_kstat_kstat_open=yes
12090 else
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 ac_cv_lib_kstat_kstat_open=no
12095 fi
12096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12100 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12101 if test $ac_cv_lib_kstat_kstat_open = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define HAVE_LIBKSTAT 1
12104 _ACEOF
12105
12106 LIBS="-lkstat $LIBS"
12107
12108 fi
12109
12110 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12111
12112 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12113 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12114 # to get the right answer into the cache.
12115 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12116 if test $ac_have_func = no; then
12117 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12118 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12119 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122 ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-lelf $LIBS"
12124 cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12138 char elf_begin ();
12139 int
12140 main ()
12141 {
12142 elf_begin ();
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -s conftest$ac_exeext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 ac_cv_lib_elf_elf_begin=yes
12160 else
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164 ac_cv_lib_elf_elf_begin=no
12165 fi
12166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12170 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12171 if test $ac_cv_lib_elf_elf_begin = yes; then
12172 LIBS="-lelf $LIBS"
12173 fi
12174
12175 fi
12176 if test $ac_have_func = no; then
12177 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12178 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12179 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lkvm $LIBS"
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191
12192 /* Override any gcc2 internal prototype to avoid an error. */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198 char kvm_open ();
12199 int
12200 main ()
12201 {
12202 kvm_open ();
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209 (eval $ac_link) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_lib_kvm_kvm_open=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_cv_lib_kvm_kvm_open=no
12225 fi
12226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12228 fi
12229 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12230 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12231 if test $ac_cv_lib_kvm_kvm_open = yes; then
12232 LIBS="-lkvm $LIBS"
12233 fi
12234
12235 # Check for the 4.4BSD definition of getloadavg.
12236 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12237 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12238 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-lutil $LIBS"
12243 cat >conftest.$ac_ext <<_ACEOF
12244 #line $LINENO "configure"
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12257 char getloadavg ();
12258 int
12259 main ()
12260 {
12261 getloadavg ();
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_util_getloadavg=yes
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_cv_lib_util_getloadavg=no
12284 fi
12285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12289 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12290 if test $ac_cv_lib_util_getloadavg = yes; then
12291 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12292 fi
12293
12294 fi
12295
12296 if test $ac_have_func = no; then
12297 # There is a commonly available library for RS/6000 AIX.
12298 # Since it is not a standard part of AIX, it might be installed locally.
12299 ac_getloadavg_LIBS=$LIBS
12300 LIBS="-L/usr/local/lib $LIBS"
12301 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12302 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12303 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lgetloadavg $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 #line $LINENO "configure"
12310 /* confdefs.h. */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315
12316 /* Override any gcc2 internal prototype to avoid an error. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 /* We use char because int might match the return type of a gcc2
12321 builtin and then its argument prototype would still apply. */
12322 char getloadavg ();
12323 int
12324 main ()
12325 {
12326 getloadavg ();
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12333 (eval $ac_link) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_lib_getloadavg_getloadavg=yes
12344 else
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 ac_cv_lib_getloadavg_getloadavg=no
12349 fi
12350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_lib_save_LIBS
12352 fi
12353 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12354 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12355 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12356 LIBS="-lgetloadavg $LIBS"
12357 else
12358 LIBS=$ac_getloadavg_LIBS
12359 fi
12360
12361 fi
12362
12363 # Make sure it is really in the library, if we think we found it,
12364 # otherwise set up the replacement function.
12365
12366 for ac_func in getloadavg
12367 do
12368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12369 echo "$as_me:$LINENO: checking for $ac_func" >&5
12370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12371 if eval "test \"\${$as_ac_var+set}\" = set"; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 /* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char $ac_func (); below.
12383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 <limits.h> exists even on freestanding compilers. */
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12390 /* Override any gcc2 internal prototype to avoid an error. */
12391 #ifdef __cplusplus
12392 extern "C"
12393 {
12394 #endif
12395 /* We use char because int might match the return type of a gcc2
12396 builtin and then its argument prototype would still apply. */
12397 char $ac_func ();
12398 /* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12402 choke me
12403 #else
12404 char (*f) () = $ac_func;
12405 #endif
12406 #ifdef __cplusplus
12407 }
12408 #endif
12409
12410 int
12411 main ()
12412 {
12413 return f != $ac_func;
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 eval "$as_ac_var=yes"
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 eval "$as_ac_var=no"
12436 fi
12437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12438 fi
12439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12441 if test `eval echo '${'$as_ac_var'}'` = yes; then
12442 cat >>confdefs.h <<_ACEOF
12443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12444 _ACEOF
12445
12446 else
12447 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12448
12449 cat >>confdefs.h <<\_ACEOF
12450 #define C_GETLOADAVG 1
12451 _ACEOF
12452
12453 # Figure out what our getloadavg.c needs.
12454 ac_have_func=no
12455 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12456 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12457 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 fi
12461 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12462 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12463 else
12464 # Is the header compilable?
12465 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12466 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12467 cat >conftest.$ac_ext <<_ACEOF
12468 #line $LINENO "configure"
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 $ac_includes_default
12475 #include <sys/dg_sys_info.h>
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_header_compiler=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 ac_header_compiler=no
12495 fi
12496 rm -f conftest.$ac_objext conftest.$ac_ext
12497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12498 echo "${ECHO_T}$ac_header_compiler" >&6
12499
12500 # Is the header present?
12501 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12502 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12503 cat >conftest.$ac_ext <<_ACEOF
12504 #line $LINENO "configure"
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 #include <sys/dg_sys_info.h>
12511 _ACEOF
12512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
12522 else
12523 ac_cpp_err=
12524 fi
12525 else
12526 ac_cpp_err=yes
12527 fi
12528 if test -z "$ac_cpp_err"; then
12529 ac_header_preproc=yes
12530 else
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 ac_header_preproc=no
12535 fi
12536 rm -f conftest.err conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12538 echo "${ECHO_T}$ac_header_preproc" >&6
12539
12540 # So? What about this header?
12541 case $ac_header_compiler:$ac_header_preproc in
12542 yes:no )
12543 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12544 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12546 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12547 (
12548 cat <<\_ASBOX
12549 ## ------------------------------------ ##
12550 ## Report this to bug-autoconf@gnu.org. ##
12551 ## ------------------------------------ ##
12552 _ASBOX
12553 ) |
12554 sed "s/^/$as_me: WARNING: /" >&2
12555 ;;
12556 no:yes )
12557 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12558 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12560 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12562 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12563 (
12564 cat <<\_ASBOX
12565 ## ------------------------------------ ##
12566 ## Report this to bug-autoconf@gnu.org. ##
12567 ## ------------------------------------ ##
12568 _ASBOX
12569 ) |
12570 sed "s/^/$as_me: WARNING: /" >&2
12571 ;;
12572 esac
12573 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12574 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12575 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12579 fi
12580 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12581 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12582
12583 fi
12584 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12585 ac_have_func=yes
12586
12587 cat >>confdefs.h <<\_ACEOF
12588 #define DGUX 1
12589 _ACEOF
12590
12591
12592 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12593 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12594 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-ldgc $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606
12607 /* Override any gcc2 internal prototype to avoid an error. */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613 char dg_sys_info ();
12614 int
12615 main ()
12616 {
12617 dg_sys_info ();
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -s conftest$ac_exeext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 ac_cv_lib_dgc_dg_sys_info=yes
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_cv_lib_dgc_dg_sys_info=no
12640 fi
12641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12643 fi
12644 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12645 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12646 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12647 cat >>confdefs.h <<_ACEOF
12648 #define HAVE_LIBDGC 1
12649 _ACEOF
12650
12651 LIBS="-ldgc $LIBS"
12652
12653 fi
12654
12655 fi
12656
12657
12658
12659 if test "${ac_cv_header_locale_h+set}" = set; then
12660 echo "$as_me:$LINENO: checking for locale.h" >&5
12661 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12662 if test "${ac_cv_header_locale_h+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 fi
12665 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12666 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12667 else
12668 # Is the header compilable?
12669 echo "$as_me:$LINENO: checking locale.h usability" >&5
12670 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12672 #line $LINENO "configure"
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678 $ac_includes_default
12679 #include <locale.h>
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_header_compiler=yes
12694 else
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698 ac_header_compiler=no
12699 fi
12700 rm -f conftest.$ac_objext conftest.$ac_ext
12701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12702 echo "${ECHO_T}$ac_header_compiler" >&6
12703
12704 # Is the header present?
12705 echo "$as_me:$LINENO: checking locale.h presence" >&5
12706 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12707 cat >conftest.$ac_ext <<_ACEOF
12708 #line $LINENO "configure"
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 #include <locale.h>
12715 _ACEOF
12716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } >/dev/null; then
12724 if test -s conftest.err; then
12725 ac_cpp_err=$ac_c_preproc_warn_flag
12726 else
12727 ac_cpp_err=
12728 fi
12729 else
12730 ac_cpp_err=yes
12731 fi
12732 if test -z "$ac_cpp_err"; then
12733 ac_header_preproc=yes
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_header_preproc=no
12739 fi
12740 rm -f conftest.err conftest.$ac_ext
12741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12742 echo "${ECHO_T}$ac_header_preproc" >&6
12743
12744 # So? What about this header?
12745 case $ac_header_compiler:$ac_header_preproc in
12746 yes:no )
12747 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12748 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12750 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12751 (
12752 cat <<\_ASBOX
12753 ## ------------------------------------ ##
12754 ## Report this to bug-autoconf@gnu.org. ##
12755 ## ------------------------------------ ##
12756 _ASBOX
12757 ) |
12758 sed "s/^/$as_me: WARNING: /" >&2
12759 ;;
12760 no:yes )
12761 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12762 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12764 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12765 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12766 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12767 (
12768 cat <<\_ASBOX
12769 ## ------------------------------------ ##
12770 ## Report this to bug-autoconf@gnu.org. ##
12771 ## ------------------------------------ ##
12772 _ASBOX
12773 ) |
12774 sed "s/^/$as_me: WARNING: /" >&2
12775 ;;
12776 esac
12777 echo "$as_me:$LINENO: checking for locale.h" >&5
12778 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12779 if test "${ac_cv_header_locale_h+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 ac_cv_header_locale_h=$ac_header_preproc
12783 fi
12784 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12785 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12786
12787 fi
12788
12789
12790
12791 for ac_func in setlocale
12792 do
12793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12794 echo "$as_me:$LINENO: checking for $ac_func" >&5
12795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12796 if eval "test \"\${$as_ac_var+set}\" = set"; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799 cat >conftest.$ac_ext <<_ACEOF
12800 #line $LINENO "configure"
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806 /* System header to define __stub macros and hopefully few prototypes,
12807 which can conflict with char $ac_func (); below.
12808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12809 <limits.h> exists even on freestanding compilers. */
12810 #ifdef __STDC__
12811 # include <limits.h>
12812 #else
12813 # include <assert.h>
12814 #endif
12815 /* Override any gcc2 internal prototype to avoid an error. */
12816 #ifdef __cplusplus
12817 extern "C"
12818 {
12819 #endif
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822 char $ac_func ();
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12827 choke me
12828 #else
12829 char (*f) () = $ac_func;
12830 #endif
12831 #ifdef __cplusplus
12832 }
12833 #endif
12834
12835 int
12836 main ()
12837 {
12838 return f != $ac_func;
12839 ;
12840 return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12845 (eval $ac_link) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 eval "$as_ac_var=no"
12861 fi
12862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12863 fi
12864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12866 if test `eval echo '${'$as_ac_var'}'` = yes; then
12867 cat >>confdefs.h <<_ACEOF
12868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12869 _ACEOF
12870
12871 fi
12872 done
12873
12874
12875 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12876 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12877 # Irix 4.0.5F has the header but not the library.
12878 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12879 ac_have_func=yes
12880
12881 cat >>confdefs.h <<\_ACEOF
12882 #define SVR4 1
12883 _ACEOF
12884
12885 fi
12886
12887 if test $ac_have_func = no; then
12888 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12889 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12890 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12891 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 fi
12894 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12895 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12896 else
12897 # Is the header compilable?
12898 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12899 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12900 cat >conftest.$ac_ext <<_ACEOF
12901 #line $LINENO "configure"
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12907 $ac_includes_default
12908 #include <inq_stats/cpustats.h>
12909 _ACEOF
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_header_compiler=yes
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 ac_header_compiler=no
12928 fi
12929 rm -f conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12931 echo "${ECHO_T}$ac_header_compiler" >&6
12932
12933 # Is the header present?
12934 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12935 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 #include <inq_stats/cpustats.h>
12944 _ACEOF
12945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } >/dev/null; then
12953 if test -s conftest.err; then
12954 ac_cpp_err=$ac_c_preproc_warn_flag
12955 else
12956 ac_cpp_err=
12957 fi
12958 else
12959 ac_cpp_err=yes
12960 fi
12961 if test -z "$ac_cpp_err"; then
12962 ac_header_preproc=yes
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_header_preproc=no
12968 fi
12969 rm -f conftest.err conftest.$ac_ext
12970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971 echo "${ECHO_T}$ac_header_preproc" >&6
12972
12973 # So? What about this header?
12974 case $ac_header_compiler:$ac_header_preproc in
12975 yes:no )
12976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12977 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12980 (
12981 cat <<\_ASBOX
12982 ## ------------------------------------ ##
12983 ## Report this to bug-autoconf@gnu.org. ##
12984 ## ------------------------------------ ##
12985 _ASBOX
12986 ) |
12987 sed "s/^/$as_me: WARNING: /" >&2
12988 ;;
12989 no:yes )
12990 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12991 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12993 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12995 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12996 (
12997 cat <<\_ASBOX
12998 ## ------------------------------------ ##
12999 ## Report this to bug-autoconf@gnu.org. ##
13000 ## ------------------------------------ ##
13001 _ASBOX
13002 ) |
13003 sed "s/^/$as_me: WARNING: /" >&2
13004 ;;
13005 esac
13006 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13007 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13008 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13012 fi
13013 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13014 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13015
13016 fi
13017 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13018 ac_have_func=yes
13019
13020 cat >>confdefs.h <<\_ACEOF
13021 #define UMAX 1
13022 _ACEOF
13023
13024
13025 cat >>confdefs.h <<\_ACEOF
13026 #define UMAX4_3 1
13027 _ACEOF
13028
13029 fi
13030
13031
13032 fi
13033
13034 if test $ac_have_func = no; then
13035 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13036 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13037 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13038 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 fi
13041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13042 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13043 else
13044 # Is the header compilable?
13045 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13046 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13047 cat >conftest.$ac_ext <<_ACEOF
13048 #line $LINENO "configure"
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 $ac_includes_default
13055 #include <sys/cpustats.h>
13056 _ACEOF
13057 rm -f conftest.$ac_objext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13059 (eval $ac_compile) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_header_compiler=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 ac_header_compiler=no
13075 fi
13076 rm -f conftest.$ac_objext conftest.$ac_ext
13077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078 echo "${ECHO_T}$ac_header_compiler" >&6
13079
13080 # Is the header present?
13081 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13082 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 #line $LINENO "configure"
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #include <sys/cpustats.h>
13091 _ACEOF
13092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } >/dev/null; then
13100 if test -s conftest.err; then
13101 ac_cpp_err=$ac_c_preproc_warn_flag
13102 else
13103 ac_cpp_err=
13104 fi
13105 else
13106 ac_cpp_err=yes
13107 fi
13108 if test -z "$ac_cpp_err"; then
13109 ac_header_preproc=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 ac_header_preproc=no
13115 fi
13116 rm -f conftest.err conftest.$ac_ext
13117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118 echo "${ECHO_T}$ac_header_preproc" >&6
13119
13120 # So? What about this header?
13121 case $ac_header_compiler:$ac_header_preproc in
13122 yes:no )
13123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13124 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13126 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13127 (
13128 cat <<\_ASBOX
13129 ## ------------------------------------ ##
13130 ## Report this to bug-autoconf@gnu.org. ##
13131 ## ------------------------------------ ##
13132 _ASBOX
13133 ) |
13134 sed "s/^/$as_me: WARNING: /" >&2
13135 ;;
13136 no:yes )
13137 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13138 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13140 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13142 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13143 (
13144 cat <<\_ASBOX
13145 ## ------------------------------------ ##
13146 ## Report this to bug-autoconf@gnu.org. ##
13147 ## ------------------------------------ ##
13148 _ASBOX
13149 ) |
13150 sed "s/^/$as_me: WARNING: /" >&2
13151 ;;
13152 esac
13153 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13154 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13155 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13159 fi
13160 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13161 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13162
13163 fi
13164 if test $ac_cv_header_sys_cpustats_h = yes; then
13165 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13166 #define UMAX 1
13167 _ACEOF
13168
13169 fi
13170
13171
13172 fi
13173
13174 if test $ac_have_func = no; then
13175
13176 for ac_header in mach/mach.h
13177 do
13178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13180 echo "$as_me:$LINENO: checking for $ac_header" >&5
13181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 fi
13185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13187 else
13188 # Is the header compilable?
13189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 $ac_includes_default
13199 #include <$ac_header>
13200 _ACEOF
13201 rm -f conftest.$ac_objext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13203 (eval $ac_compile) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -s conftest.$ac_objext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_header_compiler=yes
13214 else
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218 ac_header_compiler=no
13219 fi
13220 rm -f conftest.$ac_objext conftest.$ac_ext
13221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13222 echo "${ECHO_T}$ac_header_compiler" >&6
13223
13224 # Is the header present?
13225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 #include <$ac_header>
13235 _ACEOF
13236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } >/dev/null; then
13244 if test -s conftest.err; then
13245 ac_cpp_err=$ac_c_preproc_warn_flag
13246 else
13247 ac_cpp_err=
13248 fi
13249 else
13250 ac_cpp_err=yes
13251 fi
13252 if test -z "$ac_cpp_err"; then
13253 ac_header_preproc=yes
13254 else
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ac_header_preproc=no
13259 fi
13260 rm -f conftest.err conftest.$ac_ext
13261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13262 echo "${ECHO_T}$ac_header_preproc" >&6
13263
13264 # So? What about this header?
13265 case $ac_header_compiler:$ac_header_preproc in
13266 yes:no )
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13271 (
13272 cat <<\_ASBOX
13273 ## ------------------------------------ ##
13274 ## Report this to bug-autoconf@gnu.org. ##
13275 ## ------------------------------------ ##
13276 _ASBOX
13277 ) |
13278 sed "s/^/$as_me: WARNING: /" >&2
13279 ;;
13280 no:yes )
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13287 (
13288 cat <<\_ASBOX
13289 ## ------------------------------------ ##
13290 ## Report this to bug-autoconf@gnu.org. ##
13291 ## ------------------------------------ ##
13292 _ASBOX
13293 ) |
13294 sed "s/^/$as_me: WARNING: /" >&2
13295 ;;
13296 esac
13297 echo "$as_me:$LINENO: checking for $ac_header" >&5
13298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302 eval "$as_ac_Header=$ac_header_preproc"
13303 fi
13304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13306
13307 fi
13308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13309 cat >>confdefs.h <<_ACEOF
13310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13311 _ACEOF
13312
13313 fi
13314
13315 done
13316
13317 fi
13318
13319
13320 for ac_header in nlist.h
13321 do
13322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13324 echo "$as_me:$LINENO: checking for $ac_header" >&5
13325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 fi
13329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13331 else
13332 # Is the header compilable?
13333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 $ac_includes_default
13343 #include <$ac_header>
13344 _ACEOF
13345 rm -f conftest.$ac_objext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347 (eval $ac_compile) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_header_compiler=yes
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13361
13362 ac_header_compiler=no
13363 fi
13364 rm -f conftest.$ac_objext conftest.$ac_ext
13365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13366 echo "${ECHO_T}$ac_header_compiler" >&6
13367
13368 # Is the header present?
13369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13371 cat >conftest.$ac_ext <<_ACEOF
13372 #line $LINENO "configure"
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 #include <$ac_header>
13379 _ACEOF
13380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } >/dev/null; then
13388 if test -s conftest.err; then
13389 ac_cpp_err=$ac_c_preproc_warn_flag
13390 else
13391 ac_cpp_err=
13392 fi
13393 else
13394 ac_cpp_err=yes
13395 fi
13396 if test -z "$ac_cpp_err"; then
13397 ac_header_preproc=yes
13398 else
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_header_preproc=no
13403 fi
13404 rm -f conftest.err conftest.$ac_ext
13405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13406 echo "${ECHO_T}$ac_header_preproc" >&6
13407
13408 # So? What about this header?
13409 case $ac_header_compiler:$ac_header_preproc in
13410 yes:no )
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 (
13416 cat <<\_ASBOX
13417 ## ------------------------------------ ##
13418 ## Report this to bug-autoconf@gnu.org. ##
13419 ## ------------------------------------ ##
13420 _ASBOX
13421 ) |
13422 sed "s/^/$as_me: WARNING: /" >&2
13423 ;;
13424 no:yes )
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13431 (
13432 cat <<\_ASBOX
13433 ## ------------------------------------ ##
13434 ## Report this to bug-autoconf@gnu.org. ##
13435 ## ------------------------------------ ##
13436 _ASBOX
13437 ) |
13438 sed "s/^/$as_me: WARNING: /" >&2
13439 ;;
13440 esac
13441 echo "$as_me:$LINENO: checking for $ac_header" >&5
13442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 eval "$as_ac_Header=$ac_header_preproc"
13447 fi
13448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13450
13451 fi
13452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13453 cat >>confdefs.h <<_ACEOF
13454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13455 _ACEOF
13456 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13457 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13458 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13463 /* confdefs.h. */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 #include <nlist.h>
13469
13470 int
13471 main ()
13472 {
13473 static struct nlist ac_aggr;
13474 if (ac_aggr.n_un.n_name)
13475 return 0;
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -s conftest.$ac_objext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_member_struct_nlist_n_un_n_name=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13499 /* confdefs.h. */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <nlist.h>
13505
13506 int
13507 main ()
13508 {
13509 static struct nlist ac_aggr;
13510 if (sizeof ac_aggr.n_un.n_name)
13511 return 0;
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_member_struct_nlist_n_un_n_name=yes
13529 else
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533 ac_cv_member_struct_nlist_n_un_n_name=no
13534 fi
13535 rm -f conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 rm -f conftest.$ac_objext conftest.$ac_ext
13538 fi
13539 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13540 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13541 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13542
13543 cat >>confdefs.h <<_ACEOF
13544 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13545 _ACEOF
13546
13547
13548 cat >>confdefs.h <<\_ACEOF
13549 #define NLIST_NAME_UNION 1
13550 _ACEOF
13551
13552 fi
13553
13554
13555 fi
13556
13557 done
13558
13559 fi
13560 done
13561
13562
13563 # Some definitions of getloadavg require that the program be installed setgid.
13564 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13565 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13566 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569 cat >conftest.$ac_ext <<_ACEOF
13570 #line $LINENO "configure"
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13577 #ifdef LDAV_PRIVILEGED
13578 Yowza Am I SETGID yet
13579 #endif
13580 _ACEOF
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13583 ac_cv_func_getloadavg_setgid=yes
13584 else
13585 ac_cv_func_getloadavg_setgid=no
13586 fi
13587 rm -f conftest*
13588
13589 fi
13590 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13591 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13592 if test $ac_cv_func_getloadavg_setgid = yes; then
13593 NEED_SETGID=true
13594
13595 cat >>confdefs.h <<\_ACEOF
13596 #define GETLOADAVG_PRIVILEGED 1
13597 _ACEOF
13598
13599 else
13600 NEED_SETGID=false
13601 fi
13602
13603 if test $ac_cv_func_getloadavg_setgid = yes; then
13604 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13605 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13606 if test "${ac_cv_group_kmem+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13610 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13611 # If we got an error (system does not support symlinks), try without -L.
13612 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13613 ac_cv_group_kmem=`echo $ac_ls_output \
13614 | sed -ne 's/[ ][ ]*/ /g;
13615 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13616 / /s/.* //;p;'`
13617
13618 fi
13619 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13620 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13621 KMEM_GROUP=$ac_cv_group_kmem
13622 fi
13623 if test "x$ac_save_LIBS" = x; then
13624 GETLOADAVG_LIBS=$LIBS
13625 else
13626 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13627 fi
13628 LIBS=$ac_save_LIBS
13629
13630
13631
13632 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13633 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13634 if test "${ac_cv_sys_largefile_source+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 while :; do
13638 ac_cv_sys_largefile_source=no
13639 cat >conftest.$ac_ext <<_ACEOF
13640 #line $LINENO "configure"
13641 /* confdefs.h. */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 #include <stdio.h>
13647 int
13648 main ()
13649 {
13650 return !fseeko;
13651 ;
13652 return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 break
13668 else
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 fi
13673 rm -f conftest.$ac_objext conftest.$ac_ext
13674 cat >conftest.$ac_ext <<_ACEOF
13675 #line $LINENO "configure"
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 #define _LARGEFILE_SOURCE 1
13682 #include <stdio.h>
13683 int
13684 main ()
13685 {
13686 return !fseeko;
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13693 (eval $ac_compile) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_sys_largefile_source=1; break
13704 else
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 fi
13709 rm -f conftest.$ac_objext conftest.$ac_ext
13710 break
13711 done
13712 fi
13713 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13714 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13715 if test "$ac_cv_sys_largefile_source" != no; then
13716
13717 cat >>confdefs.h <<_ACEOF
13718 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13719 _ACEOF
13720
13721 fi
13722 rm -f conftest*
13723
13724 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13725 # in glibc 2.1.3, but that breaks too many other things.
13726 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13727 echo "$as_me:$LINENO: checking for fseeko" >&5
13728 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13729 if test "${ac_cv_func_fseeko+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 cat >conftest.$ac_ext <<_ACEOF
13733 #line $LINENO "configure"
13734 /* confdefs.h. */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 #include <stdio.h>
13740 int
13741 main ()
13742 {
13743 return fseeko && fseeko (stdin, 0, 0);
13744 ;
13745 return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext conftest$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750 (eval $ac_link) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_func_fseeko=yes
13761 else
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 ac_cv_func_fseeko=no
13766 fi
13767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13768 fi
13769 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13770 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13771 if test $ac_cv_func_fseeko = yes; then
13772
13773 cat >>confdefs.h <<\_ACEOF
13774 #define HAVE_FSEEKO 1
13775 _ACEOF
13776
13777 fi
13778
13779
13780 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13781 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13782 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 # Use it with a single arg.
13786 cat >conftest.$ac_ext <<_ACEOF
13787 #line $LINENO "configure"
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 $ac_includes_default
13794 int
13795 main ()
13796 {
13797 getpgrp (0);
13798 ;
13799 return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_func_getpgrp_void=no
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 ac_cv_func_getpgrp_void=yes
13820 fi
13821 rm -f conftest.$ac_objext conftest.$ac_ext
13822
13823 fi
13824 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13825 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13826 if test $ac_cv_func_getpgrp_void = yes; then
13827
13828 cat >>confdefs.h <<\_ACEOF
13829 #define GETPGRP_VOID 1
13830 _ACEOF
13831
13832 fi
13833
13834
13835 # UNIX98 PTYs.
13836
13837 for ac_func in grantpt
13838 do
13839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13840 echo "$as_me:$LINENO: checking for $ac_func" >&5
13841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13842 if eval "test \"\${$as_ac_var+set}\" = set"; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845 cat >conftest.$ac_ext <<_ACEOF
13846 #line $LINENO "configure"
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 /* System header to define __stub macros and hopefully few prototypes,
13853 which can conflict with char $ac_func (); below.
13854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13855 <limits.h> exists even on freestanding compilers. */
13856 #ifdef __STDC__
13857 # include <limits.h>
13858 #else
13859 # include <assert.h>
13860 #endif
13861 /* Override any gcc2 internal prototype to avoid an error. */
13862 #ifdef __cplusplus
13863 extern "C"
13864 {
13865 #endif
13866 /* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13868 char $ac_func ();
13869 /* The GNU C library defines this for functions which it implements
13870 to always fail with ENOSYS. Some functions are actually named
13871 something starting with __ and the normal name is an alias. */
13872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13873 choke me
13874 #else
13875 char (*f) () = $ac_func;
13876 #endif
13877 #ifdef __cplusplus
13878 }
13879 #endif
13880
13881 int
13882 main ()
13883 {
13884 return f != $ac_func;
13885 ;
13886 return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 eval "$as_ac_var=yes"
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 eval "$as_ac_var=no"
13907 fi
13908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13909 fi
13910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13912 if test `eval echo '${'$as_ac_var'}'` = yes; then
13913 cat >>confdefs.h <<_ACEOF
13914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13915 _ACEOF
13916
13917 fi
13918 done
13919
13920
13921 # PTY-related GNU extensions.
13922
13923 for ac_func in getpt
13924 do
13925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13926 echo "$as_me:$LINENO: checking for $ac_func" >&5
13927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13928 if eval "test \"\${$as_ac_var+set}\" = set"; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931 cat >conftest.$ac_ext <<_ACEOF
13932 #line $LINENO "configure"
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 /* System header to define __stub macros and hopefully few prototypes,
13939 which can conflict with char $ac_func (); below.
13940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13941 <limits.h> exists even on freestanding compilers. */
13942 #ifdef __STDC__
13943 # include <limits.h>
13944 #else
13945 # include <assert.h>
13946 #endif
13947 /* Override any gcc2 internal prototype to avoid an error. */
13948 #ifdef __cplusplus
13949 extern "C"
13950 {
13951 #endif
13952 /* We use char because int might match the return type of a gcc2
13953 builtin and then its argument prototype would still apply. */
13954 char $ac_func ();
13955 /* The GNU C library defines this for functions which it implements
13956 to always fail with ENOSYS. Some functions are actually named
13957 something starting with __ and the normal name is an alias. */
13958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13959 choke me
13960 #else
13961 char (*f) () = $ac_func;
13962 #endif
13963 #ifdef __cplusplus
13964 }
13965 #endif
13966
13967 int
13968 main ()
13969 {
13970 return f != $ac_func;
13971 ;
13972 return 0;
13973 }
13974 _ACEOF
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13977 (eval $ac_link) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
13981 { ac_try='test -s conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 eval "$as_ac_var=yes"
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 eval "$as_ac_var=no"
13993 fi
13994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13995 fi
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13998 if test `eval echo '${'$as_ac_var'}'` = yes; then
13999 cat >>confdefs.h <<_ACEOF
14000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14001 _ACEOF
14002
14003 fi
14004 done
14005
14006
14007 # Check this now, so that we will NOT find the above functions in ncurses.
14008 # That is because we have not set up to link ncurses in lib-src.
14009 # It's better to believe a function is not available
14010 # than to expect to find it in ncurses.
14011
14012 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14013 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14014 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 ac_check_lib_save_LIBS=$LIBS
14018 LIBS="-lncurses $LIBS"
14019 cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026
14027 /* Override any gcc2 internal prototype to avoid an error. */
14028 #ifdef __cplusplus
14029 extern "C"
14030 #endif
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033 char tparm ();
14034 int
14035 main ()
14036 {
14037 tparm ();
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -s conftest$ac_exeext'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_cv_lib_ncurses_tparm=yes
14055 else
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059 ac_cv_lib_ncurses_tparm=no
14060 fi
14061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14063 fi
14064 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14065 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14066 if test $ac_cv_lib_ncurses_tparm = yes; then
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_LIBNCURSES 1
14069 _ACEOF
14070
14071 LIBS="-lncurses $LIBS"
14072
14073 fi
14074
14075
14076 # Do we need the Hesiod library to provide the support routines?
14077 if test "$with_hesiod" = yes ; then
14078 # Don't set $LIBS here -- see comments above.
14079 resolv=no
14080 echo "$as_me:$LINENO: checking for res_send" >&5
14081 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14082 if test "${ac_cv_func_res_send+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 /* System header to define __stub macros and hopefully few prototypes,
14093 which can conflict with char res_send (); below.
14094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14095 <limits.h> exists even on freestanding compilers. */
14096 #ifdef __STDC__
14097 # include <limits.h>
14098 #else
14099 # include <assert.h>
14100 #endif
14101 /* Override any gcc2 internal prototype to avoid an error. */
14102 #ifdef __cplusplus
14103 extern "C"
14104 {
14105 #endif
14106 /* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14108 char res_send ();
14109 /* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112 #if defined (__stub_res_send) || defined (__stub___res_send)
14113 choke me
14114 #else
14115 char (*f) () = res_send;
14116 #endif
14117 #ifdef __cplusplus
14118 }
14119 #endif
14120
14121 int
14122 main ()
14123 {
14124 return f != res_send;
14125 ;
14126 return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131 (eval $ac_link) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_func_res_send=yes
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 ac_cv_func_res_send=no
14147 fi
14148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14149 fi
14150 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14151 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14152 if test $ac_cv_func_res_send = yes; then
14153 :
14154 else
14155 echo "$as_me:$LINENO: checking for __res_send" >&5
14156 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14157 if test "${ac_cv_func___res_send+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 cat >conftest.$ac_ext <<_ACEOF
14161 #line $LINENO "configure"
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 /* System header to define __stub macros and hopefully few prototypes,
14168 which can conflict with char __res_send (); below.
14169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14170 <limits.h> exists even on freestanding compilers. */
14171 #ifdef __STDC__
14172 # include <limits.h>
14173 #else
14174 # include <assert.h>
14175 #endif
14176 /* Override any gcc2 internal prototype to avoid an error. */
14177 #ifdef __cplusplus
14178 extern "C"
14179 {
14180 #endif
14181 /* We use char because int might match the return type of a gcc2
14182 builtin and then its argument prototype would still apply. */
14183 char __res_send ();
14184 /* The GNU C library defines this for functions which it implements
14185 to always fail with ENOSYS. Some functions are actually named
14186 something starting with __ and the normal name is an alias. */
14187 #if defined (__stub___res_send) || defined (__stub_____res_send)
14188 choke me
14189 #else
14190 char (*f) () = __res_send;
14191 #endif
14192 #ifdef __cplusplus
14193 }
14194 #endif
14195
14196 int
14197 main ()
14198 {
14199 return f != __res_send;
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206 (eval $ac_link) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_func___res_send=yes
14217 else
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221 ac_cv_func___res_send=no
14222 fi
14223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14224 fi
14225 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14226 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14227 if test $ac_cv_func___res_send = yes; then
14228 :
14229 else
14230 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14231 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14232 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235 ac_check_lib_save_LIBS=$LIBS
14236 LIBS="-lresolv $LIBS"
14237 cat >conftest.$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244
14245 /* Override any gcc2 internal prototype to avoid an error. */
14246 #ifdef __cplusplus
14247 extern "C"
14248 #endif
14249 /* We use char because int might match the return type of a gcc2
14250 builtin and then its argument prototype would still apply. */
14251 char res_send ();
14252 int
14253 main ()
14254 {
14255 res_send ();
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262 (eval $ac_link) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -s conftest$ac_exeext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_cv_lib_resolv_res_send=yes
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 ac_cv_lib_resolv_res_send=no
14278 fi
14279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14281 fi
14282 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14283 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14284 if test $ac_cv_lib_resolv_res_send = yes; then
14285 resolv=yes
14286 else
14287 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14288 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14289 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lresolv $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14295 #line $LINENO "configure"
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301
14302 /* Override any gcc2 internal prototype to avoid an error. */
14303 #ifdef __cplusplus
14304 extern "C"
14305 #endif
14306 /* We use char because int might match the return type of a gcc2
14307 builtin and then its argument prototype would still apply. */
14308 char __res_send ();
14309 int
14310 main ()
14311 {
14312 __res_send ();
14313 ;
14314 return 0;
14315 }
14316 _ACEOF
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14319 (eval $ac_link) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -s conftest$ac_exeext'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_cv_lib_resolv___res_send=yes
14330 else
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 ac_cv_lib_resolv___res_send=no
14335 fi
14336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14337 LIBS=$ac_check_lib_save_LIBS
14338 fi
14339 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14340 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14341 if test $ac_cv_lib_resolv___res_send = yes; then
14342 resolv=yes
14343 fi
14344
14345 fi
14346
14347 fi
14348
14349 fi
14350
14351 if test "$resolv" = yes ; then
14352 RESOLVLIB=-lresolv
14353
14354 cat >>confdefs.h <<\_ACEOF
14355 #define HAVE_LIBRESOLV 1
14356 _ACEOF
14357
14358 else
14359 RESOLVLIB=
14360 fi
14361 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14362 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14363 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 /* System header to define __stub macros and hopefully few prototypes,
14374 which can conflict with char hes_getmailhost (); below.
14375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14376 <limits.h> exists even on freestanding compilers. */
14377 #ifdef __STDC__
14378 # include <limits.h>
14379 #else
14380 # include <assert.h>
14381 #endif
14382 /* Override any gcc2 internal prototype to avoid an error. */
14383 #ifdef __cplusplus
14384 extern "C"
14385 {
14386 #endif
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14389 char hes_getmailhost ();
14390 /* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
14393 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14394 choke me
14395 #else
14396 char (*f) () = hes_getmailhost;
14397 #endif
14398 #ifdef __cplusplus
14399 }
14400 #endif
14401
14402 int
14403 main ()
14404 {
14405 return f != hes_getmailhost;
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_cv_func_hes_getmailhost=yes
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_cv_func_hes_getmailhost=no
14428 fi
14429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14430 fi
14431 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14432 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14433 if test $ac_cv_func_hes_getmailhost = yes; then
14434 :
14435 else
14436 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14437 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14438 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441 ac_check_lib_save_LIBS=$LIBS
14442 LIBS="-lhesiod $RESOLVLIB $LIBS"
14443 cat >conftest.$ac_ext <<_ACEOF
14444 #line $LINENO "configure"
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450
14451 /* Override any gcc2 internal prototype to avoid an error. */
14452 #ifdef __cplusplus
14453 extern "C"
14454 #endif
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14457 char hes_getmailhost ();
14458 int
14459 main ()
14460 {
14461 hes_getmailhost ();
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14468 (eval $ac_link) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -s conftest$ac_exeext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_lib_hesiod_hes_getmailhost=yes
14479 else
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 ac_cv_lib_hesiod_hes_getmailhost=no
14484 fi
14485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14487 fi
14488 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14489 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14490 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14491
14492 cat >>confdefs.h <<\_ACEOF
14493 #define HAVE_LIBHESIOD 1
14494 _ACEOF
14495
14496 else
14497 :
14498 fi
14499
14500 fi
14501
14502 fi
14503
14504 # These tell us which Kerberos-related libraries to use.
14505 if test "${with_kerberos+set}" = set; then
14506
14507 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14508 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14509 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-lcom_err $LIBS"
14514 cat >conftest.$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521
14522 /* Override any gcc2 internal prototype to avoid an error. */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14528 char com_err ();
14529 int
14530 main ()
14531 {
14532 com_err ();
14533 ;
14534 return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -s conftest$ac_exeext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_lib_com_err_com_err=yes
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554 ac_cv_lib_com_err_com_err=no
14555 fi
14556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14557 LIBS=$ac_check_lib_save_LIBS
14558 fi
14559 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14560 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14561 if test $ac_cv_lib_com_err_com_err = yes; then
14562 cat >>confdefs.h <<_ACEOF
14563 #define HAVE_LIBCOM_ERR 1
14564 _ACEOF
14565
14566 LIBS="-lcom_err $LIBS"
14567
14568 fi
14569
14570
14571 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14572 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14573 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576 ac_check_lib_save_LIBS=$LIBS
14577 LIBS="-lk5crypto $LIBS"
14578 cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585
14586 /* Override any gcc2 internal prototype to avoid an error. */
14587 #ifdef __cplusplus
14588 extern "C"
14589 #endif
14590 /* We use char because int might match the return type of a gcc2
14591 builtin and then its argument prototype would still apply. */
14592 char mit_des_cbc_encrypt ();
14593 int
14594 main ()
14595 {
14596 mit_des_cbc_encrypt ();
14597 ;
14598 return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603 (eval $ac_link) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -s conftest$ac_exeext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14613 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14614 else
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14619 fi
14620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14622 fi
14623 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14624 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14625 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define HAVE_LIBK5CRYPTO 1
14628 _ACEOF
14629
14630 LIBS="-lk5crypto $LIBS"
14631
14632 fi
14633
14634
14635 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14636 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14637 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 ac_check_lib_save_LIBS=$LIBS
14641 LIBS="-lcrypto $LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 /* confdefs.h. */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649
14650 /* Override any gcc2 internal prototype to avoid an error. */
14651 #ifdef __cplusplus
14652 extern "C"
14653 #endif
14654 /* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14656 char mit_des_cbc_encrypt ();
14657 int
14658 main ()
14659 {
14660 mit_des_cbc_encrypt ();
14661 ;
14662 return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -s conftest$ac_exeext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14683 fi
14684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14685 LIBS=$ac_check_lib_save_LIBS
14686 fi
14687 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14688 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14689 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14690 cat >>confdefs.h <<_ACEOF
14691 #define HAVE_LIBCRYPTO 1
14692 _ACEOF
14693
14694 LIBS="-lcrypto $LIBS"
14695
14696 fi
14697
14698
14699 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14700 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14701 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704 ac_check_lib_save_LIBS=$LIBS
14705 LIBS="-lkrb5 $LIBS"
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713
14714 /* Override any gcc2 internal prototype to avoid an error. */
14715 #ifdef __cplusplus
14716 extern "C"
14717 #endif
14718 /* We use char because int might match the return type of a gcc2
14719 builtin and then its argument prototype would still apply. */
14720 char krb5_init_context ();
14721 int
14722 main ()
14723 {
14724 krb5_init_context ();
14725 ;
14726 return 0;
14727 }
14728 _ACEOF
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14731 (eval $ac_link) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_lib_krb5_krb5_init_context=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_cv_lib_krb5_krb5_init_context=no
14747 fi
14748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14752 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14753 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define HAVE_LIBKRB5 1
14756 _ACEOF
14757
14758 LIBS="-lkrb5 $LIBS"
14759
14760 fi
14761
14762 if test "${with_kerberos5+set}" != set; then
14763
14764 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14765 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14766 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 ac_check_lib_save_LIBS=$LIBS
14770 LIBS="-ldes425 $LIBS"
14771 cat >conftest.$ac_ext <<_ACEOF
14772 #line $LINENO "configure"
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778
14779 /* Override any gcc2 internal prototype to avoid an error. */
14780 #ifdef __cplusplus
14781 extern "C"
14782 #endif
14783 /* We use char because int might match the return type of a gcc2
14784 builtin and then its argument prototype would still apply. */
14785 char des_cbc_encrypt ();
14786 int
14787 main ()
14788 {
14789 des_cbc_encrypt ();
14790 ;
14791 return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14796 (eval $ac_link) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -s conftest$ac_exeext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_cv_lib_des425_des_cbc_encrypt=yes
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 ac_cv_lib_des425_des_cbc_encrypt=no
14812 fi
14813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14814 LIBS=$ac_check_lib_save_LIBS
14815 fi
14816 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14817 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14818 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_LIBDES425 1
14821 _ACEOF
14822
14823 LIBS="-ldes425 $LIBS"
14824
14825 else
14826
14827 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14828 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14829 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832 ac_check_lib_save_LIBS=$LIBS
14833 LIBS="-ldes $LIBS"
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 #ifdef __cplusplus
14844 extern "C"
14845 #endif
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848 char des_cbc_encrypt ();
14849 int
14850 main ()
14851 {
14852 des_cbc_encrypt ();
14853 ;
14854 return 0;
14855 }
14856 _ACEOF
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try='test -s conftest$ac_exeext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_cv_lib_des_des_cbc_encrypt=yes
14870 else
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14873
14874 ac_cv_lib_des_des_cbc_encrypt=no
14875 fi
14876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14877 LIBS=$ac_check_lib_save_LIBS
14878 fi
14879 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14880 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14881 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_LIBDES 1
14884 _ACEOF
14885
14886 LIBS="-ldes $LIBS"
14887
14888 fi
14889
14890 fi
14891
14892
14893 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14894 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14895 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 ac_check_lib_save_LIBS=$LIBS
14899 LIBS="-lkrb4 $LIBS"
14900 cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907
14908 /* Override any gcc2 internal prototype to avoid an error. */
14909 #ifdef __cplusplus
14910 extern "C"
14911 #endif
14912 /* We use char because int might match the return type of a gcc2
14913 builtin and then its argument prototype would still apply. */
14914 char krb_get_cred ();
14915 int
14916 main ()
14917 {
14918 krb_get_cred ();
14919 ;
14920 return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925 (eval $ac_link) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -s conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_lib_krb4_krb_get_cred=yes
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 ac_cv_lib_krb4_krb_get_cred=no
14941 fi
14942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14943 LIBS=$ac_check_lib_save_LIBS
14944 fi
14945 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14946 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14947 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_LIBKRB4 1
14950 _ACEOF
14951
14952 LIBS="-lkrb4 $LIBS"
14953
14954 else
14955
14956 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14957 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14958 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961 ac_check_lib_save_LIBS=$LIBS
14962 LIBS="-lkrb $LIBS"
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970
14971 /* Override any gcc2 internal prototype to avoid an error. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 /* We use char because int might match the return type of a gcc2
14976 builtin and then its argument prototype would still apply. */
14977 char krb_get_cred ();
14978 int
14979 main ()
14980 {
14981 krb_get_cred ();
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -s conftest$ac_exeext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_lib_krb_krb_get_cred=yes
14999 else
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_lib_krb_krb_get_cred=no
15004 fi
15005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15006 LIBS=$ac_check_lib_save_LIBS
15007 fi
15008 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15009 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15010 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_LIBKRB 1
15013 _ACEOF
15014
15015 LIBS="-lkrb $LIBS"
15016
15017 fi
15018
15019 fi
15020
15021 fi
15022
15023 if test "${with_kerberos5+set}" = set; then
15024
15025 for ac_header in krb5.h
15026 do
15027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15029 echo "$as_me:$LINENO: checking for $ac_header" >&5
15030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 fi
15034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15036 else
15037 # Is the header compilable?
15038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15040 cat >conftest.$ac_ext <<_ACEOF
15041 #line $LINENO "configure"
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <$ac_header>
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_header_compiler=no
15068 fi
15069 rm -f conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6
15072
15073 # Is the header present?
15074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15077 #line $LINENO "configure"
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <$ac_header>
15084 _ACEOF
15085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } >/dev/null; then
15093 if test -s conftest.err; then
15094 ac_cpp_err=$ac_c_preproc_warn_flag
15095 else
15096 ac_cpp_err=
15097 fi
15098 else
15099 ac_cpp_err=yes
15100 fi
15101 if test -z "$ac_cpp_err"; then
15102 ac_header_preproc=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_header_preproc=no
15108 fi
15109 rm -f conftest.err conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6
15112
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc in
15115 yes:no )
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15120 (
15121 cat <<\_ASBOX
15122 ## ------------------------------------ ##
15123 ## Report this to bug-autoconf@gnu.org. ##
15124 ## ------------------------------------ ##
15125 _ASBOX
15126 ) |
15127 sed "s/^/$as_me: WARNING: /" >&2
15128 ;;
15129 no:yes )
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15136 (
15137 cat <<\_ASBOX
15138 ## ------------------------------------ ##
15139 ## Report this to bug-autoconf@gnu.org. ##
15140 ## ------------------------------------ ##
15141 _ASBOX
15142 ) |
15143 sed "s/^/$as_me: WARNING: /" >&2
15144 ;;
15145 esac
15146 echo "$as_me:$LINENO: checking for $ac_header" >&5
15147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151 eval "$as_ac_Header=$ac_header_preproc"
15152 fi
15153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15155
15156 fi
15157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15158 cat >>confdefs.h <<_ACEOF
15159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160 _ACEOF
15161
15162 fi
15163
15164 done
15165
15166 else
15167
15168 for ac_header in des.h
15169 do
15170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15172 echo "$as_me:$LINENO: checking for $ac_header" >&5
15173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 fi
15177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15179 else
15180 # Is the header compilable?
15181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15183 cat >conftest.$ac_ext <<_ACEOF
15184 #line $LINENO "configure"
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 $ac_includes_default
15191 #include <$ac_header>
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15195 (eval $ac_compile) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -s conftest.$ac_objext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_header_compiler=yes
15206 else
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210 ac_header_compiler=no
15211 fi
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15214 echo "${ECHO_T}$ac_header_compiler" >&6
15215
15216 # Is the header present?
15217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <$ac_header>
15227 _ACEOF
15228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15230 ac_status=$?
15231 grep -v '^ *+' conftest.er1 >conftest.err
15232 rm -f conftest.er1
15233 cat conftest.err >&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } >/dev/null; then
15236 if test -s conftest.err; then
15237 ac_cpp_err=$ac_c_preproc_warn_flag
15238 else
15239 ac_cpp_err=
15240 fi
15241 else
15242 ac_cpp_err=yes
15243 fi
15244 if test -z "$ac_cpp_err"; then
15245 ac_header_preproc=yes
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 ac_header_preproc=no
15251 fi
15252 rm -f conftest.err conftest.$ac_ext
15253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 echo "${ECHO_T}$ac_header_preproc" >&6
15255
15256 # So? What about this header?
15257 case $ac_header_compiler:$ac_header_preproc in
15258 yes:no )
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15263 (
15264 cat <<\_ASBOX
15265 ## ------------------------------------ ##
15266 ## Report this to bug-autoconf@gnu.org. ##
15267 ## ------------------------------------ ##
15268 _ASBOX
15269 ) |
15270 sed "s/^/$as_me: WARNING: /" >&2
15271 ;;
15272 no:yes )
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15279 (
15280 cat <<\_ASBOX
15281 ## ------------------------------------ ##
15282 ## Report this to bug-autoconf@gnu.org. ##
15283 ## ------------------------------------ ##
15284 _ASBOX
15285 ) |
15286 sed "s/^/$as_me: WARNING: /" >&2
15287 ;;
15288 esac
15289 echo "$as_me:$LINENO: checking for $ac_header" >&5
15290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294 eval "$as_ac_Header=$ac_header_preproc"
15295 fi
15296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15298
15299 fi
15300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15301 cat >>confdefs.h <<_ACEOF
15302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15303 _ACEOF
15304
15305 else
15306
15307 for ac_header in kerberosIV/des.h
15308 do
15309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15311 echo "$as_me:$LINENO: checking for $ac_header" >&5
15312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 fi
15316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15318 else
15319 # Is the header compilable?
15320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15322 cat >conftest.$ac_ext <<_ACEOF
15323 #line $LINENO "configure"
15324 /* confdefs.h. */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15330 #include <$ac_header>
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15334 (eval $ac_compile) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_header_compiler=yes
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_header_compiler=no
15350 fi
15351 rm -f conftest.$ac_objext conftest.$ac_ext
15352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15353 echo "${ECHO_T}$ac_header_compiler" >&6
15354
15355 # Is the header present?
15356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15358 cat >conftest.$ac_ext <<_ACEOF
15359 #line $LINENO "configure"
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 #include <$ac_header>
15366 _ACEOF
15367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } >/dev/null; then
15375 if test -s conftest.err; then
15376 ac_cpp_err=$ac_c_preproc_warn_flag
15377 else
15378 ac_cpp_err=
15379 fi
15380 else
15381 ac_cpp_err=yes
15382 fi
15383 if test -z "$ac_cpp_err"; then
15384 ac_header_preproc=yes
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 ac_header_preproc=no
15390 fi
15391 rm -f conftest.err conftest.$ac_ext
15392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15393 echo "${ECHO_T}$ac_header_preproc" >&6
15394
15395 # So? What about this header?
15396 case $ac_header_compiler:$ac_header_preproc in
15397 yes:no )
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15402 (
15403 cat <<\_ASBOX
15404 ## ------------------------------------ ##
15405 ## Report this to bug-autoconf@gnu.org. ##
15406 ## ------------------------------------ ##
15407 _ASBOX
15408 ) |
15409 sed "s/^/$as_me: WARNING: /" >&2
15410 ;;
15411 no:yes )
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418 (
15419 cat <<\_ASBOX
15420 ## ------------------------------------ ##
15421 ## Report this to bug-autoconf@gnu.org. ##
15422 ## ------------------------------------ ##
15423 _ASBOX
15424 ) |
15425 sed "s/^/$as_me: WARNING: /" >&2
15426 ;;
15427 esac
15428 echo "$as_me:$LINENO: checking for $ac_header" >&5
15429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433 eval "$as_ac_Header=$ac_header_preproc"
15434 fi
15435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15437
15438 fi
15439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15440 cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 else
15445
15446 for ac_header in kerberos/des.h
15447 do
15448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15450 echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 fi
15455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15457 else
15458 # Is the header compilable?
15459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15461 cat >conftest.$ac_ext <<_ACEOF
15462 #line $LINENO "configure"
15463 /* confdefs.h. */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <$ac_header>
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -s conftest.$ac_objext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_header_compiler=yes
15484 else
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488 ac_header_compiler=no
15489 fi
15490 rm -f conftest.$ac_objext conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15492 echo "${ECHO_T}$ac_header_compiler" >&6
15493
15494 # Is the header present?
15495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 #include <$ac_header>
15505 _ACEOF
15506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null; then
15514 if test -s conftest.err; then
15515 ac_cpp_err=$ac_c_preproc_warn_flag
15516 else
15517 ac_cpp_err=
15518 fi
15519 else
15520 ac_cpp_err=yes
15521 fi
15522 if test -z "$ac_cpp_err"; then
15523 ac_header_preproc=yes
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 ac_header_preproc=no
15529 fi
15530 rm -f conftest.err conftest.$ac_ext
15531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15532 echo "${ECHO_T}$ac_header_preproc" >&6
15533
15534 # So? What about this header?
15535 case $ac_header_compiler:$ac_header_preproc in
15536 yes:no )
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15541 (
15542 cat <<\_ASBOX
15543 ## ------------------------------------ ##
15544 ## Report this to bug-autoconf@gnu.org. ##
15545 ## ------------------------------------ ##
15546 _ASBOX
15547 ) |
15548 sed "s/^/$as_me: WARNING: /" >&2
15549 ;;
15550 no:yes )
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15557 (
15558 cat <<\_ASBOX
15559 ## ------------------------------------ ##
15560 ## Report this to bug-autoconf@gnu.org. ##
15561 ## ------------------------------------ ##
15562 _ASBOX
15563 ) |
15564 sed "s/^/$as_me: WARNING: /" >&2
15565 ;;
15566 esac
15567 echo "$as_me:$LINENO: checking for $ac_header" >&5
15568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572 eval "$as_ac_Header=$ac_header_preproc"
15573 fi
15574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15576
15577 fi
15578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579 cat >>confdefs.h <<_ACEOF
15580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581 _ACEOF
15582
15583 fi
15584
15585 done
15586
15587 fi
15588
15589 done
15590
15591 fi
15592
15593 done
15594
15595
15596 for ac_header in krb.h
15597 do
15598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 fi
15605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15607 else
15608 # Is the header compilable?
15609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15611 cat >conftest.$ac_ext <<_ACEOF
15612 #line $LINENO "configure"
15613 /* confdefs.h. */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 $ac_includes_default
15619 #include <$ac_header>
15620 _ACEOF
15621 rm -f conftest.$ac_objext
15622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15623 (eval $ac_compile) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -s conftest.$ac_objext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_header_compiler=yes
15634 else
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 ac_header_compiler=no
15639 fi
15640 rm -f conftest.$ac_objext conftest.$ac_ext
15641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15642 echo "${ECHO_T}$ac_header_compiler" >&6
15643
15644 # Is the header present?
15645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line $LINENO "configure"
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <$ac_header>
15655 _ACEOF
15656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } >/dev/null; then
15664 if test -s conftest.err; then
15665 ac_cpp_err=$ac_c_preproc_warn_flag
15666 else
15667 ac_cpp_err=
15668 fi
15669 else
15670 ac_cpp_err=yes
15671 fi
15672 if test -z "$ac_cpp_err"; then
15673 ac_header_preproc=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678 ac_header_preproc=no
15679 fi
15680 rm -f conftest.err conftest.$ac_ext
15681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15682 echo "${ECHO_T}$ac_header_preproc" >&6
15683
15684 # So? What about this header?
15685 case $ac_header_compiler:$ac_header_preproc in
15686 yes:no )
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 (
15692 cat <<\_ASBOX
15693 ## ------------------------------------ ##
15694 ## Report this to bug-autoconf@gnu.org. ##
15695 ## ------------------------------------ ##
15696 _ASBOX
15697 ) |
15698 sed "s/^/$as_me: WARNING: /" >&2
15699 ;;
15700 no:yes )
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15707 (
15708 cat <<\_ASBOX
15709 ## ------------------------------------ ##
15710 ## Report this to bug-autoconf@gnu.org. ##
15711 ## ------------------------------------ ##
15712 _ASBOX
15713 ) |
15714 sed "s/^/$as_me: WARNING: /" >&2
15715 ;;
15716 esac
15717 echo "$as_me:$LINENO: checking for $ac_header" >&5
15718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722 eval "$as_ac_Header=$ac_header_preproc"
15723 fi
15724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15726
15727 fi
15728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15729 cat >>confdefs.h <<_ACEOF
15730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15731 _ACEOF
15732
15733 else
15734
15735 for ac_header in kerberosIV/krb.h
15736 do
15737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15739 echo "$as_me:$LINENO: checking for $ac_header" >&5
15740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 fi
15744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15746 else
15747 # Is the header compilable?
15748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15750 cat >conftest.$ac_ext <<_ACEOF
15751 #line $LINENO "configure"
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15758 #include <$ac_header>
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15762 (eval $ac_compile) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_header_compiler=yes
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15776
15777 ac_header_compiler=no
15778 fi
15779 rm -f conftest.$ac_objext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15781 echo "${ECHO_T}$ac_header_compiler" >&6
15782
15783 # Is the header present?
15784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 #include <$ac_header>
15794 _ACEOF
15795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } >/dev/null; then
15803 if test -s conftest.err; then
15804 ac_cpp_err=$ac_c_preproc_warn_flag
15805 else
15806 ac_cpp_err=
15807 fi
15808 else
15809 ac_cpp_err=yes
15810 fi
15811 if test -z "$ac_cpp_err"; then
15812 ac_header_preproc=yes
15813 else
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_header_preproc=no
15818 fi
15819 rm -f conftest.err conftest.$ac_ext
15820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821 echo "${ECHO_T}$ac_header_preproc" >&6
15822
15823 # So? What about this header?
15824 case $ac_header_compiler:$ac_header_preproc in
15825 yes:no )
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15830 (
15831 cat <<\_ASBOX
15832 ## ------------------------------------ ##
15833 ## Report this to bug-autoconf@gnu.org. ##
15834 ## ------------------------------------ ##
15835 _ASBOX
15836 ) |
15837 sed "s/^/$as_me: WARNING: /" >&2
15838 ;;
15839 no:yes )
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15846 (
15847 cat <<\_ASBOX
15848 ## ------------------------------------ ##
15849 ## Report this to bug-autoconf@gnu.org. ##
15850 ## ------------------------------------ ##
15851 _ASBOX
15852 ) |
15853 sed "s/^/$as_me: WARNING: /" >&2
15854 ;;
15855 esac
15856 echo "$as_me:$LINENO: checking for $ac_header" >&5
15857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861 eval "$as_ac_Header=$ac_header_preproc"
15862 fi
15863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15865
15866 fi
15867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15868 cat >>confdefs.h <<_ACEOF
15869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15870 _ACEOF
15871
15872 else
15873
15874 for ac_header in kerberos/krb.h
15875 do
15876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878 echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 fi
15883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15885 else
15886 # Is the header compilable?
15887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15890 #line $LINENO "configure"
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 $ac_includes_default
15897 #include <$ac_header>
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_header_compiler=yes
15912 else
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_header_compiler=no
15917 fi
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15920 echo "${ECHO_T}$ac_header_compiler" >&6
15921
15922 # Is the header present?
15923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15927 /* confdefs.h. */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 #include <$ac_header>
15933 _ACEOF
15934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } >/dev/null; then
15942 if test -s conftest.err; then
15943 ac_cpp_err=$ac_c_preproc_warn_flag
15944 else
15945 ac_cpp_err=
15946 fi
15947 else
15948 ac_cpp_err=yes
15949 fi
15950 if test -z "$ac_cpp_err"; then
15951 ac_header_preproc=yes
15952 else
15953 echo "$as_me: failed program was:" >&5
15954 sed 's/^/| /' conftest.$ac_ext >&5
15955
15956 ac_header_preproc=no
15957 fi
15958 rm -f conftest.err conftest.$ac_ext
15959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15960 echo "${ECHO_T}$ac_header_preproc" >&6
15961
15962 # So? What about this header?
15963 case $ac_header_compiler:$ac_header_preproc in
15964 yes:no )
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15969 (
15970 cat <<\_ASBOX
15971 ## ------------------------------------ ##
15972 ## Report this to bug-autoconf@gnu.org. ##
15973 ## ------------------------------------ ##
15974 _ASBOX
15975 ) |
15976 sed "s/^/$as_me: WARNING: /" >&2
15977 ;;
15978 no:yes )
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985 (
15986 cat <<\_ASBOX
15987 ## ------------------------------------ ##
15988 ## Report this to bug-autoconf@gnu.org. ##
15989 ## ------------------------------------ ##
15990 _ASBOX
15991 ) |
15992 sed "s/^/$as_me: WARNING: /" >&2
15993 ;;
15994 esac
15995 echo "$as_me:$LINENO: checking for $ac_header" >&5
15996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000 eval "$as_ac_Header=$ac_header_preproc"
16001 fi
16002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16004
16005 fi
16006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16007 cat >>confdefs.h <<_ACEOF
16008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16009 _ACEOF
16010
16011 fi
16012
16013 done
16014
16015 fi
16016
16017 done
16018
16019 fi
16020
16021 done
16022
16023 fi
16024
16025 for ac_header in com_err.h
16026 do
16027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 fi
16034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16036 else
16037 # Is the header compilable?
16038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16040 cat >conftest.$ac_ext <<_ACEOF
16041 #line $LINENO "configure"
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $ac_includes_default
16048 #include <$ac_header>
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_compiler=no
16068 fi
16069 rm -f conftest.$ac_objext conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16072
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16084 _ACEOF
16085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev/null; then
16093 if test -s conftest.err; then
16094 ac_cpp_err=$ac_c_preproc_warn_flag
16095 else
16096 ac_cpp_err=
16097 fi
16098 else
16099 ac_cpp_err=yes
16100 fi
16101 if test -z "$ac_cpp_err"; then
16102 ac_header_preproc=yes
16103 else
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107 ac_header_preproc=no
16108 fi
16109 rm -f conftest.err conftest.$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16112
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc in
16115 yes:no )
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 (
16121 cat <<\_ASBOX
16122 ## ------------------------------------ ##
16123 ## Report this to bug-autoconf@gnu.org. ##
16124 ## ------------------------------------ ##
16125 _ASBOX
16126 ) |
16127 sed "s/^/$as_me: WARNING: /" >&2
16128 ;;
16129 no:yes )
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 (
16137 cat <<\_ASBOX
16138 ## ------------------------------------ ##
16139 ## Report this to bug-autoconf@gnu.org. ##
16140 ## ------------------------------------ ##
16141 _ASBOX
16142 ) |
16143 sed "s/^/$as_me: WARNING: /" >&2
16144 ;;
16145 esac
16146 echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 eval "$as_ac_Header=$ac_header_preproc"
16152 fi
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16155
16156 fi
16157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16158 cat >>confdefs.h <<_ACEOF
16159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16160 _ACEOF
16161
16162 fi
16163
16164 done
16165
16166 fi
16167
16168 # Solaris requires -lintl if you want strerror (which calls dgettext)
16169 # to return localized messages.
16170
16171 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16172 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16173 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176 ac_check_lib_save_LIBS=$LIBS
16177 LIBS="-lintl $LIBS"
16178 cat >conftest.$ac_ext <<_ACEOF
16179 #line $LINENO "configure"
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185
16186 /* Override any gcc2 internal prototype to avoid an error. */
16187 #ifdef __cplusplus
16188 extern "C"
16189 #endif
16190 /* We use char because int might match the return type of a gcc2
16191 builtin and then its argument prototype would still apply. */
16192 char dgettext ();
16193 int
16194 main ()
16195 {
16196 dgettext ();
16197 ;
16198 return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext conftest$ac_exeext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16203 (eval $ac_link) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_lib_intl_dgettext=yes
16214 else
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_cv_lib_intl_dgettext=no
16219 fi
16220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16222 fi
16223 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16224 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16225 if test $ac_cv_lib_intl_dgettext = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_LIBINTL 1
16228 _ACEOF
16229
16230 LIBS="-lintl $LIBS"
16231
16232 fi
16233
16234
16235 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16236 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16237 if test "${emacs_cv_localtime_cache+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 if test x$ac_cv_func_tzset = xyes; then
16241 if test "$cross_compiling" = yes; then
16242 # If we have tzset, assume the worst when cross-compiling.
16243 emacs_cv_localtime_cache=yes
16244 else
16245 cat >conftest.$ac_ext <<_ACEOF
16246 #line $LINENO "configure"
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <time.h>
16253 extern char **environ;
16254 unset_TZ ()
16255 {
16256 char **from, **to;
16257 for (to = from = environ; (*to = *from); from++)
16258 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16259 to++;
16260 }
16261 char TZ_GMT0[] = "TZ=GMT0";
16262 char TZ_PST8[] = "TZ=PST8";
16263 main()
16264 {
16265 time_t now = time ((time_t *) 0);
16266 int hour_GMT0, hour_unset;
16267 if (putenv (TZ_GMT0) != 0)
16268 exit (1);
16269 hour_GMT0 = localtime (&now)->tm_hour;
16270 unset_TZ ();
16271 hour_unset = localtime (&now)->tm_hour;
16272 if (putenv (TZ_PST8) != 0)
16273 exit (1);
16274 if (localtime (&now)->tm_hour == hour_GMT0)
16275 exit (1);
16276 unset_TZ ();
16277 if (localtime (&now)->tm_hour != hour_unset)
16278 exit (1);
16279 exit (0);
16280 }
16281 _ACEOF
16282 rm -f conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284 (eval $ac_link) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 emacs_cv_localtime_cache=no
16294 else
16295 echo "$as_me: program exited with status $ac_status" >&5
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299 ( exit $ac_status )
16300 emacs_cv_localtime_cache=yes
16301 fi
16302 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16303 fi
16304 else
16305 # If we lack tzset, report that localtime does not cache TZ,
16306 # since we can't invalidate the cache if we don't have tzset.
16307 emacs_cv_localtime_cache=no
16308 fi
16309 fi
16310 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16311 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16312 if test $emacs_cv_localtime_cache = yes; then
16313
16314 cat >>confdefs.h <<\_ACEOF
16315 #define LOCALTIME_CACHE 1
16316 _ACEOF
16317
16318 fi
16319
16320 if test "x$HAVE_TIMEVAL" = xyes; then
16321
16322 for ac_func in gettimeofday
16323 do
16324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16325 echo "$as_me:$LINENO: checking for $ac_func" >&5
16326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16327 if eval "test \"\${$as_ac_var+set}\" = set"; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330 cat >conftest.$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16332 /* confdefs.h. */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 /* System header to define __stub macros and hopefully few prototypes,
16338 which can conflict with char $ac_func (); below.
16339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16340 <limits.h> exists even on freestanding compilers. */
16341 #ifdef __STDC__
16342 # include <limits.h>
16343 #else
16344 # include <assert.h>
16345 #endif
16346 /* Override any gcc2 internal prototype to avoid an error. */
16347 #ifdef __cplusplus
16348 extern "C"
16349 {
16350 #endif
16351 /* We use char because int might match the return type of a gcc2
16352 builtin and then its argument prototype would still apply. */
16353 char $ac_func ();
16354 /* The GNU C library defines this for functions which it implements
16355 to always fail with ENOSYS. Some functions are actually named
16356 something starting with __ and the normal name is an alias. */
16357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16358 choke me
16359 #else
16360 char (*f) () = $ac_func;
16361 #endif
16362 #ifdef __cplusplus
16363 }
16364 #endif
16365
16366 int
16367 main ()
16368 {
16369 return f != $ac_func;
16370 ;
16371 return 0;
16372 }
16373 _ACEOF
16374 rm -f conftest.$ac_objext conftest$ac_exeext
16375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16376 (eval $ac_link) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -s conftest$ac_exeext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 eval "$as_ac_var=yes"
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 eval "$as_ac_var=no"
16392 fi
16393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16394 fi
16395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16397 if test `eval echo '${'$as_ac_var'}'` = yes; then
16398 cat >>confdefs.h <<_ACEOF
16399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16400 _ACEOF
16401
16402 fi
16403 done
16404
16405 if test $ac_cv_func_gettimeofday = yes; then
16406 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16407 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16408 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 cat >conftest.$ac_ext <<_ACEOF
16412 #line $LINENO "configure"
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418
16419 #ifdef TIME_WITH_SYS_TIME
16420 #include <sys/time.h>
16421 #include <time.h>
16422 #else
16423 #ifdef HAVE_SYS_TIME_H
16424 #include <sys/time.h>
16425 #else
16426 #include <time.h>
16427 #endif
16428 #endif
16429 int
16430 main ()
16431 {
16432 struct timeval time;
16433 gettimeofday (&time, 0);
16434 ;
16435 return 0;
16436 }
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440 (eval $ac_compile) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -s conftest.$ac_objext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 emacs_cv_gettimeofday_two_arguments=yes
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 emacs_cv_gettimeofday_two_arguments=no
16456 fi
16457 rm -f conftest.$ac_objext conftest.$ac_ext
16458 fi
16459 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16460 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16461 if test $emacs_cv_gettimeofday_two_arguments = no; then
16462
16463 cat >>confdefs.h <<\_ACEOF
16464 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16465 _ACEOF
16466
16467 fi
16468 fi
16469 fi
16470
16471 if test "$ac_cv_func_gettimeofday" = yes; then
16472 echo "$as_me:$LINENO: checking for struct timezone" >&5
16473 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16474 if test "${emacs_cv_struct_timezone+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477 cat >conftest.$ac_ext <<_ACEOF
16478 #line $LINENO "configure"
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 #include <sys/time.h>
16485 int
16486 main ()
16487 {
16488 struct timezone tz;
16489 ;
16490 return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16495 (eval $ac_compile) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -s conftest.$ac_objext'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 if test "$cross_compiling" = yes; then
16506 emacs_cv_struct_timezone=yes
16507 else
16508 cat >conftest.$ac_ext <<_ACEOF
16509 #line $LINENO "configure"
16510 /* confdefs.h. */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515
16516 #ifdef TIME_WITH_SYS_TIME
16517 #include <sys/time.h>
16518 #include <time.h>
16519 #else
16520 #ifdef HAVE_SYS_TIME_H
16521 #include <sys/time.h>
16522 #else
16523 #include <time.h>
16524 #endif
16525 #endif
16526 main () {
16527 struct timeval time;
16528 struct timezone dummy;
16529 exit (gettimeofday (&time, &dummy));
16530 }
16531 _ACEOF
16532 rm -f conftest$ac_exeext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16534 (eval $ac_link) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 emacs_cv_struct_timezone=yes
16544 else
16545 echo "$as_me: program exited with status $ac_status" >&5
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ( exit $ac_status )
16550 emacs_cv_struct_timezone=no
16551 fi
16552 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 fi
16554 else
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 emacs_cv_struct_timezone=no
16559 fi
16560 rm -f conftest.$ac_objext conftest.$ac_ext
16561 fi
16562 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16563 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16564 fi
16565
16566 ok_so_far=yes
16567 echo "$as_me:$LINENO: checking for socket" >&5
16568 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16569 if test "${ac_cv_func_socket+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572 cat >conftest.$ac_ext <<_ACEOF
16573 #line $LINENO "configure"
16574 /* confdefs.h. */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 /* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char socket (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16583 #ifdef __STDC__
16584 # include <limits.h>
16585 #else
16586 # include <assert.h>
16587 #endif
16588 /* Override any gcc2 internal prototype to avoid an error. */
16589 #ifdef __cplusplus
16590 extern "C"
16591 {
16592 #endif
16593 /* We use char because int might match the return type of a gcc2
16594 builtin and then its argument prototype would still apply. */
16595 char socket ();
16596 /* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599 #if defined (__stub_socket) || defined (__stub___socket)
16600 choke me
16601 #else
16602 char (*f) () = socket;
16603 #endif
16604 #ifdef __cplusplus
16605 }
16606 #endif
16607
16608 int
16609 main ()
16610 {
16611 return f != socket;
16612 ;
16613 return 0;
16614 }
16615 _ACEOF
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618 (eval $ac_link) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -s conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_func_socket=yes
16629 else
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 ac_cv_func_socket=no
16634 fi
16635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16636 fi
16637 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16638 echo "${ECHO_T}$ac_cv_func_socket" >&6
16639 if test $ac_cv_func_socket = yes; then
16640 :
16641 else
16642 ok_so_far=no
16643 fi
16644
16645 if test $ok_so_far = yes; then
16646 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16647 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16648 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16649 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 fi
16652 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16653 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16654 else
16655 # Is the header compilable?
16656 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16657 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16658 cat >conftest.$ac_ext <<_ACEOF
16659 #line $LINENO "configure"
16660 /* confdefs.h. */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 $ac_includes_default
16666 #include <netinet/in.h>
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16670 (eval $ac_compile) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_header_compiler=yes
16681 else
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ac_header_compiler=no
16686 fi
16687 rm -f conftest.$ac_objext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16689 echo "${ECHO_T}$ac_header_compiler" >&6
16690
16691 # Is the header present?
16692 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16693 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16694 cat >conftest.$ac_ext <<_ACEOF
16695 #line $LINENO "configure"
16696 /* confdefs.h. */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <netinet/in.h>
16702 _ACEOF
16703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } >/dev/null; then
16711 if test -s conftest.err; then
16712 ac_cpp_err=$ac_c_preproc_warn_flag
16713 else
16714 ac_cpp_err=
16715 fi
16716 else
16717 ac_cpp_err=yes
16718 fi
16719 if test -z "$ac_cpp_err"; then
16720 ac_header_preproc=yes
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 ac_header_preproc=no
16726 fi
16727 rm -f conftest.err conftest.$ac_ext
16728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16729 echo "${ECHO_T}$ac_header_preproc" >&6
16730
16731 # So? What about this header?
16732 case $ac_header_compiler:$ac_header_preproc in
16733 yes:no )
16734 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16735 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16737 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16738 (
16739 cat <<\_ASBOX
16740 ## ------------------------------------ ##
16741 ## Report this to bug-autoconf@gnu.org. ##
16742 ## ------------------------------------ ##
16743 _ASBOX
16744 ) |
16745 sed "s/^/$as_me: WARNING: /" >&2
16746 ;;
16747 no:yes )
16748 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16749 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16751 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16753 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16754 (
16755 cat <<\_ASBOX
16756 ## ------------------------------------ ##
16757 ## Report this to bug-autoconf@gnu.org. ##
16758 ## ------------------------------------ ##
16759 _ASBOX
16760 ) |
16761 sed "s/^/$as_me: WARNING: /" >&2
16762 ;;
16763 esac
16764 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16765 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16766 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769 ac_cv_header_netinet_in_h=$ac_header_preproc
16770 fi
16771 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16772 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16773
16774 fi
16775 if test $ac_cv_header_netinet_in_h = yes; then
16776 :
16777 else
16778 ok_so_far=no
16779 fi
16780
16781
16782 fi
16783 if test $ok_so_far = yes; then
16784 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16785 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16786 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16787 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 fi
16790 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16791 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16792 else
16793 # Is the header compilable?
16794 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16795 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16796 cat >conftest.$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16798 /* confdefs.h. */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16803 $ac_includes_default
16804 #include <arpa/inet.h>
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_header_compiler=yes
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 ac_header_compiler=no
16824 fi
16825 rm -f conftest.$ac_objext conftest.$ac_ext
16826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16827 echo "${ECHO_T}$ac_header_compiler" >&6
16828
16829 # Is the header present?
16830 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16831 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16832 cat >conftest.$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 #include <arpa/inet.h>
16840 _ACEOF
16841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } >/dev/null; then
16849 if test -s conftest.err; then
16850 ac_cpp_err=$ac_c_preproc_warn_flag
16851 else
16852 ac_cpp_err=
16853 fi
16854 else
16855 ac_cpp_err=yes
16856 fi
16857 if test -z "$ac_cpp_err"; then
16858 ac_header_preproc=yes
16859 else
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_header_preproc=no
16864 fi
16865 rm -f conftest.err conftest.$ac_ext
16866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16867 echo "${ECHO_T}$ac_header_preproc" >&6
16868
16869 # So? What about this header?
16870 case $ac_header_compiler:$ac_header_preproc in
16871 yes:no )
16872 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16873 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16875 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16876 (
16877 cat <<\_ASBOX
16878 ## ------------------------------------ ##
16879 ## Report this to bug-autoconf@gnu.org. ##
16880 ## ------------------------------------ ##
16881 _ASBOX
16882 ) |
16883 sed "s/^/$as_me: WARNING: /" >&2
16884 ;;
16885 no:yes )
16886 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16887 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16888 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16889 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16890 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16891 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16892 (
16893 cat <<\_ASBOX
16894 ## ------------------------------------ ##
16895 ## Report this to bug-autoconf@gnu.org. ##
16896 ## ------------------------------------ ##
16897 _ASBOX
16898 ) |
16899 sed "s/^/$as_me: WARNING: /" >&2
16900 ;;
16901 esac
16902 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16903 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16904 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907 ac_cv_header_arpa_inet_h=$ac_header_preproc
16908 fi
16909 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16910 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16911
16912 fi
16913 if test $ac_cv_header_arpa_inet_h = yes; then
16914 :
16915 else
16916 ok_so_far=no
16917 fi
16918
16919
16920 fi
16921 if test $ok_so_far = yes; then
16922
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE_INET_SOCKETS 1
16925 _ACEOF
16926
16927 fi
16928
16929 if test -f /usr/lpp/X11/bin/smt.exp; then
16930
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_AIX_SMT_EXP 1
16933 _ACEOF
16934
16935 fi
16936
16937 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16938 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16939 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16940 echo "$as_me:$LINENO: result: yes" >&5
16941 echo "${ECHO_T}yes" >&6
16942
16943 cat >>confdefs.h <<\_ACEOF
16944 #define HAVE_DEV_PTMX 1
16945 _ACEOF
16946
16947 else
16948 echo "$as_me:$LINENO: result: no" >&5
16949 echo "${ECHO_T}no" >&6
16950 fi
16951
16952 echo "$as_me:$LINENO: checking for pid_t" >&5
16953 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16954 if test "${ac_cv_type_pid_t+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957 cat >conftest.$ac_ext <<_ACEOF
16958 #line $LINENO "configure"
16959 /* confdefs.h. */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 $ac_includes_default
16965 int
16966 main ()
16967 {
16968 if ((pid_t *) 0)
16969 return 0;
16970 if (sizeof (pid_t))
16971 return 0;
16972 ;
16973 return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16978 (eval $ac_compile) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -s conftest.$ac_objext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 ac_cv_type_pid_t=yes
16989 else
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993 ac_cv_type_pid_t=no
16994 fi
16995 rm -f conftest.$ac_objext conftest.$ac_ext
16996 fi
16997 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16998 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16999 if test $ac_cv_type_pid_t = yes; then
17000 :
17001 else
17002
17003 cat >>confdefs.h <<_ACEOF
17004 #define pid_t int
17005 _ACEOF
17006
17007 fi
17008
17009
17010
17011 for ac_header in unistd.h vfork.h
17012 do
17013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17015 echo "$as_me:$LINENO: checking for $ac_header" >&5
17016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 fi
17020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17022 else
17023 # Is the header compilable?
17024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17026 cat >conftest.$ac_ext <<_ACEOF
17027 #line $LINENO "configure"
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 $ac_includes_default
17034 #include <$ac_header>
17035 _ACEOF
17036 rm -f conftest.$ac_objext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17038 (eval $ac_compile) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -s conftest.$ac_objext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_header_compiler=yes
17049 else
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 ac_header_compiler=no
17054 fi
17055 rm -f conftest.$ac_objext conftest.$ac_ext
17056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17057 echo "${ECHO_T}$ac_header_compiler" >&6
17058
17059 # Is the header present?
17060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17062 cat >conftest.$ac_ext <<_ACEOF
17063 #line $LINENO "configure"
17064 /* confdefs.h. */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 #include <$ac_header>
17070 _ACEOF
17071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } >/dev/null; then
17079 if test -s conftest.err; then
17080 ac_cpp_err=$ac_c_preproc_warn_flag
17081 else
17082 ac_cpp_err=
17083 fi
17084 else
17085 ac_cpp_err=yes
17086 fi
17087 if test -z "$ac_cpp_err"; then
17088 ac_header_preproc=yes
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_header_preproc=no
17094 fi
17095 rm -f conftest.err conftest.$ac_ext
17096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17097 echo "${ECHO_T}$ac_header_preproc" >&6
17098
17099 # So? What about this header?
17100 case $ac_header_compiler:$ac_header_preproc in
17101 yes:no )
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17106 (
17107 cat <<\_ASBOX
17108 ## ------------------------------------ ##
17109 ## Report this to bug-autoconf@gnu.org. ##
17110 ## ------------------------------------ ##
17111 _ASBOX
17112 ) |
17113 sed "s/^/$as_me: WARNING: /" >&2
17114 ;;
17115 no:yes )
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17122 (
17123 cat <<\_ASBOX
17124 ## ------------------------------------ ##
17125 ## Report this to bug-autoconf@gnu.org. ##
17126 ## ------------------------------------ ##
17127 _ASBOX
17128 ) |
17129 sed "s/^/$as_me: WARNING: /" >&2
17130 ;;
17131 esac
17132 echo "$as_me:$LINENO: checking for $ac_header" >&5
17133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137 eval "$as_ac_Header=$ac_header_preproc"
17138 fi
17139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17141
17142 fi
17143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17146 _ACEOF
17147
17148 fi
17149
17150 done
17151
17152
17153
17154 for ac_func in fork vfork
17155 do
17156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17157 echo "$as_me:$LINENO: checking for $ac_func" >&5
17158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17159 if eval "test \"\${$as_ac_var+set}\" = set"; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162 cat >conftest.$ac_ext <<_ACEOF
17163 #line $LINENO "configure"
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 /* System header to define __stub macros and hopefully few prototypes,
17170 which can conflict with char $ac_func (); below.
17171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172 <limits.h> exists even on freestanding compilers. */
17173 #ifdef __STDC__
17174 # include <limits.h>
17175 #else
17176 # include <assert.h>
17177 #endif
17178 /* Override any gcc2 internal prototype to avoid an error. */
17179 #ifdef __cplusplus
17180 extern "C"
17181 {
17182 #endif
17183 /* We use char because int might match the return type of a gcc2
17184 builtin and then its argument prototype would still apply. */
17185 char $ac_func ();
17186 /* The GNU C library defines this for functions which it implements
17187 to always fail with ENOSYS. Some functions are actually named
17188 something starting with __ and the normal name is an alias. */
17189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17190 choke me
17191 #else
17192 char (*f) () = $ac_func;
17193 #endif
17194 #ifdef __cplusplus
17195 }
17196 #endif
17197
17198 int
17199 main ()
17200 {
17201 return f != $ac_func;
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208 (eval $ac_link) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -s conftest$ac_exeext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 eval "$as_ac_var=yes"
17219 else
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 eval "$as_ac_var=no"
17224 fi
17225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17226 fi
17227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17229 if test `eval echo '${'$as_ac_var'}'` = yes; then
17230 cat >>confdefs.h <<_ACEOF
17231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17232 _ACEOF
17233
17234 fi
17235 done
17236
17237 if test "x$ac_cv_func_fork" = xyes; then
17238 echo "$as_me:$LINENO: checking for working fork" >&5
17239 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17240 if test "${ac_cv_func_fork_works+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243 if test "$cross_compiling" = yes; then
17244 ac_cv_func_fork_works=cross
17245 else
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* By Ruediger Kuhlmann. */
17248 #include <sys/types.h>
17249 #if HAVE_UNISTD_H
17250 # include <unistd.h>
17251 #endif
17252 /* Some systems only have a dummy stub for fork() */
17253 int main ()
17254 {
17255 if (fork() < 0)
17256 exit (1);
17257 exit (0);
17258 }
17259 _ACEOF
17260 rm -f conftest$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262 (eval $ac_link) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_func_fork_works=yes
17272 else
17273 echo "$as_me: program exited with status $ac_status" >&5
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ( exit $ac_status )
17278 ac_cv_func_fork_works=no
17279 fi
17280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17281 fi
17282 fi
17283 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17284 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17285
17286 else
17287 ac_cv_func_fork_works=$ac_cv_func_fork
17288 fi
17289 if test "x$ac_cv_func_fork_works" = xcross; then
17290 case $host in
17291 *-*-amigaos* | *-*-msdosdjgpp*)
17292 # Override, as these systems have only a dummy fork() stub
17293 ac_cv_func_fork_works=no
17294 ;;
17295 *)
17296 ac_cv_func_fork_works=yes
17297 ;;
17298 esac
17299 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17300 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17301 fi
17302 ac_cv_func_vfork_works=$ac_cv_func_vfork
17303 if test "x$ac_cv_func_vfork" = xyes; then
17304 echo "$as_me:$LINENO: checking for working vfork" >&5
17305 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17306 if test "${ac_cv_func_vfork_works+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309 if test "$cross_compiling" = yes; then
17310 ac_cv_func_vfork_works=cross
17311 else
17312 cat >conftest.$ac_ext <<_ACEOF
17313 #line $LINENO "configure"
17314 /* confdefs.h. */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 /* Thanks to Paul Eggert for this test. */
17320 #include <stdio.h>
17321 #include <stdlib.h>
17322 #include <sys/types.h>
17323 #include <sys/stat.h>
17324 #include <sys/wait.h>
17325 #if HAVE_UNISTD_H
17326 # include <unistd.h>
17327 #endif
17328 #if HAVE_VFORK_H
17329 # include <vfork.h>
17330 #endif
17331 /* On some sparc systems, changes by the child to local and incoming
17332 argument registers are propagated back to the parent. The compiler
17333 is told about this with #include <vfork.h>, but some compilers
17334 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17335 static variable whose address is put into a register that is
17336 clobbered by the vfork. */
17337 static void
17338 #ifdef __cplusplus
17339 sparc_address_test (int arg)
17340 # else
17341 sparc_address_test (arg) int arg;
17342 #endif
17343 {
17344 static pid_t child;
17345 if (!child) {
17346 child = vfork ();
17347 if (child < 0) {
17348 perror ("vfork");
17349 _exit(2);
17350 }
17351 if (!child) {
17352 arg = getpid();
17353 write(-1, "", 0);
17354 _exit (arg);
17355 }
17356 }
17357 }
17358
17359 int
17360 main ()
17361 {
17362 pid_t parent = getpid ();
17363 pid_t child;
17364
17365 sparc_address_test (0);
17366
17367 child = vfork ();
17368
17369 if (child == 0) {
17370 /* Here is another test for sparc vfork register problems. This
17371 test uses lots of local variables, at least as many local
17372 variables as main has allocated so far including compiler
17373 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17374 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17375 reuse the register of parent for one of the local variables,
17376 since it will think that parent can't possibly be used any more
17377 in this routine. Assigning to the local variable will thus
17378 munge parent in the parent process. */
17379 pid_t
17380 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17381 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17382 /* Convince the compiler that p..p7 are live; otherwise, it might
17383 use the same hardware register for all 8 local variables. */
17384 if (p != p1 || p != p2 || p != p3 || p != p4
17385 || p != p5 || p != p6 || p != p7)
17386 _exit(1);
17387
17388 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17389 from child file descriptors. If the child closes a descriptor
17390 before it execs or exits, this munges the parent's descriptor
17391 as well. Test for this by closing stdout in the child. */
17392 _exit(close(fileno(stdout)) != 0);
17393 } else {
17394 int status;
17395 struct stat st;
17396
17397 while (wait(&status) != child)
17398 ;
17399 exit(
17400 /* Was there some problem with vforking? */
17401 child < 0
17402
17403 /* Did the child fail? (This shouldn't happen.) */
17404 || status
17405
17406 /* Did the vfork/compiler bug occur? */
17407 || parent != getpid()
17408
17409 /* Did the file descriptor bug occur? */
17410 || fstat(fileno(stdout), &st) != 0
17411 );
17412 }
17413 }
17414 _ACEOF
17415 rm -f conftest$ac_exeext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417 (eval $ac_link) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_func_vfork_works=yes
17427 else
17428 echo "$as_me: program exited with status $ac_status" >&5
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ( exit $ac_status )
17433 ac_cv_func_vfork_works=no
17434 fi
17435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 fi
17438 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17439 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17440
17441 fi;
17442 if test "x$ac_cv_func_fork_works" = xcross; then
17443 ac_cv_func_vfork_works=ac_cv_func_vfork
17444 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17445 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17446 fi
17447
17448 if test "x$ac_cv_func_vfork_works" = xyes; then
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_WORKING_VFORK 1
17452 _ACEOF
17453
17454 else
17455
17456 cat >>confdefs.h <<\_ACEOF
17457 #define vfork fork
17458 _ACEOF
17459
17460 fi
17461 if test "x$ac_cv_func_fork_works" = xyes; then
17462
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_WORKING_FORK 1
17465 _ACEOF
17466
17467 fi
17468
17469
17470 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17471 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17472 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 cat >conftest.$ac_ext <<_ACEOF
17476 #line $LINENO "configure"
17477 /* confdefs.h. */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 #include <langinfo.h>
17483 int
17484 main ()
17485 {
17486 char* cs = nl_langinfo(CODESET);
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -s conftest$ac_exeext'
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 emacs_cv_langinfo_codeset=yes
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 emacs_cv_langinfo_codeset=no
17509 fi
17510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17511
17512 fi
17513 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17514 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17515 if test $emacs_cv_langinfo_codeset = yes; then
17516
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_LANGINFO_CODESET 1
17519 _ACEOF
17520
17521 fi
17522
17523 echo "$as_me:$LINENO: checking for size_t" >&5
17524 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17525 if test "${ac_cv_type_size_t+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 cat >conftest.$ac_ext <<_ACEOF
17529 #line $LINENO "configure"
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 $ac_includes_default
17536 int
17537 main ()
17538 {
17539 if ((size_t *) 0)
17540 return 0;
17541 if (sizeof (size_t))
17542 return 0;
17543 ;
17544 return 0;
17545 }
17546 _ACEOF
17547 rm -f conftest.$ac_objext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17549 (eval $ac_compile) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
17553 { ac_try='test -s conftest.$ac_objext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_type_size_t=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_cv_type_size_t=no
17565 fi
17566 rm -f conftest.$ac_objext conftest.$ac_ext
17567 fi
17568 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17569 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17570 if test $ac_cv_type_size_t = yes; then
17571
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_SIZE_T 1
17574 _ACEOF
17575
17576
17577 fi
17578
17579
17580 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17581 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17582 if test "${emacs_cv_c_restrict+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585 cat >conftest.$ac_ext <<_ACEOF
17586 #line $LINENO "configure"
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 void fred (int *restrict x);
17593 int
17594 main ()
17595 {
17596
17597 ;
17598 return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603 (eval $ac_compile) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
17607 { ac_try='test -s conftest.$ac_objext'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 emacs_cv_c_restrict=yes
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 cat >conftest.$ac_ext <<_ACEOF
17619 #line $LINENO "configure"
17620 /* confdefs.h. */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625 void fred (int *__restrict x);
17626 int
17627 main ()
17628 {
17629
17630 ;
17631 return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 emacs_cv_c_restrict=__restrict
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 emacs_cv_c_restrict=no
17652 fi
17653 rm -f conftest.$ac_objext conftest.$ac_ext
17654 fi
17655 rm -f conftest.$ac_objext conftest.$ac_ext
17656 fi
17657 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17658 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17659 case "$emacs_cv_c_restrict" in
17660 yes) emacs_restrict=restrict;;
17661 no) emacs_restrict="";;
17662 *) emacs_restrict="$emacs_cv_c_restrict";;
17663 esac
17664 if test "$emacs_restrict" != __restrict; then
17665
17666 cat >>confdefs.h <<_ACEOF
17667 #define __restrict $emacs_restrict
17668 _ACEOF
17669
17670 fi
17671
17672 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17673 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17674 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677 cat >conftest.$ac_ext <<_ACEOF
17678 #line $LINENO "configure"
17679 /* confdefs.h. */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 void fred (int x[__restrict]);
17685 int
17686 main ()
17687 {
17688
17689 ;
17690 return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17695 (eval $ac_compile) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 emacs_cv_c_restrict_arr=yes
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 emacs_cv_c_restrict_arr=no
17711 fi
17712 rm -f conftest.$ac_objext conftest.$ac_ext
17713 fi
17714 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17715 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17716 if test "$emacs_cv_c_restrict_arr" = yes; then
17717
17718 cat >>confdefs.h <<\_ACEOF
17719 #define __restrict_arr __restrict
17720 _ACEOF
17721
17722 fi
17723
17724
17725 for ac_header in nlist.h
17726 do
17727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17729 echo "$as_me:$LINENO: checking for $ac_header" >&5
17730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 fi
17734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17736 else
17737 # Is the header compilable?
17738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17740 cat >conftest.$ac_ext <<_ACEOF
17741 #line $LINENO "configure"
17742 /* confdefs.h. */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 $ac_includes_default
17748 #include <$ac_header>
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 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_header_compiler=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 ac_header_compiler=no
17768 fi
17769 rm -f conftest.$ac_objext conftest.$ac_ext
17770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17771 echo "${ECHO_T}$ac_header_compiler" >&6
17772
17773 # Is the header present?
17774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17776 cat >conftest.$ac_ext <<_ACEOF
17777 #line $LINENO "configure"
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 #include <$ac_header>
17784 _ACEOF
17785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } >/dev/null; then
17793 if test -s conftest.err; then
17794 ac_cpp_err=$ac_c_preproc_warn_flag
17795 else
17796 ac_cpp_err=
17797 fi
17798 else
17799 ac_cpp_err=yes
17800 fi
17801 if test -z "$ac_cpp_err"; then
17802 ac_header_preproc=yes
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17806
17807 ac_header_preproc=no
17808 fi
17809 rm -f conftest.err conftest.$ac_ext
17810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17811 echo "${ECHO_T}$ac_header_preproc" >&6
17812
17813 # So? What about this header?
17814 case $ac_header_compiler:$ac_header_preproc in
17815 yes:no )
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17820 (
17821 cat <<\_ASBOX
17822 ## ------------------------------------ ##
17823 ## Report this to bug-autoconf@gnu.org. ##
17824 ## ------------------------------------ ##
17825 _ASBOX
17826 ) |
17827 sed "s/^/$as_me: WARNING: /" >&2
17828 ;;
17829 no:yes )
17830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17836 (
17837 cat <<\_ASBOX
17838 ## ------------------------------------ ##
17839 ## Report this to bug-autoconf@gnu.org. ##
17840 ## ------------------------------------ ##
17841 _ASBOX
17842 ) |
17843 sed "s/^/$as_me: WARNING: /" >&2
17844 ;;
17845 esac
17846 echo "$as_me:$LINENO: checking for $ac_header" >&5
17847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851 eval "$as_ac_Header=$ac_header_preproc"
17852 fi
17853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17855
17856 fi
17857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17858 cat >>confdefs.h <<_ACEOF
17859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17860 _ACEOF
17861
17862 cat >>confdefs.h <<\_ACEOF
17863 #define NLIST_STRUCT 1
17864 _ACEOF
17865
17866 fi
17867
17868 done
17869
17870
17871
17872
17873 # Set up the CFLAGS for real compilation, so we can substitute it.
17874 CFLAGS="$REAL_CFLAGS"
17875 CPPFLAGS="$REAL_CPPFLAGS"
17876
17877 #### Find out which version of Emacs this is.
17878 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17879 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17880 if test x"${version}" = x; then
17881 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17882 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17883 { (exit 1); exit 1; }; }
17884 fi
17885
17886 ### Specify what sort of things we'll be editing into Makefile and config.h.
17887 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923 cat >>confdefs.h <<_ACEOF
17924 #define EMACS_CONFIGURATION "${canonical}"
17925 _ACEOF
17926
17927
17928 cat >>confdefs.h <<_ACEOF
17929 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17930 _ACEOF
17931
17932
17933 cat >>confdefs.h <<_ACEOF
17934 #define config_machfile "${machfile}"
17935 _ACEOF
17936
17937
17938 cat >>confdefs.h <<_ACEOF
17939 #define config_opsysfile "${opsysfile}"
17940 _ACEOF
17941
17942
17943 cat >>confdefs.h <<_ACEOF
17944 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17945 _ACEOF
17946
17947
17948 cat >>confdefs.h <<_ACEOF
17949 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17950 _ACEOF
17951
17952
17953 cat >>confdefs.h <<_ACEOF
17954 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17955 _ACEOF
17956
17957
17958 cat >>confdefs.h <<_ACEOF
17959 #define UNEXEC_SRC ${UNEXEC_SRC}
17960 _ACEOF
17961
17962
17963 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17964
17965 cat >>confdefs.h <<\_ACEOF
17966 #define HAVE_X_WINDOWS 1
17967 _ACEOF
17968
17969 fi
17970 if test "${USE_X_TOOLKIT}" != "none" ; then
17971
17972 cat >>confdefs.h <<\_ACEOF
17973 #define USE_X_TOOLKIT 1
17974 _ACEOF
17975
17976 fi
17977 if test "${HAVE_X11}" = "yes" ; then
17978
17979 cat >>confdefs.h <<\_ACEOF
17980 #define HAVE_X11 1
17981 _ACEOF
17982
17983 fi
17984 if test "${HAVE_XFREE386}" = "yes" ; then
17985
17986 cat >>confdefs.h <<\_ACEOF
17987 #define HAVE_XFREE386 1
17988 _ACEOF
17989
17990 fi
17991 if test "${HAVE_MENUS}" = "yes" ; then
17992
17993 cat >>confdefs.h <<\_ACEOF
17994 #define HAVE_MENUS 1
17995 _ACEOF
17996
17997 fi
17998 if test "${GNU_MALLOC}" = "yes" ; then
17999
18000 cat >>confdefs.h <<\_ACEOF
18001 #define GNU_MALLOC 1
18002 _ACEOF
18003
18004 fi
18005 if test "${REL_ALLOC}" = "yes" ; then
18006
18007 cat >>confdefs.h <<\_ACEOF
18008 #define REL_ALLOC 1
18009 _ACEOF
18010
18011 fi
18012
18013
18014
18015
18016
18017 #### Report on what we decided to do.
18018 #### Report GTK as a toolkit, even if it doesn't use Xt.
18019 #### It makes printing result more understandable as using GTK sets
18020 #### toolkit_scroll_bars to yes by default.
18021 if test "${HAVE_GTK}" = "yes"; then
18022 USE_X_TOOLKIT=GTK
18023 fi
18024
18025 echo "
18026 Configured for \`${canonical}'.
18027
18028 Where should the build process find the source code? ${srcdir}
18029 What operating system and machine description files should Emacs use?
18030 \`${opsysfile}' and \`${machfile}'
18031 What compiler should emacs be built with? ${CC} ${CFLAGS}
18032 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18033 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18034 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18035 What window system should Emacs use? ${window_system}
18036 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18037
18038 if test -n "${x_includes}"; then
18039 echo " Where do we find X Windows header files? ${x_includes}"
18040 else
18041 echo " Where do we find X Windows header files? Standard dirs"
18042 fi
18043 if test -n "${x_libraries}"; then
18044 echo " Where do we find X Windows libraries? ${x_libraries}"
18045 else
18046 echo " Where do we find X Windows libraries? Standard dirs"
18047 fi
18048
18049 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18050 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18051 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18052 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18053 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18054 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18055 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18056 echo
18057
18058 # Remove any trailing slashes in these variables.
18059 test "${prefix}" != NONE &&
18060 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18061 test "${exec_prefix}" != NONE &&
18062 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18063
18064 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18065 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18066 ## from Makefile.c can correctly provide the arg `-traditional' to the
18067 ## C preprocessor.
18068
18069 cat >conftest.$ac_ext <<_ACEOF
18070 #line $LINENO "configure"
18071 /* confdefs.h. */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 yes..yes
18077 _ACEOF
18078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18079 $EGREP "yes..yes" >/dev/null 2>&1; then
18080 CPP_NEED_TRADITIONAL=no
18081 else
18082 CPP_NEED_TRADITIONAL=yes
18083 fi
18084 rm -f conftest*
18085
18086
18087 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"
18088 ac_config_commands="$ac_config_commands default"
18089 cat >confcache <<\_ACEOF
18090 # This file is a shell script that caches the results of configure
18091 # tests run on this system so they can be shared between configure
18092 # scripts and configure runs, see configure's option --config-cache.
18093 # It is not useful on other systems. If it contains results you don't
18094 # want to keep, you may remove or edit it.
18095 #
18096 # config.status only pays attention to the cache file if you give it
18097 # the --recheck option to rerun configure.
18098 #
18099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18101 # following values.
18102
18103 _ACEOF
18104
18105 # The following way of writing the cache mishandles newlines in values,
18106 # but we know of no workaround that is simple, portable, and efficient.
18107 # So, don't put newlines in cache variables' values.
18108 # Ultrix sh set writes to stderr and can't be redirected directly,
18109 # and sets the high bit in the cache file unless we assign to the vars.
18110 {
18111 (set) 2>&1 |
18112 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18113 *ac_space=\ *)
18114 # `set' does not quote correctly, so add quotes (double-quote
18115 # substitution turns \\\\ into \\, and sed turns \\ into \).
18116 sed -n \
18117 "s/'/'\\\\''/g;
18118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18119 ;;
18120 *)
18121 # `set' quotes correctly as required by POSIX, so do not add quotes.
18122 sed -n \
18123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18124 ;;
18125 esac;
18126 } |
18127 sed '
18128 t clear
18129 : clear
18130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18131 t end
18132 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18133 : end' >>confcache
18134 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18135 if test -w $cache_file; then
18136 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18137 cat confcache >$cache_file
18138 else
18139 echo "not updating unwritable cache $cache_file"
18140 fi
18141 fi
18142 rm -f confcache
18143
18144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18145 # Let make expand exec_prefix.
18146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18147
18148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18150 # trailing colons and then remove the whole line if VPATH becomes empty
18151 # (actually we leave an empty line to preserve line numbers).
18152 if test "x$srcdir" = x.; then
18153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18154 s/:*\$(srcdir):*/:/;
18155 s/:*\${srcdir}:*/:/;
18156 s/:*@srcdir@:*/:/;
18157 s/^\([^=]*=[ ]*\):*/\1/;
18158 s/:*$//;
18159 s/^[^=]*=[ ]*$//;
18160 }'
18161 fi
18162
18163 DEFS=-DHAVE_CONFIG_H
18164
18165 ac_libobjs=
18166 ac_ltlibobjs=
18167 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18168 # 1. Remove the extension, and $U if already installed.
18169 ac_i=`echo "$ac_i" |
18170 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18171 # 2. Add them.
18172 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18173 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18174 done
18175 LIBOBJS=$ac_libobjs
18176
18177 LTLIBOBJS=$ac_ltlibobjs
18178
18179
18180
18181 : ${CONFIG_STATUS=./config.status}
18182 ac_clean_files_save=$ac_clean_files
18183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18184 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18185 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18186 cat >$CONFIG_STATUS <<_ACEOF
18187 #! $SHELL
18188 # Generated by $as_me.
18189 # Run this file to recreate the current configuration.
18190 # Compiler output produced by configure, useful for debugging
18191 # configure, is in config.log if it exists.
18192
18193 debug=false
18194 ac_cs_recheck=false
18195 ac_cs_silent=false
18196 SHELL=\${CONFIG_SHELL-$SHELL}
18197 _ACEOF
18198
18199 cat >>$CONFIG_STATUS <<\_ACEOF
18200 ## --------------------- ##
18201 ## M4sh Initialization. ##
18202 ## --------------------- ##
18203
18204 # Be Bourne compatible
18205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18206 emulate sh
18207 NULLCMD=:
18208 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18209 # is contrary to our usage. Disable this feature.
18210 alias -g '${1+"$@"}'='"$@"'
18211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18212 set -o posix
18213 fi
18214
18215 # Support unset when possible.
18216 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18217 as_unset=unset
18218 else
18219 as_unset=false
18220 fi
18221
18222
18223 # Work around bugs in pre-3.0 UWIN ksh.
18224 $as_unset ENV MAIL MAILPATH
18225 PS1='$ '
18226 PS2='> '
18227 PS4='+ '
18228
18229 # NLS nuisances.
18230 for as_var in \
18231 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18232 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18233 LC_TELEPHONE LC_TIME
18234 do
18235 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18236 eval $as_var=C; export $as_var
18237 else
18238 $as_unset $as_var
18239 fi
18240 done
18241
18242 # Required to use basename.
18243 if expr a : '\(a\)' >/dev/null 2>&1; then
18244 as_expr=expr
18245 else
18246 as_expr=false
18247 fi
18248
18249 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18250 as_basename=basename
18251 else
18252 as_basename=false
18253 fi
18254
18255
18256 # Name of the executable.
18257 as_me=`$as_basename "$0" ||
18258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18259 X"$0" : 'X\(//\)$' \| \
18260 X"$0" : 'X\(/\)$' \| \
18261 . : '\(.\)' 2>/dev/null ||
18262 echo X/"$0" |
18263 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18264 /^X\/\(\/\/\)$/{ s//\1/; q; }
18265 /^X\/\(\/\).*/{ s//\1/; q; }
18266 s/.*/./; q'`
18267
18268
18269 # PATH needs CR, and LINENO needs CR and PATH.
18270 # Avoid depending upon Character Ranges.
18271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18274 as_cr_digits='0123456789'
18275 as_cr_alnum=$as_cr_Letters$as_cr_digits
18276
18277 # The user is always right.
18278 if test "${PATH_SEPARATOR+set}" != set; then
18279 echo "#! /bin/sh" >conf$$.sh
18280 echo "exit 0" >>conf$$.sh
18281 chmod +x conf$$.sh
18282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18283 PATH_SEPARATOR=';'
18284 else
18285 PATH_SEPARATOR=:
18286 fi
18287 rm -f conf$$.sh
18288 fi
18289
18290
18291 as_lineno_1=$LINENO
18292 as_lineno_2=$LINENO
18293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18294 test "x$as_lineno_1" != "x$as_lineno_2" &&
18295 test "x$as_lineno_3" = "x$as_lineno_2" || {
18296 # Find who we are. Look in the path if we contain no path at all
18297 # relative or not.
18298 case $0 in
18299 *[\\/]* ) as_myself=$0 ;;
18300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18301 for as_dir in $PATH
18302 do
18303 IFS=$as_save_IFS
18304 test -z "$as_dir" && as_dir=.
18305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18306 done
18307
18308 ;;
18309 esac
18310 # We did not find ourselves, most probably we were run as `sh COMMAND'
18311 # in which case we are not to be found in the path.
18312 if test "x$as_myself" = x; then
18313 as_myself=$0
18314 fi
18315 if test ! -f "$as_myself"; then
18316 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18317 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18318 { (exit 1); exit 1; }; }
18319 fi
18320 case $CONFIG_SHELL in
18321 '')
18322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18323 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18324 do
18325 IFS=$as_save_IFS
18326 test -z "$as_dir" && as_dir=.
18327 for as_base in sh bash ksh sh5; do
18328 case $as_dir in
18329 /*)
18330 if ("$as_dir/$as_base" -c '
18331 as_lineno_1=$LINENO
18332 as_lineno_2=$LINENO
18333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18334 test "x$as_lineno_1" != "x$as_lineno_2" &&
18335 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18336 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18337 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18338 CONFIG_SHELL=$as_dir/$as_base
18339 export CONFIG_SHELL
18340 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18341 fi;;
18342 esac
18343 done
18344 done
18345 ;;
18346 esac
18347
18348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18349 # uniformly replaced by the line number. The first 'sed' inserts a
18350 # line-number line before each line; the second 'sed' does the real
18351 # work. The second script uses 'N' to pair each line-number line
18352 # with the numbered line, and appends trailing '-' during
18353 # substitution so that $LINENO is not a special case at line end.
18354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18355 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18356 sed '=' <$as_myself |
18357 sed '
18358 N
18359 s,$,-,
18360 : loop
18361 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18362 t loop
18363 s,-$,,
18364 s,^['$as_cr_digits']*\n,,
18365 ' >$as_me.lineno &&
18366 chmod +x $as_me.lineno ||
18367 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18368 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18369 { (exit 1); exit 1; }; }
18370
18371 # Don't try to exec as it changes $[0], causing all sort of problems
18372 # (the dirname of $[0] is not the place where we might find the
18373 # original and so on. Autoconf is especially sensible to this).
18374 . ./$as_me.lineno
18375 # Exit status is that of the last command.
18376 exit
18377 }
18378
18379
18380 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18381 *c*,-n*) ECHO_N= ECHO_C='
18382 ' ECHO_T=' ' ;;
18383 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18384 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18385 esac
18386
18387 if expr a : '\(a\)' >/dev/null 2>&1; then
18388 as_expr=expr
18389 else
18390 as_expr=false
18391 fi
18392
18393 rm -f conf$$ conf$$.exe conf$$.file
18394 echo >conf$$.file
18395 if ln -s conf$$.file conf$$ 2>/dev/null; then
18396 # We could just check for DJGPP; but this test a) works b) is more generic
18397 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18398 if test -f conf$$.exe; then
18399 # Don't use ln at all; we don't have any links
18400 as_ln_s='cp -p'
18401 else
18402 as_ln_s='ln -s'
18403 fi
18404 elif ln conf$$.file conf$$ 2>/dev/null; then
18405 as_ln_s=ln
18406 else
18407 as_ln_s='cp -p'
18408 fi
18409 rm -f conf$$ conf$$.exe conf$$.file
18410
18411 if mkdir -p . 2>/dev/null; then
18412 as_mkdir_p=:
18413 else
18414 as_mkdir_p=false
18415 fi
18416
18417 as_executable_p="test -f"
18418
18419 # Sed expression to map a string onto a valid CPP name.
18420 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18421
18422 # Sed expression to map a string onto a valid variable name.
18423 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18424
18425
18426 # IFS
18427 # We need space, tab and new line, in precisely that order.
18428 as_nl='
18429 '
18430 IFS=" $as_nl"
18431
18432 # CDPATH.
18433 $as_unset CDPATH
18434
18435 exec 6>&1
18436
18437 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18438 # report actual input values of CONFIG_FILES etc. instead of their
18439 # values after options handling. Logging --version etc. is OK.
18440 exec 5>>config.log
18441 {
18442 echo
18443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18444 ## Running $as_me. ##
18445 _ASBOX
18446 } >&5
18447 cat >&5 <<_CSEOF
18448
18449 This file was extended by $as_me, which was
18450 generated by GNU Autoconf 2.57. Invocation command line was
18451
18452 CONFIG_FILES = $CONFIG_FILES
18453 CONFIG_HEADERS = $CONFIG_HEADERS
18454 CONFIG_LINKS = $CONFIG_LINKS
18455 CONFIG_COMMANDS = $CONFIG_COMMANDS
18456 $ $0 $@
18457
18458 _CSEOF
18459 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18460 echo >&5
18461 _ACEOF
18462
18463 # Files that config.status was made for.
18464 if test -n "$ac_config_files"; then
18465 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18466 fi
18467
18468 if test -n "$ac_config_headers"; then
18469 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18470 fi
18471
18472 if test -n "$ac_config_links"; then
18473 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18474 fi
18475
18476 if test -n "$ac_config_commands"; then
18477 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18478 fi
18479
18480 cat >>$CONFIG_STATUS <<\_ACEOF
18481
18482 ac_cs_usage="\
18483 \`$as_me' instantiates files from templates according to the
18484 current configuration.
18485
18486 Usage: $0 [OPTIONS] [FILE]...
18487
18488 -h, --help print this help, then exit
18489 -V, --version print version number, then exit
18490 -q, --quiet do not print progress messages
18491 -d, --debug don't remove temporary files
18492 --recheck update $as_me by reconfiguring in the same conditions
18493 --file=FILE[:TEMPLATE]
18494 instantiate the configuration file FILE
18495 --header=FILE[:TEMPLATE]
18496 instantiate the configuration header FILE
18497
18498 Configuration files:
18499 $config_files
18500
18501 Configuration headers:
18502 $config_headers
18503
18504 Configuration commands:
18505 $config_commands
18506
18507 Report bugs to <bug-autoconf@gnu.org>."
18508 _ACEOF
18509
18510 cat >>$CONFIG_STATUS <<_ACEOF
18511 ac_cs_version="\\
18512 config.status
18513 configured by $0, generated by GNU Autoconf 2.57,
18514 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18515
18516 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18517 Free Software Foundation, Inc.
18518 This config.status script is free software; the Free Software Foundation
18519 gives unlimited permission to copy, distribute and modify it."
18520 srcdir=$srcdir
18521 INSTALL="$INSTALL"
18522 _ACEOF
18523
18524 cat >>$CONFIG_STATUS <<\_ACEOF
18525 # If no file are specified by the user, then we need to provide default
18526 # value. By we need to know if files were specified by the user.
18527 ac_need_defaults=:
18528 while test $# != 0
18529 do
18530 case $1 in
18531 --*=*)
18532 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18533 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18534 ac_shift=:
18535 ;;
18536 -*)
18537 ac_option=$1
18538 ac_optarg=$2
18539 ac_shift=shift
18540 ;;
18541 *) # This is not an option, so the user has probably given explicit
18542 # arguments.
18543 ac_option=$1
18544 ac_need_defaults=false;;
18545 esac
18546
18547 case $ac_option in
18548 # Handling of the options.
18549 _ACEOF
18550 cat >>$CONFIG_STATUS <<\_ACEOF
18551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18552 ac_cs_recheck=: ;;
18553 --version | --vers* | -V )
18554 echo "$ac_cs_version"; exit 0 ;;
18555 --he | --h)
18556 # Conflict between --help and --header
18557 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18558 Try \`$0 --help' for more information." >&5
18559 echo "$as_me: error: ambiguous option: $1
18560 Try \`$0 --help' for more information." >&2;}
18561 { (exit 1); exit 1; }; };;
18562 --help | --hel | -h )
18563 echo "$ac_cs_usage"; exit 0 ;;
18564 --debug | --d* | -d )
18565 debug=: ;;
18566 --file | --fil | --fi | --f )
18567 $ac_shift
18568 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18569 ac_need_defaults=false;;
18570 --header | --heade | --head | --hea )
18571 $ac_shift
18572 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18573 ac_need_defaults=false;;
18574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18576 ac_cs_silent=: ;;
18577
18578 # This is an error.
18579 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18580 Try \`$0 --help' for more information." >&5
18581 echo "$as_me: error: unrecognized option: $1
18582 Try \`$0 --help' for more information." >&2;}
18583 { (exit 1); exit 1; }; } ;;
18584
18585 *) ac_config_targets="$ac_config_targets $1" ;;
18586
18587 esac
18588 shift
18589 done
18590
18591 ac_configure_extra_args=
18592
18593 if $ac_cs_silent; then
18594 exec 6>/dev/null
18595 ac_configure_extra_args="$ac_configure_extra_args --silent"
18596 fi
18597
18598 _ACEOF
18599 cat >>$CONFIG_STATUS <<_ACEOF
18600 if \$ac_cs_recheck; then
18601 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18602 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18603 fi
18604
18605 _ACEOF
18606
18607 cat >>$CONFIG_STATUS <<_ACEOF
18608 #
18609 # INIT-COMMANDS section.
18610 #
18611
18612 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18613
18614 _ACEOF
18615
18616
18617
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619 for ac_config_target in $ac_config_targets
18620 do
18621 case "$ac_config_target" in
18622 # Handling of arguments.
18623 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18624 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18625 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18626 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18627 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18628 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18629 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18630 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18631 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18632 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18633 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18634 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18636 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18637 { (exit 1); exit 1; }; };;
18638 esac
18639 done
18640
18641 # If the user did not use the arguments to specify the items to instantiate,
18642 # then the envvar interface is used. Set only those that are not.
18643 # We use the long form for the default assignment because of an extremely
18644 # bizarre bug on SunOS 4.1.3.
18645 if $ac_need_defaults; then
18646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18649 fi
18650
18651 # Have a temporary directory for convenience. Make it in the build tree
18652 # simply because there is no reason to put it here, and in addition,
18653 # creating and moving files from /tmp can sometimes cause problems.
18654 # Create a temporary directory, and hook for its removal unless debugging.
18655 $debug ||
18656 {
18657 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18658 trap '{ (exit 1); exit 1; }' 1 2 13 15
18659 }
18660
18661 # Create a (secure) tmp directory for tmp files.
18662
18663 {
18664 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18665 test -n "$tmp" && test -d "$tmp"
18666 } ||
18667 {
18668 tmp=./confstat$$-$RANDOM
18669 (umask 077 && mkdir $tmp)
18670 } ||
18671 {
18672 echo "$me: cannot create a temporary directory in ." >&2
18673 { (exit 1); exit 1; }
18674 }
18675
18676 _ACEOF
18677
18678 cat >>$CONFIG_STATUS <<_ACEOF
18679
18680 #
18681 # CONFIG_FILES section.
18682 #
18683
18684 # No need to generate the scripts if there are no CONFIG_FILES.
18685 # This happens for instance when ./config.status config.h
18686 if test -n "\$CONFIG_FILES"; then
18687 # Protect against being on the right side of a sed subst in config.status.
18688 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18689 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18690 s,@SHELL@,$SHELL,;t t
18691 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18692 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18693 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18694 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18695 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18696 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18697 s,@exec_prefix@,$exec_prefix,;t t
18698 s,@prefix@,$prefix,;t t
18699 s,@program_transform_name@,$program_transform_name,;t t
18700 s,@bindir@,$bindir,;t t
18701 s,@sbindir@,$sbindir,;t t
18702 s,@libexecdir@,$libexecdir,;t t
18703 s,@datadir@,$datadir,;t t
18704 s,@sysconfdir@,$sysconfdir,;t t
18705 s,@sharedstatedir@,$sharedstatedir,;t t
18706 s,@localstatedir@,$localstatedir,;t t
18707 s,@libdir@,$libdir,;t t
18708 s,@includedir@,$includedir,;t t
18709 s,@oldincludedir@,$oldincludedir,;t t
18710 s,@infodir@,$infodir,;t t
18711 s,@mandir@,$mandir,;t t
18712 s,@build_alias@,$build_alias,;t t
18713 s,@host_alias@,$host_alias,;t t
18714 s,@target_alias@,$target_alias,;t t
18715 s,@DEFS@,$DEFS,;t t
18716 s,@ECHO_C@,$ECHO_C,;t t
18717 s,@ECHO_N@,$ECHO_N,;t t
18718 s,@ECHO_T@,$ECHO_T,;t t
18719 s,@LIBS@,$LIBS,;t t
18720 s,@build@,$build,;t t
18721 s,@build_cpu@,$build_cpu,;t t
18722 s,@build_vendor@,$build_vendor,;t t
18723 s,@build_os@,$build_os,;t t
18724 s,@host@,$host,;t t
18725 s,@host_cpu@,$host_cpu,;t t
18726 s,@host_vendor@,$host_vendor,;t t
18727 s,@host_os@,$host_os,;t t
18728 s,@CC@,$CC,;t t
18729 s,@CFLAGS@,$CFLAGS,;t t
18730 s,@LDFLAGS@,$LDFLAGS,;t t
18731 s,@CPPFLAGS@,$CPPFLAGS,;t t
18732 s,@ac_ct_CC@,$ac_ct_CC,;t t
18733 s,@EXEEXT@,$EXEEXT,;t t
18734 s,@OBJEXT@,$OBJEXT,;t t
18735 s,@LN_S@,$LN_S,;t t
18736 s,@CPP@,$CPP,;t t
18737 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18738 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18739 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18740 s,@RANLIB@,$RANLIB,;t t
18741 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18742 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18743 s,@EGREP@,$EGREP,;t t
18744 s,@LIBSOUND@,$LIBSOUND,;t t
18745 s,@SET_MAKE@,$SET_MAKE,;t t
18746 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18747 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18748 s,@GTK_LIBS@,$GTK_LIBS,;t t
18749 s,@ALLOCA@,$ALLOCA,;t t
18750 s,@liblockfile@,$liblockfile,;t t
18751 s,@LIBOBJS@,$LIBOBJS,;t t
18752 s,@NEED_SETGID@,$NEED_SETGID,;t t
18753 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18754 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18755 s,@version@,$version,;t t
18756 s,@configuration@,$configuration,;t t
18757 s,@canonical@,$canonical,;t t
18758 s,@srcdir@,$srcdir,;t t
18759 s,@lispdir@,$lispdir,;t t
18760 s,@locallisppath@,$locallisppath,;t t
18761 s,@lisppath@,$lisppath,;t t
18762 s,@x_default_search_path@,$x_default_search_path,;t t
18763 s,@etcdir@,$etcdir,;t t
18764 s,@archlibdir@,$archlibdir,;t t
18765 s,@docdir@,$docdir,;t t
18766 s,@bitmapdir@,$bitmapdir,;t t
18767 s,@gamedir@,$gamedir,;t t
18768 s,@gameuser@,$gameuser,;t t
18769 s,@c_switch_system@,$c_switch_system,;t t
18770 s,@c_switch_machine@,$c_switch_machine,;t t
18771 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18772 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18773 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18774 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18775 s,@machfile@,$machfile,;t t
18776 s,@opsysfile@,$opsysfile,;t t
18777 s,@carbon_appdir@,$carbon_appdir,;t t
18778 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18779 CEOF
18780
18781 _ACEOF
18782
18783 cat >>$CONFIG_STATUS <<\_ACEOF
18784 # Split the substitutions into bite-sized pieces for seds with
18785 # small command number limits, like on Digital OSF/1 and HP-UX.
18786 ac_max_sed_lines=48
18787 ac_sed_frag=1 # Number of current file.
18788 ac_beg=1 # First line for current file.
18789 ac_end=$ac_max_sed_lines # Line after last line for current file.
18790 ac_more_lines=:
18791 ac_sed_cmds=
18792 while $ac_more_lines; do
18793 if test $ac_beg -gt 1; then
18794 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18795 else
18796 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18797 fi
18798 if test ! -s $tmp/subs.frag; then
18799 ac_more_lines=false
18800 else
18801 # The purpose of the label and of the branching condition is to
18802 # speed up the sed processing (if there are no `@' at all, there
18803 # is no need to browse any of the substitutions).
18804 # These are the two extra sed commands mentioned above.
18805 (echo ':t
18806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18807 if test -z "$ac_sed_cmds"; then
18808 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18809 else
18810 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18811 fi
18812 ac_sed_frag=`expr $ac_sed_frag + 1`
18813 ac_beg=$ac_end
18814 ac_end=`expr $ac_end + $ac_max_sed_lines`
18815 fi
18816 done
18817 if test -z "$ac_sed_cmds"; then
18818 ac_sed_cmds=cat
18819 fi
18820 fi # test -n "$CONFIG_FILES"
18821
18822 _ACEOF
18823 cat >>$CONFIG_STATUS <<\_ACEOF
18824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18826 case $ac_file in
18827 - | *:- | *:-:* ) # input from stdin
18828 cat >$tmp/stdin
18829 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18831 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18833 * ) ac_file_in=$ac_file.in ;;
18834 esac
18835
18836 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18837 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18839 X"$ac_file" : 'X\(//\)[^/]' \| \
18840 X"$ac_file" : 'X\(//\)$' \| \
18841 X"$ac_file" : 'X\(/\)' \| \
18842 . : '\(.\)' 2>/dev/null ||
18843 echo X"$ac_file" |
18844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18846 /^X\(\/\/\)$/{ s//\1/; q; }
18847 /^X\(\/\).*/{ s//\1/; q; }
18848 s/.*/./; q'`
18849 { if $as_mkdir_p; then
18850 mkdir -p "$ac_dir"
18851 else
18852 as_dir="$ac_dir"
18853 as_dirs=
18854 while test ! -d "$as_dir"; do
18855 as_dirs="$as_dir $as_dirs"
18856 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18858 X"$as_dir" : 'X\(//\)[^/]' \| \
18859 X"$as_dir" : 'X\(//\)$' \| \
18860 X"$as_dir" : 'X\(/\)' \| \
18861 . : '\(.\)' 2>/dev/null ||
18862 echo X"$as_dir" |
18863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18865 /^X\(\/\/\)$/{ s//\1/; q; }
18866 /^X\(\/\).*/{ s//\1/; q; }
18867 s/.*/./; q'`
18868 done
18869 test ! -n "$as_dirs" || mkdir $as_dirs
18870 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18872 { (exit 1); exit 1; }; }; }
18873
18874 ac_builddir=.
18875
18876 if test "$ac_dir" != .; then
18877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18878 # A "../" for each directory in $ac_dir_suffix.
18879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18880 else
18881 ac_dir_suffix= ac_top_builddir=
18882 fi
18883
18884 case $srcdir in
18885 .) # No --srcdir option. We are building in place.
18886 ac_srcdir=.
18887 if test -z "$ac_top_builddir"; then
18888 ac_top_srcdir=.
18889 else
18890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18891 fi ;;
18892 [\\/]* | ?:[\\/]* ) # Absolute path.
18893 ac_srcdir=$srcdir$ac_dir_suffix;
18894 ac_top_srcdir=$srcdir ;;
18895 *) # Relative path.
18896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18898 esac
18899 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18900 # absolute.
18901 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18902 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18903 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18904 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18905
18906
18907 case $INSTALL in
18908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18909 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18910 esac
18911
18912 if test x"$ac_file" != x-; then
18913 { echo "$as_me:$LINENO: creating $ac_file" >&5
18914 echo "$as_me: creating $ac_file" >&6;}
18915 rm -f "$ac_file"
18916 fi
18917 # Let's still pretend it is `configure' which instantiates (i.e., don't
18918 # use $as_me), people would be surprised to read:
18919 # /* config.h. Generated by config.status. */
18920 if test x"$ac_file" = x-; then
18921 configure_input=
18922 else
18923 configure_input="$ac_file. "
18924 fi
18925 configure_input=$configure_input"Generated from `echo $ac_file_in |
18926 sed 's,.*/,,'` by configure."
18927
18928 # First look for the input files in the build tree, otherwise in the
18929 # src tree.
18930 ac_file_inputs=`IFS=:
18931 for f in $ac_file_in; do
18932 case $f in
18933 -) echo $tmp/stdin ;;
18934 [\\/$]*)
18935 # Absolute (can't be DOS-style, as IFS=:)
18936 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18937 echo "$as_me: error: cannot find input file: $f" >&2;}
18938 { (exit 1); exit 1; }; }
18939 echo $f;;
18940 *) # Relative
18941 if test -f "$f"; then
18942 # Build tree
18943 echo $f
18944 elif test -f "$srcdir/$f"; then
18945 # Source tree
18946 echo $srcdir/$f
18947 else
18948 # /dev/null tree
18949 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18950 echo "$as_me: error: cannot find input file: $f" >&2;}
18951 { (exit 1); exit 1; }; }
18952 fi;;
18953 esac
18954 done` || { (exit 1); exit 1; }
18955 _ACEOF
18956 cat >>$CONFIG_STATUS <<_ACEOF
18957 sed "$ac_vpsub
18958 $extrasub
18959 _ACEOF
18960 cat >>$CONFIG_STATUS <<\_ACEOF
18961 :t
18962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18963 s,@configure_input@,$configure_input,;t t
18964 s,@srcdir@,$ac_srcdir,;t t
18965 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18966 s,@top_srcdir@,$ac_top_srcdir,;t t
18967 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18968 s,@builddir@,$ac_builddir,;t t
18969 s,@abs_builddir@,$ac_abs_builddir,;t t
18970 s,@top_builddir@,$ac_top_builddir,;t t
18971 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18972 s,@INSTALL@,$ac_INSTALL,;t t
18973 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18974 rm -f $tmp/stdin
18975 if test x"$ac_file" != x-; then
18976 mv $tmp/out $ac_file
18977 else
18978 cat $tmp/out
18979 rm -f $tmp/out
18980 fi
18981
18982 done
18983 _ACEOF
18984 cat >>$CONFIG_STATUS <<\_ACEOF
18985
18986 #
18987 # CONFIG_HEADER section.
18988 #
18989
18990 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18991 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18992 #
18993 # ac_d sets the value in "#define NAME VALUE" lines.
18994 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18995 ac_dB='[ ].*$,\1#\2'
18996 ac_dC=' '
18997 ac_dD=',;t'
18998 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18999 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19000 ac_uB='$,\1#\2define\3'
19001 ac_uC=' '
19002 ac_uD=',;t'
19003
19004 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19006 case $ac_file in
19007 - | *:- | *:-:* ) # input from stdin
19008 cat >$tmp/stdin
19009 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19011 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19013 * ) ac_file_in=$ac_file.in ;;
19014 esac
19015
19016 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19017 echo "$as_me: creating $ac_file" >&6;}
19018
19019 # First look for the input files in the build tree, otherwise in the
19020 # src tree.
19021 ac_file_inputs=`IFS=:
19022 for f in $ac_file_in; do
19023 case $f in
19024 -) echo $tmp/stdin ;;
19025 [\\/$]*)
19026 # Absolute (can't be DOS-style, as IFS=:)
19027 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19028 echo "$as_me: error: cannot find input file: $f" >&2;}
19029 { (exit 1); exit 1; }; }
19030 echo $f;;
19031 *) # Relative
19032 if test -f "$f"; then
19033 # Build tree
19034 echo $f
19035 elif test -f "$srcdir/$f"; then
19036 # Source tree
19037 echo $srcdir/$f
19038 else
19039 # /dev/null tree
19040 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19041 echo "$as_me: error: cannot find input file: $f" >&2;}
19042 { (exit 1); exit 1; }; }
19043 fi;;
19044 esac
19045 done` || { (exit 1); exit 1; }
19046 # Remove the trailing spaces.
19047 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19048
19049 _ACEOF
19050
19051 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19052 # `conftest.undefs', that substitutes the proper values into
19053 # config.h.in to produce config.h. The first handles `#define'
19054 # templates, and the second `#undef' templates.
19055 # And first: Protect against being on the right side of a sed subst in
19056 # config.status. Protect against being in an unquoted here document
19057 # in config.status.
19058 rm -f conftest.defines conftest.undefs
19059 # Using a here document instead of a string reduces the quoting nightmare.
19060 # Putting comments in sed scripts is not portable.
19061 #
19062 # `end' is used to avoid that the second main sed command (meant for
19063 # 0-ary CPP macros) applies to n-ary macro definitions.
19064 # See the Autoconf documentation for `clear'.
19065 cat >confdef2sed.sed <<\_ACEOF
19066 s/[\\&,]/\\&/g
19067 s,[\\$`],\\&,g
19068 t clear
19069 : clear
19070 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19071 t end
19072 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19073 : end
19074 _ACEOF
19075 # If some macros were called several times there might be several times
19076 # the same #defines, which is useless. Nevertheless, we may not want to
19077 # sort them, since we want the *last* AC-DEFINE to be honored.
19078 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19079 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19080 rm -f confdef2sed.sed
19081
19082 # This sed command replaces #undef with comments. This is necessary, for
19083 # example, in the case of _POSIX_SOURCE, which is predefined and required
19084 # on some systems where configure will not decide to define it.
19085 cat >>conftest.undefs <<\_ACEOF
19086 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19087 _ACEOF
19088
19089 # Break up conftest.defines because some shells have a limit on the size
19090 # of here documents, and old seds have small limits too (100 cmds).
19091 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19092 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19093 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19094 echo ' :' >>$CONFIG_STATUS
19095 rm -f conftest.tail
19096 while grep . conftest.defines >/dev/null
19097 do
19098 # Write a limited-size here document to $tmp/defines.sed.
19099 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19100 # Speed up: don't consider the non `#define' lines.
19101 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19102 # Work around the forget-to-reset-the-flag bug.
19103 echo 't clr' >>$CONFIG_STATUS
19104 echo ': clr' >>$CONFIG_STATUS
19105 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19106 echo 'CEOF
19107 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19108 rm -f $tmp/in
19109 mv $tmp/out $tmp/in
19110 ' >>$CONFIG_STATUS
19111 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19112 rm -f conftest.defines
19113 mv conftest.tail conftest.defines
19114 done
19115 rm -f conftest.defines
19116 echo ' fi # grep' >>$CONFIG_STATUS
19117 echo >>$CONFIG_STATUS
19118
19119 # Break up conftest.undefs because some shells have a limit on the size
19120 # of here documents, and old seds have small limits too (100 cmds).
19121 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19122 rm -f conftest.tail
19123 while grep . conftest.undefs >/dev/null
19124 do
19125 # Write a limited-size here document to $tmp/undefs.sed.
19126 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19127 # Speed up: don't consider the non `#undef'
19128 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19129 # Work around the forget-to-reset-the-flag bug.
19130 echo 't clr' >>$CONFIG_STATUS
19131 echo ': clr' >>$CONFIG_STATUS
19132 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19133 echo 'CEOF
19134 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19135 rm -f $tmp/in
19136 mv $tmp/out $tmp/in
19137 ' >>$CONFIG_STATUS
19138 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19139 rm -f conftest.undefs
19140 mv conftest.tail conftest.undefs
19141 done
19142 rm -f conftest.undefs
19143
19144 cat >>$CONFIG_STATUS <<\_ACEOF
19145 # Let's still pretend it is `configure' which instantiates (i.e., don't
19146 # use $as_me), people would be surprised to read:
19147 # /* config.h. Generated by config.status. */
19148 if test x"$ac_file" = x-; then
19149 echo "/* Generated by configure. */" >$tmp/config.h
19150 else
19151 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19152 fi
19153 cat $tmp/in >>$tmp/config.h
19154 rm -f $tmp/in
19155 if test x"$ac_file" != x-; then
19156 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19158 echo "$as_me: $ac_file is unchanged" >&6;}
19159 else
19160 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19162 X"$ac_file" : 'X\(//\)[^/]' \| \
19163 X"$ac_file" : 'X\(//\)$' \| \
19164 X"$ac_file" : 'X\(/\)' \| \
19165 . : '\(.\)' 2>/dev/null ||
19166 echo X"$ac_file" |
19167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19169 /^X\(\/\/\)$/{ s//\1/; q; }
19170 /^X\(\/\).*/{ s//\1/; q; }
19171 s/.*/./; q'`
19172 { if $as_mkdir_p; then
19173 mkdir -p "$ac_dir"
19174 else
19175 as_dir="$ac_dir"
19176 as_dirs=
19177 while test ! -d "$as_dir"; do
19178 as_dirs="$as_dir $as_dirs"
19179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19181 X"$as_dir" : 'X\(//\)[^/]' \| \
19182 X"$as_dir" : 'X\(//\)$' \| \
19183 X"$as_dir" : 'X\(/\)' \| \
19184 . : '\(.\)' 2>/dev/null ||
19185 echo X"$as_dir" |
19186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19188 /^X\(\/\/\)$/{ s//\1/; q; }
19189 /^X\(\/\).*/{ s//\1/; q; }
19190 s/.*/./; q'`
19191 done
19192 test ! -n "$as_dirs" || mkdir $as_dirs
19193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19195 { (exit 1); exit 1; }; }; }
19196
19197 rm -f $ac_file
19198 mv $tmp/config.h $ac_file
19199 fi
19200 else
19201 cat $tmp/config.h
19202 rm -f $tmp/config.h
19203 fi
19204 done
19205 _ACEOF
19206 cat >>$CONFIG_STATUS <<\_ACEOF
19207
19208 #
19209 # CONFIG_COMMANDS section.
19210 #
19211 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19212 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19213 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19214 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19215 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19216 X"$ac_dest" : 'X\(//\)[^/]' \| \
19217 X"$ac_dest" : 'X\(//\)$' \| \
19218 X"$ac_dest" : 'X\(/\)' \| \
19219 . : '\(.\)' 2>/dev/null ||
19220 echo X"$ac_dest" |
19221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19223 /^X\(\/\/\)$/{ s//\1/; q; }
19224 /^X\(\/\).*/{ s//\1/; q; }
19225 s/.*/./; q'`
19226 ac_builddir=.
19227
19228 if test "$ac_dir" != .; then
19229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19230 # A "../" for each directory in $ac_dir_suffix.
19231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19232 else
19233 ac_dir_suffix= ac_top_builddir=
19234 fi
19235
19236 case $srcdir in
19237 .) # No --srcdir option. We are building in place.
19238 ac_srcdir=.
19239 if test -z "$ac_top_builddir"; then
19240 ac_top_srcdir=.
19241 else
19242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19243 fi ;;
19244 [\\/]* | ?:[\\/]* ) # Absolute path.
19245 ac_srcdir=$srcdir$ac_dir_suffix;
19246 ac_top_srcdir=$srcdir ;;
19247 *) # Relative path.
19248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19250 esac
19251 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19252 # absolute.
19253 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19254 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19255 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19256 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19257
19258
19259 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19260 echo "$as_me: executing $ac_dest commands" >&6;}
19261 case $ac_dest in
19262 default )
19263
19264 ### Make the necessary directories, if they don't exist.
19265 for dir in etc lisp ; do
19266 test -d ${dir} || mkdir ${dir}
19267 done
19268
19269 # Build src/Makefile from ${srcdir}/src/Makefile.c
19270 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19271 # This must be done after src/config.h is built, since we rely on that file.
19272
19273 # Now get this: Some word that is part of the ${srcdir} directory name
19274 # or the ${configuration} value might, just might, happen to be an
19275 # identifier like `sun4' or `i386' or something, and be predefined by
19276 # the C preprocessor to some helpful value like 1, or maybe the empty
19277 # string. Needless to say consequent macro substitutions are less
19278 # than conducive to the makefile finding the correct directory.
19279 undefs="`echo $top_srcdir $configuration $canonical |
19280 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19281 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19282 `"
19283
19284 echo creating src/epaths.h
19285 ${MAKE-make} epaths-force
19286
19287 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19288 # `..' to `. .' unless invoked with -traditional
19289
19290 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19291 CPPFLAGS="$CPPFLAGS -traditional"
19292 fi
19293
19294 echo creating lib-src/Makefile
19295 ( cd lib-src
19296 rm -f junk.c junk1.c junk2.c
19297 sed -e '/start of cpp stuff/q' \
19298 < Makefile.c > junk1.c
19299 sed -e '1,/start of cpp stuff/d'\
19300 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19301 < Makefile.c > junk.c
19302 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19303 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19304 cat junk1.c junk2.c > Makefile.new
19305 rm -f junk.c junk1.c junk2.c
19306 chmod 444 Makefile.new
19307 mv -f Makefile.new Makefile
19308 )
19309
19310 echo creating src/Makefile
19311 ( cd src
19312 rm -f junk.c junk1.c junk2.c
19313 sed -e '/start of cpp stuff/q' \
19314 < Makefile.c > junk1.c
19315 sed -e '1,/start of cpp stuff/d'\
19316 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19317 < Makefile.c > junk.c
19318 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19319 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19320 cat junk1.c junk2.c > Makefile.new
19321 rm -f junk.c junk1.c junk2.c
19322 chmod 444 Makefile.new
19323 mv -f Makefile.new Makefile
19324 )
19325
19326 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19327 echo creating src/.gdbinit
19328 echo source $srcdir/src/.gdbinit > src/.gdbinit
19329 fi
19330
19331 # This is how we know whether to re-run configure in certain cases.
19332 touch src/config.stamp
19333
19334 ;;
19335 esac
19336 done
19337 _ACEOF
19338
19339 cat >>$CONFIG_STATUS <<\_ACEOF
19340
19341 { (exit 0); exit 0; }
19342 _ACEOF
19343 chmod +x $CONFIG_STATUS
19344 ac_clean_files=$ac_clean_files_save
19345
19346
19347 # configure is writing to config.log, and then calls config.status.
19348 # config.status does its own redirection, appending to config.log.
19349 # Unfortunately, on DOS this fails, as config.log is still kept open
19350 # by configure, so config.status won't be able to write to it; its
19351 # output is simply discarded. So we exec the FD to /dev/null,
19352 # effectively closing config.log, so it can be properly (re)opened and
19353 # appended to by config.status. When coming back to configure, we
19354 # need to make the FD available again.
19355 if test "$no_create" != yes; then
19356 ac_cs_success=:
19357 ac_config_status_args=
19358 test "$silent" = yes &&
19359 ac_config_status_args="$ac_config_status_args --quiet"
19360 exec 5>/dev/null
19361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19362 exec 5>>config.log
19363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19364 # would make configure fail if this is the last instruction.
19365 $ac_cs_success || { (exit 1); exit 1; }
19366 fi
19367
19368